<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi,<br>
<br>
Did you create a file system on /dev/drbd1 after initial sync?<br>
<br>
Something like:<br>
<br>
mkfs.ext4 /dev/drbd1<br>
<br>
Cheers,<br>
<br>
Dirk<br>
<br>
<br>
<div class="moz-cite-prefix">Op 28-5-2013 10:50, Vasiliy I Ozerov
schreef:<br>
</div>
<blockquote
cite="mid:7A6D97501E8846399DF2DE6841AD6C91@2reallife.com"
type="cite">
<div>Good day! </div>
<div><br>
</div>
<div>I have a little problem running drbd.</div>
<div><br>
</div>
<div>System: Debian Squeeze 6.0.6</div>
<div>Kernel: 2.6.32-5-amd64</div>
<div>DRBD: 8.3.13-2</div>
<div><br>
</div>
<div>Config for home resource:</div>
<div><br>
</div>
<div>
<div>resource home {</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>on
backup {</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>device
/dev/drbd1;</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>disk
/dev/sda5;</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>address
78.47.3.54:7789;</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>meta-disk
/dev/ram0[14];</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>}</div>
<div><br>
</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>on
backup2 {</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>device
/dev/drbd1;</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>disk
/dev/sda4;</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>address
78.47.3.86:7789;</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>meta-disk
internal;</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </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> 1: cs:Connected ro:Secondary/Secondary
ds:Inconsistent/Inconsistent B r----</div>
<div> 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> 1: cs:SyncSource ro:Primary/Secondary
ds:UpToDate/Inconsistent B r----</div>
<div> 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 class="Apple-tab-span" style="white-space:pre"> </span>[>....................]
sync'ed: 0.1% (4193140/4193152)M</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>finish:
110:26:11 speed: 10,560 (10,560) K/sec</div>
</div>
<div><br>
</div>
<div>It's ok. </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> missing codepage or helper program, or other error</div>
<div> In some cases useful info is found in syslog - try</div>
<div> dmesg | tail 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 ->
WFBitMapS )</div>
<div>[37354511.724636] block drbd1: conn( WFBitMapS ->
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>
<div>-- </div>
<div>Vasiliy I Ozerov</div>
<div><br>
</div>
</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:part1.09010204.02080105@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"> </td>
</tr>
<tr>
<td colspan="2"><a href="http://www.proactive.nl">www.proactive.nl</a></td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2"><a
href="http://nl.linkedin.com/in/dirkbonenkamp"><img
src="cid:part4.02090102.09080606@proactive.nl"
border="0"></a></td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2"><a href="skype:dirkbonenkamp?call"><img
src="cid:part6.06000709.09010001@proactive.nl"
style="border: none;" alt="My status" height="20"
width="114"></a></td>
</tr>
</tbody>
</table>
<br>
</div>
</body>
</html>