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 diff -dur LVM2.2.02.98.orig/scripts/lvm2_monitoring_init_red_hat.in LVM2.2.02.98/scripts/lvm2_monitoring_init_red_hat.in
108 --- LVM2.2.02.98.orig/scripts/lvm2_monitoring_init_red_hat.in 2012-10-15 16:24:58.000000000 +0200
109 +++ LVM2.2.02.98/scripts/lvm2_monitoring_init_red_hat.in 2012-10-25 11:57:52.000000000 +0200
114 # Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
122 # TODO do we want to separate out already active groups only?
123 VGSLIST=`$VGS --noheadings -o name --config 'log{command_names=0 prefix=" "}' 2> /dev/null`
126 - action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y --config 'log{command_names=0 prefix=" "}' $vg || ret=$?
127 + msg_starting "Starting monitoring for VG $vg:"; busy
128 + $VGCHANGE --monitor y --poll y --config 'log{command_names=0 prefix=" "}' $vg
130 + if [ $ret -ne 0 ]; then
144 # TODO do we want to separate out already active groups only?
145 if test "$WARN" = "1"; then
146 echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
148 VGSLIST=`$VGS --noheadings -o name --config 'log{command_names=0 prefix=" "}' 2> /dev/null`
151 - action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n --config 'log{command_names=0 prefix=" "}' $vg || ret=$?
152 + msg_stopping "Stopping monitoring for VG $vg:"; busy
153 + $VGCHANGE --monitor n --config 'log{command_names=0 prefix=" "}' $vg
155 + if [ $ret -ne 0 ]; then
163 diff -dur LVM2.2.02.98.orig/scripts/lvm2_monitoring_systemd_red_hat.service.in LVM2.2.02.98/scripts/lvm2_monitoring_systemd_red_hat.service.in
164 --- LVM2.2.02.98.orig/scripts/lvm2_monitoring_systemd_red_hat.service.in 2012-10-15 16:24:58.000000000 +0200
165 +++ LVM2.2.02.98/scripts/lvm2_monitoring_systemd_red_hat.service.in 2012-10-25 11:57:52.000000000 +0200
167 Description=Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
168 Documentation=man:dmeventd(8) man:lvcreate(8) man:lvchange(8) man:vgchange(8)
169 Requires=dm-event.socket
170 -After=dm-event.socket fedora-storage-init.service fedora-storage-init-late.service lvm2-activation.service lvm2-lvmetad.service
171 +After=dm-event.socket pld-storage-init.service pld-storage-init-late.service lvm2-activation.service lvm2-lvmetad.service
172 Before=local-fs.target
173 DefaultDependencies=no
174 Conflicts=shutdown.target
175 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
176 --- LVM2.2.02.98.orig/scripts/blk_availability_systemd_red_hat.service.in 2012-10-15 16:24:58.000000000 +0200
177 +++ LVM2.2.02.98/scripts/blk_availability_systemd_red_hat.service.in 2012-10-29 15:38:31.000000000 +0100
182 -ExecStart=/usr/bin/true
184 ExecStop=@sbindir@/blkdeactivate -u -l wholevg