<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 23, 2017 at 9:04 PM, Raman Gupta <span dir="ltr"><<a href="mailto:ramangupta16@gmail.com" target="_blank">ramangupta16@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><span class="gmail-">> *why*<br><br>> DRBD would not do that by itself,<br>> so likely pacemaker decided to do that,<br>> and you have to figure out *why*.<br>> Pacemaker will have logged the reasons somewhere.<div><br></div></span><div>The crm-fence-peer.sh script could not find the status of peer node (which went down) and assumed its status was "unknown" and thus placed a constraint on DRBD with -INFINITY score which essentially demotes and stops DRBD. The demotion failed because GFS2 was already mounted. This failure was construed as error by Pacemaker and it scheduled stonith for itself when the down node was back.</div><div><br></div><div><span class="gmail-">> "crm-fence-peer.sh" assumes that the result of "uname -n"<br>> is the local nodes "pacemaker node name".<br></span>Yes.</div><span class="gmail-"><div><br>> If "uname -n" and "crm_node -n" do not return the same thing for you,<br>> the defaults will not work for you.<br></div><div><br></div></span><div>For my network the replication network (and its hostname) is different from client facing network (and its hostname):</div><div><div>[root@server7]# uname -n</div><div>server7</div><div>[root@server7]# crm_node -n</div><div>server7ha</div></div><div><br></div><div>However things seems to be working with these settings.</div><span class="gmail-"><div><br></div><div><br></div><div>>Then in addition to all your other trouble,<br>> you have missing dependency constraints.<br></div><div><br></div></span><div>The proper integration of DRBD+GFS2+DLM+CLVM resources into Pacemaker was the issue. <br></div></div></blockquote><div><br></div><div>Which is the very thing pointed in my answer to your previous thread, <a href="http://marc.info/?l=drbd-user&m=149040000721736&w=2">http://marc.info/?l=drbd-user&m=149040000721736&w=2</a>, the <b>proper integration</b>.There is no compromise regarding this it <b>ALL</b> has to be managed by pacemaker not just parts of this and that like in your case and started/stopped/collocated in proper order by pacemaker. Period.<br></div></div><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><font face="arial, helvetica, sans-serif"><span style="color:rgb(0,176,240);font-size:10pt">Igor Cicimov </span><span style="font-size:10pt"><font color="#999999">|</font></span><span style="color:rgb(0,176,240);font-size:10pt"> DevOps<br></span></font><div>
<font color="#00b0f0" face="arial, helvetica, sans-serif"><br></font><div><div><font color="#00b0f0" face="arial, helvetica, sans-serif"><img src="https://docs.google.com/uc?export=download&id=0B7WaFrYzRSehSWUtN0FieHppVGs&revid=0B7WaFrYzRSehYldDVmJlV0JhUUdXOUl3Mm5FRzlsb1JacS9FPQ"><br></font><div><div>
<p><font face="arial, helvetica, sans-serif"><b><span style="color:rgb(0,112,192)"><span></span><span></span></span></b><span style="color:rgb(0,112,192)" lang="EN-US"></span></font></p><p><font face="arial, helvetica, sans-serif"><span style="font-size:10pt;color:rgb(0,176,240)">p. </span><span style="font-size:10pt" lang="EN-US"><a><font color="#666666">+61 (0) 433 078 728</font></a><br>
</span><span style="font-size:10pt;color:rgb(0,176,240)" lang="EN-US">e. </span><span style="font-size:10pt" lang="EN-US"><a href="http://encompasscorporation.com/" target="_blank"><font color="#666666">igorc@encompasscorporation.com</font></a><br>
</span><span style="font-size:10pt;color:rgb(0,176,240)" lang="EN-US">w<b>.</b> <a href="http://www.encompasscorporation.com" target="_blank">www.encompasscorporation.com</a></span><span style="font-size:10pt" lang="EN-US"><br>
</span><span style="font-size:10pt;color:rgb(0,176,240)" lang="EN-US">a. </span><span style="font-size:10pt" lang="EN-US"><font color="#666666">Level 4, 65 York Street, Sydney 2000</font></span></font></p></div></div></div></div></div></div></div></div></div></div></div>
</div></div>