You must install glue before installing heterglue to install heartbeat. Yuminstallautoconfautomakelibtoolglib2-devellibxml2-develbzip2-devele2fsprogs-devellibxslt-develgroupaddhaclientuseradd-ghaclienthaclustercd/tmpwget install cluster glue
Install glue before installing heartbeat.
Yum install autoconf automake libtool glib2-devel libxml2-devel bzip2-devel e2fsprogs-devel libxslt-devel
Groupadd haclient
Useradd-g haclient hacluster
Cd/tmp
Wget http://hg.linux-ha.org/glue/archive/glue-1.0.9.tar.bz2
Tar xjf glue-1.0.9.tar.bz2
Cd Reusable-Cluster-Components-glue -- glue-1.0.9
./Autogen. sh
./Configure -- prefix =/usr/local/heartbeat
Make & make install
Install Resource Agents
Cd/tmp
Wget -- no-check-certificate https://github.com/ClusterLabs/resource-agents/tarball/v3.9.2
Tar xzf v3.9.2
Cd ClusterLabs-resource-agents-b735277/
./Autogen. sh
Export CFLAGS = "$ CFLAGS-I/usr/local/heartbeat/include-L/usr/local/heartbeat/lib"
./Configure -- prefix =/usr/local/heartbeat
Ln-s/usr/local/heartbeat/lib/*/lib/
Make & make install
Install Heartbeat
Cd/tmp
Wget http://hg.linux-ha.org/heartbeat-STABLE_3_0/archive/7e3a82377fa8.tar.bz2
Tar xjf 7e3a82377fa8.tar.bz2
Cd Heartbeat-3-0-7e3a82377fa8/
./Bootstrap
Export CFLAGS = "$ CFLAGS-I/usr/local/heartbeat/include-L/usr/local/heartbeat/lib"
./Configure -- prefix =/usr/local/heartbeat
Make & make install
Cp doc/ha. cf/usr/local/heartbeat/etc/ha. d/
Cp doc/haresources/usr/local/heartbeat/etc/ha. d/
Cp doc/authkeys/usr/local/heartbeat/etc/ha. d/
Cp heartbeat/init. d/heartbeat/etc/rc. d/init. d/
Chkconfig -- add heartbeat
Chkconfig heartbeat on
Chmod 600/usr/local/heartbeat/etc/ha. d/authkeys
Sed-I's #/usr/lib/ocf #/usr/local/heartbeat/usr/lib/ocf # g'/usr/local/heartbeat/etc/ha. d/shellfuncs
Sed-I's #/usr/lib/ocf #/usr/local/heartbeat/usr/lib/ocf # g'/usr/local/heartbeat/usr/lib/ocf /lib // heartbeat/ocf-shellfuncs
Sed-I's #/usr/lib/ocf #/usr/local/heartbeat/usr/lib/ocf # g'/usr/local/heartbeat/etc/ha. d/resource. d // hto-mapfuncs
Debugging
1. error: glue_config.h: 99: 1: error: "HA_HBCONF_DIR" redefined
Solution: http://www.centos.bz/2012/02/glue_config-h991-error-ha_hbconf_dir-redefined/
2. the configure. ac: 9: error: Autoconf version 2.63 or higher is required.
Solution: http://www.centos.bz/2012/03/configure-ac9-error-autoconf-version-2-63-or-higher-is-required/
3. error configure. ac: 63: require Automake 1.10.1, but have 1.9.6
Solution: http://www.centos.bz/2012/03/configure-ac63-require-automake-1-10-1-but-have-1-9-6/