mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
test: add lvresize tests
- test for Bug 1088153 - test lvextend does not reduce nor lvreduce extend LV
This commit is contained in:
parent
7a1777302f
commit
795944f178
@ -24,3 +24,14 @@ not lvresize -v -l +4 xxx/$lv
|
||||
ESIZE=$(get vg_field $vg vg_extent_size --units b)
|
||||
lvextend -L+64m -i 2 -I$(( ${ESIZE%%B} * 2 ))B $vg/$lv 2>&1 | tee err
|
||||
grep "Reducing stripe size" err
|
||||
|
||||
lvremove -ff $vg
|
||||
|
||||
lvcreate -L 10M -n lv $vg $dev1
|
||||
lvextend -L +10M $vg/lv $dev2
|
||||
|
||||
# Attempt to reduce with lvextend and vice versa:
|
||||
not lvextend -L 16M $vg/lv
|
||||
not lvreduce -L 32M $vg/lv
|
||||
|
||||
lvremove -ff $vg
|
||||
|
Loading…
x
Reference in New Issue
Block a user