CentOS 5532 Published by

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.

----------------------

Installation:

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:

uname -r

(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
here:

http://mirror.centos.org/centos/4/extras/SRPMS/

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"
drbd-0.7.14-1.centos4.src.rpm

(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:

i386:
drbd-0.7.14-1.centos4.i386.rpm
heartbeat-1.2.3.cvs.20050927-1.centos4.i386.rpm
heartbeat-ldirectord-1.2.3.cvs.20050927-1.centos4.i386.rpm
heartbeat-pils-1.2.3.cvs.20050927-1.centos4.i386.rpm
heartbeat-stonith-1.2.3.cvs.20050927-1.centos4.i386.rpm
ipvsadm-1.24-6.i386.rpm
kernel-module-drbd-2.6.9-22.0.1.EL-0.7.14-1.centos4.i686.rpm
kernel-module-drbd-2.6.9-22.0.1.ELhugemem-0.7.14-1.centos4.i686.rpm
kernel-module-drbd-2.6.9-22.0.1.ELsmp-0.7.14-1.centos4.i686.rpm
kernel-module-drbd-2.6.9-22.EL-0.7.14-1.centos4.i686.rpm
kernel-module-drbd-2.6.9-22.ELhugemem-0.7.14-1.centos4.i686.rpm
kernel-module-drbd-2.6.9-22.ELsmp-0.7.14-1.centos4.i686.rpm
libnet-1.1.2.1-2.rf.i386.rpm
perl-Mail-IMAPClient-2.2.9-1.rf.noarch.rpm
perl-Net-SSLeay-1.25-3.rf.i386.rpm

src:
drbd-0.7.14-1.centos4.src.rpm
heartbeat-1.2.3.cvs.20050927-1.centos4.src.rpm
ipvsadm-1.24-6.src.rpm
libnet-1.1.2.1-2.rf.src.rpm
perl-Mail-IMAPClient-2.2.9-1.rf.src.rpm
perl-Net-SSLeay-1.25-3.rf.src.rpm