[DRBD-user] howto build DRBD 7.0 kernel module on Red Hat with 2.4.18 kernel

drbd-user at kenyaweb.com drbd-user at kenyaweb.com
Mon Jul 19 09:29:33 CEST 2004

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


Thanks once more.

I will let you know how this works,

George.

> / 2004-07-17 12:17:12 +0200
> \ Lars Ellenberg:
>
>> anyways.
>
> snip
>
>> KERNEL_SRC=/some/where/linux-2.4.22-1.2135.nptl
>
> snap
>
>> It is really not THAT difficult, is it.
>>
>>  :)
>
> And there I was wrong... :(
>
>
> / 2004-07-18 01:57:00 +0200
> \ Lars Ellenberg:
>> / 2004-07-16 18:48:05 +0300
>> \ drbd-user at kenyaweb.com:
>> >
>> > I have kernel-2.4.18-14 ...
>>
>> which, btw, probably contains some known security flaws,
>> since it is dated from somwhen last year ...
>> redhat update ftp site offers 2.4.20-something for RH-8.0.
>> since that dates from 2003, still, and there have been kernel
>> security issues since, I think it should offer even newer.
>> but I am no RH policy expert, so they may offer their most recent
>> patches only for 9 and enterprise ?
>>
>> anyways, the most recent RH kernel source package
>> for standard RH seems to be
>> ftp://ftp.redhat.com/pub/redhat/linux/updates/9/en/os/i386/kernel-source-2.4.20-31.9.i386.rpm
>> or mirror sites.  nearby should be the binary ix86.rpms.
>> I did no test compile of DRBD against that yet,
>
>
>> but I can do so somewhen in the next days, and resolve compatibility
>> issues, if there happen to some, still... which I doubt :)
>
> well, and I did a test compile against RH 2.4.18-14 right now,
>                                              ^^^^
>
> and doh. it breaks.
> now, why is RH always so "special"...
>
> one way:
>   update to some RH 2.4.20 or newer. (recommended).
>
> other way:
>   apply attached patch (should be in svn soonish).
>
> KERNEL_SRC=..../linux-2.4.18-14
> DRBD_SRC=..../drbd-0.7.0/drbd
>
> cd $KERNEL_SRC
> make mrproper
> cp configs/kernel-2.4.18-i386.config .config
> 	(or one of the others...)
> yes "" | make oldconfig ; yes "" | make oldconfig
> 	(maybe rather adjust with make menuconfig)
> make dep
>
> (btw, gcc 2.95 and 3.2 seem to both work fine.
>  just use the one which was used to build your kernel.
>  to be sure, recompile and install a new kernel,
>  then you _know_ which compiler was used.)
>
> cd $DRBD_SRC
> patch -p0 < attached-patch
>
> make KDIR=$KERNEL_SRC
>
> this should now compile without errors.
>
> hope that helps.
>
> 	Lars Ellenberg
>
>
> attachments:
>  8586 patch-drbd-0.7.0-r1439-RH-8.0 (against the tagged drbd-0.7.0 release
> and .tgz)
>  2522 patch-drbd-0.7.0-r1441-RH-8.0 (against current subversion trunk)
>




More information about the drbd-user mailing list