|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
如果您觉得本篇CentOSLinux教程讲得好,请记得点击右边漂浮的分享程序,把好文章分享给你的小伙伴们!装置clusterglue
装置heartbeat之前必要装置glue。
yuminstallautoconfautomakelibtoolglib2-devellibxml2-develbzip2-devele2fsprogs-devellibxslt-devel
groupaddhaclient
useradd-ghaclienthacluster
cd/tmp
wgethttp://hg.linux-ha.org/glue/archive/glue-1.0.9.tar.bz2
tarxjfglue-1.0.9.tar.bz2
cdReusable-Cluster-Components-glue--glue-1.0.9
./autogen.sh
./configure--prefix=/usr/local/heartbeat
make&&makeinstall 装置ResourceAgents
cd/tmp
wget--no-check-certificatehttps://github.com/ClusterLabs/resource-agents/tarball/v3.9.2
tarxzfv3.9.2
cdClusterLabs-resource-agents-b735277/
./autogen.sh
exportCFLAGS="$CFLAGS-I/usr/local/heartbeat/include-L/usr/local/heartbeat/lib"
./configure--prefix=/usr/local/heartbeat
ln-s/usr/local/heartbeat/lib/*/lib/
make&&makeinstall 装置Heartbeat
cd/tmp
wgethttp://hg.linux-ha.org/heartbeat-STABLE_3_0/archive/7e3a82377fa8.tar.bz2
tarxjf7e3a82377fa8.tar.bz2
cdHeartbeat-3-0-7e3a82377fa8/
./bootstrap
exportCFLAGS="$CFLAGS-I/usr/local/heartbeat/include-L/usr/local/heartbeat/lib"
./configure--prefix=/usr/local/heartbeat
make&&makeinstall
cpdoc/ha.cf/usr/local/heartbeat/etc/ha.d/
cpdoc/haresources/usr/local/heartbeat/etc/ha.d/
cpdoc/authkeys/usr/local/heartbeat/etc/ha.d/
cpheartbeat/init.d/heartbeat/etc/rc.d/init.d/
chkconfig--addheartbeat
chkconfigheartbeaton
chmod600/usr/local/heartbeat/etc/ha.d/authkeys
sed-is#/usr/lib/ocf#/usr/local/heartbeat/usr/lib/ocf#g/usr/local/heartbeat/etc/ha.d/shellfuncs
sed-is#/usr/lib/ocf#/usr/local/heartbeat/usr/lib/ocf#g/usr/local/heartbeat/usr/lib/ocf/lib//heartbeat/ocf-shellfuncs
sed-is#/usr/lib/ocf#/usr/local/heartbeat/usr/lib/ocf#g/usr/local/heartbeat/etc/ha.d/resource.d//hto-mapfuncs 除错
1、毛病:glue_config.h:99:1:error:“HA_HBCONF_DIR”redefined
办理***:http://www.centos.bz/2012/02/glue_config-h991-error-ha_hbconf_dir-redefined/
2、毛病configure.ac:9:error:Autoconfversion2.63orhigherisrequired
办理***:http://www.centos.bz/2012/03/configure-ac9-error-autoconf-version-2-63-or-higher-is-required/
3、毛病configure.ac:63:requireAutomake1.10.1,buthave1.9.6
办理***:http://www.centos.bz/2012/03/configure-ac63-require-automake-1-10-1-but-have-1-9-6/
欢迎大家来到仓酷云论坛! |
|