diff --git a/WHATS_NEW_DM b/WHATS_NEW_DM index 15b88782b..97fd1040f 100644 --- a/WHATS_NEW_DM +++ b/WHATS_NEW_DM @@ -1,5 +1,6 @@ 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. Include a copy of kernel DM documentation in doc/kernel. Improve man page style for dmsetup. diff --git a/scripts/lvm2_monitoring_init_red_hat.in b/scripts/lvm2_monitoring_init_red_hat.in index 0988511fb..41d8c6fd8 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=$? diff --git a/scripts/lvm2_monitoring_init_rhel4 b/scripts/lvm2_monitoring_init_rhel4 index 0a42f552b..33a2f7426 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=$?