您好,登錄后才能下訂單哦!
系統: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進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。