<br><font size=2 face="sans-serif">You did write:</font>
<br>
<br><font size=2><tt><br>
You're skipping a step during the compiling!<br>
<br>
It says fedora in the tutorial, but it also applies to EL<br>
<br>
------------------------------------------------------------------------<br>
The redhat way seems to be:<br>
<br>
redhat# cp /boot/kernel-2.4.some-thing.config .config<br>
or cp /boot/config-2.4-somthing-whatever .config<br>
# make -s oldconfig_nonint ; make -s
oldconfig_nonint<br>
<br>
fedora# cp /boot/config-2.4.some-thing .config<br>
# export CC=gcc32<br>
=======> # vi Makefile #mod EXTRAVERSION to match installed
kernel <==<br>
# yes "" | { make oldconfig
; make oldconfig ; }<br>
<br>
----------------------------------------------------------------------<br>
<br>
You need to change the EXTRAVERSION to match your kernel.</tt></font>
<br>
<br>
<br><font size=2 face="sans-serif">-> since my version is ES 3.0 ->
I did not figure out that this was for me....</font>
<br>
<br>
<br><font size=2 face="sans-serif">thanx! I have been able to sync the
disks now.</font>
<br>
<br>
<br><font size=2 face="sans-serif">/Espen<br>
<br>
Phone: +47 69215581 / + 47 92499076<br>
email: espen.ekeroth@omxgroup.com<br>
MSN: espene@halden.net</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td>
<td><font size=1 face="sans-serif"><b>nick <nick@mobilia.it></b></font>
<p><font size=1 face="sans-serif">20.09.2005 15:57</font>
<td><font size=1 face="Arial"> </font>
<br><font size=1 face="sans-serif"> To:
Espen Ekeroth <espen.ekeroth@omxgroup.com></font>
<br><font size=1 face="sans-serif"> cc:
drbd-user@lists.linbit.com</font>
<br><font size=1 face="sans-serif"> Subject:
Re: [DRBD-user] not able to load drbd
module</font></table>
<br>
<br>
<br><font size=2><tt>Espen Ekeroth wrote:<br>
> <br>
> I did follow your howto, and it seems to work. However when testing
- I <br>
> do not get it to work. (modprobe fails). It seems like the drbd makefile
<br>
> does something strange with the kernel folder:<br>
> <br>
> [root@ta3ts3 src]# ll<br>
> total 12<br>
> drwxr-xr-x 2 root root
4096 Jan 25 2003 debug<br>
> lrwxrwxrwx 1 root root
18 Sep 19 2004 linux-2.4 -> <br>
> linux-2.4.21-20.EL<br>
> drwxr-xr-x 16 root root
4096 Sep 20 13:58 linux-2.4.21-20.EL<br>
> drwxr-xr-x 16 root root
4096 Sep 20 13:43 <br>
> linux-2.4.21-20.ELcustom<br>
> <br>
> <br>
> <br>
> [root@ta3ts3 drbd-0.7.13]# make install<br>
> make[1]: Entering directory `/root/drbd/drbd-0.7.13/user'<br>
> install -d /sbin/<br>
> install -m 755 drbdsetup /sbin/<br>
> install -m 755 drbdadm /sbin/<br>
> make[1]: Leaving directory `/root/drbd/drbd-0.7.13/user'<br>
> make[1]: Entering directory `/root/drbd/drbd-0.7.13/scripts'<br>
> mkdir -p /etc/ha.d/resource.d<br>
> install -d /etc/rc.d/init.d/<br>
> install -m 755 drbd /etc/rc.d/init.d/drbd<br>
> install -m 755 drbddisk /etc/ha.d/resource.d<br>
> <br>
> Don't forget to run update-rc.d or chkconfig<br>
> make[1]: Leaving directory `/root/drbd/drbd-0.7.13/scripts'<br>
> make[1]: Entering directory `/root/drbd/drbd-0.7.13/documentation'<br>
> set -e; for f in drbdsetup.8 drbd.conf.5 drbd.8 drbdadm.8 ; do \<br>
> s=${f##*.}; \<br>
> install -v -D -m 644 $f /usr/share/man/man$s/$f
; \<br>
> done<br>
> `drbdsetup.8' -> `/usr/share/man/man8/drbdsetup.8'<br>
> `drbd.conf.5' -> `/usr/share/man/man5/drbd.conf.5'<br>
> `drbd.8' -> `/usr/share/man/man8/drbd.8'<br>
> `drbdadm.8' -> `/usr/share/man/man8/drbdadm.8'<br>
> make[1]: Leaving directory `/root/drbd/drbd-0.7.13/documentation'<br>
> make[1]: Entering directory `/root/drbd/drbd-0.7.13/drbd'<br>
> install -d //lib/modules/2.4.21-20.ELcustom/block<br>
> install -m 644 drbd.o //lib/modules/2.4.21-20.ELcustom/block<br>
> [ -e /System.map ] && \<br>
> /sbin/depmod -F /System.map -e ./drbd.o 2>&1 >/dev/null
|| true<br>
> make[1]: Leaving directory `/root/drbd/drbd-0.7.13/drbd'<br>
> <br>
> [root@ta3ts3 drbd-0.7.13]# modprobe drbd<br>
> insmod: /lib/modules/2.4.21-20.EL/block/drbd.o: No such file or directory<br>
> insmod: insmod /lib/modules/2.4.21-20.EL/block/drbd.o failed<br>
> insmod: insmod drbd failed<br>
> <br>
> Manual fix:<br>
> <br>
> [root@ta3ts3 drbd]# install -m 644 drbd.o //lib/modules/2.4.21-20.EL/block<br>
> [root@ta3ts3 drbd]# modprobe drbd<br>
> Warning: kernel-module version mismatch<br>
> /lib/modules/2.4.21-20.EL/block/drbd.o
was compiled for kernel <br>
> version 2.4.21-20.ELcustom<br>
> while this kernel is version 2.4.21-20.EL<br>
> Warning: loading /lib/modules/2.4.21-20.EL/block/drbd.o will taint
the <br>
> kernel: forced load<br>
> See http://www.tux.org/lkml/#export-tainted for information
about <br>
> tainted modules<br>
> Module drbd loaded, with warnings<br>
> [root@ta3ts3 drbd]#<br>
> <br>
> And the module is loaded!<br>
> <br>
> /Espen<br>
> <br>
> Phone: +47 69215581 / + 47 92499076<br>
> email: espen.ekeroth@omxgroup.com<br>
> MSN: espene@halden.net<br>
> <br>
> <br>
<br>
<br>
You're skipping a step during the compiling!<br>
<br>
It says fedora in the tutorial, but it also applies to EL<br>
<br>
------------------------------------------------------------------------<br>
The redhat way seems to be:<br>
<br>
redhat# cp /boot/kernel-2.4.some-thing.config .config<br>
or cp /boot/config-2.4-somthing-whatever .config<br>
# make -s oldconfig_nonint ; make -s
oldconfig_nonint<br>
<br>
fedora# cp /boot/config-2.4.some-thing .config<br>
# export CC=gcc32<br>
=======> # vi Makefile #mod EXTRAVERSION to match installed
kernel <==<br>
# yes "" | { make oldconfig
; make oldconfig ; }<br>
<br>
----------------------------------------------------------------------<br>
<br>
You need to change the EXTRAVERSION to match your kernel.<br>
</tt></font>
<br><FONT SIZE=3><BR>
<BR>
********************************************************************************<BR>
This e-mail and the information it contains may be privileged and/or<BR>
confidential. It is for the intended addressee(s) only.<BR>
The unauthorised use, disclosure or copying of this e-mail, or any information it contains, is prohibited. <BR>
If you are not an intended recipient, please contact the sender and delete the material from your computer.<BR>
********************************************************************************<BR>
</FONT>