2. Installation

2.1. Download the software

The latest stable version is available from http://www.drbd.org/

The latest developement version is higher than 0.6.9 or 0.7-pre2 [2003-Nov-27] and is available via cvs. More information on above url. Or just do with cvs comand line interface:

	cvs -d :pserver:anonymous@cvs.drbd.org:/var/lib/cvs/drbd login
	cvs -d :pserver:anonymous@cvs.drbd.org:/var/lib/cvs/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.2.x Kernel Considerations

DRBD Version 0.6.9 is untested with 2.2.x kernel series, and might not even compile. Development target is 2.4.22 and later.

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

You might compile the module with a different compiler than the running kernel was compiled with. Either recompile the kernel with the same compiler you use to build the module, or build the module with the same compiler which was used to build the kernel.