Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
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 jlarrea at gadisa.es 20.09.2005 13:40 To: Espen Ekeroth <espen.ekeroth at omxgroup.com> cc: Javier_Larrea_Arias/central at gadisa.es, drbd-user at lists.linbit.com Subject: Re: Re: [DRBD-user] not able to load drbd module Hi again, I've made a fast translation into english of my howto. Here is it How to setup a Samba based cluster over RedHat EL3 with DRBD, HeartBeat and Samba - Install OS with default options plus development tools and kernel development tools, setting then the server name. - Modify /etc/inittab to set runlevel 3 (id:3:initdefault:) - Download drbd-7.0.11.tar.gz from www.drbd.org to /root - cd /usr/src/linux-2.4 - make mrproper - cp /boot/config-2.4.21-20.Elsmp .config - make –s oldconfig_nonint; make –s oldconfig_nonint - make dep - make include/linux/version.h - cd /usr/src - tar –xvzf /root/drbd-0.7.11.tar.gz - cd drbd-0.7.11/drbd - make clean all - cd ../scripts - make install - edit /etc/drbd.conf to define mirrored resources resource "r0" { protocol C; incon-degr-cmd "echo '!DRBD! pri on incon-degr' | wall ; sleep 60 ; halt -f"; startup { wfc-timeout 0; ## Infinite! degr-wfc-timeout 120; ## 2 minutes. } disk { on-io-error detach; } net { } syncer { rate 50M; group 1; # sync concurrently with r0 } on pixie { device /dev/drbd0; disk /dev/hda6; address 192.168.52.125:7789; meta-disk internal; } on dixie { device /dev/drbd0; disk /dev/sda6; address 192.168.52.126:7789; meta-disk internal; } - cd ../drbd - edit /etc/fstab to add new resources with option noauto - chmod 744 drbd.o - cp drbd.o /lib/modules/2.4.21-20.Elsmp/kernel/drivers/block - edit /lib/modules/2.4.21-20.Elsmp/modules.dep and add reference to th prevously copied driver module (drbd.o) - cd /usr/src/drbd-0.7.11 - make tools - make install-tools - mknod /dev/drbd0 b 147 0 (repeat for each needed device) - cd /etc/rc3.d - ln –s ../init.d/drbd S93drbd - ln –s ../init.d/drbd K93drbd - Dowload hearbeat-pils, heartbeat-stonith y heartbeat, and install them on this order - Setup Samba o cd /etc o editar krb5.conf § default_realm = DOMAIN.NAME § [realms] § DOMAIN.NAME = { § kdc = server.domain.name:88 § admin_server = server.domain.name:749 § default_domain = domain.name § } o editar nsswitch.conf § passwd files winbind § group files winbind o editar samba/smb.conf § [global] § workgroup = WORKGROUPNAME § realm = DOMAIN.NAME § netbios name = NodeName § netbios aliases = ClusterName § winbind separator = / § idmap uid = 10000-20000 § idmap gid = 10000-20000 § winbind enum groups = yes § winbind enum users = yes § template homedir = /home/FOLDERNAME/%U § template shell = /bin/bash § server string = Server description § security = ADS § interfaces = cluster_ip_address/24 § password server = server.domain.name § [SHARENAME] § comment = Description § path = /home/FOLDERNAME § writeable = yes § valid users = WORKGROUPNAME/Administrator o create the shared folder (/home/FOLDERNAME) o sync o sync o reboot o kinit administrator at DOMAIN.NAME o net ads join –U Adminstrator%administrator_password o chown central/administrator /home/FOLDERNAME - Setup heartbeat o cd /etc/ha.d o vi authkeys § auth 1 § 1 crc o vi ha.cf § node Node_A_Name § node Node_b_Name § deadtime 5 § ucast eth0 (interface used by heartbeat) xx.xx.xx.xx (other node ip address) § auto_failbak off o vi haresources § servername_a ip.address/masklen drbddisk::r0 \ § Filesystem::/dev/drbd0::/home::ext3::acl,usrquota,grpquota \ § drbddisk::r1 \ § Filesystem::/dev/drbd1::/home2::ext3::acl,usrquota,grpquota \ § smb \ § winbind o chmod 600 /etc/ha.d/authkeys - Replicate Samba UID Mapping o On active node: § /etc/init.d/winbind stop § /etc/init.d/smb stop § mkdir /home/cachesamba § mv /var/cache/samba/* /home/cachesamba § ln –s /home/cachesamba /var/cache/samba § /etc/init.d/winbind start § /etc/init.d/smb start o On passive node § rm –rf /var/cache/samba § ln –s /home/cachesamba /var/cache/samba -----Espen Ekeroth <espen.ekeroth at omxgroup.com> escribió: ----- Para: jlarrea at gadisa.es De: Espen Ekeroth <espen.ekeroth at omxgroup.com> Fecha: 20/09/2005 13:05 cc: drbd-user at lists.linbit.com Asunto: Re: [DRBD-user] not able to load drbd module Stupid question: Do you have to compile and use the kernel? or is it just the module that is compiled? /Espen Phone: +47 69215581 / + 47 92499076 email: espen.ekeroth at omxgroup.com MSN: espene at halden.net jlarrea at gadisa.es 20.09.2005 12:48 To: Espen Ekeroth <espen.ekeroth at omxgroup.com> cc: drbd-user at lists.linbit.com Subject: Re: [DRBD-user] not able to load drbd module Hi Espen, I've had the samp problem but I solved it adding a reference to the module drbd.o into the /lib/modules/2.4.21-20.Elsmp/modules.dep file. good luck P.S. however I haven't been able to compile it for RedHat ES4 because I've no kernel sources ¿?¿?¿?¿?¿?¿ -----drbd-user-bounces at lists.linbit.com escribió: ----- Para: drbd-user at lists.linbit.com De: Espen Ekeroth <espen.ekeroth at omxgroup.com> Enviado por: drbd-user-bounces at lists.linbit.com Fecha: 20/09/2005 10:55 Asunto: [DRBD-user] not able to load drbd module Newbee question: After compiling on RH 3.0 ES modprobe do not find the module. Any suggestions? /Espen ******************************************************************************** This e-mail and the information it contains may be privileged and/or confidential. It is for the intended addressee(s) only. The unauthorised use, disclosure or copying of this e-mail, or any information it contains, is prohibited. If you are not an intended recipient, please contact the sender and delete the material from your computer. ******************************************************************************** _______________________________________________ drbd-user mailing list drbd-user at lists.linbit.com http://lists.linbit.com/mailman/listinfo/drbd-user -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20050920/9a619b22/attachment.htm>