1 diff -dur LVM2.2.02.98.orig/scripts/blk_availability_init_red_hat.in LVM2.2.02.98/scripts/blk_availability_init_red_hat.in
2 --- LVM2.2.02.98.orig/scripts/blk_availability_init_red_hat.in 2012-10-15 16:24:58.000000000 +0200
3 +++ LVM2.2.02.98/scripts/blk_availability_init_red_hat.in 2012-10-25 12:01:33.000000000 +0200
8 # Copyright (C) 2012 Red Hat, Inc. All rights reserved.
18 - action "Stopping block device availability:" $sbindir/$script $options
19 + run_cmd "Stopping block device availability:" $sbindir/$script $options
28 - echo $"Usage: $0 {start|stop|status}"
29 + msg_usage "$0 {start|stop|status}"
33 diff -dur LVM2.2.02.98.orig/scripts/clvmd_init_red_hat.in LVM2.2.02.98/scripts/clvmd_init_red_hat.in
34 --- LVM2.2.02.98.orig/scripts/clvmd_init_red_hat.in 2012-10-15 16:24:58.000000000 +0200
35 +++ LVM2.2.02.98/scripts/clvmd_init_red_hat.in 2012-10-25 11:57:52.000000000 +0200
39 if ! rh_status_q; then
40 - echo -n "Starting $DAEMON: "
41 + msg_starting "$DAEMON"
42 $DAEMON $CLVMDOPTS || return $?
46 # Refresh local cache.
49 ${lvm_vgscan} > /dev/null 2>&1
51 - action "Activating VG(s):" ${lvm_vgchange} -aay $LVM_VGS || return $?
52 + run_cmd "Activating VG(s):" ${lvm_vgchange} -aay $LVM_VGS || return $?
58 [ -z "$LVM_VGS" ] && LVM_VGS="$(clustered_vgs)"
59 if [ -n "$LVM_VGS" ]; then
60 - action "Deactivating clustered VG(s):" ${lvm_vgchange} -anl $LVM_VGS || return $?
61 + run_cmd "Deactivating clustered VG(s):" ${lvm_vgchange} -anl $LVM_VGS || return $?
64 - action "Signaling $DAEMON to exit" kill -TERM $(pidofproc $DAEMON) || return $?
65 + run_cmd "Signaling $DAEMON to exit" kill -TERM $(pidofproc $DAEMON) || return $?
67 # wait half second before we start the waiting loop or we will show
68 # the loop more time than really necessary
71 # clvmd could take some time to stop
72 - rh_status_q && action "Waiting for $DAEMON to exit:" wait_for_finish
73 + rh_status_q && run_cmd "Waiting for $DAEMON to exit:" wait_for_finish
76 - echo -n "$DAEMON failed to exit"
82 - echo -n "$DAEMON terminated"
93 - action "Reloading $DAEMON configuration: " $DAEMON -R || return $?
94 + run_cmd "Reloading $DAEMON configuration: " $DAEMON -R || return $?
100 # Try to get clvmd to restart itself. This will preserve
102 - action "Restarting $DAEMON: " $DAEMON -S
103 + run_cmd "Restarting $DAEMON: " $DAEMON -S
105 # If that fails then do a normal stop & restart
107 --- LVM2.2.02.106/scripts/lvm2_monitoring_init_red_hat.in.orig 2014-04-10 17:38:46.000000000 +0200
108 +++ LVM2.2.02.106/scripts/lvm2_monitoring_init_red_hat.in 2014-04-22 21:38:55.153260547 +0200
113 # Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
121 # TODO do we want to separate out already active groups only?
122 VGSLIST=`$VGS --noheadings -o name --ignoreskippedcluster --config 'log{command_names=0 prefix=" "}' 2> /dev/null`
125 - action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y --ignoreskippedcluster --config 'log{command_names=0 prefix=" "}' $vg || ret=$?
126 + msg_starting "Starting monitoring for VG $vg:"; busy
127 + $VGCHANGE --monitor y --poll y --ignoreskippedcluster --config 'log{command_names=0 prefix=" "}' $vg
129 + if [ $ret -ne 0 ]; then
143 # TODO do we want to separate out already active groups only?
144 if test "$WARN" = "1"; then
145 echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
147 VGSLIST=`$VGS --noheadings -o name --ignoreskippedcluster --config 'log{command_names=0 prefix=" "}' 2> /dev/null`
150 - action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n --ignoreskippedcluster --config 'log{command_names=0 prefix=" "}' $vg || ret=$?
151 + msg_stopping "Stopping monitoring for VG $vg:"; busy
152 + $VGCHANGE --monitor n --ignoreskippedcluster --config 'log{command_names=0 prefix=" "}' $vg
154 + if [ $ret -ne 0 ]; then
162 diff -dur LVM2.2.02.98.orig/scripts/blk_availability_systemd_red_hat.service.in LVM2.2.02.98/scripts/blk_availability_systemd_red_hat.service.in
163 --- LVM2.2.02.98.orig/scripts/blk_availability_systemd_red_hat.service.in 2012-10-15 16:24:58.000000000 +0200
164 +++ LVM2.2.02.98/scripts/blk_availability_systemd_red_hat.service.in 2012-10-29 15:38:31.000000000 +0100
169 -ExecStart=/usr/bin/true
171 ExecStop=@sbindir@/blkdeactivate -u -l wholevg