Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Fri May 11, 2012 7:56 pm 
Offline
Newbie

Joined: Fri May 11, 2012 7:43 pm
Posts: 2
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

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:

Code:
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
Code:
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':
Code:
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:
Code:
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.


Top
   
 Post subject:
PostPosted: Fri May 11, 2012 8:32 pm 
Offline
Newbie

Joined: Fri May 11, 2012 7:43 pm
Posts: 2
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

Code:
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.


Top
   
PostPosted: Fri Aug 24, 2012 10:02 am 
Offline
Senior Newbie

Joined: Fri Aug 24, 2012 10:00 am
Posts: 5
You don’t need to build DRDB manually. Instead, just do

Code:
apt-get install linux-image-extra-virtual


and everything will work.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group