Basic Linux-HA heartbeat and pound config

I’ve had trouble in the past setting up Linux-HA a.k.a heartbeat to create a redundant front-end for a web service. The HA documentation is quite thorough and detailed, but it’s lacking realistic examples to get a working system up and running. This is a quick guide to creating a 2-way cluster with one or more floating IP addresses and automatic failover on Ubuntu 9.04. I also include a quick config for pound, a reverse proxy / load balancer.

Continue reading “Basic Linux-HA heartbeat and pound config”

Have I told you today how much Mac Minis rock as servers?

We’re using a cluster of Mac Minis for hosting. They’re running Ubuntu very nicely. I’ve gone on about them before (maybe not on here), but we just got a couple of new ones that use Core2 Duo rather than the older Core Duo models, and wow are they good. How good? Well, for CPU intensive stuff, we’re seeing (per core) over double the performance of our Dell PowerEdge 1850 which sports two dual-core 3.0GHz Xeons (and these are the slower 1.8GHz models!). That’s not bad for <20% of the cost to buy. They are unfeasibly small and really quite cute, plus they only pull about 120W (peak - 65W at idle!), so hosting them is dirt cheap (It'll cost you less than empty rack space - just ask Mythic Beasts whom we highly recommend, and they have minor niggles of the platform under control). Sure the disks are not too fast, and there’s no internal RAID, but who needs RAID when you can have RAIC instead?

Dell RAID firmware and lockfile on Ubuntu

Ian P. Christian ran into this problem a while ago:

On a seperate note, anyone know how to upgrade firmware using Dell’s software
on a non-RH system?

# ./RAID_FRMW_LX_R107404.BIN
which: no lockfile in
(/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.3.6) Cannot find utilities on the system to execute package.
Make sure the following utilities are in the path: sed lockfile tail rm mkdir
chmod ls basename

‘lockfile’ is missing – whatever that is!

Lockfile just doesn’t seem to exist outside of RedHat (e.g. lockfile-progs on Debian doesn’t include it), however, you can of course find it on a RedHat system, and I happen to have one handy. I just copied the binary to my Ubuntu installation, where it appeared to run just fine, and allowed the firmware updaters to run ok. Thought someone might like to know.