mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
tests: no longer allowed too big thin-pools for small chunks
This commit is contained in:
parent
5017284709
commit
b6945b8510
@ -135,7 +135,7 @@ lvremove -f $vg
|
||||
if test "$TSIZE" = 64T; then
|
||||
lvcreate -L24T -n $lv1 $vg
|
||||
# Warning about bigger then needed (24T data and 16G -> 128K chunk)
|
||||
lvconvert --yes -c 64 --thinpool $vg/$lv1 2>&1 | tee err
|
||||
fail lvconvert --yes -c 64 --thinpool $vg/$lv1 2>&1 | tee err
|
||||
grep "WARNING: Chunk size is too small" err
|
||||
lvremove -f $vg
|
||||
fi
|
||||
|
@ -36,7 +36,7 @@ grep "WARNING: Minimum" out
|
||||
lvcreate -L4M --chunksize 64k --poolmetadatasize 17G -T $vg/pool2 2>out
|
||||
grep "WARNING: Maximum" out
|
||||
check lv_field $vg/pool1_tmeta size "2.00m"
|
||||
check lv_field $vg/pool2_tmeta size "16.00g"
|
||||
check lv_field $vg/pool2_tmeta size "15.81g"
|
||||
|
||||
# Check can start and see thinpool with metadata size above kernel limit
|
||||
lvcreate -L4M --poolmetadatasize 16G -T $vg/poolM
|
||||
|
Loading…
Reference in New Issue
Block a user