<html><head></head><body><div style="color:#000; background-color:#fff; font-family:verdana, helvetica, sans-serif;font-size:16px"><div id="yui_3_16_0_ym19_1_1491770995496_10767">Hello. Thanks for the answer.</div><div id="yui_3_16_0_ym19_1_1491770995496_10834">Maybe I was not clear: I do not want the authomatic poweroff of the server.</div><div id="yui_3_16_0_ym19_1_1491770995496_11144">My problem is that if I manually poweroff the primary node (i.e. the server with DRBD primary mounted on), the secondary does not become primary (promote) anymore!</div><div id="yui_3_16_0_ym19_1_1491770995496_11149">It seems that the primary, just before powering off, fences the other node and precludes it to become primary. This not the expected logic in a two nodes cluster...</div><div id="yui_3_16_0_ym19_1_1491770995496_10765">Is there a way?</div><div id="yui_3_16_0_ym19_1_1491770995496_10701"><span></span></div> <div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: verdana, helvetica, sans-serif; font-size: 16px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"><font size="2" face="Arial"> Il Domenica 9 Aprile 2017 22:48, Digimer &lt;lists@alteeve.ca&gt; ha scritto:<br></font></div>  <br><br> <div class="y_msg_container"><div dir="ltr">On 09/04/17 03:05 PM, Marco Certelli wrote:<br clear="none">&gt; Hello,<br clear="none">&gt; <br clear="none">&gt; very simple question for DRBD experts. I'm configuring Pacemaker (2<br clear="none">&gt; nodes Active/Standby)+DRBD shared disk with the following config:<br clear="none">&gt; <br clear="none">&gt; ...<br clear="none">&gt; disk {<br clear="none">&gt;&nbsp; &nbsp; &nbsp; &nbsp;  fencing resource-only;<br clear="none"><br clear="none">This should be 'resource-and-stonith;'<div class="yqt3228314602" id="yqtfd52297"><br clear="none"><br clear="none">&gt;&nbsp; &nbsp;  }<br clear="none">&gt;&nbsp; &nbsp;  handlers {<br clear="none">&gt;&nbsp; &nbsp; &nbsp; &nbsp;  fence-peer "/usr/lib/drbd/crm-fence-peer.sh";<br clear="none">&gt;&nbsp; &nbsp; &nbsp; &nbsp;  after-resync-target "/usr/lib/drbd/crm-unfence-peer.sh";<br clear="none">&gt;&nbsp; &nbsp;  }<br clear="none">&gt; ...<br clear="none">&gt; <br clear="none">&gt; It happen that if I poweroff the Active server (the one with DRBD<br clear="none">&gt; Primary mounted on), the backup cannot promote and mount the DRBD<br clear="none">&gt; anymore. This is not what I would like to happen and this problem does<br clear="none">&gt; not occur if I remove the above fencing configuration (fencing,<br clear="none">&gt; fence-peer and after-resync-target commands).<br clear="none">&gt; <br clear="none">&gt; My only objective is to prevent promoting of a disk that is under<br clear="none">&gt; resynch. Is there a solution? I was thinking to the following configuration:<br clear="none">&gt; <br clear="none">&gt; ...<br clear="none">&gt; disk {<br clear="none">&gt;&nbsp; &nbsp; &nbsp; &nbsp;  fencing resource-only;<br clear="none">&gt;&nbsp; &nbsp;  }<br clear="none">&gt;&nbsp; &nbsp;  handlers {<br clear="none">&gt;&nbsp; &nbsp; &nbsp; &nbsp;  before-resync-target "/usr/lib/drbd/crm-fence-peer.sh";<br clear="none">&gt;&nbsp; &nbsp; &nbsp; &nbsp;  after-resync-target "/usr/lib/drbd/crm-unfence-peer.sh";<br clear="none">&gt;&nbsp; &nbsp;  }<br clear="none">&gt; ...<br clear="none">&gt; <br clear="none">&gt; Do you think it may work, without other negative effects?<br clear="none">&gt; <br clear="none">&gt; Thanks, Marco.</div><br clear="none">&gt; <br clear="none">&gt; <br clear="none">&gt; <br clear="none">&gt; _______________________________________________<br clear="none">&gt; drbd-user mailing list<br clear="none">&gt; <a shape="rect" ymailto="mailto:drbd-user@lists.linbit.com" href="mailto:drbd-user@lists.linbit.com">drbd-user@lists.linbit.com</a><br clear="none">&gt; <a shape="rect" href="http://lists.linbit.com/mailman/listinfo/drbd-user" target="_blank">http://lists.linbit.com/mailman/listinfo/drbd-user</a><br clear="none">&gt; <br clear="none"><br clear="none"><br clear="none">-- <br clear="none">Digimer<br clear="none">Papers and Projects: <a shape="rect" href="https://alteeve.com/w/" target="_blank">https://alteeve.com/w/</a><br clear="none">"I am, somehow, less interested in the weight and convolutions of<br clear="none">Einstein’s brain than in the near certainty that people of equal talent<br clear="none">have lived and died in cotton fields and sweatshops." - Stephen Jay Gould<div class="yqt3228314602" id="yqtfd20719"><br clear="none"></div></div><br><br></div>  </div> </div>  </div></div></body></html>