From 32e53e506d57b1e473c95455dc18e50bbdd88231 Mon Sep 17 00:00:00 2001 From: Peter Rajnoha Date: Fri, 16 Dec 2011 11:42:56 +0000 Subject: [PATCH] Use also normalized output for vgchange command in lvm2-monitor init script. --- scripts/lvm2_monitoring_init_red_hat.in | 4 ++-- scripts/lvm2_monitoring_init_rhel4 | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/lvm2_monitoring_init_red_hat.in b/scripts/lvm2_monitoring_init_red_hat.in index 41d8c6fd8..cae652c90 100644 --- a/scripts/lvm2_monitoring_init_red_hat.in +++ b/scripts/lvm2_monitoring_init_red_hat.in @@ -51,7 +51,7 @@ start() VGSLIST=`$VGS --noheadings -o name --config 'log{command_names=0 prefix=" "}' 2> /dev/null` for vg in $VGSLIST 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 --config 'log{command_names=0 prefix=" "}' $vg || ret=$? done return $ret @@ -69,7 +69,7 @@ stop() VGSLIST=`$VGS --noheadings -o name --config 'log{command_names=0 prefix=" "}' 2> /dev/null` for vg in $VGSLIST do - action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$? + action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n --config 'log{command_names=0 prefix=" "}' $vg || ret=$? done return $ret } diff --git a/scripts/lvm2_monitoring_init_rhel4 b/scripts/lvm2_monitoring_init_rhel4 index 33a2f7426..aded8d402 100644 --- a/scripts/lvm2_monitoring_init_rhel4 +++ b/scripts/lvm2_monitoring_init_rhel4 @@ -34,7 +34,7 @@ start() VGS=`vgs --noheadings -o name --config 'log{command_names=0 prefix=" "}' 2> /dev/null` for vg in $VGS do - action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y $vg || ret=$? + action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --config 'log{command_names=0 prefix=" "}' $vg || ret=$? done return $ret @@ -52,7 +52,7 @@ stop() VGS=`vgs --noheadings -o name --config 'log{command_names=0 prefix=" "}' 2> /dev/null` for vg in $VGS do - action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$? + action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n --config 'log{command_names=0 prefix=" "}' $vg || ret=$? done return $ret }