From 0644371f092c6be1b035736009a27a12a16d82b6 Mon Sep 17 00:00:00 2001 From: Peter Rajnoha Date: Wed, 7 Dec 2011 12:29:41 +0000 Subject: Fix lvm2-monitor init script to use normalized output when using vgs. --- scripts/lvm2_monitoring_init_red_hat.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/lvm2_monitoring_init_red_hat.in') diff --git a/scripts/lvm2_monitoring_init_red_hat.in b/scripts/lvm2_monitoring_init_red_hat.in index 0988511f..41d8c6fd 100644 --- a/scripts/lvm2_monitoring_init_red_hat.in +++ b/scripts/lvm2_monitoring_init_red_hat.in @@ -48,7 +48,7 @@ start() { ret=0 # 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 do 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." return 1 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 do action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$? -- cgit