The latest stable version is 0.5.8, and it is available for download at http://www.complang.tuwien.ac.at/reisner/drbd/download/
The latest developement version is higher than 0.6.1-pre17 [2002-Oct-12] and is available via cvs, or by comand line interface:
cvs -d :pserver:anonymous@ist.org:/cvshome/drbd login cvs -d :pserver:anonymous@ist.org:/cvshome/drbd co drbd
Compilation is should be pretty straight forward. Simply do a
$ make $ make install
If everything built and installed correctly, you should be able to test loading the module
$ /sbin/insmod drbd
If everything is in working order, you should see no error messages, verify with lsmod that the module is loaded
$ /sbin/lsmod
If you see drbd, all is looking good. Go ahead and rmmod and move to the sample configuration section.
$ /sbin/rmmod drbd
DRBD Version 0.5.8 only works with the 2.2.x kernel series. For the 2.4.x kernel, you need to download the latest version from cvs.
When loading the module you see about 50 messages like these:
drbd.o: unresolved symbol sock_alloc drbd.o: unresolved symbol proc_register drbd.o: unresolved symbol schedule_timeout ...
Your Kernel was built with CONFIG_MODVERSIONS and the DRBD module was built without MODVERSIONS, or vice versa.
There are two ways to solve this:
Use a system without MODVERSIONS: Change your kernel configuration and drop the CONFIG_MODVERSIONS option. (See ~linux/.config.) Rebuild the kernel.
Use a system with MODVERSIONS: Edit ~drbd/Makefile.vars and add -DMODVERSIONS -DCONFIG_MODVERSIONS to KERNFLAGS. Rebuild DRBD.