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