本帖最后由 licengceng 于 2016-1-7 04:40 编辑
在配置好ha集群启动的出现错误提示
[root@ha ha.d]# service heartbeat start
Starting High-Availability services: INFO: Resource is stopped
Heartbeat failure [rc=6]. Failed.
heartbeat: udpport setting must precede media statementsheartbeat[2204]: 2015/12 /25_23:53:58 ERROR: Client child command [/usr/lib/heartbeat/ipfail] is not exec utable
heartbeat[2204]: 2015/12/25_23:53:58 ERROR: Heartbeat not started: configuration error.
heartbeat[2204]: 2015/12/25_23:53:58 ERROR: Configuration error, heartbeat not s tarted.
这是因为在ha.cf里面配置了respawn hacluster /usr/lib/heartbeat/ipfail 这条命令 所以没有起来 因为在/usr/lib/heartbeat/里面就没有ipfail文件 cd /; find . -name ipfail 运行这两条命令 得到ipfail在/usr/lib64/heartbeat/ipfail 这 然后编辑、/etc/ha.d/ha.cf 把respawn hacluster /usr/lib/heartbeat/ipfail 修改成 respawn hacluster /usr/lib64/heartbeat/ipfail 在重启服务就能启动了
在配置好ha集群启动的出现错误提示
[root@ha ha.d]# service heartbeat start
Starting High-Availability services: INFO: Resource is stopped
Heartbeat failure [rc=6]. Failed.
heartbeat: udpport setting must precede media statementsheartbeat[2204]: 2015/12 /25_23:53:58 ERROR: Client child command [/usr/lib/heartbeat/ipfail] is not exec utable
heartbeat[2204]: 2015/12/25_23:53:58 ERROR: Heartbeat not started: configuration error.
heartbeat[2204]: 2015/12/25_23:53:58 ERROR: Configuration error, heartbeat not s tarted.
这是因为在ha.cf里面配置了respawn hacluster /usr/lib/heartbeat/ipfail 这条命令 所以没有起来 因为在/usr/lib/heartbeat/里面就没有ipfail文件 cd /; find . -name ipfail 运行这两条命令 得到ipfail在/usr/lib64/heartbeat/ipfail 这 然后编辑、/etc/ha.d/ha.cf 把respawn hacluster /usr/lib/heartbeat/ipfail 修改成 respawn hacluster /usr/lib64/heartbeat/ipfail 在重启服务就能启动了
编辑回复