[DRBD-user] DRBD startup errors (Suse)

Bernd Schubert bernd-schubert at web.de
Mon Aug 16 01:11:48 CEST 2004


Hello Enrico,

> You were right, although I only hat was installed with Yast. Yes, the
> example config file was there too. However, I modified it to reflect the
> changess done in V0.7 and now there are no drbd.conf errors. HOWEVER, what
> is strange (for an original SuSE installation), I get an unusual error this
> time:
>
> #  /etc/init.d/drbd start
> #  Starting DRBD resources:    Drbdsetup and drbd kernel module are not
> matching!
> #  Command line was '/sbin/drbdsetup /dev/nb0 disk /dev/md2 internal -1
> --on-io-error=detach'
> #  drbdsetup exited with code 20
>
> #  Failed setting up drbd0
>
> Why don't the Drbdsetup and drbd kernel module match? Everything comes
> straight
>
> >from the SuSe installation disks. What can I do to make them match?

I have no idea why they doesn't match, but as I/we use debian, I'm not so 
familiar with the Suse internals. Did you already check for an Suse-update. 
Maybe there's a Suse mailing list for stuff like this? I added Suse to the 
subject, hopefully Lars (lmb) has a filter for it ;-)

Well, getting rid of the version mismatch would be probably easy for me, I 
just would compile the drbd userspace tools, replace  drbdsetup with the 
recompiled version and finally I would compile a new kernel and new drbd 
module. You may also keep your current kernel and only recompile the drbd 
module, by fetching the src-rpm for your current kernel, configuring it (make 
dep for 2.4.) and compiling the drbd module with exactly the same gcc version 
as the kernel was compiled with (cat /proc/version should tell you). Finally 
you should be able to replace 
/lib/modules/`uname -r`/some_where/drbd.{o or ko}
with the new version.

Probably I have forgotten something, so you should know what you are doing!

>
> I enclose my drbd.conf  file:
>
> # Trial conf Sun 15 August 2004
> #
> #global {
> #	minor_count 2;
> #	}
> #

>     device = /dev/nb0

Please note the this is deprecated for the current version, please read 
upgrade_0.7.0_to_0.7.1.txt from the current drbd sources.

> Well, I hope you can help! One last thing - the "minor_count 2;" in the
> 'global' section doesn't work with any number, with or without the '='
> sign. Anyone know why?

It should be without '=', whats the exact error message?

Cheers,	
	Bernd



More information about the drbd-user mailing list