mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-19 14:04:17 +03:00
Fix lvm2-monitor init script to use normalized output when using vgs.
This commit is contained in:
parent
d098140177
commit
0644371f09
@ -1,5 +1,6 @@
|
|||||||
Version 1.02.68 -
|
Version 1.02.68 -
|
||||||
==================================
|
==================================
|
||||||
|
Fix lvm2-monitor init script to use normalized output when using vgs.
|
||||||
Add test for max length (DM_MAX_TYPE_NAME) of target type name.
|
Add test for max length (DM_MAX_TYPE_NAME) of target type name.
|
||||||
Include a copy of kernel DM documentation in doc/kernel.
|
Include a copy of kernel DM documentation in doc/kernel.
|
||||||
Improve man page style for dmsetup.
|
Improve man page style for dmsetup.
|
||||||
|
@ -48,7 +48,7 @@ start()
|
|||||||
{
|
{
|
||||||
ret=0
|
ret=0
|
||||||
# TODO do we want to separate out already active groups only?
|
# TODO do we want to separate out already active groups only?
|
||||||
VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
|
VGSLIST=`$VGS --noheadings -o name --config 'log{command_names=0 prefix=" "}' 2> /dev/null`
|
||||||
for vg in $VGSLIST
|
for vg in $VGSLIST
|
||||||
do
|
do
|
||||||
action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
|
action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
|
||||||
@ -66,7 +66,7 @@ stop()
|
|||||||
echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
|
echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
|
VGSLIST=`$VGS --noheadings -o name --config 'log{command_names=0 prefix=" "}' 2> /dev/null`
|
||||||
for vg in $VGSLIST
|
for vg in $VGSLIST
|
||||||
do
|
do
|
||||||
action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
|
action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
|
||||||
|
@ -31,7 +31,7 @@ start()
|
|||||||
{
|
{
|
||||||
ret=0
|
ret=0
|
||||||
# TODO do we want to separate out already active groups only?
|
# TODO do we want to separate out already active groups only?
|
||||||
VGS=`vgs --noheadings -o name 2> /dev/null`
|
VGS=`vgs --noheadings -o name --config 'log{command_names=0 prefix=" "}' 2> /dev/null`
|
||||||
for vg in $VGS
|
for vg in $VGS
|
||||||
do
|
do
|
||||||
action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y $vg || ret=$?
|
action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y $vg || ret=$?
|
||||||
@ -49,7 +49,7 @@ stop()
|
|||||||
echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
|
echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
VGS=`vgs --noheadings -o name 2> /dev/null`
|
VGS=`vgs --noheadings -o name --config 'log{command_names=0 prefix=" "}' 2> /dev/null`
|
||||||
for vg in $VGS
|
for vg in $VGS
|
||||||
do
|
do
|
||||||
action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
|
action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user