From: Petr Rockai Date: Wed, 12 May 2010 06:09:22 +0000 (+0000) Subject: Revert the huge device creation in t-lvconvert-mirror and downgrade the X-Git-Tag: v2_02_91~1952 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=85ab113b31f0e7a37a40e6f804191ae070164a66;p=lvm2.git 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. --- diff --git a/test/t-lvconvert-mirror.sh b/test/t-lvconvert-mirror.sh index cb555ea22..be30a9649 100644 --- a/test/t-lvconvert-mirror.sh +++ b/test/t-lvconvert-mirror.sh @@ -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 @@ lvremove -ff $vg # 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