|
cd heartbeat-2.0.3
1061 ls
1062 ./ConfigureMe configure
1063 make
1064 make install
3. 编辑Heartbeat HA的三个配置文件,配置MySQL的HA服务,两台服务器配置方法相同。
1067 cd /etc/ha.d
1068 cp /root/heartbeat-2.0.3/doc/ha.cf .
1069 vi ha.cf
logfile /var/log/ha-log # Log file
keepalive 2 # Heartbeat interval
deadtime 30 # How long to say the server's death
warntime 10
udpport 694 # Heartbeat port
bcast eth0 # Linux Heartbeat interface
auto_failback on # How to do when the failure server comes back
node mysql5 # How many servers in the HA system
node mysql6
ping 10.4.66.2 #ping a robust server to ensure the server's health;
#here is the default gateway
respawn hacluster /usr/lib/heartbeat/ipfail
配置心跳的加密,本次测试因为采用交叉电缆,所以采用最简单的crc方式:
1076 cp /root/heartbeat-2.0.3/doc/authkeys .
1077 vi authkeys
auth 1
1 crc
1078 chmod 600 authkeys
1073 cp /root/heartbeat-2.0.3/doc/haresources .
配置资源,本次测试mysql服务的迁移,配置资源文件是关键。
上一页 [1] [2] [3] [4] [5] [6] 下一页
|