1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

tests: check inactive extorig resize

This commit is contained in:
Zdenek Kabelac 2018-02-28 19:03:20 +01:00
parent 052f28746d
commit cc4855acbe

View File

@ -43,8 +43,15 @@ not lvresize -L+10 $vg/$lv1
lvresize -L-5 -f $vg/$lv1
check lv_field $vg/$lv1 lv_size "5.00" --units m --nosuffix
# Inactive LV cannot be resized as well
lvchange -an $vg
not lvresize -L+15 -y $vg/$lv1
check lv_field $vg/$lv1 lv_size "5.00" --units m --nosuffix
lvchange -ay $vg/$lv1
not lvresize -L+15 -y $vg/$lv1
check lv_field $vg/$lv1 lv_size "5.00" --units m --nosuffix
# Try to resize again back up to the size of external origin
lvresize -L+5 -f $vg/$lv1