public inbox for
help / color / mirror / Atom feed
Subject: LVM2/test t-lvcon ...
Date: Wed, 31 Mar 2010 02:36:00 -0000	[thread overview]
Message-ID: <> (raw)

CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	2010-03-31 02:36:03

Modified files:
	test           : 

Log message:
	For the mirror repair tests, we should use --ignoremonitoring because
	we are running the repair manually.  If we don't ignore, then dmeventd
	and the manually run repair can collide.  (We should still get clean
	results in such a case, but it makes it harder to validate the test


--- LVM2/test/	2010/03/26 22:15:44	1.2
+++ LVM2/test/	2010/03/31 02:36:03	1.3
@@ -21,7 +21,7 @@
 	for d in "$@"; do enable_dev $d; done
 	for d in "$@"; do vgextend $vg $d; done
 	lvremove -ff $vg/mirror
-	lvcreate -m 1 -l 2 -n mirror $vg $dev1 $dev2 $dev3:0
+	lvcreate -m 1 --ig -l 2 -n mirror $vg $dev1 $dev2 $dev3:0
 repair() {
--- LVM2/test/	2010/03/26 22:15:44	1.5
+++ LVM2/test/	2010/03/31 02:36:03	1.6
@@ -15,7 +15,7 @@
 # fail multiple devices
-lvcreate -m 3 -L 1 -n 3way $vg
+lvcreate -m 3 --ig -L 1 -n 3way $vg
 disable_dev $dev2 $dev4
 echo n | lvconvert -i 1 --repair $vg/3way
 lvs -a -o +devices > lvlist
@@ -27,7 +27,7 @@
 vgremove -ff $vg
 vgcreate -c n $vg $dev1 $dev2 $dev3 $dev4
-lvcreate -m 2 -L 1 -n 4way $vg
+lvcreate -m 2 --ig -L 1 -n 4way $vg
 disable_dev $dev1 $dev2
 echo n | lvconvert -i 1 --repair $vg/4way
 lvs -a -o +devices > lvlist
@@ -41,7 +41,7 @@
 vgremove -ff $vg
 vgcreate -c n $vg $dev1 $dev2 $dev3
-lvcreate -m 1 -L 1 -n mirror $vg
+lvcreate -m 1 --ig -L 1 -n mirror $vg
 lvchange -a n $vg/mirror
 vgextend $vg $dev4
@@ -63,11 +63,15 @@
 disable_dev $dev3
 lvconvert -y -i 1 --repair $vg/mirror
 vgreduce --removemissing $vg
 enable_dev $dev3
 vgextend $vg $dev3
-lvcreate -m 2 -l 1 -n mirror2 $vg $dev1 $dev2 $dev3 $dev4
+lvremove -ff $vg
+# Test repair of inactive mirror with log failure
+#  Replacement should fail, but covert should succeed (switch to corelog)
+lvcreate -m 2 --ig -l 2 -n mirror2 $vg $dev1 $dev2 $dev3 $dev4:0
 vgchange -a n $vg
 pvremove -ff -y $dev4
 echo 'y' | lvconvert -y -i 1 --repair $vg/mirror2
+# FIXME: check that mirror ok and log is now 'core'

             reply	other threads:[~2010-03-31  2:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-31  2:36 jbrassow [this message]
2011-02-28 19:44 zkabelac

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).