mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-11 20:58:50 +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
|
vgchange -an $vg
|
||||||
vgremove -f $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…
x
Reference in New Issue
Block a user