[Linux-HA] heartbeat 2.0.2 RPMS for RHEL4

Scott Farwell scott at iivip.com
Wed Oct 12 08:55:06 MDT 2005


The easiest way to build and install the Heartbeat v2.0.2 RPMS from source 
on a Redhat Enterprise Linux 4 machine
is to perform the following steps.  This does build the ldirectord rpm, but 
to install it there are several more packages that are needed to solve it's 
dependencies.  I haven't used it so far mainly for that reason alone.

Download "libnet-1.1.2.1-1.rh.el.um.1.src.rpm" from the ultramonkey site at 
:

                     http://www.ultramonkey.org/download/3/rh.el.3/SRPMS/libnet-1.1.2.1-1.rh.el.um.1.src.rpm

Download "heartbeat-2.0.2-1.src.rpm" from the linux-ha.org site at :

                     http://linux-ha.org/download/heartbeat-2.0.2-1.src.rpm


Rebuild and install both libnet and heartbeat for your specific machine 
configuration using the following script :
=======================================================================================

echo "Beginning Heartbeat installation"
echo "--------------------------------"
echo ""
echo "Uninstalling any old versions of heartbeat"
rpm -e heartbeat-debuginfo
rpm -e heartbeat
rpm -e heartbeat-stonith
rpm -e heartbeat-pils

echo "Rebuilding the required libnet RPM for your OS from the source RPM"
rpmbuild --quiet --rebuild libnet-1.1.2.1-1.rh.el.um.1.src.rpm

echo "Installing the required libnet rpm"
rpm -Uhv /usr/src/redhat/RPMS/i386/libnet-1.1.2.1-1*.rpm
echo "...................................................Done"
echo ""

echo "Rebuilding the Heartbeat RPMS for your OS from the source RPM"
rpmbuild --quiet --rebuild heartbeat-2.0.2-1.src.rpm
echo "...................................................Done"
echo ""

echo "Installing the Heartbeat RPMS"
rpm -Uhv /usr/src/redhat/RPMS/i386/heartbeat-pils-2.0.2-1.i386.rpm
rpm -Uhv /usr/src/redhat/RPMS/i386/heartbeat-stonith-2.0.2-1.i386.rpm
rpm -Uhv /usr/src/redhat/RPMS/i386/heartbeat-2.0.2-1.i386.rpm
rpm -Uhv /usr/src/redhat/RPMS/i386/heartbeat-debuginfo-2.0.2-1.i386.rpm
echo "...................................................Done"
echo ""

echo "Copying the original Heartbeat sample config files into place"
cp /usr/share/doc/heartbeat-2.0.2/ha.cf    /etc/ha.d/ha.cf.sample
cp /usr/share/doc/heartbeat-2.0.2/haresources 
/etc/ha.d/haresources.sample
cp /usr/share/doc/heartbeat-2.0.2/authkeys    /etc/ha.d/authkeys.sample
echo "...................................................Done"
echo ""

echo "You must now create the /etc/ha.d/ha.cf, /etc/ha.d/haresources, and"
echo "/etc/ha.d/authkeys files using the sample files provided to setup a"
echo "2 node HA cluster or build a properly formatted "
echo "/var/lib/heartbeat/crm/cib.xml configuration file to setup a 
multinode"
echo "cluster using CRM."

chkconfig --level 2345 heartbeat on

echo "Installation of Heartbeat v2.0.2 is complete."
======================================================================================= 




More information about the Linux-HA mailing list