mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Fix processing of exit status in init scripts
This commit is contained in:
parent
c2784df48f
commit
eca7ef180c
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.24 -
|
Version 2.02.24 -
|
||||||
====================================
|
====================================
|
||||||
|
Fix processing of exit status in init scripts
|
||||||
Fix vgremove to require at least one vg argument.
|
Fix vgremove to require at least one vg argument.
|
||||||
Fix reading of striped LVs in LVM1 format.
|
Fix reading of striped LVs in LVM1 format.
|
||||||
Flag nolocking as clustered so clvmd startup sees clustered LVs. (2.02.10)
|
Flag nolocking as clustered so clvmd startup sees clustered LVs. (2.02.10)
|
||||||
|
@ -43,16 +43,10 @@ start()
|
|||||||
then
|
then
|
||||||
for vg in $LVM_VGS
|
for vg in $LVM_VGS
|
||||||
do
|
do
|
||||||
if ! action "Activating VG $vg:" $VGCHANGE -ayl $vg
|
action "Activating VG $vg:" $VGCHANGE -ayl $vg || rtrn=$?
|
||||||
then
|
|
||||||
rtrn=$?
|
|
||||||
fi
|
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
if ! action "Activating VGs:" $VGCHANGE -ayl
|
action "Activating VGs:" $VGCHANGE -ayl || rtrn=$?
|
||||||
then
|
|
||||||
rtrn=$?
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
@ -67,19 +61,13 @@ stop()
|
|||||||
then
|
then
|
||||||
for vg in $LVM_VGS
|
for vg in $LVM_VGS
|
||||||
do
|
do
|
||||||
if ! action "Deactivating VG $vg:" $VGCHANGE -anl $vg
|
action "Deactivating VG $vg:" $VGCHANGE -anl $vg || rtrn=$?
|
||||||
then
|
|
||||||
rtrn=$?
|
|
||||||
fi
|
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
# Hack to only deactivate clustered volumes
|
# Hack to only deactivate clustered volumes
|
||||||
clustervgs=`$VGDISPLAY 2> /dev/null | awk 'BEGIN {RS="VG Name"} {if (/Clustered/) print $1;}'`
|
clustervgs=`$VGDISPLAY 2> /dev/null | awk 'BEGIN {RS="VG Name"} {if (/Clustered/) print $1;}'`
|
||||||
for vg in $clustervgs; do
|
for vg in $clustervgs; do
|
||||||
if ! action "Deactivating VG $vg:" $VGCHANGE -anl $vg
|
action "Deactivating VG $vg:" $VGCHANGE -anl $vg || rtrn=$?
|
||||||
then
|
|
||||||
rtrn=$?
|
|
||||||
fi
|
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -34,10 +34,7 @@ start()
|
|||||||
VGS=`vgs --noheadings -o name`
|
VGS=`vgs --noheadings -o name`
|
||||||
for vg in $VGS
|
for vg in $VGS
|
||||||
do
|
do
|
||||||
if ! action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y $vg
|
action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y $vg || ret=$?
|
||||||
then
|
|
||||||
ret=$?
|
|
||||||
fi
|
|
||||||
done
|
done
|
||||||
|
|
||||||
return $ret
|
return $ret
|
||||||
@ -55,10 +52,7 @@ stop()
|
|||||||
VGS=`vgs --noheadings -o name`
|
VGS=`vgs --noheadings -o name`
|
||||||
for vg in $VGS
|
for vg in $VGS
|
||||||
do
|
do
|
||||||
if ! action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg
|
action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
|
||||||
then
|
|
||||||
ret=$?
|
|
||||||
fi
|
|
||||||
done
|
done
|
||||||
return $ret
|
return $ret
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user