<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2627" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2><FONT face="Times New Roman" size=3>Hi
all,<BR><BR>I have thus far been unsuccessfull in starting drbd on either node
in my <BR>test setup.<BR><BR>A quick summary of my setup:<BR><BR>Both machines
running redhat 9, with (i686) redhat-built 2.4.20-31.9 kernel, <BR>kernel
sources installed for that same kernel, drbd 0.7.10 compiled against <BR>said
kernel source, using instructions from latest INSTALL.TXT.<BR><BR>I have simply
a 400MB partition on each system (/dev/hdc) which I am trying <BR>to mirror (on
both systems). I have a dedicated 260MB partition (/dev/hda5) <BR>for drbd meta
data (on both systems).<BR><BR>I found that there were no /dev/drbd* entries
created at redhat install <BR>time, nor were there any after make install;
therefore I used the text file <BR>suggested method to create them:<BR><BR># for
i in `seq 0 15` ; do mknod /dev/drbd$i b 147 $i; done<BR><BR>on both
systems.<BR><BR>drbd.conf:<BR>------------------------------------------------------<BR>global
{<BR> dialog-refresh 5; # 5 seconds<BR>
disable-io-hints;<BR>}<BR><BR>resource r0 {<BR><BR> protocol
C;<BR><BR> incon-degr-cmd "echo '!DRBD! pri on incon-degr' | wall ; sleep
60 ; <BR>halt -f";<BR><BR> startup {<BR>
degr-wfc-timeout 120; # 2 minutes.<BR> }<BR><BR>
disk {<BR> on-io-error detach;<BR>
}<BR><BR> net {<BR> }<BR><BR> syncer {<BR>
rate 1M;<BR> group 1;<BR><BR> al-extents
257;<BR> }<BR><BR> on celery {<BR>
device /dev/drbd0;<BR>
disk /dev/hdc1;<BR>
address 192.168.0.8:7788;<BR>
meta-disk /dev/hda5[0];<BR> }<BR><BR> on pii
{<BR> device
/dev/drbd0;<BR> disk
/dev/hdc1;<BR> address
192.168.0.13:7788;<BR> meta-disk /dev/hda5[0];<BR>
}<BR><BR>}<BR>------------------------------------------------------<BR><BR>The
two test systems have hostnames "celery" (192.168.0.8) and "pii"
<BR>(192.168.0.13).<BR><BR>I can provide more detail if needed. The trouble I
have starting drbd occurs <BR>thusly (after reboot):<BR><BR><BR># insmod
drbd<BR>Using /lib/modules/2.4.20-31.9/kernel/drivers/block/drbd.o<BR><BR>#
service drbd start<BR>Starting DRBD resources: [ d0
/etc/init.d/drbd: line 131: 2625 <BR>Segmentation
fault $CMD<BR><BR>cmd /sbin/drbdsetup /dev/drbd0
disk /dev/hdc1 /dev/hda5 <BR>0 --on-io-error=detach
failed!<BR><BR><BR>...ok, so:<BR><BR># drbdadm up all<BR><BR>...just hangs, and
in system log I get:<BR><BR>23:14:29 celery kernel: drbd: initialised. Version:
0.7.10 (api:77/proto:74)<BR>23:14:29 celery kernel: drbd: SVN Revision: 1743
build by <BR></FONT><A href="mailto:root@localhost.localdomain"><FONT
face="Times New Roman" size=3>root@localhost.localdomain</FONT></A><FONT
face="Times New Roman" size=3>, 2005-05-15 03:00:03<BR>23:14:29 celery kernel:
drbd: registered as block device major 147<BR>23:14:42 celery kernel: drbd0:
Creating state block<BR>23:14:42 celery kernel: drbd0: Both nodes
diskless!<BR>23:14:42 celery kernel: drbd0: Assuming that all blocks are out of
sync (aka <BR>FullSync)<BR>23:14:42 celery kernel: drbd0: drbd_bm_set_all: (!(b
&& b->bm)) in <BR>drbd_bitmap.c:553<BR>23:14:42 celery kernel:
d595de98 d894f1b7 d8963d20 00000000 d89635b1 <BR>d896972d 00000229
00000000<BR>23:14:42 celery kernel:
00000000 d8951294 d5dd0000 00000000 000001c9 <BR>00000246 d72aa005
00000002<BR>23:14:42 celery kernel:
00000000 00000000 00000000 00001601 d7534380 <BR>d69dcc80 0000000f
00000001<BR>23:14:42 celery kernel: Call Trace: [<d894f1b7>]
drbd_bm_set_all [drbd] <BR>0x137 (0xd595de9c))<BR>23:14:42 celery kernel:
[<d8963d20>] .rodata.str1.32 [drbd] 0x280 <BR>(0xd595dea0))<BR>23:14:42
celery kernel: [<d89635b1>] __func__.17 [drbd] 0x0
(0xd595dea8))<BR>23:14:42 celery kernel: [<d896972d>] .rodata.str1.1
[drbd] 0x0 (0xd595deac))<BR>23:14:42 celery kernel: [<d8951294>]
drbd_ioctl_set_disk [drbd] 0x624 <BR>(0xd595debc))<BR>23:14:42 celery kernel:
[<d89528b6>] drbd_ioctl [drbd] 0x846 (0xd595df28))<BR>23:14:42 celery
kernel: [<c014ec6e>] blkdev_ioctl [kernel] 0x3e
<BR>(0xd595df80))<BR>23:14:42 celery kernel: [<c01571a9>] sys_ioctl
[kernel] 0xc9 (0xd595df94))<BR>23:14:42 celery kernel: [<c010953f>]
system_call [kernel] 0x33 (0xd595dfc0))<BR>23:14:42 celery kernel:<BR>23:14:42
celery kernel: Unable to handle kernel NULL pointer dereference at <BR>virtual
address 00000000<BR>23:14:42 celery kernel: printing eip:<BR>23:14:42
celery kernel: d894f0ae<BR>23:14:42 celery kernel: *pde = 00000000<BR>23:14:42
celery kernel: Oops: 0000<BR>23:14:42 celery kernel: drbd parport_pc lp parport
autofs sis900 keybdev <BR>mousedev hid input usb-ohci usbcore ext3
jbd<BR>23:14:42 celery kernel: CPU: 0<BR>23:14:42 celery
kernel: EIP: 0060:[<d894f0ae>] Not
tainted<BR>23:14:42 celery kernel: EFLAGS: 00010082<BR>23:14:42 celery
kernel:<BR>23:14:42 celery kernel: EIP is at drbd_bm_set_all [drbd] 0x2e
(2.4.20-31.9)<BR>23:14:42 celery kernel: eax: 00000000 ebx:
d5b52280 ecx: 00000001 edx: <BR>00000000<BR>23:14:42
celery kernel: esi: d5dd0000 edi: d5dd0000 ebp:
00000000 esp: <BR>d595dea0<BR>23:14:42 celery kernel: ds:
0068 es: 0068 ss: 0068<BR>23:14:42 celery kernel:
Process drbdsetup (pid: 2593, stackpage=d595d000)<BR>23:14:42 celery kernel:
Stack: d8963d20 00000000 d89635b1 d896972d 00000229 <BR>00000000 00000000
d8951294<BR>23:14:42 celery kernel:
d5dd0000 00000000 000001c9 00000246 d72aa005 <BR>00000002 00000000
00000000<BR>23:14:42 celery kernel:
00000000 00001601 d7534380 d69dcc80 0000000f <BR>00000001 00000000
00000000<BR>23:14:42 celery kernel: Call Trace: [<d8963d20>]
.rodata.str1.32 [drbd] <BR>0x280 (0xd595dea0))<BR>23:14:42 celery kernel:
[<d89635b1>] __func__.17 [drbd] 0x0 (0xd595dea8))<BR>23:14:42 celery
kernel: [<d896972d>] .rodata.str1.1 [drbd] 0x0 (0xd595deac))<BR>23:14:42
celery kernel: [<d8951294>] drbd_ioctl_set_disk [drbd] 0x624
<BR>(0xd595debc))<BR>23:14:42 celery kernel: [<d89528b6>] drbd_ioctl
[drbd] 0x846 (0xd595df28))<BR>23:14:42 celery kernel: [<c014ec6e>]
blkdev_ioctl [kernel] 0x3e <BR>(0xd595df80))<BR>23:14:42 celery kernel:
[<c01571a9>] sys_ioctl [kernel] 0xc9 (0xd595df94))<BR>23:14:42 celery
kernel: [<c010953f>] system_call [kernel] 0x33 (0xd595dfc0))<BR>23:14:42
celery kernel:<BR>23:14:42 celery kernel:<BR>23:14:42 celery kernel: Code: 81 3c
90 67 02 74 83 74 33 c7 44 24 0c 2e 02 <BR>00 00 8b 15 50<BR><BR><BR>I have
repeated the installation from scratch several times (o/s and drbd), <BR>and
received the same results. And these results are identical on both
<BR>machines.<BR><BR>I have checked and checked the running kernel version, the
version of kernel <BR>source I have (from redhat also, btw), uname -r reports
"2.4.20-31.9" which <BR>is correct.<BR><BR>Sorry about the length of this post;
I thought it was necessary to provide <BR>all these details as simply/clearly as
possible... if anyone can offer any <BR>guidance as to where to go from here it
would be much appreciated ! :)<BR><BR>Regards,<BR><BR>David.
</FONT><BR></FONT></DIV></BODY></HTML>