From a570dca703f46f788d21e44f6ba5e16f05a50da4 Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Thu, 25 Mar 2010 11:42:17 +0000 Subject: [PATCH] add debug output and attempt to control which device gets log as intended perhaps --- test/t-mirror-vgreduce-removemissing.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/t-mirror-vgreduce-removemissing.sh b/test/t-mirror-vgreduce-removemissing.sh index efd6b5dbb..ad9d3b613 100755 --- a/test/t-mirror-vgreduce-removemissing.sh +++ b/test/t-mirror-vgreduce-removemissing.sh @@ -25,6 +25,7 @@ lv_is_on_ () rm -f out1 out2 echo $pvs | sed 's/ /\n/g' | sort | uniq > out1 + lvs -a -odevices --noheadings $lv lvs -a -odevices --noheadings $lv | \ sed 's/([^)]*)//g; s/[ ,]/\n/g' | sort | uniq > out2 @@ -47,6 +48,7 @@ mimages_are_on_ () sed 's/\[//g; s/\]//g') for i in $mimages; do echo "Checking $vg/$i" + lvs -a -odevices --noheadings $vg/$i lvs -a -odevices --noheadings $vg/$i | \ sed 's/([^)]*)//g; s/ //g; s/,/ /g' | sort | uniq >> out2 done @@ -128,7 +130,7 @@ check_and_cleanup_lvs_ #COMM "basic: fail the 2nd mirror image of 2-way mirrored LV" prepare_lvs_ -lvcreate -l2 -m1 -n $lv1 $vg $dev1 $dev2 $dev3:0-1 +lvcreate -l2 -m1 -n $lv1 $vg $dev1 $dev2 $dev3:0 lvchange -an $vg/$lv1 aux mimages_are_on_ $lv1 $dev1 $dev2 mirrorlog_is_on_ $lv1 $dev3