<br><font size=2 face="sans-serif">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:</font>
<br>
<br><font size=2 face="sans-serif">[root@ta3ts3 src]# ll</font>
<br><font size=2 face="sans-serif">total 12</font>
<br><font size=2 face="sans-serif">drwxr-xr-x 2 root
root 4096 Jan 25 2003 debug</font>
<br><font size=2 face="sans-serif">lrwxrwxrwx 1 root
root 18 Sep 19 2004 linux-2.4
-> linux-2.4.21-20.EL</font>
<br><font size=2 face="sans-serif">drwxr-xr-x 16 root
root 4096 Sep 20 13:58 linux-2.4.21-20.EL</font>
<br><font size=2 face="sans-serif">drwxr-xr-x 16 root
root 4096 Sep 20 13:43 linux-2.4.21-20.ELcustom</font>
<br>
<br>
<br>
<br><font size=2 face="sans-serif">[root@ta3ts3 drbd-0.7.13]# make install</font>
<br><font size=2 face="sans-serif">make[1]: Entering directory `/root/drbd/drbd-0.7.13/user'</font>
<br><font size=2 face="sans-serif">install -d /sbin/</font>
<br><font size=2 face="sans-serif">install -m 755 drbdsetup /sbin/</font>
<br><font size=2 face="sans-serif">install -m 755 drbdadm /sbin/</font>
<br><font size=2 face="sans-serif">make[1]: Leaving directory `/root/drbd/drbd-0.7.13/user'</font>
<br><font size=2 face="sans-serif">make[1]: Entering directory `/root/drbd/drbd-0.7.13/scripts'</font>
<br><font size=2 face="sans-serif">mkdir -p /etc/ha.d/resource.d</font>
<br><font size=2 face="sans-serif">install -d /etc/rc.d/init.d/</font>
<br><font size=2 face="sans-serif">install -m 755 drbd /etc/rc.d/init.d/drbd</font>
<br><font size=2 face="sans-serif">install -m 755 drbddisk /etc/ha.d/resource.d</font>
<br>
<br><font size=2 face="sans-serif">Don't forget to run update-rc.d or chkconfig</font>
<br><font size=2 face="sans-serif">make[1]: Leaving directory `/root/drbd/drbd-0.7.13/scripts'</font>
<br><font size=2 face="sans-serif">make[1]: Entering directory `/root/drbd/drbd-0.7.13/documentation'</font>
<br><font size=2 face="sans-serif">set -e; for f in drbdsetup.8 drbd.conf.5
drbd.8 drbdadm.8 ; do \</font>
<br><font size=2 face="sans-serif"> s=${f##*.};
\</font>
<br><font size=2 face="sans-serif"> install
-v -D -m 644 $f /usr/share/man/man$s/$f ; \</font>
<br><font size=2 face="sans-serif">done</font>
<br><font size=2 face="sans-serif">`drbdsetup.8' -> `/usr/share/man/man8/drbdsetup.8'</font>
<br><font size=2 face="sans-serif">`drbd.conf.5' -> `/usr/share/man/man5/drbd.conf.5'</font>
<br><font size=2 face="sans-serif">`drbd.8' -> `/usr/share/man/man8/drbd.8'</font>
<br><font size=2 face="sans-serif">`drbdadm.8' -> `/usr/share/man/man8/drbdadm.8'</font>
<br><font size=2 face="sans-serif">make[1]: Leaving directory `/root/drbd/drbd-0.7.13/documentation'</font>
<br><font size=2 face="sans-serif">make[1]: Entering directory `/root/drbd/drbd-0.7.13/drbd'</font>
<br><font size=2 face="sans-serif">install -d //lib/modules/2.4.21-20.ELcustom/block</font>
<br><font size=2 face="sans-serif">install -m 644 drbd.o //lib/modules/2.4.21-20.ELcustom/block</font>
<br><font size=2 face="sans-serif">[ -e /System.map ] && \</font>
<br><font size=2 face="sans-serif"> /sbin/depmod -F /System.map
-e ./drbd.o 2>&1 >/dev/null || true</font>
<br><font size=2 face="sans-serif">make[1]: Leaving directory `/root/drbd/drbd-0.7.13/drbd'</font>
<br>
<br><font size=2 face="sans-serif">[root@ta3ts3 drbd-0.7.13]# modprobe
drbd</font>
<br><font size=2 face="sans-serif">insmod: /lib/modules/2.4.21-20.EL/block/drbd.o:
No such file or directory</font>
<br><font size=2 face="sans-serif">insmod: insmod /lib/modules/2.4.21-20.EL/block/drbd.o
failed</font>
<br><font size=2 face="sans-serif">insmod: insmod drbd failed</font>
<br>
<br><font size=2 face="sans-serif">Manual fix:</font>
<br>
<br><font size=2 face="sans-serif">[root@ta3ts3 drbd]# install -m 644 drbd.o
//lib/modules/2.4.21-20.EL/block</font>
<br><font size=2 face="sans-serif">[root@ta3ts3 drbd]# modprobe drbd</font>
<br><font size=2 face="sans-serif">Warning: kernel-module version mismatch</font>
<br><font size=2 face="sans-serif"> /lib/modules/2.4.21-20.EL/block/drbd.o
was compiled for kernel version 2.4.21-20.ELcustom</font>
<br><font size=2 face="sans-serif"> while this
kernel is version 2.4.21-20.EL</font>
<br><font size=2 face="sans-serif">Warning: loading /lib/modules/2.4.21-20.EL/block/drbd.o
will taint the kernel: forced load</font>
<br><font size=2 face="sans-serif"> See http://www.tux.org/lkml/#export-tainted
for information about tainted modules</font>
<br><font size=2 face="sans-serif">Module drbd loaded, with warnings</font>
<br><font size=2 face="sans-serif">[root@ta3ts3 drbd]# </font>
<br>
<br><font size=2 face="sans-serif">And the module is loaded!</font>
<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>jlarrea@gadisa.es</b></font>
<p><font size=1 face="sans-serif">20.09.2005 13:40</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:
Javier_Larrea_Arias/central@gadisa.es,
drbd-user@lists.linbit.com</font>
<br><font size=1 face="sans-serif"> Subject:
Re: Re: [DRBD-user] not able to load
drbd module</font></table>
<br>
<br>
<br><font size=2><tt><br>
Hi again,<br>
<br>
I've made a fast translation into english of my howto.<br>
<br>
Here is it<br>
<br>
<br>
How to setup a Samba based cluster over RedHat EL3 with DRBD, HeartBeat
and<br>
Samba<br>
<br>
<br>
- Install OS with default options plus development tools
and kernel<br>
development tools, setting then the server name.<br>
- Modify /etc/inittab to set runlevel 3 (id:3:initdefault:)<br>
- Download drbd-7.0.11.tar.gz from www.drbd.org to /root<br>
- cd /usr/src/linux-2.4<br>
- make mrproper<br>
- cp /boot/config-2.4.21-20.Elsmp .config<br>
- make –s oldconfig_nonint; make –s oldconfig_nonint<br>
- make dep<br>
- make include/linux/version.h<br>
- cd /usr/src<br>
- tar –xvzf /root/drbd-0.7.11.tar.gz<br>
- cd drbd-0.7.11/drbd<br>
- make clean all<br>
- cd ../scripts<br>
- make install<br>
- edit /etc/drbd.conf to define mirrored resources<br>
<br>
resource "r0" {<br>
protocol C;<br>
incon-degr-cmd "echo '!DRBD! pri on incon-degr' | wall ; sleep
60 ; halt<br>
-f";<br>
startup {<br>
wfc-timeout 0; ## Infinite!<br>
degr-wfc-timeout 120; ## 2 minutes.<br>
}<br>
disk {<br>
on-io-error detach;<br>
}<br>
net {<br>
}<br>
syncer {<br>
rate 50M;<br>
group 1; # sync concurrently with r0<br>
}<br>
on pixie {<br>
device /dev/drbd0;<br>
disk /dev/hda6;<br>
address 192.168.52.125:7789;<br>
meta-disk internal;<br>
}<br>
on dixie {<br>
device /dev/drbd0;<br>
disk /dev/sda6;<br>
address 192.168.52.126:7789;<br>
meta-disk internal;<br>
}<br>
<br>
- cd ../drbd<br>
- edit /etc/fstab to add new resources with option noauto<br>
- chmod 744 drbd.o<br>
- cp drbd.o /lib/modules/2.4.21-20.Elsmp/kernel/drivers/block<br>
- edit /lib/modules/2.4.21-20.Elsmp/modules.dep and add reference
to th<br>
prevously copied driver module (drbd.o)<br>
- cd /usr/src/drbd-0.7.11<br>
- make tools<br>
- make install-tools<br>
- mknod /dev/drbd0 b 147 0 (repeat for each needed device)<br>
- cd /etc/rc3.d<br>
- ln –s ../init.d/drbd S93drbd<br>
- ln –s ../init.d/drbd K93drbd<br>
- Dowload hearbeat-pils, heartbeat-stonith y heartbeat, and
install<br>
them on this order<br>
- Setup Samba<br>
o cd /etc<br>
o editar krb5.conf<br>
§ default_realm = DOMAIN.NAME<br>
§ [realms]<br>
§ DOMAIN.NAME = {<br>
§ kdc = server.domain.name:88<br>
§ admin_server = server.domain.name:749<br>
§ default_domain = domain.name<br>
§ }<br>
o editar nsswitch.conf<br>
§ passwd files winbind<br>
§ group files winbind<br>
o editar samba/smb.conf<br>
§ [global]<br>
§ workgroup = WORKGROUPNAME<br>
§ realm = DOMAIN.NAME<br>
§ netbios name = NodeName<br>
§ netbios aliases = ClusterName<br>
§ winbind separator = /<br>
§ idmap uid = 10000-20000<br>
§ idmap gid = 10000-20000<br>
§ winbind enum groups = yes<br>
§ winbind enum users = yes<br>
§ template homedir = /home/FOLDERNAME/%U<br>
§ template shell = /bin/bash<br>
§ server string = Server description<br>
§ security = ADS<br>
§ interfaces = cluster_ip_address/24<br>
§ password server = server.domain.name<br>
§ [SHARENAME]<br>
§ comment = Description<br>
§ path = /home/FOLDERNAME<br>
§ writeable = yes<br>
§ valid users = WORKGROUPNAME/Administrator<br>
o create the shared folder (/home/FOLDERNAME)<br>
o sync<br>
o sync<br>
o reboot<br>
o kinit administrator@DOMAIN.NAME<br>
o net ads join –U Adminstrator%administrator_password<br>
o chown central/administrator /home/FOLDERNAME<br>
- Setup heartbeat<br>
o cd /etc/ha.d<br>
o vi authkeys<br>
§ auth 1<br>
§ 1 crc<br>
o vi ha.cf<br>
§ node Node_A_Name<br>
§ node Node_b_Name<br>
§ deadtime 5<br>
§ ucast eth0 (interface used by heartbeat) xx.xx.xx.xx (other
node ip<br>
address)<br>
§ auto_failbak off<br>
o vi haresources<br>
§ servername_a ip.address/masklen
drbddisk::r0 \<br>
§ Filesystem::/dev/drbd0::/home::ext3::acl,usrquota,grpquota
\<br>
§ drbddisk::r1 \<br>
§ Filesystem::/dev/drbd1::/home2::ext3::acl,usrquota,grpquota
\<br>
§ smb \<br>
§ winbind<br>
o chmod 600 /etc/ha.d/authkeys<br>
- Replicate Samba UID Mapping<br>
o On active node:<br>
§ /etc/init.d/winbind stop<br>
§ /etc/init.d/smb stop<br>
§ mkdir /home/cachesamba<br>
§ mv /var/cache/samba/* /home/cachesamba<br>
§ ln –s /home/cachesamba /var/cache/samba<br>
§ /etc/init.d/winbind start<br>
§ /etc/init.d/smb start<br>
o On passive node<br>
§ rm –rf /var/cache/samba<br>
§ ln –s /home/cachesamba /var/cache/samba<br>
<br>
<br>
<br>
<br>
<br>
-----Espen Ekeroth <espen.ekeroth@omxgroup.com> escribió: -----<br>
<br>
<br>
Para: jlarrea@gadisa.es<br>
De: Espen Ekeroth <espen.ekeroth@omxgroup.com><br>
Fecha: 20/09/2005 13:05<br>
cc: drbd-user@lists.linbit.com<br>
Asunto: Re: [DRBD-user] not able to load drbd module<br>
<br>
<br>
Stupid question: Do you have to compile and use the kernel? or is it just<br>
the module that is compiled?<br>
<br>
/Espen<br>
<br>
Phone: +47 69215581 / + 47 92499076<br>
email: espen.ekeroth@omxgroup.com<br>
MSN: espene@halden.net<br>
<br>
<br>
jlarrea@gadisa.es<br>
20.09.2005 12:48<br>
To: Espen Ekeroth
<espen.ekeroth@omxgroup.com><br>
cc: drbd-user@lists.linbit.com<br>
Subject: Re: [DRBD-user]
not able to load drbd module<br>
<br>
<br>
<br>
<br>
Hi Espen,<br>
<br>
I've had the samp problem but I solved it adding a reference to the module<br>
drbd.o into the /lib/modules/2.4.21-20.Elsmp/modules.dep file.<br>
<br>
good luck<br>
<br>
P.S. however I haven't been able to compile it for RedHat ES4 because I've<br>
no kernel sources ¿?¿?¿?¿?¿?¿<br>
<br>
-----drbd-user-bounces@lists.linbit.com escribió: -----<br>
<br>
<br>
Para: drbd-user@lists.linbit.com<br>
De: Espen Ekeroth <espen.ekeroth@omxgroup.com><br>
Enviado por: drbd-user-bounces@lists.linbit.com<br>
Fecha: 20/09/2005 10:55<br>
Asunto: [DRBD-user] not able to load drbd module<br>
<br>
<br>
Newbee question: After compiling on RH 3.0 ES modprobe do not find the<br>
module. Any suggestions?<br>
<br>
/Espen<br>
<br>
<br>
********************************************************************************<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<br>
information it contains, is prohibited.<br>
If you are not an intended recipient, please contact the sender and delete<br>
the material from your computer.<br>
********************************************************************************<br>
<br>
<br>
_______________________________________________<br>
drbd-user mailing list<br>
drbd-user@lists.linbit.com<br>
http://lists.linbit.com/mailman/listinfo/drbd-user</tt></font>
<br>