From 17f3b8280b8ade397a6a4a8fd82ba7dd7d0e1d1b Mon Sep 17 00:00:00 2001 From: Petr Rockai Date: Wed, 9 Oct 2013 14:44:15 +0200 Subject: [PATCH] test: Correctly trigger inconsistent metadata repair in lvmcache-exercise. Since lvconvert --repair sets handles_missing_pvs, it will not repair inconsistent metadata automatically. Calling lvs instead should do the trick. --- test/shell/lvmcache-exercise.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/shell/lvmcache-exercise.sh b/test/shell/lvmcache-exercise.sh index 5ea6381d1..6e8efdab6 100644 --- a/test/shell/lvmcache-exercise.sh +++ b/test/shell/lvmcache-exercise.sh @@ -30,7 +30,7 @@ lvconvert --yes --repair $vg2/$lv1 aux enable_dev "$dev3" # here it should fix any reappeared devices -lvconvert --yes --repair $vg2/$lv1 +lvs lvs -a $vg2 -o+devices 2>&1 | tee out not grep reappeared out