[lvm-devel] LVM2/test t-vgreduce-usage.sh

mornfall at sourceware.org mornfall at sourceware.org
Mon Jul 11 12:13:08 UTC 2011


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

--- LVM2/test/t-vgreduce-usage.sh	2011/07/04 16:27:27	1.8
+++ LVM2/test/t-vgreduce-usage.sh	2011/07/11 12:13:07	1.9
@@ -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




More information about the lvm-devel mailing list