<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Hi,<div><br></div><div>There's so much information relating to my current configuration, that I'm not sure what I should post here. &nbsp;Let me start by saying that I had two Ubuntu 10.04 hosts configured in a DRBD relationship: &nbsp;sf02-nfs1 (primary) and sf0-nfs2 (secondary). &nbsp;-nfs1 suffered a major filesystem fault. &nbsp;I had to make -nfs2 primary and rebuild -nfs1. &nbsp;I want to eventually have all of my machines on 12.04, so I took this as an opportunity to set -nfs1 on that OS.</div><div><br></div><div>Here is a copy of my main configuration file (/etc/drbd.d/nfs.res):</div><div><br></div><div><div>resource nfs {</div><div>&nbsp; on sf02-nfs2 {</div><div>&nbsp; &nbsp; device &nbsp; &nbsp;/dev/drbd0;</div><div>&nbsp; &nbsp; disk &nbsp; &nbsp; &nbsp;/dev/ubuntu/drbd-nfs;</div><div>&nbsp; &nbsp; address &nbsp; 10.0.6.2:7789;</div><div>&nbsp; &nbsp; meta-disk internal;</div><div>&nbsp; }</div><div>&nbsp; on sf02-nfs1 {</div><div>&nbsp; &nbsp; device &nbsp; &nbsp;/dev/drbd0;</div><div>&nbsp; &nbsp; disk &nbsp; &nbsp; &nbsp;/dev/ubuntuvg/drbd-nfs;</div><div>&nbsp; &nbsp; address &nbsp; 10.0.6.1:7789;</div><div>&nbsp; &nbsp; meta-disk internal;</div><div>&nbsp; }</div><div>}</div></div><div><span style="font-size: 10pt; "><br></span></div><div><span style="font-size: 10pt; "><br></span></div><div><span style="font-size: 10pt; ">I'm trying to re-introduce -nfs1 into the DRBD relationship and am having trouble. &nbsp;I have:</span></div><div><br></div><div>
        
        
        


