heartbeat installation


Configuration steps 1. Unzip cd /Packages tar -jxf Packages.tar.bz2
in the dacp-open directory 2. Create a directory  mkdir -pv /var/ftp/pub 3. Copy the entire package to the newly created folder cp -R Packages /var/ftp/pub/ 4. Install the package createrepo-0.9.9-17.el6.noarch.rpm, there are dependent packages, first install the dependent packages rpm -ivh deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm rpm -ivh python-deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm rpm -ivh createrepo-0.9.9-17.el6.noarch.rpm 5. Operate (principle unknown) createrepo -g /var/ftp/ pub/Packages/cda5429be6f36ce1348e8f897f4fc96aa00d5727c75e9e5a0b5dc40d22a51116-comps-rhel6-Server.xml /var/ftp/pub/Packages/ 6. Configure rhel-source.repo, first backup cd /etc/yum.repos.d/ cp rhel-source.repo -source.repo.bak




















vim rhel-source.repo
Add the following code to rhel-source.repo:
[myyum]
name=RedHat Myyum
baseurl=file:///var/ftp/pub/Packages/
enabled=1
gpgcheck=1
gpgkey=file:/ //etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

7. Add yum group
yum grouplist

8. Install ha all dependent rpm packages with
yum yum install -y glib2-devel bzip2-devel libxml2 libxml2 -devel libtool-ltdl-devel buuid-devel automake autoconf docbook-style-xsl libxslt-devel gettext libaio-devel resource-agents 

9. Install two other rpms not installed
cd /root/dacp-open/Packages
rpm -ivh libtool -2.2.6-15.5.el6.x86_64.rpm
rpm -ivh libuuid-devel-2.17.2-12.9.el6.x86_64.rpm

10. Create user
groupadd haclient  first
useradd -g haclient hacluster

11. Enter heartbeat, decompress and install
1) Decompress
tar -zxf Reusable-Cluster-Components-glue--02bdcf58f9a0.tar.gz
tar -zxf resource-agents-3.9.5.tar.gz
tar -zxf Heartbeat-3-0-545554f6fc0a.tar.gz
tar -jxf Pacemaker-1-0-c3869c00c759.tar.bz2  
2) Install 1
cd Reusable-Cluster-Components-glue--02bdcf58f9a0
./autogen.sh
./configure
make
make install
3) install 2
cd ../resource-agents-3.9.5
./autogen.sh
./configure
make
make install
4) install 3
cd ../Heartbeat-3-0-545554f6fc0a ./bootstrap
./ConfigureMe
configure
make
make install
5) Install 4
cd ../Pacemaker-1-0-c3869c00c759
./autogen.sh
./configure
make
make install

 service heartbeat start
12. Configure ha, cp some files under cd /usr/share/doc to /etc/ha.d/
cd /usr/share/doc/heartbeat
cp ha.cf authkeys haresources /etc/ha.d/
cd /etc/ha.d/
modify the file ha.cf haresources authkeys
and enable authkeys
chmod 600 authkeys
13. Copy all files to /usr/etc/ha.d
cp -R * /usr/etc/ha.d

14. Modify the hosts file
vi /etc/hosts and

add
10.17.254.121 c4obidf01 ----- ip hostname
10.17.254.122 c4obidf02

15. Start
 service heartbeat start again

 service heartbeat stop

********
Note: There is a ucast configuration item in ha.cf, which should be changed to the same as the local ip, and other configuration files are the same as active and standby

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326986732&siteId=291194637