heartbeat问题

heartbeat在开机启动的时候成功了,但是hearesouce里配置的服务却没有启动起来,一定要等到ha.cf里配置的initdead 时间过后才会启动hearesouce里配置的服务,实在是搞不懂了。

日志如下:
这里是启动日志:
heartbeat[2646]: 2008/09/04_23:27:57 info: Version 2 support: false
heartbeat[2646]: 2008/09/04_23:27:57 WARN: Logging daemon is disabled --enabling logging daemon is recommended
heartbeat[2646]: 2008/09/04_23:27:57 info: **************************
heartbeat[2646]: 2008/09/04_23:27:57 info: Configuration validated. Starting heartbeat 2.1.3
heartbeat[2647]: 2008/09/04_23:27:57 info: heartbeat: version 2.1.3
heartbeat[2647]: 2008/09/04_23:27:57 info: Heartbeat generation: 1219943846
heartbeat[2647]: 2008/09/04_23:27:57 info: glib: ucast: write socket priority set to IPTOS_LOWDELAY on eth0
heartbeat[2647]: 2008/09/04_23:27:57 info: glib: ucast: bound send socket to device: eth0
heartbeat[2647]: 2008/09/04_23:27:57 info: glib: ucast: bound receive socket to device: eth0
heartbeat[2647]: 2008/09/04_23:27:57 info: glib: ucast: started on port 694 interface eth0 to 192.168.107.254
heartbeat[2647]: 2008/09/04_23:27:57 info: G_main_add_TriggerHandler: Added signal manual handler
heartbeat[2647]: 2008/09/04_23:27:57 info: G_main_add_TriggerHandler: Added signal manual handler
heartbeat[2647]: 2008/09/04_23:27:57 info: G_main_add_SignalHandler: Added signal handler for signal 17
heartbeat[2647]: 2008/09/04_23:27:57 info: Local status now set to: 'up'

这是过了initdead配置的时间60秒后,heartbeat启动我配置hearesouce里的服务:
heartbeat[2647]: 2008/09/04_23:28:57 WARN: node bdr: is dead
heartbeat[2647]: 2008/09/04_23:28:57 info: Comm_now_up(): updating status to active
heartbeat[2647]: 2008/09/04_23:28:57 info: Local status now set to: 'active'
heartbeat[2647]: 2008/09/04_23:28:57 WARN: No STONITH device configured.
heartbeat[2647]: 2008/09/04_23:28:57 WARN: Shared disks are not protected.
heartbeat[2647]: 2008/09/04_23:28:57 info: Resources being acquired from bdr.
harc[2656]: 2008/09/04_23:28:58 info: Running /etc/ha.d/rc.d/status status
heartbeat[2657]: 2008/09/04_23:28:58 info: Local Resource acquisition completed.
mach_down[2706]: 2008/09/04_23:28:58 info: /usr/share/heartbeat/mach_down: nice_failback: foreign resources acquired
mach_down[2706]: 2008/09/04_23:28:58 info: mach_down takeover complete for node bdr.
heartbeat[2647]: 2008/09/04_23:28:58 info: mach_down takeover complete.
heartbeat[2647]: 2008/09/04_23:28:58 info: Initial resource acquisition complete (mach_down)
harc[2745]: 2008/09/04_23:28:58 info: Running /etc/ha.d/rc.d/ip-request-resp ip-request-resp
ip-request-resp[2745]: 2008/09/04_23:28:58 received ip-request-resp lvs_DR.sh OK yes
ResourceManager[2766]: 2008/09/04_23:28:58 info: Acquiring resource group: dr lvs_DR.sh ldirectord
ResourceManager[2766]: 2008/09/04_23:28:59 info: Running /etc/ha.d/resource.d/lvs_DR.sh start
ResourceManager[2766]: 2008/09/04_23:29:02 info: Running /etc/ha.d/resource.d/ldirectord start
heartbeat[2647]: 2008/09/04_23:29:08 info: Local Resource acquisition completed. (none)
heartbeat[2647]: 2008/09/04_23:29:08 info: local resource transition completed.

这个启动了,一切都正常了。为什么不在开始启动heartbeat的时候就把配置好的hearesouce里的服务启动起来呢?

Forums:

没有碰到吗?

好像就是这样的,那个参数是个检查的,你可以把那个设置的小一些

抛弃Hb,用keepalived吧

randomness