此内容没有您所选择的语言版本。
5.4.16.8.2. The warn RAID Fault Policy
In the following example, the
raid_fault_policy
field has been set to warn
in the lvm.conf
file. The RAID logical volume is laid out as follows.
If the
/dev/sdh
device fails, the system log will display error messages. In this case, however, LVM will not automatically attempt to repair the RAID device by replacing one of the images. Instead, if the device has failed you can replace the device with the --repair
argument of the lvconvert
command, as shown below.
Note that even though the failed device has been replaced, the display still indicates that LVM could not find the failed device. This is because, although the failed device has been removed from the RAID logical volume, the failed device has not yet been removed from the volume group. To remove the failed device from the volume group, you can execute
vgreduce --removemissing VG
.
If the device failure is a transient failure or you are able to repair the device that failed, as of Red Hat Enterprise Linux release 6.5 you can initiate recovery of the failed device with the
--refresh
option of the lvchange
command. Previously it was necessary to deactivate and then activate the logical volume.
The following command refreshes a logical volume.
lvchange --refresh my_vg/my_lv
# lvchange --refresh my_vg/my_lv