]> sourceware.org Git - lvm2.git/commit
RAID: Make 'lvchange --refresh' restore transiently failed RAID PVs
authorJonathan Brassow <jbrassow@redhat.com>
Thu, 21 Feb 2013 17:31:36 +0000 (11:31 -0600)
committerJonathan Brassow <jbrassow@redhat.com>
Thu, 21 Feb 2013 17:31:36 +0000 (11:31 -0600)
commitbbc6378b73246d7ef00c16274fea38118531ae95
treedff15683fdd412fd9d506467073201e8ca7663cd
parent3ab46449f4dbcc45fe878149838a8439f5ac8b34
RAID:  Make 'lvchange --refresh' restore transiently failed RAID PVs

A new function (dm_tree_node_force_identical_table_reload) was added to
avoid the suppression of identical table reloads.  This allows RAID LVs
to reload the on-disk superblock information that contains which devices
have failed and the bitmaps.  If the failed device has returned, this has
the effect of restoring the device and initiating recovery.  Without this
patch, the user had to completely deactivate their RAID LV and re-activate
it in order to restore the failed device.  Now they simply need to
suspend and resume (which is done by 'lvchange --refresh').

The identical table suppression is only avoided if the LV is not PARTAIL
(i.e. all of it's devices can be seen and read by LVM) and the kernel
status of the array contains failed devices.  In other words, the function
will only be called in the case where we may have success in restoring
a failed device in the array.
WHATS_NEW
This page took 0.035297 seconds and 5 git commands to generate.