[DRBD-user] Trying to install DRBD but problem with kernel module not being able to load

Yudai Yamagishi yyamagishi at ml1.net
Mon Apr 7 07:36:50 CEST 2008

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


Hello,
I'm trying to install DRBD on to one of my servers.
The server OS is Debian Lenny Beta 1.
Here are the details on my server.

Kernel Version:
web1:~# uname -r
2.6.22-3-686

Version of DRBD8-Utils and DRBD8-Sources: (DRBD8-module-sources is now
included in DRBD8-Sources)
Package: drbd8-utils
Versions: 2:8.0.11-1
Package: drbd8-source
Versions: 2:8.0.11-1

Kernel Headers and build-essential versions:
Package: linux-headers-2.6.22-3-686
Versions: 2.6.22-6.lenny1
Package: build-essential
Versions: 11.3

Here is what I did:
apt-get install drbd8-utils drbd8-module-source drbd8-source 
build-essential linux-headers-2.6.22-3-686
web1:~# m-a a-i drbd8-module-source

Updated infos about 1 packages
Getting source for kernel version: 2.6.22-3-686
Kernel headers available in /lib/modules/2.6.22-3-686/build
apt-get install build-essential
Reading package lists... Done
Building dependency tree... 50%
Building dependency tree
Reading state information... Done
build-essential is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.

Done!
download
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting drbd8-source instead of drbd8-module-source
drbd8-source is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.

Updated infos about 1 packages
unpack
The source tarball could not be found!
Package drbd8-module-source not installed?
Running "m-a -f get drbd8-module-source" may help.
"/usr/share/modass/packages/default.sh" build KVERS=2.6.22-3-686
KSRC=/lib/modules/2.6.22-3-686/build KDREV=2.6.22-6.lenny1 kdist_image
^^Obviously above fails since module-source is a virtual package.

web1:~# m-a a-i drbd8-source

Updated infos about 1 packages
Getting source for kernel version: 2.6.22-3-686
Kernel headers available in /lib/modules/2.6.22-3-686/build
apt-get install build-essential
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.

Done!
unpack
Extracting the package tarball, /usr/src/drbd8.tar.bz2, please wait...
Target package file
/usr/src/drbd8-2.6.22-3-686_8.0.11-1+2.6.22-6.lenny1_i386.deb already
exists,
not rebuilding!
(however, you could use the -f switch to ignore it)
dpkg -Ei /usr/src/drbd8-2.6.22-3-686_8.0.11-1+2.6.22-6.lenny1_i386.deb
Version 2:8.0.11-1+2.6.22-6.lenny1 of drbd8-2.6.22-3-686 already
installed, skipping.
^^I ran the same command earlier so you get that but it was working
without any errors.

web1:~# dpkg-reconfigure drbd8-utils
Stopping all DRBD resources.
^^Some other things showed up when I first ran this but no errors at
all.

web1:~# /etc/init.d/drbd start
Starting DRBD resources:    Can not load the drbd module.
web1:~# updatedb
web1:~# locate drbd.ko
/lib/modules/2.6.22-3-686/kernel/extra/drbd.ko
web1:~# insmod /lib/modules/2.6.22-3-686/kernel/extra/drbd.ko
insmod: error inserting
'/lib/modules/2.6.22-3-686/kernel/extra/drbd.ko': -1 Unknown symbol in
module

Here is my drbd.conf:
web1:~# cat /etc/drbd.conf
global {
    usage-count yes;
}
common {
  syncer { rate 10M; }
}
resource r0 {
  protocol C;
  handlers {
    pri-on-incon-degr "echo o > /proc/sysrq-trigger ; halt -f";
    pri-lost-after-sb "echo o > /proc/sysrq-trigger ; halt -f";
    local-io-error "echo o > /proc/sysrq-trigger ; halt -f";
    outdate-peer "/usr/sbin/drbd-peer-outdater";
  }
  startup {
  }
  disk {
    on-io-error   detach;
  }
  net {
    allow-two-primaries;
    after-sb-0pri disconnect;
    after-sb-1pri disconnect;
    after-sb-2pri disconnect;
    rr-conflict disconnect;
  }
  syncer {
    rate 10M;
    al-extents 257;
  }
  on web1 {
    device     /dev/drbd0;
    disk       /dev/sda3;
    address    192.168.11.21:7788;
    meta-disk  /dev/sda2[0];
  }
  on web2 {
    device    /dev/drbd0;
    disk      /dev/sda3;
    address   192.168.11.22:7788;
    meta-disk /dev/sda2[0];
  }
}

Can someone tell me what I am doing wrong here?

I also tried compiling drbd8 from the source but it fails:
could not determine uts_release

Another try was following the information found here:
http://www.drbd.org/users-guide/s-build-deb.html
This has failed with:
make[1]: *** No rule to make target `../drbd/drbd_buildtag.c', needed by
`drbd_buildtag.c'. Stop. 

I need DRBD 8 because I need Primary/Primary on OCFS2.
As for OCFS2, it's running perfectly with all kernel modules loaded.

So, any clues with DRBD 8?
Thanks
-- 
  Yudai Yamagishi
  yyamagishi at ml1.net




More information about the drbd-user mailing list