[DRBD-user] DRBD modules compiled against Lustre kernel source, no version for "struct_module" found: kernel tainted.

Adam Gandelman gandelman.a at gmail.com
Fri Apr 17 03:21:18 CEST 2009

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


Hi-

I've been running into this kernel message every time I've built DRBD
modules against Lustre's patched kernel and source.  I've just tried it
again with Lustre 1.6.7.1 and it's still showing up.  DRBD compiles and
functions without error, however, upon loading the module I see:

drbd: no version for "struct_module" found: kernel tainted.

>From what I understand, this message is warning that the module being
inserted was compiled against sources for another kernel.   I'm using
RHEL5 Lustre RPMs on both RHEL5 and CentOS 5.2 systems.  I'm wondering
if it is safe ignore these messages and attribute them to Lustre's
kernel sources being packaged in a non-Redhat fashion. As I said, DRBD
seems to be working just fine and I haven't noticed any performance
issues or any other scary kernel messages.

To get DRBD to find uts_releases, modpost, etc. and compile correctly, I
needed to prepare the source as follows:

Edit the EXTRAVERSION parameters in the kernel Makefile to point to the
correct directory in /lib/modules (EXTRAVERSION =
-92.1.17.el5_lustre.1.6.7.1custom -> EXTRAVERSION =
-92.1.17.el5_lustre.1.6.7.1smp)
/usr/src/linux-2.6.18-92.1.17.el5_lustre.1.6.7.1/make oldconfig && make
prepare && make modules_prepare && make mrproper
/usr/src/ linux-2.6.18-92.1.17.el5_lustre.1.6.7.1-obj/make prepare &&
make modules_prepare

Again, aside from the tainted kernel message everything seems to be
working fine but I'd love to get rid of the message or know for sure
that it is nothing to worry about. 

Thanks,
Adam

Posted to lustre-discuss and drbd-user.




More information about the drbd-user mailing list