<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>DRBD configuration</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2802" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=035231315-10032006><FONT face=Arial
color=#0000ff size=2>What does an lsmod show? Is drbd loaded? What version
of the kernel are you running? What library is your kernel module
in.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=035231315-10032006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=035231315-10032006><FONT face=Arial
color=#0000ff size=2>Andyt</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> drbd-user-bounces@linbit.com
[mailto:drbd-user-bounces@linbit.com] <B>On Behalf Of
</B>ejazahmad.khan@wipro.com<BR><B>Sent:</B> Friday, March 10, 2006 1:26
AM<BR><B>To:</B> Lars.Ellenberg@linbit.com;
drbd-user@linbit.com<BR><B>Subject:</B> [DRBD-user] DRBD
configuration<BR></FONT><BR></DIV>
<DIV></DIV><!-- Converted from text/plain format -->
<P><FONT size=2>Hi Ellenberg,<BR><BR>I will be very thankful if you please help
me to resolve my query.<BR><BR>I have installed & configured drbd-0.7.16 on
two systems. When trying to start the drbd by issuing command "/etc/init.d/drbd
start" I am getting this "Starting DRBD resources: Can not load the drbd
module." I have created the device node by command "for i in `seq 0 15` ; do
mknod -m 0660 /dev/drbd$i b 147 $i; done". My only suspect why its not working
is, if we can any way create device node perfectly then I hope we can resolve
the problem.<BR><BR>Please find the configuration details
below.<BR><BR>---------------<BR>linux:/sbin # uname -a<BR>linux linux 2.6.9 #2
Mon Feb 27 16:12:31 PST 2006 i686 i686 i386 GNU/Linux<BR><BR><BR>vi
/etc/fstab<BR>-------------<BR>/dev/hde3
/
reiserfs acl,user_xattr 1
1<BR>/dev/hde1
/windows/C
ntfs ro,users,gid=users,umask=0002,nls=utf8
0
0<BR>/dev/hde2
/windows/D
vfat
users,gid=users,umask=0002,iocharset=utf8 0
0<BR>/dev/hde5
swap
swap
pri=42
0
0<BR>devpts
/dev/pts
devpts
mode=0620,gid=5 0
0<BR>proc
/proc
proc
defaults
0
0<BR>sysfs
/sys
sysfs
noauto
0 0<BR>/dev/dvdrecorder /media/dvdrecorder
subfs
fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0
0<BR>/dev/drbd0
/repl
ext2
defaults
0 0<BR><BR>---------------<BR>linux:/etc/init.d # ls -a
/dev/drbd*<BR>/dev/drbd0 /dev/drbd10 /dev/drbd12
/dev/drbd14 /dev/drbd2 /dev/drbd4 /dev/drbd6
/dev/drbd8<BR>/dev/drbd1 /dev/drbd11 /dev/drbd13
/dev/drbd15 /dev/drbd3 /dev/drbd5 /dev/drbd7
/dev/drbd9<BR>---------------<BR>linux:/usr/src/linux # df
-ah<BR>Filesystem
Size Used Avail Use% Mounted
on<BR>/dev/hde3
12G 6.8G 5.0G 58%
/<BR>proc
0 0 0 -
/proc<BR>tmpfs
220M 36K 220M 1%
/dev/shm<BR>devpts
0 0 0 -
/dev/pts<BR>none
0 0 0 -
/proc/sys/fs/binfmt_misc<BR>usbfs
0 0 0 -
/proc/bus/usb<BR>---------------<BR>linux:/sbin # drbdadm up all<BR>can not open
/dev/drbd0: No such device or address<BR>Command 'drbdsetup /dev/drbd0 disk
/dev/hde3 internal -1 --on-io-error=panic' terminated with exit code
20<BR><BR>vi /etc/drbd.conf<BR>-----------------<BR>#<BR># please have a a look
at the example configuration file in<BR>#
/usr/share/doc/packages/drbd.conf<BR>#<BR><BR>resource wimax {<BR>
protocol B;<BR> incon-degr-cmd "halt
-f";<BR> disk {<BR>
on-io-error panic;<BR> }<BR> syncer
{<BR> rate
10M;<BR> }<BR> on linux { <BR>
device /dev/drbd0;<BR>
disk
/dev/hde3; <BR>
address 10.201.114.131:7788;<BR>
meta-disk internal;<BR> }<BR> on xyz
{<BR> device
/dev/drbd0;<BR> disk
/dev/hda3;<BR> address
10.201.114.140:7788;<BR> meta-disk
internal;<BR> }<BR>}<BR>--------------<BR>linux:/usr/src/drbd-0.7.16 # cat
/proc/drbd<BR> cat: /proc/drbd: No such file or
directory<BR>--------------<BR>linux:/etc/init.d # ./drbd start<BR>Starting DRBD
resources: Can not load the drbd
module.<BR>--------------<BR>linux:/etc/init.d # ./drbd
force-reload<BR>Restarting all DRBD resourcescan not open /dev/drbd0: No such
device or address<BR>Command '/sbin/drbdsetup /dev/drbd0 down' terminated with
exit code 20<BR>drbdsetup exited with code 20<BR>ERROR: Module drbd does not
exist in /proc/modules<BR>Can not load the drbd
module.<BR>---------------<BR>linux:/usr/src/linux # drbdsetup /dev/drbd0 disk
/dev/hde3 internal -1<BR>can not open /dev/drbd0: No such device or
address<BR>----------------<BR>linux:/sbin # cat /proc/drbd<BR>cat: /proc/drbd:
No such file or directory<BR><BR><BR>I have used command "for i in `seq 0 15` ;
do mknod -m 0660 /dev/drbd$i b 147 $i; done" to create device node. but when I
use "ls" it shows but when I use command "df -ah" or "lsmod" it is not showing.
I need your help ...<BR><BR> <BR>Thanks &
Regards <BR>Ejaz
Ahmad<BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR></FONT></P>
<TABLE>
<TBODY>
<TR>
<TD bgColor=#ffffff><FONT color=#000000><BR>The information contained in
this electronic message and any attachments to this message are intended
for the exclusive use of the addressee(s) and may contain proprietary,
confidential or privileged information. If you are not the intended
recipient, you should not disseminate, distribute or copy this e-mail.
Please notify the sender immediately and destroy all copies of this
message and any attachments. <BR><BR>WARNING: Computer viruses can be
transmitted via email. The recipient should check this email and any
attachments for the presence of viruses. The company accepts no liability
for any damage caused by any virus transmitted by this
email.<BR><BR>www.wipro.com<BR></FONT></TD></TR></TBODY></TABLE></BODY></HTML>