]> sourceware.org Git - lvm2.git/commitdiff
test: Ensure that outdated PVs are wiped just once. dev-mornfall-lvmetad-repair
authorPetr Rockai <prockai@redhat.com>
Wed, 10 Jun 2015 14:27:59 +0000 (16:27 +0200)
committerPetr Rockai <prockai@redhat.com>
Wed, 10 Jun 2015 14:27:59 +0000 (16:27 +0200)
test/shell/unlost-pv.sh

index 09de21a76a964d6e17b8a8e0f86b616bd0c37bad..c56d48886d1bd7a1fcee00cebd49dbbecdf4661d 100644 (file)
@@ -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
This page took 0.032312 seconds and 5 git commands to generate.