<div dir="ltr">Hello,<div><br></div><div>Having a strange behavior using drbd 8.4.5. After restart one partition of two becomes diskless. </div><div>Steps to reproduce:</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">$ sudo service drbd status                                                                                                            <br>drbd driver loaded OK; device status:<br>version: 8.4.5 (api:1/proto:86-101)<br>GIT-hash: 1d360bde0e095d495786eaeb2a1ac76888e4db96 build by phil@Build64R6, 2014-10-28 10:32:53<br>m:res     cs          ro                 ds                     p  mounted                      fstype<br>0:main    Connected   Primary/Secondary  UpToDate/UpToDate      C  /home/www/storage            ext4<br>...       sync&#39;ed:    0.1%               (1048376/1048540)M<br>1:backup  SyncSource  Primary/Secondary  UpToDate/Inconsistent  C  /home/www/<a href="http://backup.looplr.com">backup.looplr.com</a>  ext4</blockquote><div><br></div><div>Ok, backup is syncing after same fail before. Now trying to restart drbd service:</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">$ sudo service drbd restart<br>Stopping all DRBD resources:<br>.<br>Starting DRBD resources: [<br>     create res: backup main<br>   prepare disk: backup main<br>    adjust disk: backup:failed(apply-al:255) main<br>     adjust net: backup main<br>]<br>.</blockquote><div><br></div><div>And bam, disk is diskless:</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">$ sudo service drbd status<br>drbd driver loaded OK; device status:<br>version: 8.4.5 (api:1/proto:86-101)<br>GIT-hash: 1d360bde0e095d495786eaeb2a1ac76888e4db96 build by phil@Build64R6, 2014-10-28 10:32:53<br>m:res     cs         ro                   ds                     p  mounted  fstype<br>0:main    Connected  Secondary/Secondary  UpToDate/UpToDate      C<br>1:backup  Connected  Secondary/Secondary  Diskless/Inconsistent  C </blockquote><div><br></div><div>And now the log (backup is drbd1)</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">Jan 24 14:42:39 de kernel: block drbd0: role( Primary -&gt; Secondary )</blockquote><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">Jan 24 14:42:39 de kernel: block drbd0: bitmap WRITE of 0 pages took 0 jiffies</blockquote><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">Jan 24 14:42:39 de kernel: block drbd0: 0 KB (0 bits) marked out-of-sync by on disk bit-map.</blockquote><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">Jan 24 14:42:39 de kernel: drbd main: peer( Secondary -&gt; Unknown ) conn( Connected -&gt; Disconnecting ) pdsk( UpToDate -&gt; DUnknown )</blockquote><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">Jan 24 14:42:39 de kernel: drbd main: asender terminated</blockquote><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">Jan 24 14:42:39 de kernel: drbd main: Terminating drbd_a_main</blockquote><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">Jan 24 14:42:39 de kernel: drbd main: Connection closed</blockquote><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">Jan 24 14:42:39 de kernel: drbd main: conn( Disconnecting -&gt; StandAlone )</blockquote><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">Jan 24 14:42:39 de kernel: drbd main: receiver terminated</blockquote><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">Jan 24 14:42:39 de kernel: drbd main: Terminating drbd_r_main</blockquote><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">Jan 24 14:42:39 de kernel: block drbd0: disk( UpToDate -&gt; Failed )</blockquote><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">Jan 24 14:42:39 de kernel: block drbd0: bitmap WRITE of 0 pages took 0 jiffies</blockquote><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">Jan 24 14:42:39 de kernel: block drbd0: 0 KB (0 bits) marked out-of-sync by on disk bit-map.</blockquote><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">Jan 24 14:42:39 de kernel: block drbd0: disk( Failed -&gt; Diskless )</blockquote><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">Jan 24 14:42:39 de kernel: block drbd0: drbd_bm_resize called with capacity == 0</blockquote><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">Jan 24 14:42:39 de kernel: drbd main: Terminating drbd_w_main</blockquote><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">Jan 24 14:42:39 de kernel: block drbd1: role( Primary -&gt; Secondary )</blockquote><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">Jan 24 14:42:39 de kernel: drbd backup: peer( Secondary -&gt; Unknown ) conn( SyncSource -&gt; Disconnecting )</blockquote><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">Jan 24 14:42:39 de kernel: drbd backup: asender terminated</blockquote><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">Jan 24 14:42:39 de kernel: drbd backup: Terminating drbd_a_backup</blockquote><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">Jan 24 14:42:39 de kernel: drbd backup: Connection closed</blockquote><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">Jan 24 14:42:39 de kernel: drbd backup: conn( Disconnecting -&gt; StandAlone )</blockquote><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">Jan 24 14:42:39 de kernel: drbd backup: receiver terminated</blockquote><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">Jan 24 14:42:39 de kernel: drbd backup: Terminating drbd_r_backup</blockquote><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">Jan 24 14:42:39 de kernel: block drbd1: disk( UpToDate -&gt; Failed )</blockquote><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">Jan 24 14:42:39 de kernel: block drbd1: bitmap WRITE of 0 pages took 1 jiffies</blockquote><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">Jan 24 14:42:39 de kernel: block drbd1: 1024 GB (268383732 bits) marked out-of-sync by on disk bit-map.</blockquote><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">Jan 24 14:42:39 de kernel: block drbd1: disk( Failed -&gt; Diskless )</blockquote><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">Jan 24 14:42:39 de kernel: block drbd1: drbd_bm_resize called with capacity == 0</blockquote><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">Jan 24 14:42:39 de kernel: drbd backup: Terminating drbd_w_backup</blockquote><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">Jan 24 14:42:39 de kernel: drbd: module cleanup done.</blockquote><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">Jan 24 14:42:39 de kernel: drbd: events: mcg drbd: 2</blockquote><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">Jan 24 14:42:39 de kernel: drbd: initialized. Version: 8.4.5 (api:1/proto:86-101)</blockquote><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">Jan 24 14:42:39 de kernel: drbd: GIT-hash: 1d360bde0e095d495786eaeb2a1ac76888e4db96 build by phil@Build64R6, 2014-10-28 10:32:53</blockquote><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">Jan 24 14:42:39 de kernel: drbd: registered as block device major 147</blockquote><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">Jan 24 14:42:39 de kernel: drbd main: Starting worker thread (from drbdsetup-84 [29262])</blockquote><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">Jan 24 14:42:39 de kernel: block drbd0: disk( Diskless -&gt; Attaching )</blockquote><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">Jan 24 14:42:39 de kernel: drbd main: Method to ensure write ordering: flush</blockquote><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">Jan 24 14:42:39 de kernel: block drbd0: max BIO size = 327680</blockquote><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">Jan 24 14:42:39 de kernel: block drbd0: drbd_bm_resize called with capacity == 1825502744</blockquote><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">Jan 24 14:42:39 de kernel: block drbd0: resync bitmap: bits=228187843 words=3565436 pages=6964</blockquote><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">Jan 24 14:42:39 de kernel: block drbd0: size = 870 GB (912751372 KB) </blockquote><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"> </blockquote><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">Jan 24 14:42:40 de kernel: block drbd0: recounting of set bits took additional 12 jiffies</blockquote><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">Jan 24 14:42:40 de kernel: block drbd0: 0 KB (0 bits) marked out-of-sync by on disk bit-map.</blockquote><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">Jan 24 14:42:40 de kernel: block drbd0: disk( Attaching -&gt; UpToDate )</blockquote><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">Jan 24 14:42:40 de kernel: block drbd0: attached to UUIDs C0027C4A2E905388:0000000000000000:2CE80910F236732B:2CE70910F236732B</blockquote><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">Jan 24 14:42:40 de kernel: drbd backup: Starting worker thread (from drbdsetup-84 [29265])</blockquote><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">Jan 24 14:42:40 de kernel: drbd backup: conn( StandAlone -&gt; Unconnected )</blockquote><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">Jan 24 14:42:40 de kernel: drbd backup: Starting receiver thread (from drbd_w_backup [29267])</blockquote><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">Jan 24 14:42:40 de kernel: drbd backup: receiver (re)started</blockquote><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">Jan 24 14:42:40 de kernel: drbd backup: conn( Unconnected -&gt; WFConnection )</blockquote><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">Jan 24 14:42:40 de kernel: drbd main: conn( StandAlone -&gt; Unconnected )</blockquote><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">Jan 24 14:42:40 de kernel: drbd main: Starting receiver thread (from drbd_w_main [29264])</blockquote><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">Jan 24 14:42:40 de kernel: drbd main: receiver (re)started</blockquote><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">Jan 24 14:42:40 de kernel: drbd main: conn( Unconnected -&gt; WFConnection )</blockquote><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">Jan 24 14:42:40 de kernel: drbd main: Handshake successful: Agreed network protocol version 101</blockquote><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">Jan 24 14:42:40 de kernel: drbd main: Agreed to support TRIM on protocol level</blockquote><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">Jan 24 14:42:40 de kernel: drbd main: conn( WFConnection -&gt; WFReportParams )</blockquote><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">Jan 24 14:42:40 de kernel: drbd main: Starting asender thread (from drbd_r_main [29272])</blockquote><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">Jan 24 14:42:40 de kernel: drbd backup: Handshake successful: Agreed network protocol version 101</blockquote><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">Jan 24 14:42:40 de kernel: drbd backup: Agreed to support TRIM on protocol level</blockquote><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">Jan 24 14:42:40 de kernel: drbd backup: conn( WFConnection -&gt; WFReportParams )</blockquote><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">Jan 24 14:42:40 de kernel: drbd backup: Starting asender thread (from drbd_r_backup [29269])</blockquote><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">Jan 24 14:42:40 de kernel: block drbd1: max BIO size = 4096</blockquote><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">Jan 24 14:42:40 de kernel: block drbd0: drbd_sync_handshake:</blockquote><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">Jan 24 14:42:40 de kernel: block drbd1: peer( Unknown -&gt; Secondary ) conn( WFReportParams -&gt; Connected ) pdsk( DUnknown -&gt; Inconsistent )</blockquote><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">Jan 24 14:42:40 de kernel: block drbd0: self C0027C4A2E905388:0000000000000000:2CE80910F236732B:2CE70910F236732B bits:0 flags:0</blockquote><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">Jan 24 14:42:40 de kernel: block drbd0: peer C0027C4A2E905388:0000000000000000:2CE80910F236732A:2CE70910F236732B bits:0 flags:0</blockquote><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">Jan 24 14:42:40 de kernel: block drbd0: uuid_compare()=0 by rule 40</blockquote><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">Jan 24 14:42:40 de kernel: block drbd0: peer( Unknown -&gt; Secondary ) conn( WFReportParams -&gt; Connected ) pdsk( DUnknown -&gt; UpToDate )</blockquote><div><br></div><div>From this log I don&#39;t understand why does it fail to restart. Now trying to restart backup partition:</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">$ sudo drbdadm down backup<br>$ sudo drbdadm up backup<br>strange bm_offset -65608 (expected: -65600)<br>No valid meta data found<br>Command &#39;drbdmeta 1 v08 /dev/sda3 internal apply-al&#39; terminated with exit code 255</blockquote></div><div><br></div><div>Somehow metadata is not there anymore (?!). Note warning saying &quot;strange bm_offset -65608 (expected: -65600)&quot;.</div><div>Ok, how about recreate metadata and resync full partition? Trying to wipe old metadata shows that metadata is not present. Ok, let&#39;s pretend it&#39;s not there:</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">$ sudo drbdadm create-md backup<br>strange bm_offset -65608 (expected: -65600)<br>strange bm_offset -65608 (expected: -65600)<br>md_offset 1099511623680<br>al_offset 1099511590912<br>bm_offset 1099478036480<br>Found ext3 filesystem<br>  1073709016 kB data area apparently used<br>  1073709020 kB left usable by current configuration<br>Even though it looks like this would place the new meta data into<br>unused space, you still need to confirm, as this is only a guess.<br>Do you want to proceed?<br>[need to type &#39;yes&#39; to confirm] yes</blockquote><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">initializing activity log<br>NOT initializing bitmap<br>Writing meta data...<br>New drbd meta data block successfully created.<br>success </blockquote><div><br></div><div>Same warning twice + possible wrong fs detection (in fact it&#39;s ext4) and incorrect data usage detection (in fact takes 533GB of 1Tb partition)</div></div><div>Wiping and creating metadata again fixes bm_offset warning until next drbd service restart.</div><div><br></div><div>Having latest Centos 6.5. Kernel 2.6.32-504.1.3.el6.x86_64</div><div>Disks are based on hardware RAID 1.</div><div><br></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">$ sudo fdisk -l<br>Disk /dev/sda: 3000.0 GB, 3000034656256 bytes<br>255 heads, 63 sectors/track, 364733 cylinders<br>Units = cylinders of 16065 * 512 = 8225280 bytes<br>Sector size (logical/physical): 512 bytes / 512 bytes<br>I/O size (minimum/optimal): 512 bytes / 512 bytes<br>Disk identifier: 0x0005a176<br>   Device Boot      Start         End      Blocks   Id  System<br>/dev/sda1               1        1567    12582912+  83  Linux<br>/dev/sda2            1567        1633      524288+  83  Linux<br>/dev/sda3            1633      135307  1073741824+  83  Linux<br>/dev/sda4          135307      364734  1842868224    f  W95 Ext&#39;d (LBA)<br>/dev/sda5          135308      251098   930086912+  83  Linux<br>/dev/sda6          251098      364734   912779264   83  Linux</blockquote><div><br></div><div>backup uses /dev/sda3 and main uses /dev/sda6</div><div><br></div><div>Can someone hint me what&#39;s wrong am I doing? Will provide any additional info on request.<br></div><div><br></div><div>Thanks,<br clear="all"><div><div class="gmail_signature">Alex<font color="#999999"><br><br></font></div></div>
</div></div>