mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
tests: vgimportclone with incomplete pv list and nomda pv
This commit is contained in:
parent
c4b898a53e
commit
789904bd57
@ -14,7 +14,7 @@ SKIP_WITH_LVMPOLLD=1
|
|||||||
|
|
||||||
. lib/inittest
|
. lib/inittest
|
||||||
|
|
||||||
aux prepare_devs 2
|
aux prepare_devs 3
|
||||||
|
|
||||||
vgcreate $SHARED --metadatasize 128k $vg1 "$dev1"
|
vgcreate $SHARED --metadatasize 128k $vg1 "$dev1"
|
||||||
lvcreate -l100%FREE -n $lv1 $vg1
|
lvcreate -l100%FREE -n $lv1 $vg1
|
||||||
@ -85,6 +85,25 @@ vgchange -an $vg1 $vg2
|
|||||||
|
|
||||||
vgremove -ff $vg1 $vg2
|
vgremove -ff $vg1 $vg2
|
||||||
|
|
||||||
|
pvremove "$dev1"
|
||||||
|
pvremove "$dev2"
|
||||||
|
|
||||||
|
# Test vgimportclone with incomplete list of devs, and with nomda PV.
|
||||||
|
vgcreate $SHARED --vgmetadatacopies 2 $vg1 "$dev1" "$dev2" "$dev3"
|
||||||
|
lvcreate -l1 -an $vg1
|
||||||
|
not vgimportclone -n newvgname "$dev1"
|
||||||
|
not vgimportclone -n newvgname "$dev2"
|
||||||
|
not vgimportclone -n newvgname "$dev3"
|
||||||
|
not vgimportclone -n newvgname "$dev1" "$dev2"
|
||||||
|
not vgimportclone -n newvgname "$dev1" "$dev3"
|
||||||
|
not vgimportclone -n newvgname "$dev2" "$dev3"
|
||||||
|
vgimportclone -n ${vg1}new "$dev1" "$dev2" "$dev3"
|
||||||
|
lvs ${vg1}new
|
||||||
|
vgremove -y ${vg1}new
|
||||||
|
pvremove "$dev1"
|
||||||
|
pvremove "$dev2"
|
||||||
|
pvremove "$dev3"
|
||||||
|
|
||||||
# Verify that if we provide the -n|--basevgname,
|
# Verify that if we provide the -n|--basevgname,
|
||||||
# the number suffix is not added unnecessarily.
|
# the number suffix is not added unnecessarily.
|
||||||
vgcreate $SHARED --metadatasize 128k A${vg1}B "$dev1"
|
vgcreate $SHARED --metadatasize 128k A${vg1}B "$dev1"
|
||||||
|
Loading…
Reference in New Issue
Block a user