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

test: vgcfgbackup-usage

Split the lvm1 part into a separate test.
This commit is contained in:
David Teigland 2016-04-26 12:20:09 -05:00
parent 4c5ad5a04c
commit f194d5f169

View File

@ -74,17 +74,3 @@ vgcfgrestore -f "backup.$$1" $vg
vgchange -an $vg
vgremove -f $vg
# vgcfgbackup correctly stores metadata LVM1 with missing PVs
# FIXME: clvmd seems to have problem with metadata format change here
# fix it and remove this vgscan
if test -n "$LVM_TEST_LVM1" ; then
vgscan
pvcreate -M1 $(cat DEVICES)
vgcreate -M1 -c n $vg $(cat DEVICES)
lvcreate -l1 -n $lv1 $vg "$dev1"
pvremove -ff -y "$dev2"
not lvcreate -l1 -n $lv1 $vg "$dev3"
vgcfgbackup -f "backup.$$" $vg
fi