summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2017-10-26 14:00:44 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2017-10-26 14:04:58 +0200
commitb765288bf242bbbdc93ef2f76ae4d3f7bdeb5868 (patch)
treef68c376dd416ccc835374654ea022b51c0fecfd2
parent1e80ec892615f9da897da518cb3c55261d2bd51e (diff)
downloadlvm2-b765288bf242bbbdc93ef2f76ae4d3f7bdeb5868.tar.gz
tests: better clustering support
Use exclusive activation for snapshot conversion since we can only convert exclusively active volumes.
-rw-r--r--test/shell/lvconvert-snapshot-cache.sh2
-rw-r--r--test/shell/lvconvert-snapshot-mirror.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/shell/lvconvert-snapshot-cache.sh b/test/shell/lvconvert-snapshot-cache.sh
index 396f4311d..0d9c9c6f4 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 8af9e2546..01c19d9ca 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