<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>Hi, all.<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>I’m using 8.0.3 DRBD
on a PPC platform, MontaVista 2.6.21_mvlcge500 base (ppc64).<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>I’m running into the "attempt
to access beyond end of device" condition written up on the list, but it
looks to me that I have over 500MB (26%) of the drbd partition still available,
even after the copy would be complete.<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>I did the check of IMD space
requirements as per the formula given by Lars, and it looks ok (see below).<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>Any insights?<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>Thanks in advance!<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>
-k<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>Version: 8.0.3 (api:86)<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>SVN Revision: 2881 build by
build@node-44, 2008-04-03 21:30:55<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>## we're going to attempt to
copy a 311MB file...<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>primarybox:/public/klittle#
ls -lh /sw/bigfile<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>-rwxr-xr-x 1 root root 311M
Mar 9 2009 /sw/bigfile<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>## target is
/public/klittle; /public is mounted on device /dev/drbd3:<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>primarybox:/public/klittle#
df .<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>Filesystem
1K-blocks Used Available Use% Mounted on<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>/dev/drbd3
1929068 1019452 811624 56% /public<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>## thus a copy of bigfile
will take ~304000 1k-blocks.<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>## this should leave ~507600
blocks (26%) available after the copy is done.<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>## /public was a existing
partition prior to being put under drbd;<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>## it was mounted on device
/dev/sda7<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>primarybox:/public/klittle#
grep -e drbd3 -e sda7 /proc/partitions<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>
8 7 1959898 sda7<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'> 147
3 1959800 drbd3<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>primarybox:/public/klittle#
drbdadm dump public<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>resource public {<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'> on slot8a
{<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>
device /dev/drbd3;<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>
disk
/dev/sda7;<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>
address 127.1.2.178:7791;<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>
meta-disk internal;<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'> }<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'> on slot9a
{<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>
device /dev/drbd3;<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>
disk
/dev/sda7;<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>
address 127.1.2.176:7791;<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>
meta-disk internal;<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'> }<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'> net {<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>
after-sb-0pri disconnect;<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>
after-sb-1pri discard-secondary;<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>
after-sb-2pri disconnect;<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'> }<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>}<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>## check IMD space
requirements:<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>##
1959898/(4*8*512*2)= 59.81134033203125<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>##
60 + 36= 96<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>##
1959898-96= 1959802 check!<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>## note: for
logistical/development reasons, I have skipped /dev/drbd1:<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>primarybox:/public/klittle#
ls -la /dev/drbd*<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>brw-r--r-- 1 root root 147,
0 Jan 1 12:00 /dev/drbd<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>brw-r--r-- 1 root root 147,
2 Jan 1 12:00 /dev/drbd2<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>brw-r--r-- 1 root root 147,
3 Jan 1 12:00 /dev/drbd3<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>## but, even with head-room
of 500MB (26%)...<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>primarybox:/public/klittle#
cp /sw/bigfile .<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>attempt to access beyond end
of device<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>drbd3: rw=1, want=3919608,
limit=3919600<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>Buffer I/O error on device
drbd3, logical block 489950<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>lost page write due to I/O
error on drbd3<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>attempt to access beyond end
of device<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>drbd3: rw=1, want=3919616,
limit=3919600<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>Buffer I/O error on device
drbd3, logical block 489951<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>lost page write due to I/O
error on drbd3<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>attempt to access beyond end
of device<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>drbd3: rw=1, want=3919624,
limit=3919600<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>Buffer I/O error on device
drbd3, logical block 489952<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>lost page write due to I/O
error on drbd3<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>...<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>attempt to access beyond end
of device<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>drbd3: rw=1, want=3919688,
limit=3919600<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>attempt to access beyond end
of device<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>drbd3: rw=1, want=3919696,
limit=3919600<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>...<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='margin-right:415.75pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>primarybox:/public/klittle#<o:p></o:p></span></font></p>
</div>
</body>
</html>