CentOS编译安装Heartbeat
安装cluster glue安装heartbeat之前需要安装glue。[*]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
安装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
安装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
支持一下:lol 怀揣两块,胸怀500万! 男人与女人,终究也只是欲望的动物吧!真的可以因为爱而结合吗?对不起,我也不知道。。 女,喜甜食,甚胖!该女有一癖好:痛恨蚂蚁,见必杀之。问其故曰:这小东西,那么爱吃甜食,腰还那么细! 我抢、我抢、我抢沙发~ 人生重要的不是所站的位置,而是所朝的方向!
页:
[1]