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

tests: more vgcfgrestore testing

Check '-l' and archiving.
This commit is contained in:
Zdenek Kabelac 2014-05-21 23:12:00 +02:00
parent a4ac21aded
commit 79f4665243

View File

@ -31,12 +31,22 @@ vgcfgbackup
test -e etc/backup/$vg1
test -e etc/backup/$vg2
aux lvmconf "backup/archive = 1"
vgcfgbackup -f "bak-%s" >out
grep "Volume group \"$vg1\" successfully backed up." out
grep "Volume group \"$vg2\" successfully backed up." out
# increase seqno
lvcreate -an -Zn -l1 $vg1
vgcfgrestore -f "bak-$vg1" $vg1
invalid vgcfgrestore -f "bak-$vg1" $vg1-inv@lid
invalid vgcfgrestore -f "bak-$vg1" $vg1 $vg2
vgcfgrestore -l $vg1 | tee out
test $(grep Description out | wc -l) -eq 2
vgcfgrestore -l -f "bak-$vg1" $vg1
vgremove -ff $vg1 $vg2
# vgcfgbackup correctly stores metadata with missing PVs