drbd-user March 2010 archive
Main Archive Page > Month Archives  > drbd-user archives
drbd-user: [DRBD-user] How to install kernel module on Mandriva

[DRBD-user] How to install kernel module on Mandriva 2009?

From: Viktor <butyh_at_nospam>
Date: Thu Mar 11 2010 - 08:54:13 GMT
To: drbd-user@lists.linbit.com

recently I've built HA cluster on two computers running Mandriva Linux
Powerpack 2009 Spring.
I used heartbeat and drbd to do this.

The first computer has 32-bit architecture, and the second has Core2 Duo
processor, so I installed x86-64 version of Mandriva on the second computer.

There was no problems until I decided to update both systems. I used
"urpmi --auto-update" command.
The first machine updated finely, but after I updated software on the
x86-64 machine, drbd on this computer was broken.

Here goes some info about my installation:
[root@node1 /]# uname -a
Linux node1.akme #1 SMP Tue Nov 3 14:32:52 EST
2009 x86_64 Intel(R) Core(TM)2 Duo CPU E6550 @ 2.33GHz GNU/Linux

[root@node1 /]# rpm -qa "*drbd*"

[root@node1 /]# service drbd start
Starting DRBD resources: Can not load the drbd module.

[root@node1 /]# lsmod | grep drbd

I decided that there's drbd kernel module does not exist anymore

So I tried to install drbd from source guided by instructions from

After kernel module was built and installed.

For a strange reason module was installed into
/lib/modules/ folder,
not into
/lib/modules/, as expected.

Next I tried to modprobe that module:
[root@node1 /]# cd /lib/modules/
[root@node1 block]# modprobe drbd.ko
FATAL: Module drbd.ko not found.

Insmod leads to failure too:
[root@node1 block]# insmod drbd.ko
insmod: error inserting 'drbd.ko': -1 Invalid module format

Built module has following structure:
[root@node1 block]# modinfo drbd.ko
filename: drbd.ko
alias: block-major-147-*
license: GPL
version: 8.3.7
description: drbd - Distributed Replicated Block Device v8.3.7
author: Philipp Reisner <phil@linbit.com>, Lars Ellenberg
srcversion: DC73CA4E6B9CA3109A0A17A
depends: cn
vermagic: SMP mod_unload modversions
parm: minor_count:Maximum number of drbd devices (1-255) (uint)
parm: disable_sendpage:bool
parm: allow_oos:DONT USE! (bool)
parm: cn_idx:uint
parm: proc_details:int
parm: enable_faults:int
parm: fault_rate:int
parm: fault_count:int
parm: fault_devs:int
parm: usermode_helper:string

Please, advice me how to correctly install drbd kernel module, may be
there is RPM in repository?
I suppose, those three "drbd-utils*" packages don't contain kernel
module itself.

drbd-user mailing list