Networking, Programming and Graphics - Tutorials
ONLINEHOWTO.net Tutorials Category

Install and configure heartbeat version 2

Type: Code Networking, Programming and Graphics - Tutorials
Networking, Programming and Graphics - Tutorials
Level: Beginner Networking, Programming and Graphics - Tutorials 
Networking, Programming and Graphics - Tutorials
Date: 2009-Sep-30
Networking, Programming and Graphics - Tutorials
Visited: 1267 times
Networking, Programming and Graphics - Tutorials
Rating: Networking, Programming and Graphics - Tutorials
Networking, Programming and Graphics - Tutorials
Published: Stephen Think

The following tutorial will explain how to install and configure heartbeat version 2. The Heartbeat program is one of the core components of the Linux-HA (High-Availability Linux) project

The installation is pretty simple and straight forward process. For the purposes of this tutorial we have used RedHat Enterprise Linux 4.

Dependency package is: libnet-1.0.2-2.2.el4.rf.i386.rpm

or
wget http://download.opensuse.org/repositories/server:/ha-clustering/RHEL_4/i386/libnet-1.1.2.1-1.1.i386.rpm - for RHEL4

wget http://download.opensuse.org/repositories/server:/ha-clustering/RHEL_4/src/libnet-1.1.2.1-1.1.src.rpm


Install and configure HEARTBEAT - 2.1.3


mkdir /usr/local/src/packs
cd /usr/local/src/packs/
wget http://linux-ha.org/download/heartbeat-2.1.3.tar.gz
tar â€"zxvf heartbeat-2.1.3.tar.gz
cd heartbeat-2.1.3
./ConfigureMe configure
make
make install
groupadd haclient
useradd -g haclient haclient

Use just 1 white space between parameters in haresources

In case of fail with reason user id hacluster not configured add

groupadd hacluster
useradd -g hacluster hacluster

Check in : /etc/passwd that :
1. pegasus:x:66:65:tog-pegasus OpenPegasus WBEM/CIM services:/var/lib/Pegasus:/sbin/nologin
2. hacluster:x:17:65::/home/hacluster:/sbin/nologin
3. haclient:x:500:65::/home/haclient:/bin/bash


and in : /etc/group that :

1. pegasus:x:66:
2. haclient:x:65
3. hacluster:x:500:
Configuration file examples for heartbeat version 1.x can be found in this tutorial. The only differences in ha.cffile is that you need to uncomment the line :

crm yes
The utility that will prepare the configuration for heartbeat in a 2.x style is haresources2cib.py

Go in /etc/ha.d directory and run this command

 /usr/lib/heartbeat/haresources2cib.py --stdout -c /etc/ha.d/ha.cf haresources > cib.xml 
Copy the cib.xml in /var/lib/heartbeat/crm/ and set the proper ownership. Heartbeat should be ready for usage
chown hacluster:haclient cib.xml
Rate this tutorial:                    
Post Comment

Need a specific tutorial? Do not hesitate and submit a request!
Your e-mail: