<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>