heartbeat-ubuntu
cp doc/{ha.cf,haresources,authkeys} /etc/ha.d/cat /etc/ha.d/authkeys | grep -v ^# | grep -v ^$
auth 3
3 md5 Hello!
cat /etc/ha.d/ha.cf | grep -v ^# | grep -v ^$
debugfile /var/log/ha-debug
logfile /var/log/ha-log
logfacility local0
keepalive 2
deadtime 30
warntime 10
initdead 90
udpport 694
#hamaster配置
ucast eth0 192.168.8.119
#haslave配置
ucast eth0 192.168.8.106
auto_failback on
node hamaster
node haslave
ping 192.168.8.1
respawn hacluster /usr/libexec/heartbeat/ipfail
apiauth ipfail gid=hacluster uid=hacluster
cat /etc/ha.d/haresources | grep -v ^# | grep -v ^$
hamaster 192.168.8.120/24/eno16777984:0 nginx
页:
[1]