diff --git a/test/t-mirror-vgreduce-removemissing.sh b/test/t-mirror-vgreduce-removemissing.sh index e7cc4877d..b57e50f35 100755 --- a/test/t-mirror-vgreduce-removemissing.sh +++ b/test/t-mirror-vgreduce-removemissing.sh @@ -151,7 +151,7 @@ test_3way_mirror_fail_1_() { local index=$1 - lvcreate -l2 -m2 -n $lv1 $vg $dev1 $dev2 $dev3 $dev4:0-1 + lvcreate -l2 -m2 -n $lv1 $vg $dev1 $dev2 $dev3 $dev4:0 lvchange -an $vg/$lv1 aux mimages_are_on_ $lv1 $dev1 $dev2 $dev3 mirrorlog_is_on_ $lv1 $dev4 @@ -178,7 +178,7 @@ test_3way_mirror_fail_2_() { local index=$1 - lvcreate -l2 -m2 -n $lv1 $vg $dev1 $dev2 $dev3 $dev4:0-1 + lvcreate -l2 -m2 -n $lv1 $vg $dev1 $dev2 $dev3 $dev4:0 lvchange -an $vg/$lv1 mimages_are_on_ $lv1 $dev1 $dev2 $dev3 mirrorlog_is_on_ $lv1 $dev4 @@ -206,7 +206,7 @@ test_3way_mirror_plus_1_fail_1_() { local index=$1 - lvcreate -l2 -m2 -n $lv1 $vg $dev1 $dev2 $dev3 $dev5:0-1 + lvcreate -l2 -m2 -n $lv1 $vg $dev1 $dev2 $dev3 $dev5:0 lvchange -an $vg/$lv1 lvconvert -m+1 $vg/$lv1 $dev4 mimages_are_on_ $lv1 $dev1 $dev2 $dev3 $dev4 @@ -234,7 +234,7 @@ test_3way_mirror_plus_1_fail_3_() { local index=$1 - lvcreate -l2 -m2 -n $lv1 $vg $dev1 $dev2 $dev3 $dev5:0-1 + lvcreate -l2 -m2 -n $lv1 $vg $dev1 $dev2 $dev3 $dev5:0 lvchange -an $vg/$lv1 lvconvert -m+1 $vg/$lv1 $dev4 mimages_are_on_ $lv1 $dev1 $dev2 $dev3 $dev4 @@ -263,7 +263,7 @@ test_2way_mirror_plus_2_fail_1_() { local index=$1 - lvcreate -l2 -m1 -n $lv1 $vg $dev1 $dev2 $dev5:0-1 + lvcreate -l2 -m1 -n $lv1 $vg $dev1 $dev2 $dev5:0 lvchange -an $vg/$lv1 lvconvert -m+2 $vg/$lv1 $dev3 $dev4 mimages_are_on_ $lv1 $dev1 $dev2 $dev3 $dev4 @@ -291,7 +291,7 @@ test_2way_mirror_plus_2_fail_3_() { local index=$1 - lvcreate -l2 -m1 -n $lv1 $vg $dev1 $dev2 $dev5:0-1 + lvcreate -l2 -m1 -n $lv1 $vg $dev1 $dev2 $dev5:0 lvchange -an $vg/$lv1 lvconvert -m+2 $vg/$lv1 $dev3 $dev4 mimages_are_on_ $lv1 $dev1 $dev2 $dev3 $dev4 @@ -316,7 +316,7 @@ done #COMM "fail mirror log of 2-way mirrored LV" prepare_lvs_ -lvcreate -l2 -m1 -n $lv1 $vg $dev1 $dev2 $dev5:0-1 +lvcreate -l2 -m1 -n $lv1 $vg $dev1 $dev2 $dev5:0 lvchange -an $vg/$lv1 mimages_are_on_ $lv1 $dev1 $dev2 mirrorlog_is_on_ $lv1 $dev5 @@ -328,7 +328,7 @@ recover_vg_ $dev5 #COMM "fail mirror log of 3-way (1 converting) mirrored LV" prepare_lvs_ -lvcreate -l2 -m1 -n $lv1 $vg $dev1 $dev2 $dev5:0-1 +lvcreate -l2 -m1 -n $lv1 $vg $dev1 $dev2 $dev5:0 lvchange -an $vg/$lv1 lvconvert -m+1 $vg/$lv1 $dev3 mimages_are_on_ $lv1 $dev1 $dev2 $dev3 @@ -344,7 +344,7 @@ recover_vg_ $dev5 #COMM "fail all mirror images of 2-way mirrored LV" prepare_lvs_ -lvcreate -l2 -m1 -n $lv1 $vg $dev1 $dev2 $dev5:0-1 +lvcreate -l2 -m1 -n $lv1 $vg $dev1 $dev2 $dev5:0 lvchange -an $vg/$lv1 mimages_are_on_ $lv1 $dev1 $dev2 mirrorlog_is_on_ $lv1 $dev5 @@ -355,7 +355,7 @@ recover_vg_ $dev1 $dev2 #COMM "fail all mirror images of 3-way (1 converting) mirrored LV" prepare_lvs_ -lvcreate -l2 -m1 -n $lv1 $vg $dev1 $dev2 $dev5:0-1 +lvcreate -l2 -m1 -n $lv1 $vg $dev1 $dev2 $dev5:0 lvchange -an $vg/$lv1 lvconvert -m+1 $vg/$lv1 $dev3 mimages_are_on_ $lv1 $dev1 $dev2 $dev3 @@ -370,9 +370,9 @@ recover_vg_ $dev1 $dev2 $dev3 #COMM "fail a mirror image of one of mirrored LV" prepare_lvs_ -lvcreate -l2 -m1 -n $lv1 $vg $dev1 $dev2 $dev5:0-1 +lvcreate -l2 -m1 -n $lv1 $vg $dev1 $dev2 $dev5:0 lvchange -an $vg/$lv1 -lvcreate -l2 -m1 -n $lv2 $vg $dev3 $dev4 $dev5:1-1 +lvcreate -l2 -m1 -n $lv2 $vg $dev3 $dev4 $dev5:1 lvchange -an $vg/$lv2 mimages_are_on_ $lv1 $dev1 $dev2 mimages_are_on_ $lv2 $dev3 $dev4 @@ -388,9 +388,9 @@ recover_vg_ $dev2 #COMM "fail mirror images, one for each mirrored LV" prepare_lvs_ -lvcreate -l2 -m1 -n $lv1 $vg $dev1 $dev2 $dev5:0-1 +lvcreate -l2 -m1 -n $lv1 $vg $dev1 $dev2 $dev5:0 lvchange -an $vg/$lv1 -lvcreate -l2 -m1 -n $lv2 $vg $dev3 $dev4 $dev5:1-1 +lvcreate -l2 -m1 -n $lv2 $vg $dev3 $dev4 $dev5:1 lvchange -an $vg/$lv2 mimages_are_on_ $lv1 $dev1 $dev2 mimages_are_on_ $lv2 $dev3 $dev4 @@ -410,7 +410,7 @@ recover_vg_ $dev2 $dev4 #COMM "no failures" prepare_lvs_ -lvcreate -l2 -m1 -n $lv1 $vg $dev1 $dev2 $dev5:0-1 +lvcreate -l2 -m1 -n $lv1 $vg $dev1 $dev2 $dev5:0 lvchange -an $vg/$lv1 mimages_are_on_ $lv1 $dev1 $dev2 mirrorlog_is_on_ $lv1 $dev5