mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
tests: adapt for new cache-pool zeroing
This commit is contained in:
parent
eaf7d06a82
commit
0c3a09f1d7
@ -27,7 +27,7 @@ aux prepare_vg 5 80
|
||||
# lvcreate RAID1 origin, lvcreate cache-pool, and lvconvert to cache
|
||||
lvcreate --type raid1 -m 1 --nosync -l 2 -n $lv1 $vg
|
||||
lvcreate --type cache-pool -l 1 -n ${lv1}_cachepool $vg
|
||||
lvconvert --cache --cachepool $vg/${lv1}_cachepool $vg/$lv1
|
||||
lvconvert --cache -Zy --cachepool $vg/${lv1}_cachepool $vg/$lv1
|
||||
check lv_exists $vg/${lv1}_corig_rimage_0 # ensure images are properly renamed
|
||||
dmsetup table ${vg}-$lv1 | grep cache # ensure it is loaded in kernel
|
||||
lvremove -f $vg
|
||||
|
@ -73,7 +73,7 @@ lvremove -ff $vg
|
||||
|
||||
lvcreate -L 2 -n $lv1 $vg
|
||||
lvcreate --type cache-pool -l 1 -n ${lv1}_cachepool $vg
|
||||
lvconvert --cache --cachepool $vg/${lv1}_cachepool --cachemode writeback $vg/$lv1
|
||||
lvconvert --cache --cachepool $vg/${lv1}_cachepool --cachemode writeback -Zy $vg/$lv1
|
||||
check lv_field $vg/$lv1 cache_mode "writeback"
|
||||
dmsetup table ${vg}-$lv1 | grep cache # ensure it is loaded in kernel
|
||||
|
||||
@ -81,7 +81,7 @@ dmsetup table ${vg}-$lv1 | grep cache # ensure it is loaded in kernel
|
||||
#lvconvert --cachepool $vg/${lv1}_cachepool --poolmetadatasize 20 "$dev3"
|
||||
|
||||
|
||||
fail lvconvert --type cache --cachepool $vg/${lv1}_cachepool $vg/$lv1
|
||||
fail lvconvert --type cache --cachepool $vg/${lv1}_cachepool -Zy $vg/$lv1
|
||||
|
||||
# Test --splitcache leaves both cache origin and cache pool
|
||||
lvconvert --splitcache $vg/$lv1
|
||||
|
@ -57,7 +57,7 @@ aux enable_dev "$dev1"
|
||||
##################
|
||||
|
||||
lvcreate --type cache-pool -L10 $vg/cpool "$dev1"
|
||||
lvconvert -H --cachemode writethrough --cachepool $vg/cpool $lv1
|
||||
lvconvert -H --cachemode writethrough --cachepool $vg/cpool -Zy $lv1
|
||||
|
||||
aux disable_dev "$dev2"
|
||||
|
||||
|
@ -153,7 +153,7 @@ lvconvert --yes --type cache-pool $vg/cachepool --poolmetadata $vg/meta
|
||||
# RAID for thin pool data LV
|
||||
lvcreate --type raid1 -m 1 -L 8 -n thinpool $vg "$dev3" "$dev4"
|
||||
# Convert thin pool data to a cached LV
|
||||
lvconvert --type cache $vg/thinpool --cachepool $vg/cachepool
|
||||
lvconvert --type cache -Zy $vg/thinpool --cachepool $vg/cachepool
|
||||
# Create simple thin pool meta
|
||||
lvcreate -L 2M -n meta $vg "$dev1"
|
||||
# Use thin pool data LV to build a thin pool
|
||||
|
Loading…
Reference in New Issue
Block a user