<p style="margin-bottom: 0in; "><br></p>
<p style="margin-left: 1.48in; margin-bottom: 0in">1.) created the resource "nfs" on -nfs1 ('drbdadm create-md nfs')</p>
<p style="margin-left: 1.48in; margin-bottom: 0in">2.) run 'drbdadm primary nfs' on -nfs2 and 'drbdadm secondary nfs' on -nfs1.</p><p style="margin-left: 1.48in; margin-bottom: 0in">3.) run drbdadm -- --overwrite-data-of-peer primary all' from -nfs2.</p><p style="margin-left: 1.48in; margin-bottom: 0in"><br></p>
<p style="margin-left: 0.98in; margin-bottom: 0in; ">
But /var/log/kern.log shows:
</p><p style="margin-left: 0.98in; margin-bottom: 0in; ">=====</p>
<p style="margin-bottom: 0in; "><p style="margin-bottom: 0in; ">Dec 19 19:55:47 sf02-nfs2 kernel: [9284165.843938] block drbd0: Handshake successful: Agreed network protocol version 91</p><p style="margin-bottom: 0in; ">Dec 19 19:55:47 sf02-nfs2 kernel: [9284165.843949] block drbd0: conn( WFConnection -&gt; WFReportParams )</p><p style="margin-bottom: 0in; ">Dec 19 19:55:47 sf02-nfs2 kernel: [9284165.844171] block drbd0: Starting asender thread (from drbd0_receiver [2452])</p><p style="margin-bottom: 0in; ">Dec 19 19:55:47 sf02-nfs2 kernel: [9284165.844539] block drbd0: data-integrity-alg: &lt;not-used&gt;</p><p style="margin-bottom: 0in; ">Dec 19 19:55:47 sf02-nfs2 kernel: [9284165.844610] block drbd0: <b>The peer's disk size is too small!</b></p><p style="margin-bottom: 0in; ">Dec 19 19:55:47 sf02-nfs2 kernel: [9284165.844617] block drbd0: conn( WFReportParams -&gt; Disconnecting )</p><p style="margin-bottom: 0in; ">Dec 19 19:55:47 sf02-nfs2 kernel: [9284165.844626] block drbd0: error receiving ReportSizes, l: 32!</p><p style="margin-bottom: 0in; ">Dec 19 19:55:47 sf02-nfs2 kernel: [9284165.844680] block drbd0: asender terminated</p><p style="margin-bottom: 0in; ">Dec 19 19:55:47 sf02-nfs2 kernel: [9284165.844691] block drbd0: Terminating asender thread</p><p style="margin-bottom: 0in; ">Dec 19 19:55:47 sf02-nfs2 kernel: [9284165.844746] block drbd0: Connection closed</p><p style="margin-bottom: 0in; ">Dec 19 19:55:47 sf02-nfs2 kernel: [9284165.844755] block drbd0: conn( Disconnecting -&gt; StandAlone )</p><p style="margin-bottom: 0in; ">Dec 19 19:55:47 sf02-nfs2 kernel: [9284165.844791] block drbd0: receiver terminated</p><p style="margin-bottom: 0in; ">Dec 19 19:55:47 sf02-nfs2 kernel: [9284165.844794] block drbd0: Terminating receiver thread</p><p style="margin-bottom: 0in; ">=====</p><p style="margin-bottom: 0in; "><br></p><p style="margin-bottom: 0in; ">So, it seems that a difference in the size of drbd0 on the respective machines is the source of my trouble. &nbsp;'cat /proc/partitions' (output pasted at the end of this message) on each machine tells me that -nfs2's partition is around 348148 blocks larger than -nfs1's. &nbsp;-nfs2 contains my company's Production data, so I do not, of course, want to do anything destructive there. &nbsp;I can, however, certainly recreate the resource on -nfs1. &nbsp;</p><p style="margin-bottom: 0in; "><br></p><p style="margin-bottom: 0in; ">Does anyone out there know what steps I need to take to make the partition sizes match? &nbsp;Of course, I'm working under the belief that the "peer's disk size is too small" message points up the source of my trouble. &nbsp;Let me know, of course, if I need to post more information on my setup.</p><p style="margin-bottom: 0in; "><br></p><p style="margin-bottom: 0in; ">Thanks,</p><p style="margin-bottom: 0in; "><br></p><p style="margin-bottom: 0in; ">-Anthony</p><p style="margin-bottom: 0in; "><br></p><p style="margin-bottom: 0in; "><br></p><p style="margin-bottom: 0in; "><br></p><p style="margin-bottom: 0in; "><br></p><p style="margin-bottom: 0in; "><br></p><p style="margin-bottom: 0in; ">==========</p><p style="margin-bottom: 0in; "><p style="font-size: 12px; font-family: Helvetica; ">root@sf02-nfs1:/dev/ubuntuvg# cat /proc/partitions&nbsp;</p>
<p style="font-size: 12px; font-family: Helvetica; ">major minor&nbsp; #blocks&nbsp; name</p>
<p style="font-size: 12px; font-family: Helvetica; min-height: 14px; "><br></p>
<p style="font-size: 12px; font-family: Helvetica; ">&nbsp;&nbsp; 8 &nbsp; &nbsp; &nbsp; <span class="Apple-tab-span" style="white-space:pre">        </span>0 <span class="Apple-tab-span" style="white-space:pre">        </span>1952448512 <span class="Apple-tab-span" style="white-space:pre">        </span>sda</p>
<p style="font-size: 12px; font-family: Helvetica; ">&nbsp;&nbsp; 8 &nbsp; &nbsp; &nbsp; <span class="Apple-tab-span" style="white-space:pre">        </span>1 &nbsp; &nbsp; <span class="Apple-tab-span" style="white-space:pre">        </span>512000 <span class="Apple-tab-span" style="white-space:pre">                </span>sda1</p>
<p style="font-size: 12px; font-family: Helvetica; ">&nbsp;&nbsp; 8 &nbsp; &nbsp; &nbsp; <span class="Apple-tab-span" style="white-space:pre">        </span>2&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1 <span class="Apple-tab-span" style="white-space:pre">                        </span>sda2</p>
<p style="font-size: 12px; font-family: Helvetica; ">&nbsp;&nbsp; 8&nbsp; &nbsp; &nbsp; &nbsp; <span class="Apple-tab-span" style="white-space:pre">        </span>5 <span class="Apple-tab-span" style="white-space:pre">        </span>1886388224<span class="Apple-tab-span" style="white-space:pre">                </span> sda5</p>
<p style="font-size: 12px; font-family: Helvetica; ">&nbsp;252&nbsp; &nbsp; &nbsp; &nbsp; <span class="Apple-tab-span" style="white-space:pre">        </span>0 &nbsp; <span class="Apple-tab-span" style="white-space:pre">        </span>20971520 <span class="Apple-tab-span" style="white-space:pre">                </span>dm-0<span class="Apple-tab-span" style="white-space:pre">                </span></p>
<p style="font-size: 12px; font-family: Helvetica; ">&nbsp;252&nbsp; &nbsp; &nbsp; &nbsp; <span class="Apple-tab-span" style="white-space:pre">        </span>1&nbsp; &nbsp; <span class="Apple-tab-span" style="white-space:pre">        </span>5242880 <span class="Apple-tab-span" style="white-space:pre">                </span>dm-1<span class="Apple-tab-span" style="white-space:pre">                </span></p>
<p style="font-size: 12px; font-family: Helvetica; ">&nbsp;252 &nbsp; &nbsp; &nbsp; <span class="Apple-tab-span" style="white-space:pre">        </span>2 <span class="Apple-tab-span" style="white-space:pre">        </span>1706033152 <span class="Apple-tab-span" style="white-space:pre">        </span>dm-2<span class="Apple-tab-span" style="white-space:pre">                </span></p>
<p style="font-size: 12px; font-family: Helvetica; ">&nbsp;147&nbsp; &nbsp; &nbsp; &nbsp; <span class="Apple-tab-span" style="white-space:pre">        </span>0 <span class="Apple-tab-span" style="white-space:pre">        </span>1705981052 <span class="Apple-tab-span" style="white-space:pre">        </span>drbd0</p>
<p style="font-size: 12px; font-family: Helvetica; min-height: 14px; "><br></p>
<p style="font-size: 12px; font-family: Helvetica; min-height: 14px; "><br></p>
<p style="font-size: 12px; font-family: Helvetica; ">root@sf02-nfs2:/etc/drbd.d# cat /proc/partitions&nbsp;</p>
<p style="font-size: 12px; font-family: Helvetica; ">major minor&nbsp; #blocks&nbsp; name</p>
<p style="font-size: 12px; font-family: Helvetica; min-height: 14px; "><br></p>
<p style="font-size: 12px; font-family: Helvetica; ">&nbsp;&nbsp; 8&nbsp; &nbsp; &nbsp; &nbsp; <span class="Apple-tab-span" style="white-space:pre">        </span>0 <span class="Apple-tab-span" style="white-space:pre">        </span>1952448512 <span class="Apple-tab-span" style="white-space:pre">        </span>sda</p>
<p style="font-size: 12px; font-family: Helvetica; ">&nbsp;&nbsp; 8&nbsp; &nbsp; &nbsp; &nbsp; <span class="Apple-tab-span" style="white-space:pre">        </span>1 &nbsp; &nbsp; <span class="Apple-tab-span" style="white-space:pre">        </span>248832 <span class="Apple-tab-span" style="white-space:pre">                </span>sda1</p>
<p style="font-size: 12px; font-family: Helvetica; ">&nbsp;&nbsp; 8&nbsp; &nbsp; &nbsp; &nbsp; <span class="Apple-tab-span" style="white-space:pre">        </span>2&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1 <span class="Apple-tab-span" style="white-space:pre">                        </span>sda2</p>
<p style="font-size: 12px; font-family: Helvetica; ">&nbsp;&nbsp; 8&nbsp; &nbsp; &nbsp; &nbsp; <span class="Apple-tab-span" style="white-space:pre">        </span>5 <span class="Apple-tab-span" style="white-space:pre">        </span>1952196608 <span class="Apple-tab-span" style="white-space:pre">        </span>sda5</p>
<p style="font-size: 12px; font-family: Helvetica; ">&nbsp;252&nbsp; &nbsp; &nbsp; &nbsp; <span class="Apple-tab-span" style="white-space:pre">        </span>0&nbsp; <span class="Apple-tab-span" style="white-space:pre">        </span>209715200 <span class="Apple-tab-span" style="white-space:pre">                </span>dm-0<span class="Apple-tab-span" style="white-space:pre">                </span>ubuntuvg-root</p>
<p style="font-size: 12px; font-family: Helvetica; ">&nbsp;252&nbsp; &nbsp; &nbsp; &nbsp; <span class="Apple-tab-span" style="white-space:pre">        </span>1&nbsp; <span class="Apple-tab-span" style="white-space:pre">        </span>36098048 <span class="Apple-tab-span" style="white-space:pre">                </span>dm-1<span class="Apple-tab-span" style="white-space:pre">                </span>ubuntuvg-swap</p>
<p style="font-size: 12px; font-family: Helvetica; ">&nbsp;252&nbsp; &nbsp; &nbsp; &nbsp; <span class="Apple-tab-span" style="white-space:pre">        </span>2 <span class="Apple-tab-span" style="white-space:pre">        </span>1706381312 <span class="Apple-tab-span" style="white-space:pre">        </span>dm-2<span class="Apple-tab-span" style="white-space:pre">                </span>ubuntuvg-drbd--nfs</p>
<p style="font-size: 12px; font-family: Helvetica; ">&nbsp;147&nbsp; &nbsp; &nbsp; &nbsp; <span class="Apple-tab-span" style="white-space:pre">        </span>0 <span class="Apple-tab-span" style="white-space:pre">        </span>1706329200 <span class="Apple-tab-span" style="white-space:pre">        </span>drbd0</p><div><br></div></p></p></div>                                               </div></body>
</html>