From 38617213f080492e03f324a73cd8f912ae557349 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Mon, 11 Nov 2019 17:43:24 +0100 Subject: [PATCH] tests: add test of resize of different segtypes --- test/shell/lvextend-thin-raid.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/test/shell/lvextend-thin-raid.sh b/test/shell/lvextend-thin-raid.sh index afbc63027..a706887a9 100644 --- a/test/shell/lvextend-thin-raid.sh +++ b/test/shell/lvextend-thin-raid.sh @@ -20,7 +20,7 @@ export LVM_TEST_THIN_REPAIR_CMD=${LVM_TEST_THIN_REPAIR_CMD-/bin/false} aux have_thin 1 0 0 || skip aux have_raid 1 3 0 || skip -aux prepare_vg 6 +aux prepare_vg 6 600 lvcreate --type raid1 -l2 --nosync -n pool $vg lvconvert --yes --thinpool $vg/pool "$dev3" @@ -49,4 +49,15 @@ lvextend --poolmetadatasize +1 --size +1 $vg/pool check lv_field $vg/pool_tdata lv_size "7.50m" -a check lv_field $vg/pool_tmeta lv_size "4.50m" -a +lvremove -f $vg + +# check resize of pool and metadata being a different segtype +# https://bugzilla.redhat.com/1722666 +lvcreate -L4 -n pool $vg +lvcreate --type raid1 -m1 -L2 --nosync -n meta $vg +lvconvert --yes --thinpool $vg/pool --poolmetadata $vg/meta +# using big enough pool so resize of pool metadata is enforced +# (and it's using a differnt segtype) +lvextend -L3G $vg/pool + vgremove -ff $vg -- 2.43.5