一、 下载源码包
http://www.linux-ha.org/wiki/Downloads 下载三个源码包
Heartbeat 3.0.6 Cluster Glue 1.0.12 Resource Agents 3.9.6
958e11be8686.tar.bz2 0a7add1d9996.tar.bz2 resource-agents-3.9.6.tar.gz
二、配置基础依赖
yum install -y bzip2 autoconf automake libtool glib2-devel libxml2-devel bzip2-devel libtool-ltdl-devel asciidoc libuuid-devel
三、 安装编译
- 安装Cluster Glue
# tar -jxvf 0a7add1d9996.tar.bz2
# cd Reusable-Cluster-Components-glue–0a7add1d9996/
# groupadd haclient
# useradd -g haclient hacluster
# ./autogen.sh
# ./configure --prefix=/usr/local/heartbeat/
# make && make install
- 安装Resource Agents
# tar xf v3.9.6.tar.gz
# cd resource-agents-3.9.6/
# ./autogen.sh
# export CFLAGS="$CFLAGS -I/usr/local/heartbeat/include -L/usr/local/heartb