Rob Gallagher
Archive for May, 2009
Heartbeat and IPv6
May 11th
I’ve been playing around with heartbeat quite a bit recently. It’s quite a mature piece of software with some cool features, however the documentation is bit unstructured and lacking in some areas, especially where IPv6 support is concerned. Heartbeat *supports* IPv6 address takeover through the IPv6addr resource but it’s not exactly clear on how you go about setting it up.
Anyway, after reading through some forum posts, here is a sample haresources file that will give you IPv4 and IPv6 address failover. We are using eth1 as our primary network interface:
my.failover.address 193.1.219.93
my.failover.address IPv6addr::2001:770:18:2:0:0:c101:db5d/64/eth1
The important thing is to specify the IPv6 address fully, ie: pad it out with 0′s, no :: shortcuts!
With v6 support recently added to IPVS, it should now be possible to do full IPv6 failover and load balancing.
Backporting debian packages
May 6th
Sometimes, you need a newer version of a package than is available in your debian/ubuntu install.
There’s a number of ways to do it, for example using tools such as Prevu, but here is the step by step process.
We are going to backport the latest version of Unbound from Ubuntu Jaunty (1.2.1 at the time of writing) to an Ubuntu Hardy system. As a prerequisite, we need the build-essential package installed as we are going to compile some software, we also need the fakeroot package in order to build debian packages:
aptitude install build-essential fakeroot
Firstly, we need to enable the Jaunty source repositories in our /etc/apt/sources.list file, and comment out the Hardy source repositories (any of the other lines beginning with deb-src). You should run aptitude update after this step:
deb-src http://ie.archive.ubuntu.com/ubuntu jaunty restricted main multiverse universe
The next step is to gather what we need to compile Unbound, the build dependencies:
apt-get build-dep unbound
Now, we retrieve the “debianised” source code for unbound:
apt-get source unbound
Then cd into the unbound source directory (it should be something like unbound-1.2.1) and run the following command:
dpkg-buildpackage -rfakeroot -b -uc -us
This will compile unbound and build the debian package in one go. The resultant package is deposited in the parent directory. You can install it by doing:
dpkg -i ../unbound_1.2.1-0ubuntu1_i386.deb
If all goes well you should be able to install this package on other i386 Ubuntu Hardy systems as needed.
Shatner vs Shatner vs Shatner vs Shatner…
May 1st

Quite possibly the greatest work of fiction ever, about the greatest man ever: Shatnerquake!.
It’s the first ShatnerCon with William Shatner as the guest of honor! But after a failed terrorist attack by Campbellians, a crazy terrorist cult that worships Bruce Campbell, all of the characters ever played by William Shatner are suddenly sucked into our world. Their mission: hunt down and destroy the real William Shatner.