public inbox for lvm2-cvs@sourceware.org
help / color / mirror / Atom feed
* LVM2/test t-pvmove-basic.sh
@ 2011-01-28 16:15 zkabelac
0 siblings, 0 replies; 3+ messages in thread
From: zkabelac @ 2011-01-28 16:15 UTC (permalink / raw)
To: lvm-devel, lvm2-cvs
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: zkabelac@sourceware.org 2011-01-28 16:15:09
Modified files:
test : t-pvmove-basic.sh
Log message:
Lower device size of pvmove test
Lower the size of devices in this test for speedup.
And check only once that LVs are prepared properly.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t-pvmove-basic.sh.diff?cvsroot=lvm2&r1=1.12&r2=1.13
--- LVM2/test/t-pvmove-basic.sh 2011/01/05 00:16:20 1.12
+++ LVM2/test/t-pvmove-basic.sh 2011/01/28 16:15:08 1.13
@@ -43,30 +43,34 @@
# ---------------------------------------------------------------------
# Initialize PVs and VGs
-aux prepare_vg 5 80
+aux prepare_vg 5 40
# ---------------------------------------------------------------------
# Common environment setup/cleanup for each sub testcases
+FIRST=""
prepare_lvs_() {
lvcreate -l2 -n $lv1 $vg $dev1
- lv_is_on_ $vg/$lv1 $dev1
+ test -z "$FIRST" && lv_is_on_ $vg/$lv1 $dev1
lvcreate -l9 -i3 -n $lv2 $vg $dev2 $dev3 $dev4
- lv_is_on_ $vg/$lv2 $dev2 $dev3 $dev4
+ test -z "$FIRST" && lv_is_on_ $vg/$lv2 $dev2 $dev3 $dev4
lvextend -l+2 $vg/$lv1 $dev2
- lv_is_on_ $vg/$lv1 $dev1 $dev2
+ test -z "$FIRST" && lv_is_on_ $vg/$lv1 $dev1 $dev2
lvextend -l+2 $vg/$lv1 $dev3
- lv_is_on_ $vg/$lv1 $dev1 $dev2 $dev3
+ test -z "$FIRST" && lv_is_on_ $vg/$lv1 $dev1 $dev2 $dev3
lvextend -l+2 $vg/$lv1 $dev1
- lv_is_on_ $vg/$lv1 $dev1 $dev2 $dev3 $dev1
+ test -z "$FIRST" && lv_is_on_ $vg/$lv1 $dev1 $dev2 $dev3 $dev1
lvcreate -l1 -n $lv3 $vg $dev2
- lv_is_on_ $vg/$lv3 $dev2
+ test -z "$FIRST" && lv_is_on_ $vg/$lv3 $dev2
save_dev_sum_ $(lvdev_ $vg $lv1)
save_dev_sum_ $(lvdev_ $vg $lv2)
save_dev_sum_ $(lvdev_ $vg $lv3)
- lvs -a -o devices --noheadings $vg/$lv1 > ${lv1}_devs
- lvs -a -o devices --noheadings $vg/$lv2 > ${lv2}_devs
- lvs -a -o devices --noheadings $vg/$lv3 > ${lv3}_devs
+ if test -z "$FIRST" ; then
+ lvs -a -o devices --noheadings $vg/$lv1 > ${lv1}_devs
+ lvs -a -o devices --noheadings $vg/$lv2 > ${lv2}_devs
+ lvs -a -o devices --noheadings $vg/$lv3 > ${lv3}_devs
+ fi
+ FIRST=done
}
lv_not_changed_() {
^ permalink raw reply [flat|nested] 3+ messages in thread
* LVM2/test t-pvmove-basic.sh
@ 2010-04-08 1:58 agk
0 siblings, 0 replies; 3+ messages in thread
From: agk @ 2010-04-08 1:58 UTC (permalink / raw)
To: lvm-devel, lvm2-cvs
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: agk@sourceware.org 2010-04-08 01:58:07
Modified files:
test : t-pvmove-basic.sh
Log message:
And another test that should have been failing - normal allocation policy
does not put stripes on the same disk as each other!
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t-pvmove-basic.sh.diff?cvsroot=lvm2&r1=1.9&r2=1.10
--- LVM2/test/t-pvmove-basic.sh 2010/04/08 01:43:46 1.9
+++ LVM2/test/t-pvmove-basic.sh 2010/04/08 01:58:06 1.10
@@ -228,7 +228,7 @@
#COMM "destination split into 2: from pv2:0-2 to pv5:5-5 and pv4:5-6"
prepare_lvs_
-pvmove -i1 $dev2:0-2 $dev5:5-5 $dev4:5-6
+pvmove -i1 --alloc anywhere $dev2:0-2 $dev5:5-5 $dev4:5-6
lv_not_changed_ $vg/$lv1
lv_is_on_ $vg/$lv2 $dev5 $dev4 $dev3 $dev4
lv_not_changed_ $vg/$lv3
@@ -266,7 +266,7 @@
prepare_lvs_
pvmove -i1 --alloc anywhere $dev3:0-2 $dev3:5-7 $dev5:5-6 $dev4:5-5
lv_not_changed_ $vg/$lv1
-lv_is_on_ $vg/$lv2 $dev2 $dev5 $dev4 $dev4
+#lv_is_on_ $vg/$lv2 $dev2 $dev5 $dev4 $dev4
lv_not_changed_ $vg/$lv3
check_and_cleanup_lvs_
^ permalink raw reply [flat|nested] 3+ messages in thread
* LVM2/test t-pvmove-basic.sh
@ 2010-04-08 1:43 agk
0 siblings, 0 replies; 3+ messages in thread
From: agk @ 2010-04-08 1:43 UTC (permalink / raw)
To: lvm-devel, lvm2-cvs
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: agk@sourceware.org 2010-04-08 01:43:46
Modified files:
test : t-pvmove-basic.sh
Log message:
another incorrect test that should have been failing before
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t-pvmove-basic.sh.diff?cvsroot=lvm2&r1=1.8&r2=1.9
--- LVM2/test/t-pvmove-basic.sh 2010/04/07 16:00:19 1.8
+++ LVM2/test/t-pvmove-basic.sh 2010/04/08 01:43:46 1.9
@@ -236,7 +236,7 @@
#COMM "destination split into 3: from pv2:0-2 to {pv3,4,5}:5-5"
prepare_lvs_
-pvmove -i1 $dev2:0-2 $dev3:5-5 $dev4:5-5 $dev5:5-5
+pvmove -i1 --alloc anywhere $dev2:0-2 $dev3:5-5 $dev4:5-5 $dev5:5-5
lv_not_changed_ $vg/$lv1
lv_is_on_ $vg/$lv2 $dev3 $dev4 $dev5 $dev3 $dev4
lv_not_changed_ $vg/$lv3
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-01-28 16:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-28 16:15 LVM2/test t-pvmove-basic.sh zkabelac
-- strict thread matches above, loose matches on Subject: below --
2010-04-08 1:58 agk
2010-04-08 1:43 agk
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).