summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeinz Mauelshagen <heinzm@redhat.com>2016-03-07 15:25:30 +0100
committerHeinz Mauelshagen <heinzm@redhat.com>2016-03-07 15:25:30 +0100
commit18cf5e8e6758db59c9413bd9c9abcc183c49293d (patch)
tree38132edb96b27bdd2a59a0ccfc722d3e8fe5ba78
parentd03b1779b4e2edaec221e2c29d3384d4c86052cd (diff)
downloadlvm2-18cf5e8e6758db59c9413bd9c9abcc183c49293d.tar.gz
raid_manip: allow for raid leg to be replaced when not both data and metadata image are on pvs
resolves rhbz#1130329
-rw-r--r--lib/metadata/raid_manip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/metadata/raid_manip.c b/lib/metadata/raid_manip.c
index 3b9f81c2e..887b27fd7 100644
--- a/lib/metadata/raid_manip.c
+++ b/lib/metadata/raid_manip.c
@@ -914,7 +914,7 @@ static int _raid_extract_images(struct logical_volume *lv, uint32_t new_count,
display_lvname(seg_lv(seg, s)));
} else {
/* Conditions for second pass */
- if (!lv_is_on_pvs(seg_lv(seg, s), target_pvs) ||
+ if (!lv_is_on_pvs(seg_lv(seg, s), target_pvs) &&
!lv_is_on_pvs(seg_metalv(seg, s), target_pvs))
continue;