<div dir="ltr">Thanks Ken, <div><br></div><div>We will do our tests.</div><div><br></div><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div dir="ltr"><div><b style="font-family:verdana,sans-serif"><font color="#666666">Jonathan Vargas Rodríguez</font></b><br></div><font face="verdana, sans-serif"><font color="#666666">Founder and Solution Engineer</font></font><br></div><div><font face="verdana, sans-serif"><font color="#666666"><a href="https://alkaid.cr/" target="_blank">Alkaid</a> | Open Source Software</font></font></div><div><br></div><div dir="ltr"><div><font face="courier new, monospace"><font color="#ffffff"><b style="background-color:rgb(111,168,220)"> mail </b></font><b style="color:rgb(68,68,68)">  </b></font><font face="verdana, sans-serif" color="#666666"><a href="mailto:jonathan.vargas@alkaid.cr" target="_blank">jonathan.vargas@alkaid.cr</a></font></div><div><font face="courier new, monospace"><font color="#ffffff" style="font-weight:bold;background-color:rgb(147,196,125)"> telf </font><font style="color:rgb(68,68,68);font-weight:bold">  </font></font><font face="verdana, sans-serif" color="#666666">+506 4001 6259 Ext. 01 </font></div><div><font face="courier new, monospace"><font color="#ffffff" style="font-weight:bold;background-color:rgb(246,178,107)"> mobi </font><font color="#444444" style="font-weight:bold"> </font><font color="#444444" style="font-weight:bold"> </font></font><span style="color:rgb(102,102,102);font-family:verdana,sans-serif;font-size:12.8000001907349px">+506 4001 6259 Ext. 51 </span></div><div><br></div></div><div dir="ltr"><div style="font-size:12.8000001907349px"><div><a href="http://linkedin.com/in/jonathanvargas/" target="_blank"><img src="https://alkaid.cr/images/theme/icons/social/linkedin.png"></a>      <a href="https://plus.google.com/+JonathanVargas/" target="_blank"><img src="https://alkaid.cr/images/theme/icons/social/googleplus.png"></a>      <a href="https://www.facebook.com/alkaid.cr" target="_blank"><img src="https://alkaid.cr/images/theme/icons/social/facebook.png"></a>      <a href="https://twitter.com/alkaidcr" target="_blank"><img src="https://alkaid.cr/images/theme/icons/social/twitter.png"></a>  </div><div><br></div></div><div style="font-size:12.8000001907349px"><div></div></div></div></div></div></div>
<br><div class="gmail_quote">2015-06-25 8:57 GMT-06:00 Ken Gaillot <span dir="ltr"><<a href="mailto:kgaillot@redhat.com" target="_blank">kgaillot@redhat.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 06/24/2015 06:39 PM, Jonathan Vargas wrote:<br>
> Thanks Ken.<br>
><br>
> It's weird. Because we did tests and that did not happen.<br>
><br>
> There is a node (named Z) without stonith/sbd resources assigned at all and<br>
> but it was the node that sent the fencing request to a crashed node (X).<br>
><br>
> But this error appeared in its logs: "No route to host".<br>
><br>
> It's obvious for us that if SBD isn't running on Z, and there is no network<br>
> access to that crashed node (X), then based on your answer, node Y which<br>
> really had access to X via SBD had to initiate the fencing request. But<br>
> this did not happen.<br>
><br>
> In addition to this answer, I wonder if I could tell the cluster to avoid<br>
> sending fencing requests from specific nodes, or at the other side: Tell<br>
> the cluster which nodes are authorized to send fencing requests.<br>
><br>
> Any idea?<br>
<br>
</span>Yes, that's exactly what you have to do.<br>
<br>
By default, a cluster will be "opt-out" -- any resource can run on any<br>
node unless you tell it otherwise. (You can change that to "opt-in", but<br>
for simplicity I'll assume you're using the default.)<br>
<br>
The node that "runs" the fencing resource will monitor it, so if only<br>
certain nodes can monitor the device, you need location constraints. How<br>
you configure that depends on what tools you are using (pcs, crm or<br>
low-level), but it's simple, you just say "this resource has this score<br>
on this node". A score of -INFINITY means "never run this resource on<br>
this node".<br>
<br>
For fencing resources, the cluster also need to know which hosts the<br>
device can fence. By default the cluster will ask the fence agent by<br>
running its "list" command. If that's not sufficient, you can configure<br>
a static list of hosts that the device can fence. For details see:<br>
<br>
<a href="http://clusterlabs.org/doc/en-US/Pacemaker/1.1-pcs/html-single/Pacemaker_Explained/index.html#_special_treatment_of_stonith_resources" rel="noreferrer" target="_blank">http://clusterlabs.org/doc/en-US/Pacemaker/1.1-pcs/html-single/Pacemaker_Explained/index.html#_special_treatment_of_stonith_resources</a><br>
<div class="HOEnZb"><div class="h5"><br>
<br>
> On Jun 24, 2015 1:56 PM, "Ken Gaillot" <<a href="mailto:kgaillot@redhat.com">kgaillot@redhat.com</a>> wrote:<br>
><br>
>> On 06/24/2015 12:20 PM, Jonathan Vargas wrote:<br>
>>> Hi there,<br>
>>><br>
>>> We have a 3-node cluster for OCFS2.<br>
>>><br>
>>> When one of the nodes fail, it should be fenced. I noticed sometimes one<br>
>> of<br>
>>> them is the one who sends the fencing message to the failing node, and<br>
>>> sometimes it's the another.<br>
>>><br>
>>> How the cluster decides which of the remaining active nodes will be the<br>
>> one<br>
>>> to tell the failed node to fence itself?<br>
>>><br>
>>> Thanks.<br>
>><br>
>> Fencing resources are assigned to a node like any other resource, even<br>
>> though they don't really "run" anywhere. Assuming you've configured a<br>
>> recurring monitor operation on the resource, that node will monitor the<br>
>> device to ensure it's available.<br>
>><br>
>> Because that node has "verified" (monitored) access to the device, the<br>
>> cluster will prefer that node to execute the fencing if possible. So<br>
>> it's just whatever node happened to be assigned the fencing resource.<br>
>><br>
>> If for any reason the node with verified access can't do it, the cluster<br>
>> will fall back to any other capable node.<br>
>><br>
>>> *Jonathan Vargas Rodríguez*<br>
>>> Founder and Solution Engineer<br>
>>> Alkaid <<a href="https://alkaid.cr/" rel="noreferrer" target="_blank">https://alkaid.cr/</a>> | Open Source Software<br>
>>><br>
>>> * mail *  <a href="mailto:jonathan.vargas@alkaid.cr">jonathan.vargas@alkaid.cr</a><br>
>>>  telf   <a href="tel:%2B506%204001%206259%20Ext.%2001" value="+50640016259">+506 4001 6259 Ext. 01</a><br>
>>>  mobi   <a href="tel:%2B506%204001%206259%20Ext.%2051" value="+50640016259">+506 4001 6259 Ext. 51</a><br>
>>><br>
>>> <<a href="http://linkedin.com/in/jonathanvargas/" rel="noreferrer" target="_blank">http://linkedin.com/in/jonathanvargas/</a>><br>
>>> <<a href="https://plus.google.com/+JonathanVargas/" rel="noreferrer" target="_blank">https://plus.google.com/+JonathanVargas/</a>><br>
>>> <<a href="https://www.facebook.com/alkaid.cr" rel="noreferrer" target="_blank">https://www.facebook.com/alkaid.cr</a>>       <<a href="https://twitter.com/alkaidcr" rel="noreferrer" target="_blank">https://twitter.com/alkaidcr</a><br>
<br>
</div></div></blockquote></div><br></div>