public inbox for lvm2-cvs@sourceware.org
help / color / mirror / Atom feed
* LVM2/test t-inconsistent-metadata.sh
@ 2010-07-07 14:44 wysochanski
0 siblings, 0 replies; 3+ messages in thread
From: wysochanski @ 2010-07-07 14:44 UTC (permalink / raw)
To: lvm-devel, lvm2-cvs
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: wysochanski@sourceware.org 2010-07-07 14:43:58
Modified files:
test : t-inconsistent-metadata.sh
Log message:
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.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t-inconsistent-metadata.sh.diff?cvsroot=lvm2&r1=1.3&r2=1.4
--- LVM2/test/t-inconsistent-metadata.sh 2009/07/01 17:06:04 1.3
+++ LVM2/test/t-inconsistent-metadata.sh 2010/07/07 14:43:57 1.4
@@ -63,3 +63,13 @@
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* LVM2/test t-inconsistent-metadata.sh
@ 2011-01-28 16:13 zkabelac
0 siblings, 0 replies; 3+ messages in thread
From: zkabelac @ 2011-01-28 16:13 UTC (permalink / raw)
To: lvm-devel, lvm2-cvs
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: zkabelac@sourceware.org 2011-01-28 16:13:39
Modified files:
test : t-inconsistent-metadata.sh
Log message:
Lower disk space usage of inconsistent mda test
Smaller size of devices speedups this test.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t-inconsistent-metadata.sh.diff?cvsroot=lvm2&r1=1.5&r2=1.6
--- LVM2/test/t-inconsistent-metadata.sh 2011/01/05 00:16:20 1.5
+++ LVM2/test/t-inconsistent-metadata.sh 2011/01/28 16:13:39 1.6
@@ -11,7 +11,7 @@
. lib/test
-aux prepare_vg 3
+aux prepare_vg 3 12
lvcreate -m 1 -l 1 -n mirror $vg
lvcreate -l 1 -n resized $vg
^ permalink raw reply [flat|nested] 3+ messages in thread
* LVM2/test t-inconsistent-metadata.sh
@ 2009-07-01 17:06 wysochanski
0 siblings, 0 replies; 3+ messages in thread
From: wysochanski @ 2009-07-01 17:06 UTC (permalink / raw)
To: lvm-devel, lvm2-cvs
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: wysochanski@sourceware.org 2009-07-01 17:06:04
Modified files:
test : t-inconsistent-metadata.sh
Log message:
Fix t-inconsistent-metadata.sh.
Sun May 3 13:25:10 CEST 2009 Petr Rockai <me@mornfall.net>
* All tools now handle inconsistent metadata the same way.
Rebase 6/26/09
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t-inconsistent-metadata.sh.diff?cvsroot=lvm2&r1=1.2&r2=1.3
--- LVM2/test/t-inconsistent-metadata.sh 2009/06/05 20:00:52 1.2
+++ LVM2/test/t-inconsistent-metadata.sh 2009/07/01 17:06:04 1.3
@@ -40,23 +40,26 @@
not grep "Inconsistent metadata found for VG $vg" cmd.out
check
-# vgdisplay doesn't change anything
+# vgdisplay fixes
init
vgdisplay 2>&1 | tee cmd.out
-grep "Volume group $vg inconsistent" cmd.out
+grep "Inconsistent metadata found for VG $vg" cmd.out
vgdisplay 2>&1 | tee cmd.out
-grep "Volume group $vg inconsistent" cmd.out
+not grep "Inconsistent metadata found for VG $vg" cmd.out
+check
# lvs fixes up
init
lvs 2>&1 | tee cmd.out
-grep "Inconsistent metadata found for VG $vg - updating" cmd.out
+grep "Inconsistent metadata found for VG $vg" cmd.out
vgdisplay 2>&1 | tee cmd.out
-not grep "Volume group $vg inconsistent" cmd.out
+not grep "Inconsistent metadata found for VG $vg" cmd.out
check
-# vgs doesn't fix up... (why?)
+# vgs fixes up as well
init
vgs 2>&1 | tee cmd.out
-vgdisplay 2>&1 | tee cmd.out
-grep "Volume group $vg inconsistent" cmd.out
+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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-01-28 16:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-07 14:44 LVM2/test t-inconsistent-metadata.sh wysochanski
-- strict thread matches above, loose matches on Subject: below --
2011-01-28 16:13 zkabelac
2009-07-01 17:06 wysochanski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).