<div dir="ltr">if you are using lvm, have you configured /etc/lvm/lvm.conf ? not long ago we had diskless issues due to a misconfigured lvm.conf .</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 4, 2015 at 6:49 AM, AJ NOURI <span dir="ltr"><<a href="mailto:ajn.bin@gmail.com" target="_blank">ajn.bin@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><br></div><div>I am confused between the official docs on <a href="http://drbd.linbit.com/docs/about/" target="_blank">http://drbd.linbit.com/docs/about/</a> and some drbd tutorials on ubuntu wiki concerning the step "Preparing your lower-level storage".</div><div><br></div><div>Should we partition the storage and format it? Looks like we shouldn't format it, to avoid "create-md exit code 40, drbd will take care of that. Then should we mount it on both devices?</div><div><br></div><div>I am suspecting most errors at this stage of preparing the storage.</div><div><br></div><div>On node2 (primary) everything works fine (no error messages):</div><blockquote style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex" class="gmail_quote"><font color="#000000"><span style="font-size:12.8000001907349px">sudo drbdadm create-md r0<br></span></font><font color="#000000"><span style="font-size:12.8000001907349px">sudo service drbd start<br></span></font><font color="#000000"><span style="font-size:12.8000001907349px">sudo drbdadm -- --overwrite-data-of-peer primary all<br></span></font><font color="#000000"><span style="font-size:12.8000001907349px">sudo drbdadm up r0</span></font></blockquote><div><div style="font-weight:bold"><font color="#000000"><span style="font-size:12.8000001907349px"><br></span></font></div><div><font color="#000000"><span style="font-size:12.8000001907349px">and detects itself as the primary node:</span></font></div><div><br></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">ajn@node2:~$<b> cat /proc/drbd<br></b>version: 8.4.3 (api:1/proto:86-101)<br>srcversion: F97798065516C94BE0F27DC <br> 1: cs:Connected ro:Primary/Secondary ds:UpToDate/Diskless C r-----<br> ns:0 nr:0 dw:33504 dr:1637 al:9 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:f oos:1048508<br>ajn@node2:~$ </blockquote></div><div><br></div><div><br></div><div style="color:rgb(0,0,0);font-size:12.8000001907349px">But on node2, I am stuck with <span style="font-weight:bold">"<b style="font-size:small;color:rgb(34,34,34)"><div style="display:inline!important"><font color="#000000"><span style="font-size:12.8000001907349px">sudo drbdadm create-md r0</span></font></div></b><b style="font-size:small;color:rgb(34,34,34)"><div style="color:rgb(0,0,0);font-size:12.8000001907349px;display:inline!important">"</div></b></span></div><div style="color:rgb(0,0,0);font-size:12.8000001907349px"><br></div></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">ajn@node1:~$ cat /proc/drbd<br>version: 8.4.3 (api:1/proto:86-101)<br>srcversion: F97798065516C94BE0F27DC <br> 1: cs:Connected ro:Secondary/Primary ds:Diskless/UpToDate C r-----<br> ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:f oos:0<br>ajn@node1:~$ </blockquote></div><div><br></div><div><span style="color:rgb(0,0,0);font-size:12.8000001907349px">Though successfully detects itself as secondary:</span><br></div><div><br></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><b>sudo drbdadm create-md r0<br></b>[sudo] password for ajn: <br>Writing meta data...<br>md_offset 1073737728<br>al_offset 1073704960<br>bm_offset 1073672192<br>Found ext3 filesystem<br> 1048576 kB data area apparently used<br> 1048508 kB left usable by current configuration<br>Device size would be truncated, which<br>would corrupt data and result in<br>'access beyond end of device' errors.<br>You need to either<br> * use external meta data (recommended)<br> * shrink that filesystem first<br> * zero out the device (destroy the filesystem)<br>Operation refused.<br>Command 'drbdmeta 1 v08 /dev/sdb internal create-md' terminated with exit code 40</blockquote></div><div><br></div></div>
<br>_______________________________________________<br>
drbd-user mailing list<br>
<a href="mailto:drbd-user@lists.linbit.com">drbd-user@lists.linbit.com</a><br>
<a href="http://lists.linbit.com/mailman/listinfo/drbd-user" rel="noreferrer" target="_blank">http://lists.linbit.com/mailman/listinfo/drbd-user</a><br>
<br></blockquote></div><br></div>