[DRBD-user] BUG? Oops: kernel NULL pointer dereference in drbd_connector_callback

Lars Ellenberg lars.ellenberg at linbit.com
Tue Oct 20 13:43:45 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.


On Mon, Oct 19, 2009 at 02:43:52PM +0200, Robert Dahlem wrote:
> On 19.10.2009 11:51, Lars Ellenberg wrote:
> 
> >>> I'm trying to install DRBD 0.8.3.4 on top of Linux 2.6.31.3.
> >>> When trying to start DRBD I get an Oops:
> 
> > Did it even occur to you that you could also try the "usual"
> > out-of tree module build?
> 
> Sorry, but no, that didn't occur to me. I used the kernel-patch method
> since 0.7 and always preferred it, because there are two drawbacks with
> the "usual" method:
> 
> 1.) If you prepare your system for a new kernel version you need to
> remember a special depmod command to prevent ending up with "modprobe:
> FATAL: Module drbd not found" after a reboot:
> 
> 	depmod -ae `cat /usr/src/linux/include/config/kernel.release`
> 
> That was not needed with the kernel-patch method.
>
> 2.) If you have a running system and recompile/reinstall your kernel,
> after "make modules_install" the drbd module is gone. You always need to
> remember to change to the drbd directory and do "make install" again.

So you alwasy roll your own kernel.  Ok.

I think "most" use a distro kernel, and most distros solve those
problems with package management, dependencies and trigger scripts,
maybe a system like dkms and possibly a lazy depmod during boot.

BTW, your drbd build is likely to have been broken for some reason or
other in the past as well, unless you always happened to use a kernel
version matching the "drbd_config.h" compatibility defines as shipped
in the tarball. Though, admittedly, until now it would probably not have
been breakage in such a spectacular way ;)

> Anyway. I guess these woes will be gone when DRBD is integrated into the
> kernel. Will it get pulled into 2.6.32?

No, that has been rejected.
It is very likely to be in 2.6.33, though:
http://lkml.org/lkml/2009/10/1/385

> > I really regret that I created that "kernel-patch" make target in the
> > first place. You are not supposed to do that.
> 
> Sorry again, but I did not read anything like "You are not supposed to
> do 'kernel-patch'" or "deprecated" when checking the documentation.

I'm sorry that I came accross so rude.
I was just "people do actually use that
and expect it to work? wtf...". 

Cheers,

-- 
: Lars Ellenberg                
: LINBIT HA-Solutions GmbH
: DRBD®/HA support and consulting    http://www.linbit.com

DRBD® and LINBIT® are registered trademarks of LINBIT, Austria.
__
please don't Cc me, but send to list   --   I'm subscribed



More information about the drbd-user mailing list