Step 1: Install Heartbeat


Step 1: Install Heartbeat

The CD-ROM included with this book contains the Heartbeat RPMs. You can install these versions using the following commands (though you may instead want to check for the latest versions available for download from http://www.linux-ha.org/download).

 #mount /mnt/cdrom #rpm -ivh /mnt/cdrom/chapter7/heartbeat-pils-*.rpm[1] #rpm -ivh /mnt/cdrom/chapter7/hearbeat-stonith-*.rpm #rpm -ivh /mnt/cdrom/chapter7/hearbeat-*i386.rpm 

Note 

You do not need the source (src) RPM file for this recipe. The ldirectord software is also not required in this chapter—it will be discussed in Chapter 15.

Once the RPM package finishes installing, you should have an /etc/ha.d directory where Heartbeat's configuration files and scripts reside. You should also have a /usr/share/doc/packages/heartbeat directory containing sample configuration files and documentation.

image from book
IN CASE OF ERRORS

If you receive error messages about failed dependencies for crypto software when you attempt to install the Stonith RPM, issue the following command to make sure that you have the openssl and openssl-devel packages installed:

 rpm -q -a | grep openssl 

These packages are only required for Stonith devices that use SSL for communications, but because of the RPM dependency mechanisms, this package will be marked as required for all installations.

For SNMP dependency failures, run this command:

 rpm -q -a | grep snmp 

If the version numbers returned by these commands are lower than the version number required by Stonith, upgrade your packages.[2]

If the installation still complains about failed dependencies, even though you know you have the latest versions installed, you can force the RPM to override this error message with the following command:

 #rpm -ivh --nodeps /usr/local/src/heartbeat/heartbeat-*i386.rpm 

If you receive dependency errors that complain about lib.so or GLIBC, see Appendix D.

Note 

Instead of using the method just described to install Heartbeat, you can use the Heartbeat src.rpm package and the rpm --rebuild option, as in this command:

 #rpm --rebuild /usr/local/src/heartbeat/heartbeat-*src.rpm 

image from book

[1]The PILS package was introduced with version 0.4.9d of Heartbeat. PILS is Heartbeat's generalized plug-in and interface loading system, and it is required for normal Heartbeat operation.

[2]Note that the SNMP package used to be called ucd-snmp, but it has been renamed net-snmp.



The Linux Enterprise Cluster. Build a Highly Available Cluster with Commodity Hardware and Free Software
Linux Enterprise Cluster: Build a Highly Available Cluster with Commodity Hardware and Free Software
ISBN: 1593270364
EAN: 2147483647
Year: 2003
Pages: 219
Authors: Karl Kopper

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net