<br><font size=2 face="sans-serif">Thanx.</font>
<br>
<br><font size=2 face="sans-serif">I am missing these files:</font>
<br>
<br><font size=2><tt>make –s oldconfig_nonint; make –s oldconfig_nonint</tt></font>
<br>
<br><font size=2 face="sans-serif">And of course - since it is redhat -
I have to do a "make menuconfig" and save from there.</font>
<br>
<br><font size=2 face="sans-serif">/Espen<br>
<br>
</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>