diff --git a/test/shell/lvchange-partial.sh b/test/shell/lvchange-partial.sh index fe642d412..bc9a5140d 100644 --- a/test/shell/lvchange-partial.sh +++ b/test/shell/lvchange-partial.sh @@ -13,7 +13,7 @@ aux target_at_least dm-raid 1 1 0 || skip -aux prepare_vg 2 +aux prepare_vg 4 lvcreate --type raid1 -m 1 -l 2 -n $lv1 $vg lvchange -an $vg/$lv1 @@ -64,3 +64,17 @@ not lvchange --zero y $vg/$lv1 not lvchange --resync -ay $vg/$lv1 not lvchange --resync --addtag foo $vg/$lv1 +aux enable_dev "$dev1" +lvremove -ff $vg + +# rhbz 889358 +# Should be able to activate when RAID10 +# has failed devs in different mirror sets. +if aux target_at_least dm-raid 1 3 2; then + lvcreate --type raid10 -m 1 -i 2 -l 2 -n $lv1 $vg + aux wait_for_sync $vg $lv1 + lvchange -an $vg/$lv1 + aux disable_dev "$dev1" "$dev3" + lvchange -ay $vg/$lv1 --partial + lvchange -an $vg/$lv1 +fi