mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
ff64e3500f
New options to 'lvchange' allow users to scrub their RAID LVs. Synopsis: lvchange --syncaction {check|repair} vg/raid_lv RAID scrubbing is the process of reading all the data and parity blocks in an array and checking to see whether they are coherent. 'lvchange' can now initaite the two scrubbing operations: "check" and "repair". "check" will go over the array and recored the number of discrepancies but not repair them. "repair" will correct the discrepancies as it finds them. 'lvchange --syncaction repair vg/raid_lv' is not to be confused with 'lvconvert --repair vg/raid_lv'. The former initiates a background synchronization operation on the array, while the latter is designed to repair/replace failed devices in a mirror or RAID logical volume. Additional reporting has been added for 'lvs' to support the new operations. Two new printable fields (which are not printed by default) have been added: "syncaction" and "mismatches". These can be accessed using the '-o' option to 'lvs', like: lvs -o +syncaction,mismatches vg/lv "syncaction" will print the current synchronization operation that the RAID volume is performing. It can be one of the following: - idle: All sync operations complete (doing nothing) - resync: Initializing an array or recovering after a machine failure - recover: Replacing a device in the array - check: Looking for array inconsistencies - repair: Looking for and repairing inconsistencies The "mismatches" field with print the number of descrepancies found during a check or repair operation. The 'Cpy%Sync' field already available to 'lvs' will print the progress of any of the above syncactions, including check and repair. Finally, the lv_attr field has changed to accomadate the scrubbing operations as well. The role of the 'p'artial character in the lv_attr report field as expanded. "Partial" is really an indicator for the health of a logical volume and it makes sense to extend this include other health indicators as well, specifically: 'm'ismatches: Indicates that there are discrepancies in a RAID LV. This character is shown after a scrubbing operation has detected that portions of the RAID are not coherent. 'r'efresh : Indicates that a device in a RAID array has suffered a failure and the kernel regards it as failed - even though LVM can read the device label and considers the device to be ok. The LV should be 'r'efreshed to notify the kernel that the device is now available, or the device should be 'r'eplaced if it is suspected of failing. |
||
---|---|---|
.. | ||
blkdeactivate.8.in | ||
clvmd.8.in | ||
cmirrord.8.in | ||
dmeventd.8.in | ||
dmsetup.8.in | ||
fsadm.8.in | ||
lvchange.8.in | ||
lvconvert.8.in | ||
lvcreate.8.in | ||
lvdisplay.8.in | ||
lvextend.8.in | ||
lvm.8.in | ||
lvm.conf.5.in | ||
lvmchange.8.in | ||
lvmconf.8.in | ||
lvmdiskscan.8.in | ||
lvmdump.8.in | ||
lvmetad.8.in | ||
lvmsadc.8.in | ||
lvmsar.8.in | ||
lvreduce.8.in | ||
lvremove.8.in | ||
lvrename.8.in | ||
lvresize.8.in | ||
lvs.8.in | ||
lvscan.8.in | ||
Makefile.in | ||
pvchange.8.in | ||
pvck.8.in | ||
pvcreate.8.in | ||
pvdisplay.8.in | ||
pvmove.8.in | ||
pvremove.8.in | ||
pvresize.8.in | ||
pvs.8.in | ||
pvscan.8.in | ||
vgcfgbackup.8.in | ||
vgcfgrestore.8.in | ||
vgchange.8.in | ||
vgck.8.in | ||
vgconvert.8.in | ||
vgcreate.8.in | ||
vgdisplay.8.in | ||
vgexport.8.in | ||
vgextend.8.in | ||
vgimport.8.in | ||
vgimportclone.8.in | ||
vgmerge.8.in | ||
vgmknodes.8.in | ||
vgreduce.8.in | ||
vgremove.8.in | ||
vgrename.8.in | ||
vgs.8.in | ||
vgscan.8.in | ||
vgsplit.8.in |