05 May 2011

More Cluster headaches: RHEL5, Pacemaker, and other stuff

Apparently, Heartbeat is the name of an old project that, while still around, has been depreciated in favor of OpenAIS. Also, CoroSync means something, as does Pacemaker. See, no one seems to have any clear explanation as to what these all are, and the instructions that tell us to install Pacemaker and use CoroSync in favor of Heartbeat, still install Heartbeat as well in their setup commands.
What's worse, these are external-to-Redhat repos, meaning they're guaranteed to fail because that's just how these things seem to work. And guess what? Fail they do.
This being a 64bit machine (x86_64), we needed to add the external repos:
# rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
# wget -O /etc/yum.repos.d/pacemaker.repo http://clusterlabs.org/rpm/epel-5/clusterlabs.repo
And attempting the install fails:
# yum install -y pacemaker corosync heartbeat   

Error: Missing Dependency: libperl.so is needed by package pacemaker-1.0.11-1.2.el5.i386 (clusterlabs)

Error: Missing Dependency: libesmtp.so.5()(64bit) is needed by package pacemaker-1.0.11-1.2.el5.x86_64 (clusterlabs)

Error: Missing Dependency: libesmtp.so.5 is needed by package pacemaker-1.0.11-1.2.el5.i386 (clusterlabs)



We can resolve a part of this:
# yum provides */libperl.so
(bunch of output)
# yum install perl
But the libesmtp isn't so lucky:
# yum provides */libesmtp.so.5
Loaded plugins: rhnplugin, security
No Matches found
EDIT: package found that fulfills this dependency, at
http://pkgs.org/download/centos-5-rhel-5/epel-x86_64/libesmtp-1.0.4-5.el5.x86_64.rpm.html
The remainder of this post WAS how I got this installed but it didn't really work out until I installed the package, above



The work around is to install yum-utils, then download the packages that we need, then install what we can and skip what we cannot install, and then force the install of what we have left and skip its missing dependencies. Really.
# yum install yum-utils
# yum install pacemaker.x86_64 corosync.x86_64 heartbeat.x86_64 --skip-broken
# yumdownloader pacemaker.x86_64 pacemaker-libs.x86_64 lm_sensors.x86_64
# rpm -ihv pacemaker-1.0.11-1.2.el5.x86_64.rpm pacemaker-libs-1.0.11-1.2.el5.x86_64.rpm lm_sensors-2.10.7-9.el5.x86_64.rpm --nodeps
I don't yet know what it will require to maintain this system; the High-Availability aspect of this may be provided by other systems more than this RHEL5 system.

I cannot believe that Redhat, which is THE enterprise GNU/Linux distro, doesn't provide the needed tools for clustering, or that the needed tools that are provided by a 3rd party, are broken.  For what its worth, Debian 5 Lenny installed just fine from the lenny-backport repos.


=-=-=-=-=
Powered by Blogilo

02 May 2011

Firefox 4.0.1: Firefox is out (of memory) !

I've been running various builds of Firefox 4 on Linux since the betas were beginning, months ago.  They were very stable.  And then 4.0.0 was released, and recently 4.0.1, and with both I've had a lot of crashes.  What's worse is that I cannot submit crash reports and no one on irc.freenode.net #firefox seems to know why (or they just won't answer).


When I run these from the command line, I see 'Out of memory' but I have 4 GB of RAM and 2GB of Swap space.  I am not out of memory, Mister Fox.