<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    No, that's only the case when you want to use dual primary mode.<br>
    <br>
    I'm not sure how things work with existing data on a partition,
    never did that. Maybe someone else can say something about that.<br>
    <br>
    Cheers,<br>
    <br>
    Dirk<br>
    <br>
    <br>
    <div class="moz-cite-prefix">Op 28-5-2013 11:50, Steve Kieu schreef:<br>
    </div>
    <blockquote
cite="mid:CAAQ-o+-nP+8Y=gxXn0WnJv3BmRscVK1Z_Frh-0QRtscOEYQVwA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>
            <div>I believe that you need a network filesystem on top of
              DRDB rather.<br>
              <br>
            </div>
            Example like Redhat&nbsp; GFS, ocfs2 etc..<br>
            <br>
          </div>
          ext4 is not network aware FS.<br>
          <br>
        </div>
        cheers<br>
      </div>
      <div class="gmail_extra">
        <br>
        <br>
        <div class="gmail_quote">On Tue, May 28, 2013 at 6:50 PM,
          Vasiliy I Ozerov <span dir="ltr">&lt;<a
              moz-do-not-send="true" href="mailto:vozerov@2reallife.com"
              target="_blank">vozerov@2reallife.com</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div>Good day! </div>
            <div><br>
            </div>
            <div>I have a little problem running drbd.</div>
            <div><br>
            </div>
            <div>System: Debian Squeeze&nbsp;6.0.6</div>
            <div>Kernel:&nbsp;2.6.32-5-amd64</div>
            <div>DRBD:&nbsp;8.3.13-2</div>
            <div><br>
            </div>
            <div>Config for home resource:</div>
            <div><br>
            </div>
            <div>
              <div>resource home {</div>
              <div><span style="white-space:pre-wrap"> </span>on backup
                {</div>
              <div><span style="white-space:pre-wrap"> </span>device &nbsp;
                &nbsp;/dev/drbd1;</div>
              <div><span style="white-space:pre-wrap"> </span>disk &nbsp; &nbsp;
                &nbsp;/dev/sda5;</div>
              <div><span style="white-space:pre-wrap"> </span>address &nbsp;
                <a moz-do-not-send="true" href="http://78.47.3.54:7789"
                  target="_blank">78.47.3.54:7789</a>;</div>
              <div><span style="white-space:pre-wrap"> </span>meta-disk
                /dev/ram0[14];</div>
              <div><span style="white-space:pre-wrap"> </span>}</div>
              <div><br>
              </div>
              <div><span style="white-space:pre-wrap"> </span>on
                backup2 {</div>
              <div><span style="white-space:pre-wrap"> </span>device &nbsp;
                &nbsp;/dev/drbd1;</div>
              <div><span style="white-space:pre-wrap"> </span>disk &nbsp; &nbsp;
                &nbsp;/dev/sda4;</div>
              <div><span style="white-space:pre-wrap"> </span>address &nbsp;
                <a moz-do-not-send="true" href="http://78.47.3.86:7789"
                  target="_blank">78.47.3.86:7789</a>;</div>
              <div><span style="white-space:pre-wrap"> </span>meta-disk
                internal;</div>
              <div><span style="white-space:pre-wrap"> </span>}</div>
              <div>}</div>
              <div><br>
              </div>
              <div>
                <div>ram0 - 2Gb Size</div>
                <div><br>
                </div>
              </div>
              <div>I make the following actions:</div>
              <div><br>
              </div>
              <div># drbdadm create-md home</div>
              <div># /etc/init.d/drbd start</div>
              <div><br>
              </div>
              <div>
                Then I see the following:</div>
              <div><br>
              </div>
              <div>
                <div>root@backup2 /etc/drbd.d # cat /proc/drbd</div>
                <div>version: 8.3.7 (api:88/proto:86-91)</div>
                <div>srcversion: EE47D8BF18AC166BE219757</div>
                <div><br>
                </div>
                <div>&nbsp;1: cs:Connected ro:Secondary/Secondary
                  ds:Inconsistent/Inconsistent B r----</div>
                <div>&nbsp; &nbsp; ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0
                  ap:0 ep:1 wo:b oos:4293787648</div>
              </div>
            </div>
            <div>
              <div><br>
              </div>
              <div>Then I started sync:</div>
              <div><br>
              </div>
              <div>root@backup /etc/drbd.d # drbdadm --
                --overwrite-data-of-peer primary home</div>
              <div>
                <div>root@backup /etc/drbd.d # cat /proc/drbd</div>
                <div>version: 8.3.7 (api:88/proto:86-91)</div>
                <div>srcversion: EE47D8BF18AC166BE219757</div>
                <div><br>
                </div>
                <div>&nbsp;1: cs:SyncSource ro:Primary/Secondary
                  ds:UpToDate/Inconsistent B r----</div>
                <div>&nbsp; &nbsp; ns:11232 nr:0 dw:0 dr:11436 al:0 bm:0 lo:0
                  pe:21 ua:0 ap:0 ep:1 wo:b oos:4293777088</div>
                <div><span style="white-space:pre-wrap"> </span>[&gt;....................]
                  sync'ed: &nbsp;0.1% (4193140/4193152)M</div>
                <div>
                  <span style="white-space:pre-wrap"> </span>finish:
                  110:26:11 speed: 10,560 (10,560) K/sec</div>
              </div>
              <div><br>
              </div>
              <div>It's ok.&nbsp;</div>
              <div><br>
              </div>
              <div>But when I try to mount /dev/drbd1 I see the
                following:</div>
              <div><br>
              </div>
              <div>
                <div>root@backup /etc/drbd.d # mount -t ext4 /dev/drbd1
                  /home/</div>
                <div>mount: wrong fs type, bad option, bad superblock on
                  /dev/drbd1,</div>
                <div>&nbsp; &nbsp; &nbsp; &nbsp;missing codepage or helper program, or other
                  error</div>
                <div>&nbsp; &nbsp; &nbsp; &nbsp;In some cases useful info is found in syslog
                  - try</div>
                <div>&nbsp; &nbsp; &nbsp; &nbsp;dmesg | tail &nbsp;or so</div>
              </div>
              <div><br>
              </div>
              <div>And in dmesh I saw, that drbd started to sync only
                4Tb:</div>
              <div><br>
              </div>
              <div>
                <div>[37354503.285925] block drbd1: Forced to consider
                  local data as UpToDate!</div>
                <div>[37354503.285972] block drbd1: Creating new current
                  UUID</div>
                <div>[37354509.351392] block drbd1: drbd_sync_handshake:</div>
                <div>[37354509.351424] block drbd1: self
                  ACD94469A7E81D3F:0000000000000004:0000000000000000:0000000000000000
                  bits:1073446912 flags:0</div>
                <div>[37354509.351478] block drbd1: peer
                  0000000000000004:0000000000000000:0000000000000000:0000000000000000
                  bits:1073446912 flags:0</div>
                <div>[37354509.351531] block drbd1: uuid_compare()=2 by
                  rule 30</div>
                <div>[37354509.351557] block drbd1: Becoming sync source
                  due to disk states.</div>
                <div>[37354509.351585] block drbd1: Writing the whole
                  bitmap, full sync required after drbd_sync_handshake.</div>
                <div>[37354509.401466] block drbd1: meta data flush
                  failed with status -5, disabling md-flushes</div>
                <div>[37354509.401501] block drbd1: 4095 GB (1073446912
                  bits) marked out-of-sync by on disk bit-map.</div>
                <div>[37354509.401540] block drbd1: conn( Connected
                  -&gt; WFBitMapS )</div>
                <div>[37354511.724636] block drbd1: conn( WFBitMapS
                  -&gt; SyncSource )</div>
                <div>[37354511.724676] block drbd1: Began resync as
                  SyncSource (will sync 4293787648 KB [1073446912 bits
                  set]).</div>
              </div>
              <div><br>
              </div>
              <div>I tried to use flexible-meta-disk, but with no luck.</div>
              <div><br>
              </div>
              <div>Can you help me to solve this problem?</div>
              <div><br>
              </div>
              <div>Thank you!</div>
              <span class="HOEnZb"><font color="#888888">
                  <div>
                    --&nbsp;</div>
                  <div>Vasiliy I Ozerov</div>
                  <div><br>
                  </div>
                </font></span></div>
            <br>
            _______________________________________________<br>
            drbd-user mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:drbd-user@lists.linbit.com">drbd-user@lists.linbit.com</a><br>
            <a moz-do-not-send="true"
              href="http://lists.linbit.com/mailman/listinfo/drbd-user"
              target="_blank">http://lists.linbit.com/mailman/listinfo/drbd-user</a><br>
            <br>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <br>
        -- <br>
        Steve Kieu
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
drbd-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:drbd-user@lists.linbit.com">drbd-user@lists.linbit.com</a>
<a class="moz-txt-link-freetext" href="http://lists.linbit.com/mailman/listinfo/drbd-user">http://lists.linbit.com/mailman/listinfo/drbd-user</a>
</pre>
    </blockquote>
    <br>
    <div class="moz-signature">-- <br>
      <title>ProActive Software</title>
      <style type="text/css">

