1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-18 10:04:20 +03:00

tests: update pvmove-test

Do not lock test when trying to grab cluster lock.
There seems to be still something weird in this test
so it still needs some inspection.
This commit is contained in:
Zdenek Kabelac 2013-12-04 17:05:44 +01:00
parent 7c6b14b74f
commit c144305d3e

View File

@ -33,16 +33,37 @@ PVMOVE=$!
# Let's wait a bit till pvmove starts and kill it
sleep 1
kill -9 $PVMOVE
wait
# Simulate reboot - forcibly remove related devices
dmsetup remove $vg-$lv1
dmsetup remove $vg-pvmove0
if test -e LOCAL_CLVMD ; then
# giveup all clvmd locks (faster then restarting clvmd)
# no deactivation happen, nodes are already removed
vgchange -an $vg
# Restart clvmd
#kill $(cat LOCAL_CLVMD)
#while test -e "/var/run/clvmd.pid"; do echo -n .; sleep .1; done # wait for the pid removal
#aux prepare_clvmd
fi
if test -e LOCAL_LVMETAD ; then
# Restart lvmetad
kill $(cat LOCAL_LVMETAD)
aux prepare_lvmetad
fi
# Only PVs should be left in table...
dmsetup table
# Restart pvmove
vgchange -ay $vg
# use exclusive activation to have usable pvmove without cmirrord
#vgchange -vvvv -ay $vg
vgchange -aey $vg
dmsetup table
#pvmove
pvmove --abort