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:
parent
4c5ad5a04c
commit
f194d5f169
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user