diff options
author | Peter Rajnoha <prajnoha@redhat.com> | 2011-12-07 12:29:41 +0000 |
---|---|---|
committer | Peter Rajnoha <prajnoha@redhat.com> | 2011-12-07 12:29:41 +0000 |
commit | 0644371f092c6be1b035736009a27a12a16d82b6 (patch) | |
tree | d0dc00dab3531fd4c8aa010a6da6ced79689f037 /scripts/lvm2_monitoring_init_rhel4 | |
parent | d0981401778dece2e3bc020e58da7bfc1db67f43 (diff) | |
download | lvm2-0644371f092c6be1b035736009a27a12a16d82b6.tar.gz lvm2-0644371f092c6be1b035736009a27a12a16d82b6.tar.xz lvm2-0644371f092c6be1b035736009a27a12a16d82b6.zip |
Fix lvm2-monitor init script to use normalized output when using vgs.
Diffstat (limited to 'scripts/lvm2_monitoring_init_rhel4')
-rw-r--r-- | scripts/lvm2_monitoring_init_rhel4 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lvm2_monitoring_init_rhel4 b/scripts/lvm2_monitoring_init_rhel4 index 0a42f552..33a2f742 100644 --- a/scripts/lvm2_monitoring_init_rhel4 +++ b/scripts/lvm2_monitoring_init_rhel4 @@ -31,7 +31,7 @@ start() { ret=0 # 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 do 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." return 1 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 do action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$? |