1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-02-25 21:57:45 +03:00

tests: check forced backup

This commit is contained in:
Zdenek Kabelac 2014-03-25 23:55:04 +01:00
parent 4adbb85c37
commit 4b30863e85

View File

@ -13,11 +13,22 @@
aux prepare_pvs 4
# No automatic backup
aux lvmconf "backup/backup = 0"
# vgcfgbackup handles similar VG names (bz458941)
vg1=${PREFIX}vg00
vg2=${PREFIX}vg01
vgcreate $vg1 "$dev1"
vgcreate $vg2 "$dev2"
# Enforces system backup
test ! -e etc/backup/$vg1
test ! -e etc/backup/$vg2
vgcfgbackup
test -e etc/backup/$vg1
test -e etc/backup/$vg2
vgcfgbackup -f bak-%s >out
grep "Volume group \"$vg1\" successfully backed up." out
grep "Volume group \"$vg2\" successfully backed up." out