From b904d6653dcecb83a5404a89d00bdd6750cea568 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Sat, 28 Apr 2018 22:18:00 +0200 Subject: [PATCH] tests: add also snapshot monitoring --- test/shell/dmeventd-restart.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/shell/dmeventd-restart.sh b/test/shell/dmeventd-restart.sh index 87e3e40df..58575fc71 100644 --- a/test/shell/dmeventd-restart.sh +++ b/test/shell/dmeventd-restart.sh @@ -24,6 +24,9 @@ lvchange --monitor y $vg/4way lvcreate -aey --type mirror -m 2 --nosync --ignoremonitoring -l1 -n 3way $vg lvchange --monitor y $vg/3way +lvcreate -aey -l1 -n $lv1 $vg +lvcreate -s -l1 -n $lv2 $vg/$lv1 + dmeventd -R -f & echo $! >LOCAL_DMEVENTD sleep 2 # wait a bit, so we talk to the new dmeventd later @@ -50,4 +53,7 @@ lvchange --monitor y --verbose $vg/3way 2>&1 | tee lvchange.out pgrep -o dmeventd >LOCAL_DMEVENTD not grep 'already monitored' lvchange.out +lvchange --monitor y --verbose $vg/$lv2 2>&1 | tee lvchange.out +not grep 'already monitored' lvchange.out + vgremove -ff $vg