heartbeat错误报告
1./etc/init.d/heartbeat start
Starting High-Availability services: INFO: Resource is stopped
Heartbeat failure [rc=6]. Failed.
heartbeat: udpport setting must precede media statementsheartbeat[5044]: 2014/04/18_12:53:31 ERROR: Client child command [/usr/lib/heartbeat/ipfail] is not executable
heartbeat[5044]: 2014/04/18_12:53:31 ERROR: Heartbeat not started: configuration error.
heartbeat[5044]: 2014/04/18_12:53:31 ERROR: Configuration error, heartbeat not started.
解决: vim ha.cf
…
respawn hacluster /usr/lib64/heartbeat/ipfail #注意这个不是lib,64位的是lib64
…
2./etc/init.d/heartbeat start
Starting High-Availability services: INFO: Resource is stopped
Heartbeat failure [rc=6]. Failed.
heartbeat: udpport setting must precede media statementsheartbeat: baudrate setting must precede media statementsheartbeat[5376]: 2014/04/18_13:20:44 info: Pacemaker support: false
heartbeat[5376]: 2014/04/18_13:20:44 WARN: Logging daemon is disabled --enabling logging daemon is recommended
heartbeat[5376]: 2014/04/18_13:20:44 info: **************************
heartbeat[5376]: 2014/04/18_13:20:44 info: Configuration validated. Starting heartbeat 3.0.4
heartbeat[5376]: 2014/04/18_13:20:44 ERROR: Bad nodename in /etc/ha.d//haresources [server34.example.com]
heartbeat[5376]: 2014/04/18_13:20:44 ERROR: Configuration error, heartbeat not started.
解决:vim haresources
…
server197.example.comIPaddr::192.168.0.119/24/eth0 httpd
#主节点名写错,这是hd.cf中写集群名字时的第一个
…
3.ldirectory是独立于heartbeat的一个服务,所以它有自己的启动项.但是在heartbeat设计的时候已经为ldirectory准备了它接口,可在haresource这个文件里直接调用它.
server197.example.com IPaddr::192.168.0.119/24/eth0 httpdldirectord
#注意ldirectory启动的需要一个perl脚本的支持:yum install perl-IO-Socket-INET6 -y