<br><br><div class="gmail_quote">On 27 October 2010 14:09, Vadym Chepkov <span dir="ltr">&lt;<a href="mailto:vchepkov@gmail.com">vchepkov@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div style="word-wrap:break-word"><div><div></div><div class="h5"><br><div><div>On Oct 27, 2010, at 7:58 AM, Pavlos Parissis wrote:</div><br><blockquote type="cite"><br><div class="gmail_quote">On 27 October 2010 13:43, Vadym Chepkov <span dir="ltr">&lt;<a href="mailto:vchepkov@gmail.com" target="_blank">vchepkov@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div></div><div><br>
On Oct 27, 2010, at 7:27 AM, Pavlos Parissis wrote:<br>
<br>
&gt; On 27 October 2010 13:12, Vadym Chepkov &lt;<a href="mailto:vchepkov@gmail.com" target="_blank">vchepkov@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; On Oct 27, 2010, at 3:47 AM, Pavlos Parissis wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Does anyone know any other PDU which works out of box with the<br>
&gt;&gt;&gt; supplied stonith agents?<br>
&gt;&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; I use APC AP7901, works like a charm:<br>
&gt;&gt;<br>
&gt;&gt; primitive pdu stonith:external/rackpdu \<br>
&gt;&gt;        params pduip=&quot;10.6.6.6&quot; community=&quot;pdu-6&quot; hostlist=&quot;AUTO&quot;<br>
&gt;&gt; clone fencing pdu<br>
&gt;&gt;<br>
&gt;&gt; Vadym<br>
&gt;<br>
&gt; Then most likely the defaults OIDs of the rackpdu agents matches the<br>
&gt; OIDs of the AP7901.<br>
&gt; In my case I have to use OID for the device itself<br>
&gt; 1.3.6.1.4.1.318.1.1.4.4.2.1.3  and OID for retrieving (snmpwalk) the<br>
&gt; outlet list .1.3.6.1.4.1.318.1.1.4.4.2.1.4 .<br>
&gt;<br>
&gt; Hold on a sec, are you using clone on AP7901? Does it support multiple<br>
&gt; connections? Mine it doesn&#39;t.<br>
<br>
</div></div>Then it&#39;s useless regardless clone or not, you have to have multiple instances, because server can&#39;t reliable fence itself, right?<br>
<div><div></div><div><br><br></div></div></blockquote><div><br></div><div>My understanding is/was that I need to have one resource running on 1 of the 3 nodes in the cluster and if a fence event has to be triggered then pacemaker will send to it to the one stonith resource. I am planning to test that the coming days.[1]</div>

<div>Am I right? if not then I have to buy a different PDU! :-(</div><div><br></div></div></blockquote><br></div></div></div><div>My understanding is you have to have a fencing device for each of your hosts. Are you sure one connection limitation applies for SNMP? Most likely it&#39;s only for tcp sessions - ssh/http ?</div>
<div>If you look into rackpdu log you will see this:</div><div><br></div><div><div>Oct 19 12:39:00 xen-11 stonithd: [8606]: debug: external_run_cmd: Calling &#39;/usr/lib64/stonith/plugins/external/rackpdu gethosts&#39;</div>
<div>Oct 19 12:39:01 xen-11 stonithd: [8606]: debug: external_run_cmd: &#39;/usr/lib64/stonith/plugins/external/rackpdu gethosts&#39; output: xen-11 xen-12 Outlet_3 Outlet_4 Outlet_5 Outlet_6 Outlet_7 Outlet_8 </div><div>
Oct 19 12:39:01 xen-11 stonithd: [8606]: debug: external_hostlist: running &#39;rackpdu gethosts&#39; returned 0</div><div>Oct 19 12:39:01 xen-11 stonithd: [8606]: debug: external_hostlist: rackpdu host xen-11</div><div>Oct 19 12:39:01 xen-11 stonithd: [8606]: debug: external_hostlist: rackpdu host xen-12</div>
<div>Oct 19 12:39:01 xen-11 stonithd: [8606]: debug: external_hostlist: rackpdu host Outlet_3</div><div>Oct 19 12:39:01 xen-11 stonithd: [8606]: debug: external_hostlist: rackpdu host Outlet_4</div><div>Oct 19 12:39:01 xen-11 stonithd: [8606]: debug: external_hostlist: rackpdu host Outlet_5</div>
<div>Oct 19 12:39:01 xen-11 stonithd: [8606]: debug: external_hostlist: rackpdu host Outlet_6</div><div>Oct 19 12:39:01 xen-11 stonithd: [8606]: debug: external_hostlist: rackpdu host Outlet_7</div><div>Oct 19 12:39:01 xen-11 stonithd: [8606]: debug: external_hostlist: rackpdu host Outlet_8</div>
<div>Oct 19 12:39:01 xen-11 stonithd: [8606]: debug: remove us (xen-11) from the host list for pdu:0</div><div><br></div><div>check the last line - the agent is smart enough to know it can&#39;t fence itself.</div><div><br>
</div><div><br></div></div></div></blockquote></div><div><br></div>do you enable debug by setting debug 1 on <a href="http://ha.cf">ha.cf</a>?<div>do you see that WARN on your system?<br><div><div>stonith-ng: [3369]: WARN: parse_host_line: Could not parse (0 42): /usr/lib/stonith/plugins/external/rackpdu: line 125: local: can only be used in a function</div>
</div><div><br></div></div><div>Cheers,</div><div>Pavlos</div><div><br></div>