Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
Espen Ekeroth wrote: > > I did follow your howto, and it seems to work. However when testing - I > do not get it to work. (modprobe fails). It seems like the drbd makefile > does something strange with the kernel folder: > > [root at ta3ts3 src]# ll > total 12 > drwxr-xr-x 2 root root 4096 Jan 25 2003 debug > lrwxrwxrwx 1 root root 18 Sep 19 2004 linux-2.4 -> > linux-2.4.21-20.EL > drwxr-xr-x 16 root root 4096 Sep 20 13:58 linux-2.4.21-20.EL > drwxr-xr-x 16 root root 4096 Sep 20 13:43 > linux-2.4.21-20.ELcustom > > > > [root at ta3ts3 drbd-0.7.13]# make install > make[1]: Entering directory `/root/drbd/drbd-0.7.13/user' > install -d /sbin/ > install -m 755 drbdsetup /sbin/ > install -m 755 drbdadm /sbin/ > make[1]: Leaving directory `/root/drbd/drbd-0.7.13/user' > make[1]: Entering directory `/root/drbd/drbd-0.7.13/scripts' > mkdir -p /etc/ha.d/resource.d > install -d /etc/rc.d/init.d/ > install -m 755 drbd /etc/rc.d/init.d/drbd > install -m 755 drbddisk /etc/ha.d/resource.d > > Don't forget to run update-rc.d or chkconfig > make[1]: Leaving directory `/root/drbd/drbd-0.7.13/scripts' > make[1]: Entering directory `/root/drbd/drbd-0.7.13/documentation' > set -e; for f in drbdsetup.8 drbd.conf.5 drbd.8 drbdadm.8 ; do \ > s=${f##*.}; \ > install -v -D -m 644 $f /usr/share/man/man$s/$f ; \ > done > `drbdsetup.8' -> `/usr/share/man/man8/drbdsetup.8' > `drbd.conf.5' -> `/usr/share/man/man5/drbd.conf.5' > `drbd.8' -> `/usr/share/man/man8/drbd.8' > `drbdadm.8' -> `/usr/share/man/man8/drbdadm.8' > make[1]: Leaving directory `/root/drbd/drbd-0.7.13/documentation' > make[1]: Entering directory `/root/drbd/drbd-0.7.13/drbd' > install -d //lib/modules/2.4.21-20.ELcustom/block > install -m 644 drbd.o //lib/modules/2.4.21-20.ELcustom/block > [ -e /System.map ] && \ > /sbin/depmod -F /System.map -e ./drbd.o 2>&1 >/dev/null || true > make[1]: Leaving directory `/root/drbd/drbd-0.7.13/drbd' > > [root at ta3ts3 drbd-0.7.13]# modprobe drbd > insmod: /lib/modules/2.4.21-20.EL/block/drbd.o: No such file or directory > insmod: insmod /lib/modules/2.4.21-20.EL/block/drbd.o failed > insmod: insmod drbd failed > > Manual fix: > > [root at ta3ts3 drbd]# install -m 644 drbd.o //lib/modules/2.4.21-20.EL/block > [root at ta3ts3 drbd]# modprobe drbd > Warning: kernel-module version mismatch > /lib/modules/2.4.21-20.EL/block/drbd.o was compiled for kernel > version 2.4.21-20.ELcustom > while this kernel is version 2.4.21-20.EL > Warning: loading /lib/modules/2.4.21-20.EL/block/drbd.o will taint the > kernel: forced load > See http://www.tux.org/lkml/#export-tainted for information about > tainted modules > Module drbd loaded, with warnings > [root at ta3ts3 drbd]# > > And the module is loaded! > > /Espen > > Phone: +47 69215581 / + 47 92499076 > email: espen.ekeroth at omxgroup.com > MSN: espene at halden.net > > You're skipping a step during the compiling! It says fedora in the tutorial, but it also applies to EL ------------------------------------------------------------------------ The redhat way seems to be: redhat# cp /boot/kernel-2.4.some-thing.config .config or cp /boot/config-2.4-somthing-whatever .config # make -s oldconfig_nonint ; make -s oldconfig_nonint fedora# cp /boot/config-2.4.some-thing .config # export CC=gcc32 =======> # vi Makefile #mod EXTRAVERSION to match installed kernel <== # yes "" | { make oldconfig ; make oldconfig ; } ---------------------------------------------------------------------- You need to change the EXTRAVERSION to match your kernel.