您好,登錄后才能下訂單哦!
系統(tǒng):xen安裝操作篇,安裝的vm0x-centos系統(tǒng)
已安裝包: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 |
設(shè)置開機啟動
chkconfig --add heartbeatchkconfig heartbeat on |
安裝完畢,設(shè)置/etc/ha.d/下的ha.cf, haresources, authkeys三個配置文件即可使用。
免責聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。