Hi everybody!
I don't know why heartbeat can't manage pound script (in resource.d)
pound script is:
#!/bin/bash
case $1 in
start)
/etc/init.d/pound start ####When do it manually it starts OK
;;
stop)
/etc/init.d/pound stop ####When do it manually it stops OK
;;
status)
working= /bin/ps -A | grep pound >> /dev/null
if [ "$working" != "" ]; then
echo "running"
exit 0
fi
echo "DOWN"
echo "running"
;;
*)
echo "Syntax incorrect. You need one of {start|stop|status}"
;;
esac
My haresources is:
*******************************************************************************
prot14 10.2.1.36 10.2.1.82 IPaddr::192.168.2.52/24/eth1/192.168.2.255
IPaddr::192.168.2.53/24/eth1/192.168.2.255 killnfsd nfs-common
nfs-kernel-server sleep::3 10.2.1.39 pound checkMPIup.py
*******************************************************************************
Any ideas?
When I start heartbeat, pound doesn't start but if I start it manually it
works.
Also, when I do /usr/lib/heartbeat/hb_standby at the primary director, when
backup director gets resources, I can see this output: (it seems that pound
isn't in haresources but it is!!)
Feb 17 11:06:22 localhost heartbeat[2938]: info: standby: acquire [all]
resources from prot14
Feb 17 11:06:22 localhost heartbeat[4669]: info: acquire all HA resources
(standby).
Feb 17 11:06:23 localhost heartbeat: info: Acquiring resource group: prot14
10.2.1.36 10.2.1.82
IPaddr::192.168.2.52/24/eth1/192.168.2.255
IPaddr::192.168.2.53/24/eth1/192.168.2.255 killnfsd n
fs-common nfs-kernel-server sleep::3 10.2.1.39 pound checkMPIup.py
MailTo::acanada@xxxxxxx,rdiaz
@cnio.es,aalibes@xxxxxxx::DirectorNode_Failover
Feb 17 11:06:23 localhost heartbeat: info: Running /etc/ha.d/resource.d/IPaddr
10.2.1.36 start
Feb 17 11:06:23 localhost heartbeat: info: /sbin/ifconfig eth0:0 10.2.1.36
netmask 255.255.254.0
^Ibroadcast 10.2.1.255
Feb 17 11:06:23 localhost heartbeat: info: Sending Gratuitous Arp for
10.2.1.36 on eth0:0 [eth0]
Feb 17 11:06:23 localhost heartbeat: /usr/lib/heartbeat/send_arp -i 1010 -r 5
-p /var/lib/heartb
eat/rsctmp/send_arp/send_arp-10.2.1.36 eth0 10.2.1.36 auto 10.2.1.36
ffffffffffff
Feb 17 11:06:23 localhost heartbeat: info: Running /etc/ha.d/resource.d/IPaddr
10.2.1.82 start
Feb 17 11:06:23 localhost heartbeat: info: /sbin/ifconfig eth0:1 10.2.1.82
netmask 255.255.254.0
^Ibroadcast 10.2.1.255
Feb 17 11:06:23 localhost heartbeat: info: Sending Gratuitous Arp for
10.2.1.82 on eth0:1 [eth0]
Feb 17 11:06:23 localhost heartbeat: /usr/lib/heartbeat/send_arp -i 1010 -r 5
-p /var/lib/heartb
eat/rsctmp/send_arp/send_arp-10.2.1.82 eth0 10.2.1.82 auto 10.2.1.82
ffffffffffff
Feb 17 11:06:23 localhost heartbeat: info: Running /etc/ha.d/resource.d/IPaddr
192.168.2.52/24/e
th1/192.168.2.255 start
Feb 17 11:06:23 localhost heartbeat: info: /sbin/ifconfig eth1:0 192.168.2.52
netmask 255.255.2
55.0^Ibroadcast 192.168.2.255
Feb 17 11:06:23 localhost heartbeat: info: Sending Gratuitous Arp for
192.168.2.52 on eth1:0 [et
h1]
Feb 17 11:06:23 localhost heartbeat: /usr/lib/heartbeat/send_arp -i 1010 -r 5
-p /var/lib/heartb
eat/rsctmp/send_arp/send_arp-192.168.2.52 eth1 192.168.2.52 auto 192.168.2.52
ffffffffffff
Feb 17 11:06:23 localhost heartbeat: info: Running /etc/ha.d/resource.d/IPaddr
192.168.2.53/24/e
th1/192.168.2.255 start
Feb 17 11:06:23 localhost heartbeat: info: /sbin/ifconfig eth1:1 192.168.2.53
netmask 255.255.2
55.0^Ibroadcast 192.168.2.255
Feb 17 11:06:23 localhost heartbeat: info: Sending Gratuitous Arp for
192.168.2.53 on eth1:1 [et
h1]
Feb 17 11:06:23 localhost heartbeat: /usr/lib/heartbeat/send_arp -i 1010 -r 5
-p /var/lib/heartb
eat/rsctmp/send_arp/send_arp-192.168.2.53 eth1 192.168.2.53 auto 192.168.2.53
ffffffffffff
Feb 17 11:06:23 localhost heartbeat: info: Running /etc/init.d/nfs-common
start
Feb 17 11:06:23 localhost heartbeat: info:
Running /etc/init.d/nfs-kernel-server start
Feb 17 11:06:23 localhost kernel: Installing knfsd (copyright (C) 1996
okir@xxxxxxxxxxxx).
Feb 17 11:06:26 localhost heartbeat: info: Running /etc/ha.d/resource.d/sleep
3 start
Feb 17 11:06:29 localhost heartbeat: info: Running /etc/ha.d/resource.d/IPaddr
10.2.1.39 start
Feb 17 11:06:29 localhost heartbeat: info: /sbin/ifconfig eth0:2 10.2.1.39
netmask 255.255.254.0^Ibroadcast 10.2.1.255
Feb 17 11:06:29 localhost heartbeat: info: Sending Gratuitous Arp for
10.2.1.39 on eth0:2 [eth0]
Feb 17 11:06:29 localhost heartbeat: /usr/lib/heartbeat/send_arp -i 1010 -r 5
-p /var/lib/heartbeat/rsctmp/send_arp/send_arp-10.2.1.39 eth0 10.2.1.39 auto
10.2.1.39 ffffffffffff
Feb 17 11:06:29 localhost heartbeat: info:
Running /etc/ha.d/resource.d/checkMPIup.py start
Feb 17 11:06:30 localhost heartbeat[4669]: info: all HA resource acquisition
completed (standby)
.
Feb 17 11:06:30 localhost heartbeat[2938]: info: Standby resource acquisition
done [all].
Feb 17 11:06:30 localhost heartbeat[2938]: info: remote resource transition
completed.
Thank you very much
Andrés.
**NOTA DE CONFIDENCIALIDAD** Este correo electrónico, y en su caso los ficheros
adjuntos, pueden contener información protegida para el uso exclusivo de su
destinatario. Se prohíbe la distribución, reproducción o cualquier otro tipo de
transmisión por parte de otra persona que no sea el destinatario. Si usted
recibe por error este correo, se ruega comunicarlo al remitente y borrar el
mensaje recibido.
**CONFIDENTIALITY NOTICE** This email communication and any attachments may
contain confidential and privileged information for the sole use of the
designated recipient named above. Distribution, reproduction or any other use
of this transmission by any party other than the intended recipient is
prohibited. If you are not the intended recipient please contact the sender and
delete all copies.
|