Skip to contentSkip to conversation

LVM2/test t-vgreduce-usage.sh

PATCH [email protected] 1 participant 1 message Jul 11, 2011

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: mornfall at sourceware.org 2011-07-11 12:13:08

Modified files:
test : t-vgreduce-usage.sh

Log message:
Fix t-vgreduce-usage to stop relying on the persistent cache not seeing a device that has been brought back from the dead: this sometimes fails with clvmd (the cache is updated "too soon"). Instead, force a pvscan and rely on an up-to-date cache as usual.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t-vgreduce-usage.sh.diff?cvsroot=lvm2&r1=1.8&r2=1.9

test/t-vgreduce-usage.sh +2 -1
@@ -62,8 +62,9 @@
 check pvlv_counts $vg1 2 3 0
 # cleanup
 aux enable_dev $dev1
+pvscan
 vgremove -ff $vg1
-vgremove -ff $vg1
+not vgs $vg1 # just double-check it's really gone
 
 #COMM "vgreduce rejects --removemissing --mirrorsonly --force when nonmirror lv lost too"
 # (lvm$mdatype) setup: create mirror + linear lvs