Install heartbeat with the original code
Three packages are required.
1. groupadd haclient
2. useradd-G haclient hacluster
Heartbeat-3-0-7e3a82377fa8.tar.bz2
Reusable-Cluster-Components-glue--glue-1.0.9.tar.bz2
ClusterLabs-resource-agents-v3.9.2-0-ge261943.tar
Centos6.5
1 install glue
Tar -jxvfreusable-cluster-components-glue--glue-1.0.9.tar.bz2
Cdreusable-cluster-components-glue-1.0.9
./Autogen. Sh
Error
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/47/A1/wKioL1P9LxLT7bd3AAFXArIqtu0678.jpg "Title =" image001.png "alt =" wkiol1p9lxlt7bd3aafxariqtu0678.jpg "/>
Yum install Autoconf-y
Error
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/47/A1/wKioL1P9LyXTu48HAAFjBEQh7Sg420.jpg "Title =" image002.png "alt =" wkiol1p9lyxtu48haafjbeq%sg4%jpg "/>
Yum install automake-y
Error
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/47/A0/wKiom1P9LiKji7ieAAFM3BFD79o007.jpg "Title =" image003.png "alt =" wkiom1p9likji7ieaafm3bfd79o007.jpg "/>
Yum install libtool-y
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/47/A0/wKiom1P9LkaC-bUGAAEMEXkNfIY152.jpg "Title =" image004.png "alt =" wKiom1P9LkaC-bUGAAEMEXkNfIY152.jpg "/>
Successful
./Configure
Error
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/47/A0/wKiom1P9LlOgtkO3AACgInw3esY832.jpg "Title =" image005.png "alt =" wkiom1p9llogtko3aacginw3esy832.jpg "/>
Yum install glib2-devel-y
Error
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/47/A1/wKioL1P9L3qR39OeAACD5tke5gs357.jpg "Title =" image006.png "alt =" wkiol1p9l3qr39oeaacd5tke5gs357.jpg "/>
Yum install libxml2-y
Yum install libxml2-devel-y
Error
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/47/A0/wKiom1P9LnLBEHnLAACH2s5Zf5Y735.jpg "Title =" image007.png "alt =" wkiom1p9lnlbehnlaach2s5zf5y735.jpg "/>
Yum install bzip2-devel glib2-devel-y
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/47/A0/wKiom1P9LoeCsZDCAAS7bx4q7C0125.jpg "Title =" image008.png "alt =" wkiom1p9loecszdcaas7bx4q7c0125.jpg "/>
Successful
Make
Error
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/47/A2/wKioL1P9L9SB-QssAAF2xqq3BLo195.jpg "Title =" image009.png "alt =" wKioL1P9L9SB-QssAAF2xqq3BLo195.jpg "/>
Yum install-y libtool-ltdl-devel
Make clean
./Configure display 650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/47/A0/wKiom1P9Lu3CnVAHAAArE5rKRIo896.jpg "Title =" image010.png "alt =" wkiom1p9lu3cnvahaw.e5rkrio896.jpg "/> indicates successful
Make
Error
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/47/A2/wKioL1P9MBqxNQO4AATavFoY5WQ720.jpg "Title =" image011.png "alt =" wkiol1p9mbqxnqo4aatavfoy5wq71_jpg "/>
Yum install libuuid-devel-y
Make clean
./Configure650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/47/A2/wKioL1P9MDuT6hm6AABVwXc9lnU451.jpg "Title =" image012.png "alt =" wkiol1p9mdut6hm6aabvwxc9lnu451.jpg "/>
Make successful only when luuid is available
Make
Error
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/47/A2/wKioL1P9MEvCuZGiAAR8xZyit1Y876.jpg "Title =" image013.png "alt =" wkiol1p9mevcuzgi1_8xzyit1y876.jpg "/>
Yum install docbook-style-XSL-y
Make clean
./Configure
Make
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/47/A2/wKioL1P9MFzhgmenAAN1Eh_eIWs360.jpg "Title =" image014.png "alt =" wkiol1p9mfzhgmenaan1eh_eiws360.jpg "/>
Successful
Make install
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/47/A0/wKiom1P9L3jiim4bAAHDEL8jJWQ218.jpg "Title =" image015.png "alt =" wkiom1p9l3jiim4baahdel8j1_q218.jpg "/>
Successful
2. Install the agent
Tar-zxvf ClusterLabs-resource-agents-v3.9.2-0-ge261943.tar.gz
CD ClusterLabs-resource-agents-b735277/
./Autogen. Sh
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/47/A2/wKioL1P9MLuBbYGjAAMRu533mU8338.jpg "Title =" image016.png "alt =" wkiol1p9mlubbygjaamru533mu8338.jpg "/>
Successful
./Configure
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/47/A0/wKiom1P9L7aikp_ZAAPh7p0OrUw287.jpg "Title =" image017.png "alt =" wkiom1p9l7aikp_zaap1_p0oruw287.jpg "/>
Successful
Make
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/47/A2/wKioL1P9MPSixL42AAGtkb2uGtw156.jpg "Title =" image018.png "alt =" wkiol1p9mpsixl42aagtkb2ugtw156.jpg "/>
Successful
Make install
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/47/A0/wKiom1P9L-rRHOyCAAGFtxm65wQ105.jpg "Title =" image019.png "alt =" wKiom1P9L-rRHOyCAAGFtxm65wQ105.jpg "/>
Successful
3. Install heartbeat
Tar -jxvfheartbeat-3-0-7e3a82377fa8.tar.bz2
CD Heartbeat-3-0-7e3a82377fa8
./Bootstrap
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/47/A0/wKiom1P9L_7i_wLvAABql7tfU80225.jpg "Title =" image020.png "alt =" wkiom1p9l_7i_wlvaabql7tfu80225.jpg "/>
Successful
./Configureme configure
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/47/A2/wKioL1P9MS6CpEN4AAK0nYHzQM0145.jpg "Title =" image021.png "alt =" wkiol1p9ms6cpen4aak0nyhzqm0145.jpg "/>
Successful
Make
Error
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/47/A0/wKiom1P9MCfTytLdAASC4te1Nnk969.jpg "Title =" image022.png "alt =" wkiom1p9mcftytldaasc4te1nnk969.jpg "/>
Solution
Solution: Heartbeat-3-0-7e3a82377fa8/lib/plugins/hbcomm/ucast. c
This file seems to be faulty. Delete the 468 rows of int I = 1; you should be able to make it. (This is really a pitfall)
Make
Error
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/47/A0/wKiom1P9MNyT33wZAAGC8VCeyRw205.jpg "Title =" image023.png "alt =" wkiom1p9mnyt33wzaagc8vceyrw205.jpg "/>
Solution
Yum install docbook-style-XSL
Yum install libxslt-devel-y
Make clean
./Configureme configure
Make
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/47/A2/wKioL1P9Mgnw8PiDAAK-o49quos007.jpg "Title =" image024.png "alt =" wKioL1P9Mgnw8PiDAAK-o49quos007.jpg "/>
Successful
Make install
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/47/A0/wKiom1P9MQzT0h7qAAGheS9rUmM400.jpg "Title =" image025.png "alt =" wkiom1p9mqzt01_qaaghes9rumm400.jpg "/>
Successful
Copy the files under the doc to the/etc/ha. d/directory:
Cp doc/ha. Cf DOC/haresource DOC/authkeys/etc/ha. d/
Configuration
CD/etc/ha. d/
Ls
Cat readme
CD/usr/share/doc/heartbeat-3.0.4/
CP ha. cfharesources authkeys/etc/ha. d/
CD/etc/ha. d/
Change VI ha. cf as follows:
Logfile/var/log/ha-Log
Logfacility local0
Keepalive2
Deadtime30
Warntime 10
Initdead 60
Udpport 694)
Bcast eth0 broadcast with eth0
Node node1 (Master host above)
Node node2 (uname-N View)
Ping 192.168.0.254 # Gateway
Respawn hacluster/usr/lib64/heartbeat/ipfail
Apiauth ipfail gid = hacluster uid = hacluster
VI authkeys
Auth 1
1 CRC
Chmod 600 authkeys
VI haresources
Server51.example.com ipaddr: 192.168.0.92 (VIP)/24/eth0 httpd
Httpd must be installed on the two ha hosts.
SCP ha. Cf authkeys haresources192.168.0.194:/etc/ha. d/
/Etc/init. d/heartbeat start
/Etc/init. d/heartbeat start
Install heartbeat 3.x source code