[Linux-HA] Re: heartbeat 2.0.2 RPMS for RHEL4

Scott Farwell scott at iivip.com
Thu Oct 13 14:38:02 MDT 2005


I have found that 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 :

Note :  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.

1.   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

2.   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


 3.  Rebuild and install both libnet and heartbeat for your specific machine 
configuration using the following script : (or commands)
 ======================================================================================= echo "Beginning Heartbeat installation"echo "--------------------------------"echo ""echo "Uninstalling any old versions of heartbeat"rpm -e heartbeat-debuginforpm -e heartbeatrpm -e heartbeat-stonithrpm -e heartbeat-pilsecho "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.rpmecho "Installing the required libnet rpm"rpm -Uhv /usr/src/redhat/RPMS/i386/libnet-1.1.2.1-1*.rpmecho "...................................................Done"echo "" echo "Rebuilding the Heartbeat RPMS for your OS from the source RPM"rpmbuild --quiet --rebuild heartbeat-2.0.2-1.src.rpmecho "...................................................Done"echo "" echo "Installing the Heartbeat RPMS"rpm -Uhv /usr/src/redhat/RPMS/i386/heartbeat-pils-2.0.2-1.i386.rpmrpm -Uhv /usr/src/redhat/RPMS/i386/heartbeat-stonith-2.0.2-1.i386.rpmrpm -Uhv /usr/src/redhat/RPMS/i386/heartbeat-2.0.2-1.i386.rpmrpm -Uhv /usr/src/redhat/RPMS/i386/heartbeat-debuginfo-2.0.2-1.i386.rpmecho "...................................................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.samplecp /usr/share/doc/heartbeat-2.0.2/haresources/etc/ha.d/haresources.samplecp /usr/share/doc/heartbeat-2.0.2/authkeys    /etc/ha.d/authkeys.sampleecho "...................................................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 amultinode"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