diff options
author | Petr Rockai <prockai@redhat.com> | 2015-06-10 16:27:59 +0200 |
---|---|---|
committer | Petr Rockai <prockai@redhat.com> | 2015-06-10 16:27:59 +0200 |
commit | 9c0049b1ce027ab4befdbfbcd8194d57ce6eb2b7 (patch) | |
tree | e9edf01d32439aa20a2485b5c5a470668819ac86 | |
parent | 632dde0cbc98de9c04b4c2451d09e36d6299bbd6 (diff) | |
download | lvm2-dev-mornfall-lvmetad-repair.tar.gz |
test: Ensure that outdated PVs are wiped just once.dev-mornfall-lvmetad-repair
-rw-r--r-- | test/shell/unlost-pv.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/shell/unlost-pv.sh b/test/shell/unlost-pv.sh index 09de21a76..c56d48886 100644 --- a/test/shell/unlost-pv.sh +++ b/test/shell/unlost-pv.sh @@ -45,4 +45,10 @@ check_ test -e LOCAL_LVMETAD && lvremove $vg/boo # FIXME trigger a write :-( check_ not +aux disable_dev "$dev1" +vgreduce --removemissing --force $vg +aux enable_dev "$dev1" +vgs 2>&1 | grep 'Removing PV' +vgs 2>&1 | not grep 'Removing PV' + vgremove -ff $vg |