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:
parent
c20f01a0cb
commit
aa09232dc4
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user