public inbox for lvm2-cvs@sourceware.org
help / color / mirror / Atom feed
* LVM2/test t-lvconvert-repair-policy.sh t-lvcon ...
@ 2011-02-28 19:44 zkabelac
0 siblings, 0 replies; 2+ messages in thread
From: zkabelac @ 2011-02-28 19:44 UTC (permalink / raw)
To: lvm-devel, lvm2-cvs
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: zkabelac@sourceware.org 2011-02-28 19:44:21
Modified files:
test : t-lvconvert-repair-policy.sh
t-lvconvert-repair-replace.sh
t-lvconvert-repair-snapshot.sh
t-lvconvert-repair.sh t-lvcreate-mirror.sh
t-lvcreate-pvtags.sh
Log message:
Use backward compatible configuration for test
Currently the test are not properly working with new code.
Use settings for the previous behaviour.
FIXME: update tests to properly test new allocation policies.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t-lvconvert-repair-policy.sh.diff?cvsroot=lvm2&r1=1.8&r2=1.9
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t-lvconvert-repair-replace.sh.diff?cvsroot=lvm2&r1=1.3&r2=1.4
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t-lvconvert-repair-snapshot.sh.diff?cvsroot=lvm2&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t-lvconvert-repair.sh.diff?cvsroot=lvm2&r1=1.10&r2=1.11
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t-lvcreate-mirror.sh.diff?cvsroot=lvm2&r1=1.3&r2=1.4
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t-lvcreate-pvtags.sh.diff?cvsroot=lvm2&r1=1.8&r2=1.9
--- LVM2/test/t-lvconvert-repair-policy.sh 2011/01/19 19:22:07 1.8
+++ LVM2/test/t-lvconvert-repair-policy.sh 2011/02/28 19:44:21 1.9
@@ -12,6 +12,8 @@
. lib/test
aux prepare_vg 4
+aux lvmconf 'allocation/maximise_cling = 0'
+aux lvmconf 'allocation/mirror_logs_require_separate_pvs = 1'
# Clean-up and create a 2-way mirror, where the the
# leg devices are always on $dev[12] and the log
--- LVM2/test/t-lvconvert-repair-replace.sh 2011/01/11 17:05:09 1.3
+++ LVM2/test/t-lvconvert-repair-replace.sh 2011/02/28 19:44:21 1.4
@@ -12,6 +12,8 @@
. lib/test
aux prepare_vg 6
+aux lvmconf 'allocation/maximise_cling = 0'
+aux lvmconf 'allocation/mirror_logs_require_separate_pvs = 1'
# 3-way, disk log
# multiple failures, full replace
--- LVM2/test/t-lvconvert-repair-snapshot.sh 2011/01/07 14:56:52 1.1
+++ LVM2/test/t-lvconvert-repair-snapshot.sh 2011/02/28 19:44:21 1.2
@@ -11,6 +11,9 @@
. lib/test
aux prepare_vg 5
+aux lvmconf 'allocation/maximise_cling = 0'
+aux lvmconf 'allocation/mirror_logs_require_separate_pvs = 1'
+
lvcreate -m 3 --ig -L 2M -n 4way $vg $dev1 $dev2 $dev3 $dev4 $dev5:0
lvcreate -s $vg/4way -L 2M -n snap
--- LVM2/test/t-lvconvert-repair.sh 2011/01/11 17:05:09 1.10
+++ LVM2/test/t-lvconvert-repair.sh 2011/02/28 19:44:21 1.11
@@ -11,6 +11,8 @@
. lib/test
+aux lvmconf 'allocation/maximise_cling = 0'
+aux lvmconf 'allocation/mirror_logs_require_separate_pvs = 1'
# fail multiple devices
--- LVM2/test/t-lvcreate-mirror.sh 2011/01/05 00:16:20 1.3
+++ LVM2/test/t-lvcreate-mirror.sh 2011/02/28 19:44:21 1.4
@@ -11,6 +11,8 @@
. lib/test
aux prepare_vg 5 80
+aux lvmconf 'allocation/maximise_cling = 0'
+aux lvmconf 'allocation/mirror_logs_require_separate_pvs = 1'
# 2-way mirror with corelog, 2 PVs
lvcreate -l2 -m1 --mirrorlog core -n $lv1 $vg $dev1 $dev2
--- LVM2/test/t-lvcreate-pvtags.sh 2011/01/05 00:16:20 1.8
+++ LVM2/test/t-lvcreate-pvtags.sh 2011/02/28 19:44:21 1.9
@@ -11,6 +11,9 @@
. lib/test
aux prepare_pvs 3
+aux lvmconf 'allocation/maximise_cling = 0'
+aux lvmconf 'allocation/mirror_logs_require_separate_pvs = 1'
+
# not required, just testing
aux pvcreate --metadatacopies 0 $dev1
^ permalink raw reply [flat|nested] 2+ messages in thread
* LVM2/test t-lvconvert-repair-policy.sh t-lvcon ...
@ 2010-03-31 2:36 jbrassow
0 siblings, 0 replies; 2+ messages in thread
From: jbrassow @ 2010-03-31 2:36 UTC (permalink / raw)
To: lvm-devel, lvm2-cvs
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: jbrassow@sourceware.org 2010-03-31 02:36:03
Modified files:
test : t-lvconvert-repair-policy.sh
t-lvconvert-repair.sh
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
results.)
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t-lvconvert-repair-policy.sh.diff?cvsroot=lvm2&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t-lvconvert-repair.sh.diff?cvsroot=lvm2&r1=1.5&r2=1.6
--- LVM2/test/t-lvconvert-repair-policy.sh 2010/03/26 22:15:44 1.2
+++ LVM2/test/t-lvconvert-repair-policy.sh 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/t-lvconvert-repair.sh 2010/03/26 22:15:44 1.5
+++ LVM2/test/t-lvconvert-repair.sh 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'
vgs
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-02-28 19:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-28 19:44 LVM2/test t-lvconvert-repair-policy.sh t-lvcon zkabelac
-- strict thread matches above, loose matches on Subject: below --
2010-03-31 2:36 jbrassow
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).