DRBD on Ubuntu 12.04 LTS 64Bits

Hi guys,

I am following this guide for setting up a HA Cluster with Postgres: http://library.linode.com/linux-ha/high … untu-10.04">http://library.linode.com/linux-ha/highly-available-file-database-server-ubuntu-10.04

I was able to set it up for Ubuntu 10.04 LTS 64Bits, but pengine kept crashing on me (because pacemaker was kind of old and buggy in this realease). So I have decided to try the 12.04 release instead.

Everything is fine except that I cannot get the drbd module to load. I have done the following then rebooted:

apt-get install -y  linux-headers-server drbd8-utils build-essential psmisc

and use vmlinuz-3.2.0-24-virtual with pv-grub-x86_64 as my kernel - here's my /boot/grub/menu.lst

timeout 10

title           Ubuntu 12.04 LTS, kernel 3.2.0-24-virtual
root            (hd0)
kernel          /boot/vmlinuz-3.2.0-24-virtual root=/dev/xvda ro quiet
initrd          /boot/initrd.img-3.2.0-24-virtual

Here's the 'uname -a':

Linux ha1-db 3.2.0-24-virtual #37-Ubuntu SMP Wed Apr 25 10:17:19 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

Unfortunately, both 'modprob drbd' and 'service drbd start' fail saying that drbd is not loaded:

root@ha1-db:~# modprobe drbd
FATAL: Module drbd not found.

root@ha1-db:~# service drbd start
 * Starting DRBD resources                                                                                                                                                                             Can not load the drbd module.

QUESTION: Has anyone had success installing drbd with the Linode builds of Ubuntu 12.04 LTS 64Bits?

Thanks a lot in advance,

Arnaud.

2 Replies

Looks like I had to compile my own DRBD and update drdb that way. Here's what I did following this guide (and adapting for my installed kernel): http://www.drbd.org/users-guide/s-build … ource.html">http://www.drbd.org/users-guide/s-build-from-source.html

apt-get install -y linux-headers-server drbd8-utils build-essential psmisc bison flex
apt-get install linux-headers-3.2.0-24-virtual

wget http://oss.linbit.com/drbd/8.4/drbd-8.4.1.tar.gz
tar xfvz drbd-8.4.1.tar.gz
cd drbd-8.4.1/
./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc --with-km

make KDIR=/lib/modules/3.2.0-24-virtual/build
make install

You may not need 'drbd8-utils' in there, but since I did not feel like starting from scratch and it worked that way…. this is my solution so far ;)

Hope it helps someone on day.

Arnaud.

You don’t need to build DRDB manually. Instead, just do

apt-get install linux-image-extra-virtual

and everything will work.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct