1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

tests: change lvcreate syntax to allow lvmlockd

Using the less ambiguous lvcreate syntax for creating a
cache LV allows more tests to run with lvmlockd.
This commit is contained in:
David Teigland 2018-05-30 16:40:03 -05:00
parent 214235367b
commit 2beb3009bd
3 changed files with 4 additions and 6 deletions

View File

@ -12,7 +12,7 @@
# Exercise usage of older metadata which are missing some new settings
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1
. lib/inittest
@ -24,7 +24,7 @@ aux prepare_vg 5 80
lvcreate -l 10 --type cache-pool $vg/cpool
lvcreate -l 20 -H -n $lv1 $vg/cpool
lvcreate -l 20 -H -n $lv1 --cachepool $vg/cpool $vg
vgcfgbackup -f backup $vg

View File

@ -12,7 +12,6 @@
# Exercise usage of stacked cache volume using raid volume
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1
. lib/inittest
@ -86,7 +85,7 @@ lvremove -f $vg
# Test up/down raid conversion of cache pool data and metadata
lvcreate --type cache-pool $vg/cpool -l 10
lvcreate -n corigin -H $vg/cpool -l 20
lvcreate -H -n corigin --cachepool $vg/cpool -l 20 $vg
lvconvert -y -m +1 --type raid1 $vg/cpool_cmeta
check lv_field $vg/cpool_cmeta layout "raid,raid1"

View File

@ -12,7 +12,6 @@
# Exercise creation of snapshot of cached LV
SKIP_WITH_LVMLOCKD=1
SKIP_WITH_LVMPOLLD=1
. lib/inittest
@ -25,7 +24,7 @@ aux have_cache 1 5 0 || skip
aux prepare_vg 2
lvcreate --type cache-pool -L1 $vg/cpool
lvcreate -H -L4 -n $lv1 $vg/cpool
lvcreate -H -L4 -n $lv1 --cachepool $vg/cpool $vg
lvcreate -s -L2 -n $lv2 $vg/$lv1
check lv_field $vg/$lv1 segtype cache