mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +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:
parent
214235367b
commit
2beb3009bd
@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
# Exercise usage of older metadata which are missing some new settings
|
# Exercise usage of older metadata which are missing some new settings
|
||||||
|
|
||||||
SKIP_WITH_LVMLOCKD=1
|
|
||||||
SKIP_WITH_LVMPOLLD=1
|
SKIP_WITH_LVMPOLLD=1
|
||||||
|
|
||||||
. lib/inittest
|
. lib/inittest
|
||||||
@ -24,7 +24,7 @@ aux prepare_vg 5 80
|
|||||||
|
|
||||||
|
|
||||||
lvcreate -l 10 --type cache-pool $vg/cpool
|
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
|
vgcfgbackup -f backup $vg
|
||||||
|
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
|
|
||||||
# Exercise usage of stacked cache volume using raid volume
|
# Exercise usage of stacked cache volume using raid volume
|
||||||
|
|
||||||
SKIP_WITH_LVMLOCKD=1
|
|
||||||
SKIP_WITH_LVMPOLLD=1
|
SKIP_WITH_LVMPOLLD=1
|
||||||
|
|
||||||
. lib/inittest
|
. lib/inittest
|
||||||
@ -86,7 +85,7 @@ lvremove -f $vg
|
|||||||
|
|
||||||
# Test up/down raid conversion of cache pool data and metadata
|
# Test up/down raid conversion of cache pool data and metadata
|
||||||
lvcreate --type cache-pool $vg/cpool -l 10
|
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
|
lvconvert -y -m +1 --type raid1 $vg/cpool_cmeta
|
||||||
check lv_field $vg/cpool_cmeta layout "raid,raid1"
|
check lv_field $vg/cpool_cmeta layout "raid,raid1"
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
|
|
||||||
# Exercise creation of snapshot of cached LV
|
# Exercise creation of snapshot of cached LV
|
||||||
|
|
||||||
SKIP_WITH_LVMLOCKD=1
|
|
||||||
SKIP_WITH_LVMPOLLD=1
|
SKIP_WITH_LVMPOLLD=1
|
||||||
|
|
||||||
. lib/inittest
|
. lib/inittest
|
||||||
@ -25,7 +24,7 @@ aux have_cache 1 5 0 || skip
|
|||||||
aux prepare_vg 2
|
aux prepare_vg 2
|
||||||
|
|
||||||
lvcreate --type cache-pool -L1 $vg/cpool
|
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
|
lvcreate -s -L2 -n $lv2 $vg/$lv1
|
||||||
check lv_field $vg/$lv1 segtype cache
|
check lv_field $vg/$lv1 segtype cache
|
||||||
|
Loading…
Reference in New Issue
Block a user