Hello!
i have troubles with my heartbeat setup for director failover:
i use a serial null modem cable on /dev/ttyS0 and udp port 694 on eth0
on both nodes:
ha.cf from both machines:
keepalive 2
deadtime 10
serial /dev/ttyS0
baud 19200
udpport 694
udp eth0
debugfile /var/log/ha-debug
logfile /var/log/ha-log
logfacility local0
node edvlvsd1
node edvlvsd2
ha-log from node 1: (main director)
heartbeat: 2001/11/27_18:05:35 info: Configuration validated. Starting
heartbeat.
heartbeat: 2001/11/27_18:05:36 notice: Starting serial heartbeat on tty
/dev/ttyS0
heartbeat: 2001/11/27_18:05:36 notice: UDP heartbeat started on port 694
interface eth0
heartbeat: 2001/11/27_18:05:36 error: Cannot open /proc/ha/.control: No such
file or directory
heartbeat: 2001/11/27_18:05:46 warn: node edvlvsd2: is dead
heartbeat: 2001/11/27_18:05:46 INFO: Running /etc/ha.d/rc.d/status status
heartbeat: 2001/11/27_18:05:47 info: Requesting our resources.
heartbeat: 2001/11/27_18:05:47 INFO: Running /etc/ha.d/resource.d/IPaddr
10.17.160.30/16 status
heartbeat: 2001/11/27_18:05:47 INFO: Running /etc/ha.d/rc.d/ip-request
ip-request
heartbeat: 2001/11/27_18:06:17 Acquiring resource group: edvlvsd1
IPaddr::10.17.160.30/16
heartbeat: 2001/11/27_18:06:17 INFO: Running /etc/ha.d/resource.d/IPaddr
10.17.160.30/16 start
heartbeat: 2001/11/27_18:06:18 INFO: ifconfig eth0:0 10.17.160.30 netmask
255.255.0.0 broadcast 10.17.255.255
heartbeat: 2001/11/27_18:06:18 Sending Gratuitous Arp for 10.17.160.30 on
eth0:0 [eth0]
heartbeat: 2001/11/27_18:07:22 info: node edvlvsd2: status up
heartbeat: 2001/11/27_18:07:22 INFO: Running /etc/ha.d/rc.d/status status
ha-log from node 2: (backupnode)
heartbeat: 2001/11/27_19:03:49 info: Configuration validated. Starting
heartbeat.
heartbeat: 2001/11/27_19:03:50 notice: Starting serial heartbeat on tty
/dev/ttyS0
heartbeat: 2001/11/27_19:03:50 notice: UDP heartbeat started on port 694
interface eth0
heartbeat: 2001/11/27_19:03:50 error: Cannot open /proc/ha/.control: No such
file or directory
heartbeat: 2001/11/27_19:03:50 info: Requesting our resources.
heartbeat: 2001/11/27_19:03:51 info: No local resources
[/usr/lib/heartbeat/ResourceManager listkeys edvlvsd2]
i first startet heartbeat on node 1, and then on node 2. the logging writes
it to the files too i see.
but: when i pull the network cable from eth0:node1, the backup node 2
never takes the resource as defined in the haresources file:
edvlvsd1 IPaddr::10.17.160.30/16
(same content on both machines!)
when i start a cat </dev/ttyS0 on the backup node 2, then i can see that
the node 1 still sends up msgs to the node 2 via the nullmodem cable...
>>>
t=status
st=up
src=edvlvsd1
seq=89c
ts=3c04aa60
ld=0.01 0.05 0.01 4/44 11200
ttl=3
auth=2 534753726fa61b6a3ee786352bab965673ccb20a
<<<
i dont know why the node 2 doesnt take over the resource from node 1...
maybe im looking in the wrong direction?
thx, Chris
--
KNAPP Logistics Automation http://www.knapp.com
Ing. Christian Jölly Tel/FAX: (++43) 316 / 495 1926 / 495 394
Günter-Knapp-Straße 5-7 A-8075 Hart bei Graz
pgpVWHnj71fMj.pgp
Description: PGP signature
|