In this tutorial i am going to install heartbeat package on centos 6.2. heartbeat basically part of Linux High Availability system it will ensure the availability of nodes that are

connected with your highly available cluster. Heartbeat is actually run specialized scripts during the startup or reboot process Heartbeat exchange packets between nodes in order to check all nodes are alive. In case of failure of primary server the secondary server can take over primary role.

`

How to Install HeartBeat on CentOs 6.2

Step-1 : Make download folder under the root.

[root@dbase1 download]# mkdir /download
[root@dbase1 download]# cd /download/

Step-2 : Download EPEL repository.

[root@dbase1 download]# wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

Step-3 : Install Epel RPM.

rpm -ivh epel-release-6-8.noarch.rpm

Step-4 : Edit epel.repo file ‘/etc/yum.repos.d/epel.repo’ change the line # 6 ‘enable=1 to enable=0’.

[root@dbase1 download]# vi /etc/yum.repos.d/epel.repo
[epel] name=Extra Packages for Enterprise Linux 6 – $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
mirrorlist=http://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
failovermethod=priority
enabled=0

Step-5 : Now we are ready to install Heartbeat with yum command.

[root@dbase1 download]# yum –enablerepo=epel install heartbeat

OutPut

Loaded plugins: fastestmirror, presto
Loading mirror speeds from cached hostfile
epel/metalink | 4.1 kB 00:00
* base: ftp.dgn.net.tr
* epel: ftp.jaist.ac.jp
* extras: ftp.dgn.net.tr
* updates: ftp.dgn.net.tr
epel | 4.0 kB 00:00
epel/primary_db | 3.7 MB 00:21
Setting up Install Process
Resolving Dependencies
–> Running transaction check
—> Package heartbeat.i686 0:3.0.4-1.el6 will be installed
–> Processing Dependency: libapphb.so.2 for package: heartbeat-3.0.4-1.el6.i686
–> Processing Dependency: PyXML for package: heartbeat-3.0.4-1.el6.i686
–> Processing Dependency: cluster-glue for package: heartbeat-3.0.4-1.el6.i686
–> Processing Dependency: resource-agents for package: heartbeat-3.0.4-1.el6.i686
–> Processing Dependency: libhbclient.so.1 for package: heartbeat-3.0.4-1.el6.i686
–> Running transaction check
—> Package PyXML.i686 0:0.8.4-19.el6 will be installed
—> Package cluster-glue.i686 0:1.0.5-2.el6 will be installed
—> Package heartbeat-libs.i686 0:3.0.4-1.el6 will be installed
—> Package resource-agents.i686 0:3.9.2-7.el6 will be installed
–> Processing Dependency: /sbin/quotaon for package: resource-agents-3.9.2-7.el6.i686
–> Processing Dependency: /sbin/quotacheck for package: resource-agents-3.9.2-7.el6.i686
–> Processing Dependency: /sbin/mount.cifs for package: resource-agents-3.9.2-7.el6.i686
–> Running transaction check
—> Package cifs-utils.i686 0:4.8.1-5.el6 will be installed
–> Processing Dependency: keyutils for package: cifs-utils-4.8.1-5.el6.i686
–> Processing Dependency: libtalloc.so.2 for package: cifs-utils-4.8.1-5.el6.i686
—> Package quota.i686 1:3.17-16.el6 will be installed
–> Processing Dependency: tcp_wrappers for package: 1:quota-3.17-16.el6.i686
–> Running transaction check
—> Package keyutils.i686 0:1.4-3.el6 will be installed
—> Package libtalloc.i686 0:2.0.1-1.1.el6 will be installed
—> Package tcp_wrappers.i686 0:7.6-57.el6 will be installed
–> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
heartbeat i686 3.0.4-1.el6 epel 161 k
Installing for dependencies:
PyXML i686 0.8.4-19.el6 base 892 k
cifs-utils i686 4.8.1-5.el6 base 43 k
cluster-glue i686 1.0.5-2.el6 base 69 k
heartbeat-libs i686 3.0.4-1.el6 epel 260 k
keyutils i686 1.4-3.el6 base 38 k
libtalloc i686 2.0.1-1.1.el6 base 18 k
quota i686 1:3.17-16.el6 base 202 k
resource-agents i686 3.9.2-7.el6 base 470 k
tcp_wrappers i686 7.6-57.el6 base 61 k

Transaction Summary
================================================================================
Install 10 Package(s)

Total download size: 2.2 M
Installed size: 7.8 M
Is this ok [y/N]: y
Downloading Packages:
Setting up and reading Presto delta metadata
Processing delta metadata
Package(s) data still to download: 2.2 M
(1/10): PyXML-0.8.4-19.el6.i686.rpm | 892 kB 00:04
(2/10): cifs-utils-4.8.1-5.el6.i686.rpm | 43 kB 00:00
(3/10): cluster-glue-1.0.5-2.el6.i686.rpm | 69 kB 00:00
(4/10): heartbeat-3.0.4-1.el6.i686.rpm | 161 kB 00:01
(5/10): heartbeat-libs-3.0.4-1.el6.i686.rpm | 260 kB 00:01
(6/10): keyutils-1.4-3.el6.i686.rpm | 38 kB 00:00
(7/10): libtalloc-2.0.1-1.1.el6.i686.rpm | 18 kB 00:00
(8/10): quota-3.17-16.el6.i686.rpm | 202 kB 00:01
(9/10): resource-agents-3.9.2-7.el6.i686.rpm | 470 kB 00:02
(10/10): tcp_wrappers-7.6-57.el6.i686.rpm | 61 kB 00:00
——————————————————————————–
Total 118 kB/s | 2.2 MB 00:18
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
Importing GPG key 0x0608B895:
Userid : EPEL (6)
Package: epel-release-6-5.noarch (installed)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
Is this ok [y/N]: y
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
Installing : PyXML-0.8.4-19.el6.i686 1/10
Installing : keyutils-1.4-3.el6.i686 2/10
Installing : libtalloc-2.0.1-1.1.el6.i686 3/10
Installing : cifs-utils-4.8.1-5.el6.i686 4/10
Installing : tcp_wrappers-7.6-57.el6.i686 5/10
Installing : 1:quota-3.17-16.el6.i686 6/10
Installing : resource-agents-3.9.2-7.el6.i686 7/10
Installing : cluster-glue-1.0.5-2.el6.i686 8/10
Installing : heartbeat-libs-3.0.4-1.el6.i686 9/10
Installing : heartbeat-3.0.4-1.el6.i686 10/10

Installed:
heartbeat.i686 0:3.0.4-1.el6

Dependency Installed:
PyXML.i686 0:0.8.4-19.el6 cifs-utils.i686 0:4.8.1-5.el6
cluster-glue.i686 0:1.0.5-2.el6 heartbeat-libs.i686 0:3.0.4-1.el6
keyutils.i686 0:1.4-3.el6 libtalloc.i686 0:2.0.1-1.1.el6
quota.i686 1:3.17-16.el6 resource-agents.i686 0:3.9.2-7.el6
tcp_wrappers.i686 0:7.6-57.el6

Complete!

Similar Posts