keepalived AND monit return a value not 0 if started the second time. All
ressources are used out of the packages shipped with etch.
Curious. Could you send the ha logs ?
Of course. The logs are extracted from the following situation. Lb1 and
Lb2 are configured as active/passive with the ressources mentioned before.
Lb1 is active and I run "/etc/init.d/heartbeat stop". On Lb2 I get the log
output as follows:
--- snip ---
heartbeat: 2007/05/16_12:12:29 info: Received shutdown notice from 'lb1'.
heartbeat: 2007/05/16_12:12:29 info: Resources being acquired from lb1.
heartbeat: 2007/05/16_12:12:29 info: acquire all HA resources (standby).
heartbeat: 2007/05/16_12:12:29 info: No local resources
[/usr/lib/heartbeat/ResourceManager listkeys lb2] to acquire.
heartbeat: 2007/05/16_12:12:29 info: Acquiring resource group: lb1
IPaddr::212.101.207.36/28/eth0/212.101.207.47
IPaddr::212.101.207.37/28/eth0/212.101.207.47 keepalived monit
heartbeat: 2007/05/16_12:12:29 info: Running /etc/ha.d/resource.d/IPaddr
212.101.207.36/28/eth0/212.101.207.47 start
heartbeat: 2007/05/16_12:12:29 info: /sbin/ifconfig eth0:0 212.101.207.36
netmask 255.255.255.240 broadcast 212.101.207.47
heartbeat: 2007/05/16_12:12:29 info: Sending Gratuitous Arp for
212.101.207.36 on eth0:0 [eth0]
heartbeat: 2007/05/16_12:12:29 /usr/lib/heartbeat/send_arp -i 1010 -r 5 -p
/var/lib/heartbeat/rsctmp/send_arp/send_arp-212.101.207.36 eth0
212.101.207.36 auto 212.101.207.36 ffffffffffff
heartbeat: 2007/05/16_12:12:29 info: Running /etc/ha.d/resource.d/IPaddr
212.101.207.37/28/eth0/212.101.207.47 start
heartbeat: 2007/05/16_12:12:29 info: /sbin/ifconfig eth0:1 212.101.207.37
netmask 255.255.255.240 broadcast 212.101.207.47
heartbeat: 2007/05/16_12:12:29 info: Sending Gratuitous Arp for
212.101.207.37 on eth0:1 [eth0]
heartbeat: 2007/05/16_12:12:29 /usr/lib/heartbeat/send_arp -i 1010 -r 5 -p
/var/lib/heartbeat/rsctmp/send_arp/send_arp-212.101.207.37 eth0
212.101.207.37 auto 212.101.207.37 ffffffffffff
heartbeat: 2007/05/16_12:12:29 info: Running /etc/init.d/keepalived start
heartbeat: 2007/05/16_12:12:29 info: Running /etc/init.d/monit start
heartbeat: 2007/05/16_12:12:29 info: all HA resource acquisition completed
(standby).
heartbeat: 2007/05/16_12:12:29 info: Standby resource acquisition done
[all].
heartbeat: 2007/05/16_12:12:29 info: Running /etc/ha.d/rc.d/status status
heartbeat: 2007/05/16_12:12:29 info: Taking over resource group
IPaddr::212.101.207.36/28/eth0/212.101.207.47
heartbeat: 2007/05/16_12:12:29 info: Acquiring resource group: lb1
IPaddr::212.101.207.36/28/eth0/212.101.207.47
IPaddr::212.101.207.37/28/eth0/212.101.207.47 keepalived monit
heartbeat: 2007/05/16_12:12:29 info: Running /etc/init.d/keepalived start
heartbeat: 2007/05/16_12:12:29 ERROR: Return code 1 from
/etc/init.d/keepalived
heartbeat: 2007/05/16_12:12:29 CRIT: Giving up resources due to failure of
keepalived
heartbeat: 2007/05/16_12:12:29 info: Releasing resource group: lb1
IPaddr::212.101.207.36/28/eth0/212.101.207.47
IPaddr::212.101.207.37/28/eth0/212.101.207.47 keepalived monit
heartbeat: 2007/05/16_12:12:29 info: Running /etc/init.d/monit stop
heartbeat: 2007/05/16_12:12:34 info: Running /etc/init.d/keepalived stop
heartbeat: 2007/05/16_12:12:34 info: Running /etc/ha.d/resource.d/IPaddr
212.101.207.37/28/eth0/212.101.207.47 stop
heartbeat: 2007/05/16_12:12:34 info: /sbin/route -n del -host
212.101.207.37
heartbeat: 2007/05/16_12:12:34 info: /sbin/ifconfig eth0:1 down
heartbeat: 2007/05/16_12:12:34 info: IP Address 212.101.207.37 released
heartbeat: 2007/05/16_12:12:34 info: Running /etc/ha.d/resource.d/IPaddr
212.101.207.36/28/eth0/212.101.207.47 stop
heartbeat: 2007/05/16_12:12:34 info: /sbin/route -n del -host
212.101.207.36
heartbeat: 2007/05/16_12:12:34 info: /sbin/ifconfig eth0:0 down
heartbeat: 2007/05/16_12:12:34 info: IP Address 212.101.207.36 released
heartbeat: 2007/05/16_12:12:34 info: /usr/lib/heartbeat/mach_down:
nice_failback: foreign resources acquired
heartbeat: 2007/05/16_12:12:34 info: mach_down takeover complete.
heartbeat: 2007/05/16_12:12:34 info: mach_down takeover complete for node
lb1.
--- snap ---
Regards,
Andreas
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]