CEEA:2005-1130-2 CentOS 4 i386 drbd / heartbeat - enhancement
Posted on: 11/30/2005 06:20 PM
CentOS Errata and Enhancement Advisory 2005:1130-2
CentOS 4 i386 drbd / heartbeat - Enhancement Update (Extras Only)
We are pleased to add drbd (with integrated heartbeat) to the CentOS extras repository.
DRBD is a block device which is designed to build high availability clusters. This is done by mirroring a whole block device via (a dedicated) network. You could see it as a network raid-1. See the drbd website for details:http://www.drbd.org/
Heartbeat performs death-of-node detection, communications and cluster management in one process. See the heartbeat website for details:http://www.linux-ha.org/HeartbeatProgram
The heartbeat used by CentOS originates with the ultramonkey project, though the EL3 version was modified to use EL4 core programs and the CFLAGS were changed to make it compile on i386 and x86_64. More on ultramonkey here:http://www.ultramonkey.org/3/
Using drbd and heartbeat together, you can mirror a partition between computers via the network, and switch applications on those partitons between the machines if one of the machines fails.
You can install drbd and heartbeat with the following command:
yum groupinstall drbd-heartbeat
then you will need to install the drbd kernel module for your kernel. You can find your current kernel with the command:
(currently for me the result is 2.6.9-22.0.1.ELsmp)
then you can install the drbd kernel module with the command:
yum install kernel-module-drbd-2.6.9-22.0.1.ELsmp
(you would substitute you uname -r kernel name for 2.6.9-22.0.1.ELsmp)
If you are using a non standard kernel, you will need to build your own kernel module for drbd. The lastest drbd source file can be obtained
You need the kernel-devel (or kernel-smp-devel) for your kernel installed as well, and you can make your drbd kernel module with the command:
rpmbuild --rebuild -target i686 --define "kernelversion 2.6.9-22.0.1.ELsmp"
(you would substitute your kernel version and targeted arch as applicable)
Once installed the drbd and heartbeat configurations need to be setup via their respective website links above.
The following files are added to the extras repository and syncing to the mirrors: