<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 <lists@alteeve.ca> 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">> Hello,<br clear="none">> <br clear="none">> very simple question for DRBD experts. I'm configuring Pacemaker (2<br clear="none">> nodes Active/Standby)+DRBD shared disk with the following config:<br clear="none">> <br clear="none">> ...<br clear="none">> disk {<br clear="none">> 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">> }<br clear="none">> handlers {<br clear="none">> fence-peer "/usr/lib/drbd/crm-fence-peer.sh";<br clear="none">> after-resync-target "/usr/lib/drbd/crm-unfence-peer.sh";<br clear="none">> }<br clear="none">> ...<br clear="none">> <br clear="none">> It happen that if I poweroff the Active server (the one with DRBD<br clear="none">> Primary mounted on), the backup cannot promote and mount the DRBD<br clear="none">> anymore. This is not what I would like to happen and this problem does<br clear="none">> not occur if I remove the above fencing configuration (fencing,<br clear="none">> fence-peer and after-resync-target commands).<br clear="none">> <br clear="none">> My only objective is to prevent promoting of a disk that is under<br clear="none">> resynch. Is there a solution? I was thinking to the following configuration:<br clear="none">> <br clear="none">> ...<br clear="none">> disk {<br clear="none">> fencing resource-only;<br clear="none">> }<br clear="none">> handlers {<br clear="none">> before-resync-target "/usr/lib/drbd/crm-fence-peer.sh";<br clear="none">> after-resync-target "/usr/lib/drbd/crm-unfence-peer.sh";<br clear="none">> }<br clear="none">> ...<br clear="none">> <br clear="none">> Do you think it may work, without other negative effects?<br clear="none">> <br clear="none">> Thanks, Marco.</div><br clear="none">> <br clear="none">> <br clear="none">> <br clear="none">> _______________________________________________<br clear="none">> drbd-user mailing list<br clear="none">> <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">> <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">> <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>