I managed to install and load the DRBD module on one of my Linodes like this (I'm using Gentoo):
The linode is Xen with a 2.6.18.8-linode10 kernel so I got the
http://linode.com/src/2.6.18.8-linode10.tar.bz2 sources.
Once you've unpacked it in /usr/src and symlinked linux -> 2.6.18.8-linode10 then:
Code:
cd /usr/src/linux
cp /proc/config.gz .
gunzip config.gz
mv config .config
make
Once that's done you should have a compiled version of the kernel you are running.
Then you can do a:
Code:
emerge --nodeps drbd-kernel drbd
(I did nodeps because the drbd-kernel package tries to pull in gentoo-sources, which is unnecessary)
To load the drbd module I had to force it:
Code:
modprobe -f drbd
Not using force resulted in the following error because I have gcc-4.1 and the original linode kernel is compiled with 4.0:
Code:
drbd: version magic '2.6.18.8-linode10 SMP mod_unload Xen PENTIUM4 REGPARM gcc-4.1' should be '2.6.18.8-linode10 SMP mod_unload Xen PENTIUM4 REGPARM gcc-4.0'
Forcing the module load worked, I'm just doing the same on my second linode now and I'll post an update once I have it working on them both.
HTH!