DRBD on Ubuntu 12.04 LTS 64Bits
I am following this guide for setting up a HA Cluster with Postgres:
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
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.
apt-get install linux-image-extra-virtual
and everything will work.