[DRBD-user] Pointers with ubuntu

Barry barry at infosys.co.za
Mon Aug 13 10:35:07 CEST 2007

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


Barry wrote:
>> Problem is that the /dev/drbd0 device does not exist.
>> lsmod | grep drbd brings up nothing.
>> I don't seem to have a drbd.ko file anywhere.
>> 
>> Could someone please give me some pointers on how to get this done?
>> I'm pretty sure I need to load some kernel module but I don't know how to go
>> about it.

> you have to install drbd0.7-module-source (or 0.8 i don't know with
> version ubuntu has) and then compile the module (on debian you do it
> with m-a (module-assistant).
> Then you just give a /etc/init.d/drbd start and /dev/drbd0 should be up.

Hi Everyone

I've installed the drbd0.7-module-source and module assistant.
Its prepare command set up the build environment but when I try to build the module it fails.
I get the following in the error log:

/usr/bin/make -C /lib/modules/2.6.20-15-server/build
SUBDIRS=/usr/src/modules/drbd/drbd  modules
make[3]: Entering directory `/usr/src/linux-headers-2.6.20-15-server'
CC [M]  /usr/src/modules/drbd/drbd/drbd_sizeof_sanity_check.o
CC [M]  /usr/src/modules/drbd/drbd/drbd_buildtag.o
CC [M]  /usr/src/modules/drbd/drbd/drbd_bitmap.o
In file included from /usr/src/modules/drbd/drbd/drbd_bitmap.c:32:
/usr/src/modules/drbd/drbd/drbd_int.h:1018: warning: âkmem_cache_tâ is deprecated
/usr/src/modules/drbd/drbd/drbd_int.h:1019: warning: âkmem_cache_tâ is deprecated
CC [M]  /usr/src/modules/drbd/drbd/drbd_fs.o
/usr/src/modules/drbd/drbd/drbd_fs.c:31:26: error: linux/config.h: No such file or directory
In file included from /usr/src/modules/drbd/drbd/drbd_fs.c:41:
/usr/src/modules/drbd/drbd/drbd_int.h:1018: warning: âkmem_cache_tâ is deprecated
/usr/src/modules/drbd/drbd/drbd_int.h:1019: warning: âkmem_cache_tâ is deprecated
make[4]: *** [/usr/src/modules/drbd/drbd/drbd_fs.o] Error 1
make[3]: *** [_module_/usr/src/modules/drbd/drbd] Error 2
make[3]: Leaving directory `/usr/src/linux-headers-2.6.20-15-server'
make[2]: *** [kbuild] Error 2
make[2]: Leaving directory `/usr/src/modules/drbd/drbd'
make[1]: *** [binary-modules] Error 2
make[1]: Leaving directory `/usr/src/modules/drbd'
make: *** [kdist_build] Error 2

When I do a list I get this message:

drbd0.7-module-source (source) installed (V: 0.7.21-4ubuntu1):
-- Binary package(s) for kernel(s):
	+ (2.6.20-15-server): not found
Some packages could not be found. The "search" command can search in the
package pool for precompiled packages.

It seems like all should be ok, but the build doesn't work. 
I've done a clean server install before trying this.

Might the packages be broken or what am I missing?

Kind Regards,
Barry




More information about the drbd-user mailing list