[lvm-devel] master - tests: better clustering support

Zdenek Kabelac zkabelac at sourceware.org
Thu Oct 26 12:06:02 UTC 2017


Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=b765288bf242bbbdc93ef2f76ae4d3f7bdeb5868
Commit:        b765288bf242bbbdc93ef2f76ae4d3f7bdeb5868
Parent:        1e80ec892615f9da897da518cb3c55261d2bd51e
Author:        Zdenek Kabelac <zkabelac at redhat.com>
AuthorDate:    Thu Oct 26 14:00:44 2017 +0200
Committer:     Zdenek Kabelac <zkabelac at redhat.com>
CommitterDate: Thu Oct 26 14:04:58 2017 +0200

tests: better clustering support

Use exclusive activation for snapshot conversion since we can only
convert exclusively active volumes.
---
 test/shell/lvconvert-snapshot-cache.sh  |    2 +-
 test/shell/lvconvert-snapshot-mirror.sh |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/shell/lvconvert-snapshot-cache.sh b/test/shell/lvconvert-snapshot-cache.sh
index 396f431..0d9c9c6 100644
--- a/test/shell/lvconvert-snapshot-cache.sh
+++ b/test/shell/lvconvert-snapshot-cache.sh
@@ -28,7 +28,7 @@ vgchange -s 16k $vg
 lvcreate -L1 -n cow $vg
 
 # Thin and snapshot conversion
-lvcreate -L1 -n ch $vg
+lvcreate -aey -L1 -n ch $vg
 lvcreate -H -L1 -n cpool $vg/ch
 
 # Cannot create snapshot of cpool
diff --git a/test/shell/lvconvert-snapshot-mirror.sh b/test/shell/lvconvert-snapshot-mirror.sh
index 8af9e25..01c19d9 100644
--- a/test/shell/lvconvert-snapshot-mirror.sh
+++ b/test/shell/lvconvert-snapshot-mirror.sh
@@ -24,7 +24,7 @@ vgchange -s 16k $vg
 lvcreate -L1 -n cow $vg
 
 # Mirror and snapshot conversion
-lvcreate --type mirror -L1 -m1 -n mir $vg
+lvcreate -aye --type mirror -L1 -m1 -n mir $vg
 
 # Cannot create snapshot of mirror leg
 not lvcreate -s -L1 $vg/mir_mimage_0 2>&1 | tee err




More information about the lvm-devel mailing list