mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
test: Reflect that --sysinit only treats lvmetad specially with -aay (not -ay).
This commit is contained in:
parent
ee200ddfc3
commit
4bb1efe2fb
@ -18,7 +18,7 @@ vgcreate $vg1 $dev1 $dev2
|
||||
lvchange -ay $vg1 2>&1 | not grep "Failed to connect"
|
||||
kill $(cat LOCAL_LVMETAD)
|
||||
lvchange -ay $vg1 2>&1 | grep "Failed to connect"
|
||||
lvchange -ay $vg1 --sysinit 2>&1 | not grep "Failed to connect"
|
||||
lvchange -aay $vg1 --sysinit 2>&1 | not grep "Failed to connect"
|
||||
lvchange -ay $vg1 --config 'global { use_lvmetad = 0 }' 2>&1 | not grep "Failed to connect"
|
||||
aux lvmconf "global/use_lvmetad = 0"
|
||||
lvchange -ay $vg1 --config 'global { use_lvmetad = 1 }' 2>&1 | grep "Failed to connect"
|
||||
|
@ -16,12 +16,16 @@ aux prepare_pvs 2
|
||||
|
||||
vgcreate $vg1 "$dev1" "$dev2"
|
||||
lvchange -ay $vg1 2>&1 | not grep "Failed to connect"
|
||||
|
||||
kill $(cat LOCAL_LVMETAD)
|
||||
lvchange -ay $vg1 2>&1 | grep "Failed to connect"
|
||||
lvchange -ay $vg1 --sysinit 2>&1 | not grep "Failed to connect"
|
||||
lvchange -aay $vg1 --sysinit 2>&1 | tee sysinit.txt
|
||||
not grep "Failed to connect" sysinit.txt
|
||||
|
||||
aux lvmconf 'global/use_lvmetad = 0'
|
||||
lvchange -ay $vg1 2>&1 | not grep "Failed to connect"
|
||||
lvchange -ay $vg1 --sysinit 2>&1 | not grep "Failed to connect"
|
||||
|
||||
aux prepare_lvmetad
|
||||
lvchange -ay $vg1 2>&1 | not grep "Failed to connect"
|
||||
lvchange -ay $vg1 --sysinit 2>&1 | not grep "Failed to connect"
|
||||
|
Loading…
Reference in New Issue
Block a user