]> sourceware.org Git - lvm2.git/commit
RAID: Make 'vgreduce --removemissing' work with RAID LVs
authorJonathan Brassow <jbrassow@redhat.com>
Wed, 20 Feb 2013 20:52:46 +0000 (14:52 -0600)
committerJonathan Brassow <jbrassow@redhat.com>
Wed, 20 Feb 2013 20:52:46 +0000 (14:52 -0600)
commit845852d6b4b486075f3ed866890f79b278a990ce
tree4ea0c91f8e13666922ac767e2b06328b65933a3e
parent0e4ffd9d3b9cc8bf88662e3a0d023602360c6993
RAID: Make 'vgreduce --removemissing' work with RAID LVs

Currently it is impossible to remove a failed PV which has a RAID LV
on it.  This patch fixes the issue by replacing the failed PV with an
'error' segment within the affected sub-LVs.  Once there is no longer
a RAID LV using the PV, it can be removed.

Most often, it is better to replace a failed RAID device with a spare.
(You can use 'lvconvert --repair <vg>/<LV>' to accomplish that.)
However, if there are no spares in the volume group and none will be
added, it is useful to be able to removed the failed device.

Following patches address the ability to perform 'lvconvert' operations
on RAID LVs that contain sub-LVs composed of 'error' segments.
WHATS_NEW
lib/metadata/metadata-exported.h
lib/metadata/raid_manip.c
tools/vgreduce.c
This page took 0.036964 seconds and 5 git commands to generate.