diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2019-04-03 13:25:54 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2019-04-03 13:28:56 +0200 |
commit | 5d6fe796bd03a49b44e387dc8026996292505f27 (patch) | |
tree | 5b6728ed4502b571cd4edcc2c8f14742085d4d5f | |
parent | fcec6691f074f1123b9c04c3130f84e35d195b01 (diff) | |
download | lvm2-5d6fe796bd03a49b44e387dc8026996292505f27.tar.gz |
tests: check auto-growth of thin-pool meta
-rw-r--r-- | test/shell/lvextend-thin-full.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/shell/lvextend-thin-full.sh b/test/shell/lvextend-thin-full.sh index e23eca8ad..263ab2fb9 100644 --- a/test/shell/lvextend-thin-full.sh +++ b/test/shell/lvextend-thin-full.sh @@ -28,7 +28,7 @@ test -n "$LVM_TEST_THIN_RESTORE_CMD" || LVM_TEST_THIN_RESTORE_CMD=$(which thin_r aux have_thin 1 10 0 || skip -aux prepare_vg 3 256 +aux prepare_vg 3 4096 aux lvmconf 'activation/thin_pool_autoextend_percent = 30' \ 'activation/thin_pool_autoextend_threshold = 70' @@ -58,6 +58,12 @@ not lvcreate -V10 $vg/pool lvextend --use-policies $vg/pool "$dev2" "$dev3" #should lvextend -l+100%FREE $vg/pool2 +check lv_field $vg/pool_tmeta size "3.00m" + +lvextend -L+3G $vg/pool + +check lv_field $vg/pool_tmeta size "3.50m" + lvs -a $vg vgremove -ff $vg |