heartbeat

yum -y install pkgconfig glib2-devel python-devel pam-devel gnutls-devel swig

wget http://down1.chinaunix.net/distfiles/libnet-1.1.2.1. tar.gz

tar ..

./configure && make && make install

wget http:// down1.chinaunix.net/distfiles/heartbeat-2.0.6.tar.gz

groupadd -g 91 haclient

useradd -g haclient -u 91 -s /bin/false- M hacluster

yum install zlib-devel

./ConfigureMe configure –disable-swig –disable-snmp-subagent

make && make install

p>

cp doc/ha.cf doc/haresources doc/authkeys /etc/ha.d/

cp ldirectord/ldirectord.cf /etc/ha.d/

The configuration file is as follows

cat ha.cf | grep -v ^#

logfile /var/log/ha-log

logfacility local0

bcast eth1

keepalive 2

deadtime 30

warntime 10

initdead 120

udpport 694

auto_failback on

node solrcloud1.isgo.com //node1

node solrcloud2.isgo.com//node2

p>

ping 10.130.6.254 //Gateway

res pawn hacluster /usr/lib64/heartbeat/ipfail

apiauth ipfail gid=haclient uid=hacluster //Users and user groups

vi /etc/ha.d/haresources in the configuration file Add the following line in the

primary master node ip mysqld #Set the resource or service managed by heartbeat

cc1: warnings being treated as errors

client_lib.c:1850: error:’display_orderQ’ defined but not used

gmake[2]: *** [client_lib.lo]error 1

gmake[2]: Leaving directory`/root/ heartbeat-2.0.7/lib/hbclient’

gmake[1]: *** [all-recursive]error 1

< br>

gmake[1]: Leaving directory`/root/heartbeat-2.0.7/lib’

make: *** [all-recursive] Error 1

Then delete all -Werror in the makefile in /root/heartbeat-2.0.7/lib/hbclient (similar to error Need to delete -Werror)

Leave a Comment

Your email address will not be published.