From 4ded6393df2c50558d586f8a28253b96db2624fa Mon Sep 17 00:00:00 2001 From: Petr Rockai Date: Mon, 11 Jul 2011 12:13:07 +0000 Subject: [PATCH] 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. --- test/t-vgreduce-usage.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/t-vgreduce-usage.sh b/test/t-vgreduce-usage.sh index 871f1e32d..471ef59b3 100755 --- a/test/t-vgreduce-usage.sh +++ b/test/t-vgreduce-usage.sh @@ -62,8 +62,9 @@ check lv_field $vg1/$lv1 segtype linear 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 -- 2.43.5