<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=big5">
<META content="MSHTML 6.00.2800.1476" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face="Courier New" size=2>Hi,</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>I'm having trouble getting DRBD to run on
top of a software raid 0 or jbod device. Actually the problem is that DRBD can't
seem to get the exact size of the partition. I am doing raid 0 over 2 80GB sata
disk.</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2># fdisk -s /dev/md0</FONT></DIV>
<DIV><FONT face="Courier New" size=2>155589376</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>but with drbd</FONT></DIV>
<DIV>
<DIV><FONT face="Courier New" size=2><FONT face="Courier New" size=2># drbdadm
up all</FONT></DIV></DIV>
<DIV>
<DIV><FONT face="Courier New" size=2>drbd0: resync bitmap: bits=19448672
words=607772</FONT></DIV>
<DIV><FONT face="Courier New" size=2>drbd0: size = 74 GB (77794688
KB)</FONT></DIV>
<DIV><FONT face="Courier New" size=2>drbd0: 74 GB marked out-of-sync by on disk
bit-map</FONT></DIV>
<DIV><FONT face="Courier New" size=2>drbd0: Found 4 transactions (192 active
extents) in activity log</FONT></DIV>
<DIV><FONT face="Courier New" size=2>drbd0: drbdsetup [2248]: cstate
Unconfigured --> StandAlone</FONT></DIV>
<DIV><FONT face="Courier New" size=2>drbd0: drbdsetup [2250]: cstate StandAlone
--> Unconnected</FONT></DIV>
<DIV><FONT face="Courier New" size=2>drbd0: drbd0_receiver [2251]: cstate
Unconnected --> WFConnection</FONT></DIV>
<DIV> </DIV></FONT></DIV>
<DIV><FONT face="Courier New" size=2>
<DIV><FONT face="Courier New" size=2># fdisk -s /dev/drbd0</FONT></DIV>
<DIV><FONT face="Courier New" size=2>77794688</FONT></DIV>
<DIV> </DIV></FONT></DIV>
<DIV><FONT face="Courier New" size=2>And because of this I kept getting
"access beyond the end of device" error. Should I manual set the disk size for
drbd for raid 0 and jbod? How do I do that?</FONT></DIV>
<DIV><FONT face="Courier New" size=2>But if I used raid 1, everything seems
ok.</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>I'm using drbd-0.7.5 and kernel
2.6.8.1</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>my drbd.conf</FONT></DIV>
<DIV>
<DIV><FONT face="Courier New"><FONT size=2>resource "drbd0"
{<BR> protocol C;<BR> incon-degr-cmd "echo '!DRBD! pri on
incon-degr' | wall ; sleep 60 ; halt -f";</FONT></FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New"><FONT size=2> disk
{<BR> on-io-error detach;<BR> }</FONT></FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New"><FONT size=2> syncer
{<BR> rate 20M;<BR> }</FONT></FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New"><FONT size=2> on node1
{<BR> device /dev/drbd0;<BR> disk /dev/md0;<BR> address 192.168.2.1:7788;<BR> meta-disk /dev/md3[0];<BR> }</FONT></FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New"><FONT size=2> on node2
{<BR> device /dev/drbd0;<BR> disk /dev/md0;<BR> address 192.168.2.2:7788;<BR> meta-disk /dev/md3[0];<BR> }<BR>}</FONT></FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>Best Regards,</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>Paul Chen</FONT></DIV></DIV>
<P>
<HR>
<P></P>_______________________________________________<BR>drbd-user mailing
list<BR>drbd-user@lists.linbit.com<BR>http://lists.linbit.com/mailman/listinfo/drbd-user<BR></BODY></HTML>