欢迎来到天天文库
浏览记录
ID:8807423
大小:31.34 KB
页数:6页
时间:2018-04-08
《centos6.5下heartbeat安装》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库。
1、CentOS6.5下可以复制粘贴的glue+Cluster-Resource-Agent+Heartbeat+Pacemaker+Pacemaker-Python-GUI安装手册准备环境:ip环境:192.168.0.150node1 192.168.0.151node2 10.1.1.1priv1 10.1.1.2priv2添加用户:groupadd haclientuseradd -g haclient hacluster环境变量:exportPREFIX=/u
2、sr/local/haexportLCRSODIR=$PREFIX/libexec/lcrsoexportCLUSTER_USER=haclusterexportCLUSTER_GROUP=haclientexportCFLAGS="$CFLAGS-I$PREFIX/include-L$PREFIX/lib"getent group${CLUSTER_GROUP}>/dev/null
3、
4、 groupadd -r${CLUSTER_GROUP}getent passwd ${CLUSTER_USE
5、R}>/dev/null
6、
7、 useradd -r-g${CLUSTER_GROUP}-d/var/lib/heartbeat/cores/hacluster -s/sbin/nologin -c"clusteruser"${CLUSTER_USER}source.bash_profile 生效才能下一步一定要能上网编译的时候安装软件1、安装glue(中间层)# wgethttp://hg.linux-ha.org/glue/archive/glue-1.0.7.tar.bz2 #yuminst
8、allautoconf automake libtool glib2-devel bzip2-develglib2-devel libxml2libxml2-devel docbook-style-xsl libtool-ltdl-devel -y#tarxvfglue-1.0.7.tar.bz2 #cdReusable-Cluster-Components-glue--glue-1.0.7/#./autogen.sh#./configure--prefix=$PREFIX--with-dae
9、mon-user=${CLUSTER_USER}--with-daemon-group=${CLUSTER_GROUP}--enable-fatal-warnings=no LIBS='/lib/libuuid.so.1' (64位lib64)#make #yuminstallgcc-c++-y#makeinstallhttp://www.07net01.com/storage_networking/jiqun_zhi_LVS___Heartbeat_576281_1378400829.htm
10、lhttp://www.linuxidc.com/Linux/2012-11/73620.htm 解决安装问题2、安装resourceagent(本地资源管理,执行本地命令)#tarxvfCluster-Resource-Agents-5ae70412eec8.tar.bz2 #cdCluster-Resource-Agents-5ae70412eec8# ./autogen.sh # ./configure--prefix=$PREFIX--enable-fatal-warnings=no
11、LIBS='/lib/libuuid.so.1' (64位lib64)#make #ln-s/usr/local/ha/lib/libplumb.so.2/lib/libplumb.so.2 # ldconfig(更新库)#makeclean#make#makeinstall3、安装heartbeat(集群通信)# ./bootstrap#./configure--prefix=$PREFIX--enable-fatal-warnings=no LIBS='/lib/libuuid.so.1'
12、 #make#vilib/plugins/HBcomm/ucast.c 删除#makeclean#makemakeinstall4、安装pacemark(迁移资源管理)#tarxvfPacemaker-1-0-c3869c00c759.tar.bz2 #cdPacemaker-1-0-c3869c00c759# ./autogen.sh#./configure--prefix=$PREFIX--with-lcrso-dir=$LCRSODIR--enable-fatal-warnings=noL
此文档下载收益归作者所有