<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<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> </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=discussions@lagraphico.com
href="mailto:discussions@lagraphico.com">Discussion Lists</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=david@davidbranford.net
href="mailto:david@davidbranford.net">David</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Sunday, May 22, 2005 6:52 AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> RE: [DRBD-user] DRBD on redhat
9</DIV>
<DIV><BR></DIV>
<DIV><SPAN class=142271421-21052005><FONT face=Arial color=#0000ff
size=2>Coupla things:</FONT></SPAN></DIV>
<DIV><SPAN class=142271421-21052005><FONT face=Arial color=#0000ff size=2>When
you create your partitions, I assume you are using fdisk right? After
you write them, do you reboot before going on? The kernel has to re-read
the partition table to see the new partitions. I skimmed through your
post, so I appologize if I missed the part where you stated that you
did.</FONT></SPAN></DIV></BLOCKQUOTE>
<DIV><FONT face=Arial><FONT size=2><SPAN class=142271421-21052005><FONT
face=Arial color=#0000ff size=2>That's OK, I didn't say I did... but I did
:)</FONT></SPAN></FONT></FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV><SPAN class=142271421-21052005><FONT face=Arial color=#0000ff size=2>ALso
try the following mknod command instead of what you have been
using:</FONT></SPAN></DIV>
<DIV><SPAN class=142271421-21052005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=142271421-21052005><FONT face=Arial color=#0000ff
size=2>mknod -m 0660 /dev/drbd0 b 147 0</FONT></SPAN></DIV></BLOCKQUOTE>
<DIV><FONT face=Arial><FONT size=2><SPAN class=142271421-21052005><FONT
face=Arial color=#0000ff size=2>okay</FONT></SPAN></FONT></FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV><SPAN class=142271421-21052005><FONT face=Arial color=#0000ff size=2>I am
not entirely sure what the difference is, but I know it worked for me. I
also do that stuff in the following context when setting up for the first
time:</FONT></SPAN></DIV>
<DIV><SPAN class=142271421-21052005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=142271421-21052005><FONT face=Arial color=#0000ff
size=2>mknod -m 0660 /dev/drbd0 b 147 0<BR>modprobe drbd<BR>drbdsetup
/dev/drbd0 disk /dev/sdb1 /dev/sdb2 0 --on-io-error=detach<BR>drbdsetup
/dev/drbd0 syncer --rate=30M --group=1 --al-extents=257<BR>drbdsetup
/dev/drbd0 net $THISNODEIP:7789 $OTHERNODEIP:7789 C<BR>drbdsetup /dev/drbd0
primary --do-what-I-say<BR>mkfs -j /dev/drbd0<BR>tune2fs -c -1 -i 0
/dev/drbd0</FONT></SPAN></DIV>
<DIV><SPAN class=142271421-21052005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=142271421-21052005><FONT face=Arial color=#0000ff
size=2>Obviously replace the variables, and the sdb* with hdb* though.
Again, I am not saying this is the BEST way to do it, because I am no uber
genious DRBD expert, but it is what worked for me. Once you get that
going with no error, do a "cat /proc/drbd" to confirm that it looks good, then
do a "drbdadm down all" and try to start it up from your init script.
You will also want to create a directory somewhere, and then set up mount and
umount statement in your init script.</FONT></SPAN></DIV></BLOCKQUOTE>
<DIV><FONT face=Arial><FONT size=2><SPAN class=142271421-21052005><FONT
face=Arial color=#0000ff size=2>hmm, following these same commands, I get to
here:</FONT></SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff size=2><SPAN
class=142271421-21052005></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT color=#0000ff size=2><SPAN
class=142271421-21052005>[root@celery root]# modprobe drbd<BR>[root@celery
root]# drbdsetup /dev/drbd0 disk /dev/hdc1 /dev/hda5 0
--on-io-error=detach
<BR>Segmentation fault</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff size=2><SPAN
class=142271421-21052005></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT color=#0000ff size=2><SPAN
class=142271421-21052005>...and the same appears in my system log files as
before:</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff size=2><SPAN
class=142271421-21052005></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT color=#0000ff size=2><SPAN
class=142271421-21052005>May 22 16:01:54 celery kernel: drbd: initialised.
Version: 0.7.10 (api:77/proto:74)<BR>May 22 16:01:54 celery kernel: drbd: SVN
Revision: 1743 build by <A href="mailto:phil@mescal">phil@mescal</A>, 2005-01-31
12:22:07<BR>May 22 16:01:54 celery kernel: drbd: registered as block device
major 147<BR>May 22 16:03:08 celery kernel: drbd0: Both nodes diskless!<BR>May
22 16:03:08 celery kernel: drbd0: Assuming that all blocks are out of sync (aka
FullSync)<BR>May 22 16:03:08 celery kernel: drbd0: drbd_bm_set_all: (!(b
&& b->bm)) in drbd_bitmap.c:553<BR>May 22 16:03:08 celery kernel:
d419be98 d894f1b7 d8963d00 00000000 d89635b1 d896970d 00000229 00000000 <BR>May
22 16:03:08 celery kernel: 00000000
d8951294 d4053000 00000000 000001c9 00000246 c1e5f005 00000002 <BR>May 22
16:03:08 celery kernel: 00000000
00000000 00000000 00001601 d7aba380 d4250900 0000000f 00000001 <BR>May 22
16:03:08 celery kernel: Call Trace: [<d894f1b7>]
drbd_bm_set_all [drbd] 0x137 (0xd419be9c))<BR>May 22 16:03:08 celery kernel:
[<d8963d00>] .rodata.str1.32 [drbd] 0x260 (0xd419bea0))<BR>May 22 16:03:08
celery kernel: [<d89635b1>] __func__.17 [drbd] 0x0 (0xd419bea8))<BR>May 22
16:03:08 celery kernel: [<d896970d>] .rodata.str1.1 [drbd] 0x0
(0xd419beac))<BR>May 22 16:03:08 celery kernel: [<d8951294>]
drbd_ioctl_set_disk [drbd] 0x624 (0xd419bebc))<BR>May 22 16:03:08 celery kernel:
[<d89528b6>] drbd_ioctl [drbd] 0x846 (0xd419bf28))<BR>May 22 16:03:08
celery kernel: [<c014ec6e>] blkdev_ioctl [kernel] 0x3e
(0xd419bf80))<BR>May 22 16:03:08 celery kernel: [<c01571a9>] sys_ioctl
[kernel] 0xc9 (0xd419bf94))<BR>May 22 16:03:08 celery kernel: [<c010953f>]
system_call [kernel] 0x33 (0xd419bfc0))<BR>May 22 16:03:08 celery kernel:
<BR>May 22 16:03:08 celery kernel: Unable to handle kernel NULL pointer
dereference at virtual address 00000000<BR>May 22 16:03:08 celery kernel:
printing eip:<BR>May 22 16:03:08 celery kernel: d894f0ae<BR>May 22 16:03:08
celery kernel: *pde = 00000000<BR>May 22 16:03:08 celery kernel: Oops:
0000<BR>May 22 16:03:08 celery kernel: drbd parport_pc lp parport autofs sis900
keybdev mousedev hid input usb-ohci usbcore ext3 jbd <BR>May 22 16:03:08
celery kernel: CPU: 0<BR>May 22 16:03:08 celery kernel:
EIP: 0060:[<d894f0ae>] Not
tainted<BR>May 22 16:03:08 celery kernel: EFLAGS: 00010082<BR>May 22 16:03:08
celery kernel: <BR>May 22 16:03:08 celery kernel: EIP is at drbd_bm_set_all
[drbd] 0x2e (2.4.20-31.9)<BR>May 22 16:03:08 celery kernel: eax:
00000000 ebx: d4685480 ecx: 00000001 edx:
00000000<BR>May 22 16:03:08 celery kernel: esi: d4053000 edi:
d4053000 ebp: 00000000 esp: d419bea0<BR>May 22 16:03:08
celery kernel: ds: 0068 es: 0068 ss: 0068<BR>May 22
16:03:08 celery kernel: Process drbdsetup (pid: 2619, stackpage=d419b000)<BR>May
22 16:03:08 celery kernel: Stack: d8963d00 00000000 d89635b1 d896970d 00000229
00000000 00000000 d8951294 <BR>May 22 16:03:08 celery
kernel: d4053000 00000000 000001c9
00000246 c1e5f005 00000002 00000000 00000000 <BR>May 22 16:03:08 celery
kernel: 00000000 00001601 d7aba380
d4250900 0000000f 00000001 00000000 00000000 <BR>May 22 16:03:08 celery kernel:
Call Trace: [<d8963d00>] .rodata.str1.32 [drbd] 0x260
(0xd419bea0))<BR>May 22 16:03:08 celery kernel: [<d89635b1>] __func__.17
[drbd] 0x0 (0xd419bea8))<BR>May 22 16:03:08 celery kernel: [<d896970d>]
.rodata.str1.1 [drbd] 0x0 (0xd419beac))<BR>May 22 16:03:08 celery kernel:
[<d8951294>] drbd_ioctl_set_disk [drbd] 0x624 (0xd419bebc))<BR>May 22
16:03:08 celery kernel: [<d89528b6>] drbd_ioctl [drbd] 0x846
(0xd419bf28))<BR>May 22 16:03:08 celery kernel: [<c014ec6e>] blkdev_ioctl
[kernel] 0x3e (0xd419bf80))<BR>May 22 16:03:08 celery kernel: [<c01571a9>]
sys_ioctl [kernel] 0xc9 (0xd419bf94))<BR>May 22 16:03:08 celery kernel:
[<c010953f>] system_call [kernel] 0x33 (0xd419bfc0))<BR>May 22 16:03:08
celery kernel: <BR>May 22 16:03:08 celery kernel: <BR>May 22 16:03:08 celery
kernel: Code: 81 3c 90 67 02 74 83 74 33 c7 44 24 0c 2e 02 00 00 8b 15 30
</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff size=2><SPAN
class=142271421-21052005></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT color=#0000ff size=2><SPAN
class=142271421-21052005>same on pii (?? a seg. fault on two different systems,
running the same os? I must be doing something wrong somewhere...) Thanks for
the extra info. though; know I'm assured it's at least _possible_ to get working
on fedora 2/3 perhaps I'll try one of those (but that's a big
change).</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff size=2><SPAN
class=142271421-21052005></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT color=#0000ff size=2><SPAN
class=142271421-21052005>David.</SPAN></FONT></FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV><SPAN class=142271421-21052005><FONT face=Arial color=#0000ff
size=2>HTH</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT
face=Tahoma size=2>-----Original Message-----<BR><B>From:</B>
drbd-user-bounces@lists.linbit.com
[mailto:drbd-user-bounces@lists.linbit.com] <B>On Behalf Of
</B>David<BR><B>Sent:</B> Saturday, May 21, 2005 12:10 PM<BR><B>To:</B> DRBD
List<BR><B>Subject:</B> Re: [DRBD-user] DRBD on redhat
9<BR><BR></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=discussions@lagraphico.com
href="mailto:discussions@lagraphico.com">Discussion Lists</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=david@davidbranford.net
href="mailto:david@davidbranford.net">David</A> ; <A
title=drbd-user@lists.linbit.com
href="mailto:drbd-user@lists.linbit.com">DRBD List</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Sunday, May 22, 2005 3:49
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> RE: [DRBD-user] DRBD on
redhat 9</DIV>
<DIV><FONT face=Arial size=2></FONT><BR></DIV>
<DIV><SPAN class=737281618-21052005><FONT face=Arial color=#0000ff
size=2>I have not tried to get it running on Redhat, but I have
successfully gotten it running on FC1 and FC3 with success. I had to
be very dilligent about following the instructions in the INSTALL
file. I have also it helps in certain cases to know a little about
kernel upgrading and patching. Any errors you are getting? Are
you sure IPTables isn't blocking any network traffic?</FONT></SPAN></DIV>
<DIV><SPAN class=737281618-21052005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV></BLOCKQUOTE>
<DIV><FONT face=Arial><FONT size=2><SPAN class=737281618-21052005><FONT
face=Arial color=#0000ff size=2>My setup is as here: <A
href="http://www.gossamer-threads.com/lists/drbd/users/8260">http://www.gossamer-threads.com/lists/drbd/users/8260</A></FONT></SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff size=2><SPAN
class=737281618-21052005></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT color=#0000ff size=2><SPAN
class=737281618-21052005>Basically two machines on a private LAN, no
firewall rules (IPTABLES default policy "accept"), using redhat
kernel.</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff size=2><SPAN
class=737281618-21052005></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT color=#0000ff size=2><SPAN
class=737281618-21052005>I have not patched my kernel, and I have compiled
drbd (0.7.10) as a kernel module, against the kernel source. I have followed
the instructions in the INSTALL file as closely as possible; everything
worked as expected as far as configuring/compiling/installing until I came
to running drbdadm, then I got the kernel errors I listed in the above
post.</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff size=2><SPAN
class=737281618-21052005></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT color=#0000ff size=2><SPAN
class=737281618-21052005>Thanks,</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff size=2><SPAN
class=737281618-21052005></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT color=#0000ff size=2><SPAN
class=737281618-21052005>David.</SPAN></FONT></FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT
face=Tahoma size=2>-----Original Message-----<BR><B>From:</B> <A
href="mailto:drbd-user-bounces@lists.linbit.com">drbd-user-bounces@lists.linbit.com</A>
[mailto:drbd-user-bounces@lists.linbit.com] <B>On Behalf Of
</B>David<BR><B>Sent:</B> Saturday, May 21, 2005 2:53 AM<BR><B>To:</B>
DRBD List<BR><B>Subject:</B> [DRBD-user] DRBD on redhat
9<BR><BR></FONT></DIV>
<DIV><FONT face=Arial size=2>Hi everyone,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Has anybody succeeded in making drbd work
on redhat 9? If so, could you share a couple of details like kernel
version, drbd version (ie. 0.7.10?) as I am stuck and don't want to do a
full re-install for fedora or something (which, btw, I have not made
drbd work on successfully yet either).</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Especially I am hoping there is someone out
there who has drbd working on redhat 9 on a 2.4x version
kernel...</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Many thanks,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial
size=2>David.</FONT></DIV></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE>!DSPAM:428fa69e236324445860300!
</BLOCKQUOTE></BODY></HTML>