mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
Test failed commit of mda on new pv - failed vgextend.
Test the auto-repair capability when we fail committing to an mda on a new pv adding to a vg. This test should fail until we fix the auto-repair in this case.
This commit is contained in:
parent
02adb0cd9d
commit
05d2c210e1
@ -63,3 +63,13 @@ grep "Inconsistent metadata found for VG $vg" cmd.out
|
||||
vgs 2>&1 | tee cmd.out
|
||||
not grep "Inconsistent metadata found for VG $vg" cmd.out
|
||||
check
|
||||
|
||||
echo Check auto-repair of failed vgextend - metadata written to original pv but not new pv
|
||||
vgremove -f $vg
|
||||
pvremove -ff $devs
|
||||
pvcreate $devs
|
||||
backup_dev $dev2
|
||||
vgcreate $vg $dev1
|
||||
vgextend $vg $dev2
|
||||
restore_dev $dev2
|
||||
should compare_two_fields_ vgs $vg vg_mda_count pvs $dev2 vg_mda_count
|
||||
|
Loading…
Reference in New Issue
Block a user