mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-22 17:35:59 +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. |
||
---|---|---|
.. | ||
000-basic.sh | ||
activate-minor.sh | ||
activate-missing-segment.sh | ||
activate-missing.sh | ||
activate-partial.sh | ||
clvmd-restart.sh | ||
covercmd.sh | ||
discards-thin.sh | ||
dmeventd-restart.sh | ||
dumpconfig.sh | ||
fsadm.sh | ||
inconsistent-metadata.sh | ||
listings.sh | ||
lock-blocking.sh | ||
lvchange-mirror.sh | ||
lvchange-partial.sh | ||
lvchange-raid.sh | ||
lvconvert-mirror-basic-0.sh | ||
lvconvert-mirror-basic-1.sh | ||
lvconvert-mirror-basic-2.sh | ||
lvconvert-mirror-basic-3.sh | ||
lvconvert-mirror-basic.sh | ||
lvconvert-mirror.sh | ||
lvconvert-raid10.sh | ||
lvconvert-raid.sh | ||
lvconvert-repair-dmeventd.sh | ||
lvconvert-repair-policy.sh | ||
lvconvert-repair-replace.sh | ||
lvconvert-repair-snapshot.sh | ||
lvconvert-repair-transient-dmeventd.sh | ||
lvconvert-repair-transient.sh | ||
lvconvert-repair.sh | ||
lvconvert-thin-external.sh | ||
lvconvert-thin.sh | ||
lvconvert-twostep.sh | ||
lvcreate-large-raid10.sh | ||
lvcreate-large-raid.sh | ||
lvcreate-large.sh | ||
lvcreate-mirror.sh | ||
lvcreate-missing.sh | ||
lvcreate-operation.sh | ||
lvcreate-pvtags.sh | ||
lvcreate-raid10.sh | ||
lvcreate-raid.sh | ||
lvcreate-repair.sh | ||
lvcreate-small-snap.sh | ||
lvcreate-striped-mirror.sh | ||
lvcreate-thin-external.sh | ||
lvcreate-thin-power2.sh | ||
lvcreate-thin-snap.sh | ||
lvcreate-thin.sh | ||
lvcreate-usage.sh | ||
lvextend-percent-extents.sh | ||
lvextend-snapshot-dmeventd.sh | ||
lvextend-snapshot-policy.sh | ||
lvm-init.sh | ||
lvmcache-exercise.sh | ||
lvmetad-disabled.sh | ||
lvmetad-dump.sh | ||
lvmetad-lvm1.sh | ||
lvmetad-no-cluster.sh | ||
lvmetad-override.sh | ||
lvmetad-pvs.sh | ||
lvmetad-pvscan-cache.sh | ||
lvmetad-pvscan-nomda.sh | ||
lvmetad-restart.sh | ||
lvmetad-test.sh | ||
lvmetad-warning.sh | ||
lvresize-mirror.sh | ||
lvresize-raid10.sh | ||
lvresize-raid.sh | ||
lvresize-rounding.sh | ||
lvresize-usage.sh | ||
mdata-strings.sh | ||
metadata-balance.sh | ||
metadata-dirs.sh | ||
metadata.sh | ||
mirror-names.sh | ||
mirror-vgreduce-removemissing.sh | ||
name-mangling.sh | ||
nomda-missing.sh | ||
nomda-restoremissing.sh | ||
pool-labels.sh | ||
pv-duplicate.sh | ||
pv-min-size.sh | ||
pv-range-overflow.sh | ||
pvchange-usage.sh | ||
pvcreate-metadata0.sh | ||
pvcreate-operation-md.sh | ||
pvcreate-operation.sh | ||
pvcreate-usage.sh | ||
pvmove-basic.sh | ||
pvremove-usage.sh | ||
read-ahead.sh | ||
snapshot-autoumount-dmeventd.sh | ||
snapshot-lvm1.sh | ||
snapshot-merge.sh | ||
snapshots-of-mirrors.sh | ||
tags.sh | ||
test-partition.sh | ||
thin-autoumount-dmeventd.sh | ||
thin-defaults.sh | ||
thin-restore.sh | ||
topology-support.sh | ||
unknown-segment.sh | ||
unlost-pv.sh | ||
vgcfgbackup-usage.sh | ||
vgchange-maxlv.sh | ||
vgchange-partial.sh | ||
vgchange-sysinit.sh | ||
vgchange-usage.sh | ||
vgcreate-usage.sh | ||
vgextend-restoremissing.sh | ||
vgextend-usage.sh | ||
vgimportclone.sh | ||
vgmerge-operation.sh | ||
vgmerge-usage.sh | ||
vgreduce-removemissing-snapshot.sh | ||
vgreduce-usage.sh | ||
vgrename-usage.sh | ||
vgsplit-operation.sh | ||
vgsplit-stacked.sh | ||
vgsplit-usage.sh |