Heartbeat on Fedora Core 4

Here are the steps I took to get heartbeat ( from linux-ha ) to run on Fedora Core 4 (fc4). It is by no means a clean install, but it appears to work for us at the moment.

First download the RPM’s from http://www.ultramonkey.org/download/heartbeat/. I am using version 2.0.2 today.

Then I installed curl to satisfy one of the dependencies.
yum install curl

I ran the following commands to get the rpms installed:

rpm -Uvh libnet-1.1.2.1-1.rh.el.um.1.i386.rpm
rpm -Uvh heartbeat-stonith-2.0.2-1.i386.rpm heartbeat-pils-2.0.2-1.i386.rpm --nodeps
rpm -Uvh heartbeat-2.0.2-1.i386.rpm --nodeps

Note that I told the heartbeat rpms to install with –nodeps. For some reason I can’t find or build RPMs for FC4 and the old libraries that heartbeat wants don’t work on FC4 apparently.

I got this error when trying to install libtool via yum.

warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID db42a60e
Public key for autoconf-2.59-5.noarch.rpm is not installed
Retrieving GPG key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora
GPG key at file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora (0x4F2A6FD2) is already installed

The GPG keys listed for the "Fedora Core 4 - i386 - Base" repository are already installed but they are not correct for this package.
Check that the correct key URLs are configured for this repository.

Doing this fixed it.
rpm --import /usr/share/rhn/RPM-GPG-KEY
yum install libtool

Then to get the library for real…
cd /usr/share/libtool/libltdl
./configure
make
make install

And finally, I linked it to a place where stuff will find it. Though I am sure there is a more correct way to do this too.
ln -s /usr/local/lib/libltdl.so.3 /lib/

Then all that is left is creating the files you need for heartbeat in /etc/ha.d/ as usual.


Comments

4 responses to “Heartbeat on Fedora Core 4”

  1. Hello!

    I followed the steps on your web blog.
    When i first issued this command:

    rpm -Uvh heartbeat-stonith-2.0.2-1.i386.rpm heartbeat-pils-2.0.2-1.i386.rpm –nodeps

    I only typed :

    rpm -Uvh heartbeat-stonith-2.0.2-1.i386.rpm

    Then i realized i was wrong so i typed the complete line.
    Then pils was only 50% and the other two, was 100%.

    Further, when I typed:

    yum install libtool

    everything was 100% but the first one had a tag line:

    …. could not locate gcc….

    i was not able to save the history of the konsole so i could not exactly remember.

    Does this have something to do with the rpm thing above? If so, i want to redo everything… how will I do it? Are there commands to undo the installations?

    Hope you could help us….
    Thanks….

  2. adrian sender Avatar
    adrian sender

    Its funny HA has not developed more up to date packages for fedora core.

  3. Thanks a lot.
    This saved me two days of trying to figure out why autoconf would be packaged with a wrong key.
    Very nice of you to share.

  4. That “rpm --import /usr/share/rhn/RPM-GPG-KEY” also lets you install ImageMagick on Fedora Core 4 too.

    It seems it is the solution when you see the following error message from yum…

    The GPG keys listed for the “Fedora Core 4 – i386 – Base” repository are already installed but they are not correct for this package.

Leave a Reply

Your email address will not be published. Required fields are marked *