mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
tests: Adapt RAID test to changes
Change 3c9177fdc0b8 causes a conversion of raid1 volume to a raid1 with the same number of legs succeed with a warning.
This commit is contained in:
parent
7a507583d9
commit
e12bdd591a
@ -33,8 +33,10 @@ aux disable_dev "$dev1"
|
||||
vgreduce --force --removemissing $vg
|
||||
check raid_leg_status $vg $lv "DA"
|
||||
|
||||
# Conversion to 2 legs must fail on degraded 2-legged raid1 LV
|
||||
not lvconvert -y -m1 $vg/$lv
|
||||
# Conversion to 2 legs does nothing on degraded 2-legged raid1 LV
|
||||
lvconvert -y -m1 $vg/$lv 2>&1 | tee out
|
||||
grep "already has 2 images" out
|
||||
# Check it remains degraded after the successful "conversion"
|
||||
check raid_leg_status $vg $lv "DA"
|
||||
|
||||
# Repair has to succeed
|
||||
|
Loading…
x
Reference in New Issue
Block a user