1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-10 05:18:36 +03:00

tests: update thin and cache checked messages

Slightly changed messages for allocation of pool metadata.
This commit is contained in:
Zdenek Kabelac 2021-01-30 13:13:17 +01:00
parent f6025cdc73
commit 99bdbc53ba
3 changed files with 11 additions and 13 deletions

View File

@ -129,7 +129,7 @@ lvcreate -L1T -n $lv1 $vg
lvcreate -L32G -n $lv2 $vg lvcreate -L32G -n $lv2 $vg
# Warning about bigger then needed # Warning about bigger then needed
lvconvert --yes --thinpool $vg/$lv1 --poolmetadata $vg/$lv2 2>&1 | tee err lvconvert --yes --thinpool $vg/$lv1 --poolmetadata $vg/$lv2 2>&1 | tee err
grep "WARNING: Maximum" err grep -i "maximum" err
lvremove -f $vg lvremove -f $vg

View File

@ -27,7 +27,6 @@ aux prepare_vg 5 80000
aux lvmconf 'global/cache_disabled_features = [ "policy_smq" ]' aux lvmconf 'global/cache_disabled_features = [ "policy_smq" ]'
####################### #######################
# Cache_Pool creation # # Cache_Pool creation #
####################### #######################
@ -173,17 +172,16 @@ dmsetup table ${vg}-$lv1 | grep cache # ensure it is loaded in kernel
lvremove -f $vg lvremove -f $vg
# Check minimum cache pool metadata size # Check minimum cache pool metadata size
lvcreate -l 1 --type cache-pool --poolmetadatasize 1 $vg 2>out lvcreate -l 1 --type cache-pool --poolmetadatasize 1 $vg 2>&1 | tee out
grep "WARNING: Minimum" out grep -i "minimal" out
# FIXME: This test is failing in allocator with smaller VG sizes # FIXME: This test is failing in allocator with smaller VG sizes
lvcreate -l 1 --type cache-pool --poolmetadatasize 17G $vg 2>out lvcreate -l 1 --type cache-pool --poolmetadatasize 17G $vg 2>&1 | tee out
grep "WARNING: Maximum" out grep -i "maximum" out
lvremove -f $vg lvremove -f $vg
######################################## ########################################
# Cache conversion and r/w permissions # # Cache conversion and r/w permissions #
######################################## ########################################

View File

@ -31,14 +31,14 @@ vgcreate $SHARED -s 64K "$vg" "${DEVICES[@]}"
# Size 0 is not valid # Size 0 is not valid
invalid lvcreate -L4M --chunksize 128 --poolmetadatasize 0 -T $vg/pool1 2>out invalid lvcreate -L4M --chunksize 128 --poolmetadatasize 0 -T $vg/pool1 2>out
lvcreate -Zn -L4M --chunksize 128 --poolmetadatasize 16k -T $vg/pool1 2>out lvcreate -Zn -L4M --chunksize 128 --poolmetadatasize 16k -T $vg/pool1 2>&1 >out
grep "WARNING: Minimum" out grep -i "minimal" out
# FIXME: metadata allocation fails, if PV doesn't have at least 16GB # FIXME: metadata allocation fails, if PV doesn't have at least 16GB
# i.e. pool metadata device cannot be multisegment # i.e. pool metadata device cannot be multisegment
lvcreate -Zn -L4M --chunksize 64k --poolmetadatasize 17G -T $vg/pool2 2>out lvcreate -Zn -L4M --chunksize 64k --poolmetadatasize 17G -T $vg/pool2 2>&1 >out
grep "WARNING: Maximum" out grep "maximum" out
check lv_field $vg/pool1_tmeta size "2.00m" check lv_field $vg/pool1_tmeta size "2.00m"
check lv_field $vg/pool2_tmeta size "15.81g" check lv_field $vg/pool2_tmeta size "<15.88g"
# Check we do report correct percent values. # Check we do report correct percent values.
lvcreate --type zero -L3G $vg -n pool3 lvcreate --type zero -L3G $vg -n pool3