From 05d2c210e1ff039ee8a6821eecefd677c5e6d11e Mon Sep 17 00:00:00 2001 From: Dave Wysochanski Date: Wed, 7 Jul 2010 14:43:57 +0000 Subject: [PATCH] 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. --- test/t-inconsistent-metadata.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/t-inconsistent-metadata.sh b/test/t-inconsistent-metadata.sh index fbbea1585..310dde542 100644 --- a/test/t-inconsistent-metadata.sh +++ b/test/t-inconsistent-metadata.sh @@ -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 -- 2.43.5