mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
tests: move setting of dmeventd pid
Added comment the 'lvs' already initiates dmeventd Note: we don't have any query mechanism to check if dmeventd is already running except access of socket which basically starts dmeventd if it's not running.
This commit is contained in:
parent
85fae836c0
commit
3ed79d8dfe
@ -41,7 +41,7 @@ test -e LOCAL_CLVMD || grep 'already monitored' lvchange.out
|
||||
|
||||
# now try what happens if no dmeventd is running
|
||||
kill -9 "$(< LOCAL_DMEVENTD)"
|
||||
rm LOCAL_DMEVENTD
|
||||
rm LOCAL_DMEVENTD debug.log*
|
||||
|
||||
dmeventd -R -f &
|
||||
echo $! >LOCAL_DMEVENTD
|
||||
@ -52,11 +52,12 @@ sleep 9
|
||||
not pgrep dmeventd
|
||||
rm LOCAL_DMEVENTD
|
||||
|
||||
# First lvs restarts 'dmeventd' (initiate a socket connection to a daemon)
|
||||
check lv_field $vg/3way seg_monitor "not monitored"
|
||||
pgrep -o dmeventd >LOCAL_DMEVENTD
|
||||
check lv_field $vg/4way seg_monitor "not monitored"
|
||||
|
||||
lvchange --monitor y --verbose $vg/3way 2>&1 | tee lvchange.out
|
||||
pgrep -o dmeventd >LOCAL_DMEVENTD
|
||||
test -e LOCAL_CLVMD || not grep 'already monitored' lvchange.out
|
||||
|
||||
lvchange --monitor y --verbose $vg/$lv2 2>&1 | tee lvchange.out
|
||||
|
Loading…
Reference in New Issue
Block a user