1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-02 01:18:26 +03:00

tests: vdo resizing

This commit is contained in:
Zdenek Kabelac 2023-01-16 01:11:37 +01:00
parent c20f01a0cb
commit aa09232dc4

View File

@ -32,4 +32,19 @@ check lv_field $vg/${lv2}_vdata size "6.00g"
lvresize -L6G $vg/$lv1 lvresize -L6G $vg/$lv1
check lv_field $vg/$lv1 size "6.00g" check lv_field $vg/$lv1 size "6.00g"
# Check too large size
not lvresize -L4P $vg/$lv1 2>err
grep "Volume too large" err
# Can't resize inactive VDO
lvchange -an $vg
not lvresize -L10G $vg/$lv1 2>err
grep "Cannot resize inactive" err
not lvresize -L10G $vg/$lv2 2>err
grep "Cannot resize inactive" err
not lvresize -L10G $vg/${lv2}_vdata 2>err
grep "Cannot resize inactive" err
vgremove -ff $vg vgremove -ff $vg