From 18cf5e8e6758db59c9413bd9c9abcc183c49293d Mon Sep 17 00:00:00 2001 From: Heinz Mauelshagen Date: Mon, 7 Mar 2016 15:25:30 +0100 Subject: [PATCH] raid_manip: allow for raid leg to be replaced when not both data and metadata image are on pvs resolves rhbz#1130329 --- lib/metadata/raid_manip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.43.5