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

tests: check vgsplit thin-data and ext.origin

This commit is contained in:
Marian Csontos 2018-02-27 13:45:39 +01:00
parent 8e5305f630
commit 32bcdd90ae

View File

@ -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