<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt"><div>Hi</div><div>I am trying to run drbd and having problems where the secondary machine crashes</div><div>when I start mkfs.ext3 on the primary after drbdadm is activated on both and sync'ed. The primary machine is still up and the disk is formatted and can be mounted and written. Any clues?</div><div>thx,</div><div>Kishore</div><div><br></div><div>---------------------------------------------------------------------</div><div>Here is my setup:</div><div><br></div><div>machines: lab-140 and lab-140</div><div>OS: RHEL 6.4 (Santiago)</div><div>DRBD: 8.4.4</div><div><br></div><div>Here are the steps I followed:</div><div><br></div><div>[root@lab-140]# drbdadm create-md res0 // Succesful</div><div>[root@lab-141]# drbdadm create-md res0 //
Succesful</div><div><br></div><div>[root@lab-140]# drbdadm up res0</div><div>[root@lab-141]# drbdadm up res0</div><div><br></div><div><br></div><div>[root@lab-140]# drbdadm -- --overwrite-data-of-peer primary res0</div><div>[root@lab-140]# watch -n 1 cat /proc/drbd // Full sync finished eventually</div><div><br></div><div>[root@lab-140]# cat /proc/drbd</div><div>[root@lab-140]# mkfs.ext3 /dev/drbd1</div><div><br></div><div> //*****************</div><div> // Succesful on lab-140, but this operation killed lab-141</div><div> //*****************</div><div><br></div><div>I have added the /proc/drbd messages below:</div><div><br></div><div>--------------------------------------------------------------------------</div><div>[root@lab-140]# cat /proc/drbd</div><div>version: 8.4.4 (api:1/proto:86-101)</div><div>GIT-hash: 599f286440bd633d15d5ff985204aff4bccffadd build by kishore@lab-sj1-140, 2013-10-30
17:12:56</div><div><br></div><div> 1: cs:WFConnection ro:Primary/Unknown ds:UpToDate/DUnknown C r-----</div><div> ns:125030988 nr:0 dw:127128328 dr:125032056 al:970 bm:7632 lo:0 pe:0 ua:0 ap:0 ep:1 wo:f oos:125030988</div><div>--------------------------------------------------------------------------</div><div><br></div><div>--------------------------------------------------------------------------</div><div>// Before mkfs.ext3 was called on lab-140</div><div><br></div><div>[root@lab-141]# cat /proc/drbd</div><div>version: 8.4.4 (api:1/proto:86-101)</div><div>GIT-hash: 599f286440bd633d15d5ff985204aff4bccffadd build by root@lab-sj1-141, 2013-10-30 17:27:24</div><div><br></div><div> 1: cs:Connected ro:Secondary/Primary ds:UpToDate/UpToDate C r-----</div><div> ns:0 nr:125030988 dw:125030988 dr:0 al:0 bm:7632 lo:0 pe:0 ua:0 ap:0 ep:1 wo:f
oos:0</div><div>--------------------------------------------------------------------------</div><div><br></div><div>My conf file is below:</div><div>----------------- /var/drbd/drbd.conf--------------</div><div>global {</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>usage-count yes;</div><div>}</div><div><br></div><div>common {</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>net {</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>protocol C;</div><div><span class="Apple-tab-span" style="white-space:pre">                </span># protocol timeout max-epoch-size max-buffers unplug-watermark</div><div><span class="Apple-tab-span" style="white-space:pre">                </span># connect-int ping-int sndbuf-size rcvbuf-size ko-count</div><div><span class="Apple-tab-span" style="white-space:pre">                </span># allow-two-primaries cram-hmac-alg shared-secret after-sb-0pri</div><div><span class="Apple-tab-span"
style="white-space:pre">                </span># after-sb-1pri after-sb-2pri always-asbp rr-conflict</div><div><span class="Apple-tab-span" style="white-space:pre">                </span># ping-timeout data-integrity-alg tcp-cork on-congestion</div><div><span class="Apple-tab-span" style="white-space:pre">                </span># congestion-fill congestion-extents csums-alg verify-alg</div><div><span class="Apple-tab-span" style="white-space:pre">                </span># use-rle</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>}</div><div>}</div><div><br></div><div><br></div><div>resource res0 {</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>on lab-140{</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/sdb;</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>address 192.168.10.1:7789;</div><div><span class="Apple-tab-span"
style="white-space:pre">                </span>meta-disk<span class="Apple-tab-span" style="white-space:pre">        </span>internal;</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>}</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>on lab-141{</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/sdb;</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>address 192.168.10.2:7789;</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>meta-disk<span class="Apple-tab-span" style="white-space:pre">        </span>internal;</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>}</div><div>}</div><div>----------------- /var/drbd/drbd.conf--------------</div><div><br></div><div><br></div></div></body></html>