系统:xen安装操作篇,安装的vm0x-centos系统
已安装包:drbd配置文档软件包安装
安装依赖资源包:
yum install tix tix-devel tix-doc lm_sensors lm_sensors-devel net-snmp-utils net-snmp net-snmp-perl tkinter OpenIPMI* libxslt libxslt-devel gettext gettext-devel -y |
添加HA集群用户-组
groupadd haclient useradd -g haclient hacluster |
下载软件包
mkdir /root/srccd /root/srcwget http://hg.linux-ha.org/glue/archive/glue-1.0.9.tar.bz2wget -O agents-v3.9.2.tar https://codeload.github.com/ClusterLabs/resource-agents/legacy.tar.gz/v3.9.2wget http://hg.linux-ha.org/heartbeat-STABLE_3_0/archive/7e3a82377fa8.tar.bz2 |
编译安装
tar jxvf glue-1.0.9.tar.bz2cd Reusable-Cluster-Components-glue--glue-1.0.9/./autogen.sh ./configure makemake installcp ./logd/logd.cf /etc/cd ..tar xvf agents-v3.9.2.tarcd ClusterLabs-resource-agents-b735277 ./autogen.sh ./configure makemake installcd ..tar jxvf 7e3a82377fa8.tar.bz2cd Heartbeat-3-0-7e3a82377fa8 ./bootstrap ./ConfigureMe configuremakemake installmkdir /usr/lib/heartbeat/cp ./contrib/ipfail/.libs/ipfail /usr/lib/heartbeat/ |
基本配置
cp /usr/share/doc/heartbeat/ha.cf /etc/ha.d/cp /usr/share/doc/heartbeat/haresources /etc/ha.d/cp /usr/share/doc/heartbeat/authkeys /etc/ha.d/chmod 600 /etc/ha.d/authkeyscp /usr/etc/ha.d/shellfuncs /etc/ha.d/cp /usr/etc/ha.d/resource.d/ldirectord /etc/ha.d/resource.d/rm -rf /usr/etc/ha.d/ln -sv /etc/ha.d /usr/etc/ha.d |
设置开机启动
chkconfig --add heartbeatchkconfig heartbeat on |
安装完毕,设置/etc/ha.d/下的ha.cf, haresources, authkeys三个配置文件即可使用。
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。