html, body, table {
        font-family:                        arial, helvetica, sans-serif;
        font-size:                                11px;
}

a {
        color:                                        #25aae1;
        text-decoration:                none;
}
</style><a href="http://www.proactive.nl"><img alt=""
          src="cid:part6.06070204.09040408@proactive.nl" height="105"
          width="84" border="0"></a><br>
      <table cellpadding="0" cellspacing="0">
        <tbody>
          <tr>
            <td width="20">T</td>
            <td>023 - 5422299</td>
          </tr>
          <tr>
            <td colspan="2">&nbsp;</td>
          </tr>
          <tr>
            <td colspan="2"><a href="http://www.proactive.nl">www.proactive.nl</a></td>
          </tr>
          <tr>
            <td colspan="2">&nbsp;</td>
          </tr>
          <tr>
            <td colspan="2"><a
                href="http://nl.linkedin.com/in/dirkbonenkamp"><img
                  src="cid:part9.04080108.01040507@proactive.nl"
                  border="0"></a></td>
          </tr>
          <tr>
            <td colspan="2">&nbsp;</td>
          </tr>
          <tr>
            <td colspan="2"><a href="skype:dirkbonenkamp?call"><img
                  src="cid:part11.03010402.07060305@proactive.nl"
                  style="border: none;" alt="My status" height="20"
                  width="114"></a></td>
          </tr>
        </tbody>
      </table>
      <br>
    </div>
  </body>
</html>