<!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 am trying to get drbd to work with my
current fs. I'm using jbod on my system and I am mapping /dev/drbd0 to /dev/md0.
When I tried to mount /dev/drbd0 using ext3, I kept getting the following
warning msg.</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>[node1]# dmesg</FONT></DIV>
<DIV><FONT face="Courier New" size=2>....</FONT></DIV>
<DIV><FONT face="Courier New" size=2>drbd0: Secondary/Unknown -->
Primary/Unknown<BR>kjournald starting. Commit interval 5
seconds<BR>EXT3-fs warning: mounting fs with errors, running e2fsck is
recommended<BR>EXT3 FS on drbd0, internal journal<BR>EXT3-fs: mounted filesystem
with ordered data mode.<BR>attempt to access beyond end of device<BR>drbd0:
rw=0, want=181928048, limit=155327232<BR>EXT3-fs error (device drbd0):
ext3_get_inode_loc: unable to read inode block - inode=11370497,
block=22741005<BR>Aborting journal on device drbd0.<BR>ext3_abort
called.<BR>EXT3-fs abort (device drbd0): ext3_journal_start: Detected aborted
journal<BR>Remounting filesystem read-only<BR>attempt to access beyond end of
device<BR>drbd0: rw=0, want=181141616, limit=155327232<BR>EXT3-fs error (device
drbd0): ext3_get_inode_loc: unable to read inode block - inode=11321345,
block=22642701<BR></FONT></DIV>
<DIV><FONT face="Courier New" size=2>However if I just mount /dev/md0,
everything is ok and I get the following message. So is there something with my
harddisk or am i doing something wrong?</FONT></DIV>
<DIV><FONT face="Courier New" size=2>By the way, I formatted /dev/md0 to
ext3 first before I start drbd, should I format directly on /dev/drbd0
instead?</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>[node1]# dmesg</FONT></DIV>
<DIV><FONT face="Courier New" size=2>....</FONT></DIV>
<DIV><FONT face="Courier New" size=2>EXT3 FS on md0, internal
journal</FONT></DIV>
<DIV><FONT face="Courier New" size=2>EXT3-fs: recovery complete<BR>EXT3-fs:
mounted filesystem with ordered data mode.</FONT></DIV>
<DIV><FONT face="Courier New" size=2>md:md2:sync done.</FONT></DIV>
<DIV><FONT face="Courier New" size=2>RAID1 conf printout:</FONT></DIV>
<DIV><FONT face="Courier New" size=2> --- wd:2 rd:2</FONT></DIV>
<DIV><FONT face="Courier New" size=2> disk 0, wo:0 o:1,
dev:sda2</FONT></DIV>
<DIV><FONT face="Courier New" size=2> disk 2, wo:0 0:1,
dev:sdb2</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>I am using Redhat7.2 and kernel
2.6.8.1</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New"><FONT size=2>my drbd.conf:</FONT></FONT></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> </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 internal;<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 internal;<BR> }<BR>}</FONT></FONT></DIV>
<DIV><FONT face="Courier New"><FONT size=2></FONT></FONT> </DIV>
<DIV><FONT face="Courier New"><FONT size=2>Thanks and best
regards,</FONT></FONT></DIV>
<DIV><FONT face="Courier New"><FONT size=2></FONT></FONT> </DIV>
<DIV><FONT face="Courier New"><FONT size=2>Paul
Chen</FONT></DIV></FONT></BODY></HTML>