master - test: add lvresize tests
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=795944f178c233ac3f638574de704322f130078a Commit: 795944f178c233ac3f638574de704322f130078a Parent: 7a1777302ff21bbc7cd81a1141f9c88c8fac2511 Author: Marian Csontos <[email protected]> AuthorDate: Tue Apr 22 12:47:14 2014 +0200 Committer: Marian Csontos <[email protected]> CommitterDate: Tue Apr 22 12:53:30 2014 +0200
test: add lvresize tests
- test for Bug 1088153
- test lvextend does not reduce nor lvreduce extend LV
--- test/shell/lvresize-usage.sh | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-)
test/shell/lvresize-usage.sh +11 -0
@@ -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