[DRBD-user] Getting DRBD running on RHEL5 with kernel 2.6.18-8.el5

Tom Georgoulias tomg at mcclatchyinteractive.com
Wed Feb 6 19:34:34 CET 2008

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


Schmidt, Florian wrote:

> Two days ago I started to try to get DRBD running and I'm not ready
> yet :(

> I've got 2 machines running with RedHat Enterprise Linux 5 [uname -a
> says: 2.6.18-8.el5]

First thing you should do is to update your kernel and get the latest 
from Red Hat.  2.6.18-8.el5 is the original kernel they shipped, the 
newest is 2.6.18-53.1.6.el5.

> I found some RPMs for other kernel versions and (in my desperation)
> installed them. I am able to execute drbdadm, drbdmeta and drbdsetup
> tools, but when I say /etc/init.d/drbd start, he says "Can not load
> the drbd module". So obviously the kernel module is still missing.

It didn't work because you used modules compiled for a different kernel 
than the one you have installed.  You will need drbd modules for the 
kernel you are running.

> How do I get this module into my Kernel?

I think the easiest way to install drbd on your servers is to use the 
SRPMs or RPMs from centos.  That's what I did for my rhel5 servers.  You 
can find prebuilt drbd and kmod-drbd RPMs here (or another mirror if 
this one is slow)

http://mirror.linux.duke.edu/pub/centos/5.1/extras/i386/RPMS/

You can also rebuild the SRPMs for drbd and drbd-kmod if the prebuilt 
ones do not work.

http://mirror.linux.duke.edu/pub/centos/5.1/extras/SRPMS/

That should get your started.

Tom



More information about the drbd-user mailing list