public inbox for lvm2-cvs@sourceware.org
help / color / mirror / Atom feed
* LVM2/test t-lvconvert-mirror.sh
@ 2010-08-17 22:01 agk
  0 siblings, 0 replies; 3+ messages in thread
From: agk @ 2010-08-17 22:01 UTC (permalink / raw)
  To: lvm-devel, lvm2-cvs

CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	agk@sourceware.org	2010-08-17 22:01:41

Modified files:
	test           : t-lvconvert-mirror.sh 

Log message:
	Attempt to fix buildbot failure in t-lvconvert-mirror.sh due to failing to
	wait for mirror to get into sync before running subsequent command.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t-lvconvert-mirror.sh.diff?cvsroot=lvm2&r1=1.6&r2=1.7

--- LVM2/test/t-lvconvert-mirror.sh	2010/05/12 10:08:35	1.6
+++ LVM2/test/t-lvconvert-mirror.sh	2010/08/17 22:01:41	1.7
@@ -222,6 +222,7 @@
 # BZ 463272: disk log mirror convert option is lost if downconvert option is also given
 aux prepare_vg 5
 lvcreate -l1 -m2 --corelog -n $lv1 $vg $dev1 $dev2 $dev3
+while [ `lvs --noheadings -o copy_percent $vg/$lv1` != "100.00" ]; do sleep 1; done
 lvconvert -m1 --mirrorlog disk $vg/$lv1 $dev1
 check mirror $vg $lv1 $dev1
 


^ permalink raw reply	[flat|nested] 3+ messages in thread

* LVM2/test t-lvconvert-mirror.sh
@ 2010-11-30 11:35 mornfall
  0 siblings, 0 replies; 3+ messages in thread
From: mornfall @ 2010-11-30 11:35 UTC (permalink / raw)
  To: lvm-devel, lvm2-cvs

CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	mornfall@sourceware.org	2010-11-30 11:35:32

Modified files:
	test           : t-lvconvert-mirror.sh 

Log message:
	Fix a failing test (it used a combination of lvconvert parameters that is no
	longer permitted.)

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t-lvconvert-mirror.sh.diff?cvsroot=lvm2&r1=1.7&r2=1.8

--- LVM2/test/t-lvconvert-mirror.sh	2010/08/17 22:01:41	1.7
+++ LVM2/test/t-lvconvert-mirror.sh	2010/11/30 11:35:32	1.8
@@ -223,8 +223,9 @@
 aux prepare_vg 5
 lvcreate -l1 -m2 --corelog -n $lv1 $vg $dev1 $dev2 $dev3
 while [ `lvs --noheadings -o copy_percent $vg/$lv1` != "100.00" ]; do sleep 1; done
-lvconvert -m1 --mirrorlog disk $vg/$lv1 $dev1
-check mirror $vg $lv1 $dev1
+lvconvert -m1 --mirrorlog disk $vg/$lv1
+check mirror $vg $lv1
+not check mirror $vg $lv1 core
 
 # ---
 # add mirror and disk log


^ permalink raw reply	[flat|nested] 3+ messages in thread

* LVM2/test t-lvconvert-mirror.sh
@ 2010-05-12  6:09 mornfall
  0 siblings, 0 replies; 3+ messages in thread
From: mornfall @ 2010-05-12  6:09 UTC (permalink / raw)
  To: lvm-devel, lvm2-cvs

CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	mornfall@sourceware.org	2010-05-12 06:09:25

Modified files:
	test           : t-lvconvert-mirror.sh 

Log message:
	Revert the huge device creation in t-lvconvert-mirror and downgrade the
	race-induced failure to a warning, until we have a better fix for this.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t-lvconvert-mirror.sh.diff?cvsroot=lvm2&r1=1.4&r2=1.5

--- LVM2/test/t-lvconvert-mirror.sh	2010/04/22 15:39:40	1.4
+++ LVM2/test/t-lvconvert-mirror.sh	2010/05/12 06:09:22	1.5
@@ -10,7 +10,7 @@
 # Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
 . ./test-utils.sh
-aux prepare_vg 5 200
+aux prepare_vg 5
 
 # convert from linear to 2-way mirror
 lvcreate -l2 -n $lv1 $vg $dev1
@@ -65,14 +65,16 @@
 # Test pulling primary image before mirror in-sync (should fail)
 # Test pulling primary image after mirror in-sync (should work)
 # Test that the correct devices remain in the mirror
-lvcreate -l20 -m2 -n $lv1 $vg $dev1 $dev2 $dev4 $dev3:0
+lvcreate -l2 -m2 -n $lv1 $vg $dev1 $dev2 $dev4 $dev3:0
 # FIXME:
 #  This is somewhat timing dependent - sync /could/ finish before
 #  we get a chance to have this command fail
-not lvconvert -m-1 $vg/$lv1 $dev1
+should not lvconvert -m-1 $vg/$lv1 $dev1
 while [ `lvs --noheadings -o copy_percent $vg/$lv1` != "100.00" ]; do
 	sleep 1
 done
+lvconvert -m2 $vg/$lv1 $dev1 $dev2 $dev4 $dev3:0
+
 lvconvert -m-1 $vg/$lv1 $dev1
 check mirror_images_on $lv1 $dev2 $dev4
 lvconvert -m-1 $vg/$lv1 $dev2


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-11-30 11:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-17 22:01 LVM2/test t-lvconvert-mirror.sh agk
  -- strict thread matches above, loose matches on Subject: below --
2010-11-30 11:35 mornfall
2010-05-12  6:09 mornfall

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).