mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-22 17:35:59 +03:00
add debug output and attempt to control which device gets log as intended perhaps
This commit is contained in:
parent
f4cea344b1
commit
a570dca703
@ -25,6 +25,7 @@ lv_is_on_ ()
|
|||||||
rm -f out1 out2
|
rm -f out1 out2
|
||||||
echo $pvs | sed 's/ /\n/g' | sort | uniq > out1
|
echo $pvs | sed 's/ /\n/g' | sort | uniq > out1
|
||||||
|
|
||||||
|
lvs -a -odevices --noheadings $lv
|
||||||
lvs -a -odevices --noheadings $lv | \
|
lvs -a -odevices --noheadings $lv | \
|
||||||
sed 's/([^)]*)//g; s/[ ,]/\n/g' | sort | uniq > out2
|
sed 's/([^)]*)//g; s/[ ,]/\n/g' | sort | uniq > out2
|
||||||
|
|
||||||
@ -47,6 +48,7 @@ mimages_are_on_ ()
|
|||||||
sed 's/\[//g; s/\]//g')
|
sed 's/\[//g; s/\]//g')
|
||||||
for i in $mimages; do
|
for i in $mimages; do
|
||||||
echo "Checking $vg/$i"
|
echo "Checking $vg/$i"
|
||||||
|
lvs -a -odevices --noheadings $vg/$i
|
||||||
lvs -a -odevices --noheadings $vg/$i | \
|
lvs -a -odevices --noheadings $vg/$i | \
|
||||||
sed 's/([^)]*)//g; s/ //g; s/,/ /g' | sort | uniq >> out2
|
sed 's/([^)]*)//g; s/ //g; s/,/ /g' | sort | uniq >> out2
|
||||||
done
|
done
|
||||||
@ -128,7 +130,7 @@ check_and_cleanup_lvs_
|
|||||||
|
|
||||||
#COMM "basic: fail the 2nd mirror image of 2-way mirrored LV"
|
#COMM "basic: fail the 2nd mirror image of 2-way mirrored LV"
|
||||||
prepare_lvs_
|
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
|
lvchange -an $vg/$lv1
|
||||||
aux mimages_are_on_ $lv1 $dev1 $dev2
|
aux mimages_are_on_ $lv1 $dev1 $dev2
|
||||||
mirrorlog_is_on_ $lv1 $dev3
|
mirrorlog_is_on_ $lv1 $dev3
|
||||||
|
Loading…
Reference in New Issue
Block a user