<html><header></header><body><div style="font-family: Tahoma; font-size: 14px; color: #000000;">Thanks, I attach here the script.</div>
<div style="font-family: Tahoma; font-size: 14px; color: #000000;">It basically runs ssh on the other node with no password (must be preconfigured via authorization keys) with commands.</div>
<div style="font-family: Tahoma; font-size: 14px; color: #000000;">This was taken from a script by OpenIndiana (I think).</div>
<div style="font-family: Tahoma; font-size: 14px; color: #000000;">As it stated in the comments, we don't want to halt or boot via ssh, only reboot.</div>
<div style="font-family: Tahoma; font-size: 14px; color: #000000;">Maybe this is the problem, we should at least have it shutdown when asked for.</div>
<div style="font-family: Tahoma; font-size: 14px; color: #000000;"> </div>
<div style="font-family: Tahoma; font-size: 14px; color: #000000;">Actually if I stop corosync in node 2, I don't want it to shutdown the system but just let node 1 keep control of all resources.</div>
<div style="font-family: Tahoma; font-size: 14px; color: #000000;">Same if I just shutdown manually node 2, <span>node 1 should keep control of all resources and release them back on reboot.</span></div>
<div style="font-family: Tahoma; font-size: 14px; color: #000000;"><span>Instead, when I stopped corosync on node 2, log was showing the temptative to stonith node 2: why?</span></div>
<div style="font-family: Tahoma; font-size: 14px; color: #000000;"> </div>
<div style="font-family: Tahoma; font-size: 14px; color: #000000;"><span>Thanks!<br />Gabriele</span></div>
<div style="font-family: Tahoma; font-size: 14px; color: #000000;"> </div>
<div style="font-family: Tahoma; font-size: 14px; color: #000000;"><br /><br />
<div id="wt-mailcard">
<div> </div>
<div> </div>
<div><span style="font-size: 14px; font-family: Helvetica;"><strong>Sonicle S.r.l. </strong>: <a href="http://www.sonicle.com/" target="_new">http://www.sonicle.com</a></span></div>
<div><span style="font-size: 14px; font-family: Helvetica;"><strong>Music: </strong><a href="http://www.gabrielebulfon.com/" target="_new">http://www.gabrielebulfon.com</a></span></div>
<div><span style="font-size: 14px; font-family: Helvetica;"><strong>Quantum Mechanics : </strong><a href="http://www.cdbaby.com/cd/gabrielebulfon" target="_new">http://www.cdbaby.com/cd/gabrielebulfon</a></span></div>
</div>
<br /><hr /><br /><br /><span style="font-family: Arial, Helvetica, sans-serif; font-size: small;"><strong>Da:</strong> Reid Wahl <nwahl@redhat.com><br /><strong>A:</strong> Cluster Labs - All topics related to open-source clustering welcomed <users@clusterlabs.org><br /><strong>Data:</strong> 28 luglio 2020 12.03.46 CEST<br /><strong>Oggetto:</strong> Re: [ClusterLabs] Antw: [EXT] Stonith failing<br /></span><br /><br />
<blockquote style="border-left: #000080 2px solid; margin-left: 5px; padding-left: 5px;">
<div dir="ltr">
<div>Gabriele,</div>
<div> </div>
<div>"No route to host" is a somewhat generic error message when we can't find anyone to fence the node. It doesn't mean there's necessarily a network routing issue at fault; no need to focus on that error message.</div>
<div> </div>
<div>I agree with Ulrich about needing to know what the script does. But based on your initial message, it sounds like your custom fence agent returns 1 in response to "on" and "off" actions. Am I understanding correctly? If so, why does it behave that way? Pacemaker is trying to run a poweroff action based on the logs, so it needs your script to support an off action.</div>
</div>
<br />
<div class="gmail_quote">
<div class="gmail_attr" dir="ltr">On Tue, Jul 28, 2020 at 2:47 AM Ulrich Windl <<a href="mailto:Ulrich.Windl@rz.uni-regensburg.de">Ulrich.Windl@rz.uni-regensburg.de</a>> wrote:</div>
<blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left: 1px solid #cccccc; padding-left: 1ex;">>>> Gabriele Bulfon <<a href="mailto:gbulfon@sonicle.com" target="_blank">gbulfon@sonicle.com</a>> schrieb am 28.07.2020 um 10:56 in<br /> Nachricht <1330096936.11468.1595926619455@www>:<br /> > Hi, now I have my two nodes (xstha1 and xstha2) with IPs configured by <br /> > Corosync.<br /> > To check how stonith would work, I turned off Corosync service on second <br /> > node.<br /> > First node try to attempt to stonith 2nd node and take care of its <br /> > resources, but this fails.<br /> > Stonith action is configured to run a custom script to run ssh commands, <br /> <br /> I think you should explain what that script does exactly.<br /> <br /> [...]<br /> <br /> <br /> _______________________________________________<br /> Manage your subscription:<br /> <a href="https://lists.clusterlabs.org/mailman/listinfo/users" target="_blank" rel="noreferrer">https://lists.clusterlabs.org/mailman/listinfo/users</a><br /> <br /> ClusterLabs home: <a href="https://www.clusterlabs.org/" target="_blank" rel="noreferrer">https://www.clusterlabs.org/</a><br /> </blockquote>
</div>
<br clear="all" /><br />-- <br />
<div class="gmail_signature" dir="ltr">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div>Regards,<br /><br /></div>
Reid Wahl, RHCA</div>
<div>Software Maintenance Engineer, Red Hat</div>
CEE - Platform Support Delivery - ClusterHA</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<pre>_______________________________________________
Manage your subscription:
https://lists.clusterlabs.org/mailman/listinfo/users
ClusterLabs home: https://www.clusterlabs.org/
</pre>
</blockquote>
</div></body></html>