2. Installation

2.1. Download the software

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
	

2.2. Compile the package

Compilation is should be pretty straight forward. Simply do a


	 $ make 
	 $ make install

	 

2.3. Test loading the drbd module

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

2.4. 2.4.x Kernel Considerations

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.

2.5. Unresolved symbols

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: