master - tests: check vgsplit thin-data and ext.origin
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=32bcdd90ae7c847e7b4fc5cc5184c581a4f6484a Commit: 32bcdd90ae7c847e7b4fc5cc5184c581a4f6484a Parent: 8e5305f630be818e677572e4c43d2c728a89f54f Author: Marian Csontos <[email protected]> AuthorDate: Tue Feb 27 13:45:39 2018 +0100 Committer: Marian Csontos <[email protected]> CommitterDate: Tue Feb 27 14:37:47 2018 +0100
tests: check vgsplit thin-data and ext.origin
--- test/shell/vgsplit-thin.sh | 20 ++++++++++++++++++++ 1 files changed, 20 insertions(+), 0 deletions(-)
test/shell/vgsplit-thin.sh +20 -0
@@ -44,3 +44,23 @@ lvs -a -o+devices $vg1 $vg2 vgmerge $vg1 $vg2 vgremove -ff $vg1 + +# Test vgsplit with ext.origin: +if aux have_thin 1 5 0; then +vgcreate "$vg1" "${DEVICES[@]}" +lvcreate -T -L8M $vg1/pool1 -V10M -n $lv1 "$dev1" "$dev2" +lvcreate -l1 -an -pr -n $lv2 $vg1 "$dev3" +lvcreate -s $vg1/$lv2 -n $lv3 --thinpool $vg1/pool1 +lvcreate -l1 -n $lv4 $vg1 "$dev4" +vgchange -an $vg1 + +# Can not split ext.origin from thin-data: +not vgsplit $vg1 $vg2 "$dev1" "$dev2" +not vgsplit $vg1 $vg2 "$dev3" + +vgsplit $vg1 $vg2 "$dev1" "$dev2" "$dev3" + +vgmerge $vg1 $vg2 + +vgremove -ff $vg1 +fi