<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Thanks. <br>
I see. My nodes both have BMC to implement IPMI. But we don`t hope
node shoot itself. So in my case, "location" is necessary to
prevent fence_impilan runing on its shooting node.<br>
<br>
On 05/14/2014 03:00 PM, Andrew Beekhof wrote:<br>
</div>
<blockquote
cite="mid:5B734C7A-9690-48B0-894C-70EF4546930F@beekhof.net"
type="cite">
<pre wrap="">
On 12 May 2014, at 6:04 pm, david.miao <a class="moz-txt-link-rfc2396E" href="mailto:david@shannon-data.com"><david@shannon-data.com></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">I install fence_ipmilan with the command: yum install fence-agents
My stonith configuration is as following:
node master
node slave
...
primitive stonith-master stonith:fence_ipmilan \
params ipaddr=192.168.1.36 login=root passwd=master pcmk_host_list=master pcmk_host_check=static-list action=off \
op monitor interval=30s
primitive stonith-slave stonith:fence_ipmilan \
params ipaddr=192.168.1.37 login=root passwd=slave pcmk_host_list=slave pcmk_host_check=static-list action=off delay=15s \
op monitor interval=30s
location stonith-master-mutex-master stonith-master -inf: master
location stonith-slave-mutex-slave stonith-slave -inf: slave
This can work, but my question is: Are the "location" above necessary?
</pre>
</blockquote>
<pre wrap="">
No.
</pre>
<blockquote type="cite">
<pre wrap="">Can I use pcmk_host_list="some nodes" to control which nodes the fence_ipmilan agent can run on?
</pre>
</blockquote>
<pre wrap="">
Where it runs isn't so important. Particularly in a two node cluster (we'll always try it from the node not being fenced first).
</pre>
<blockquote type="cite">
<pre wrap="">If can`t, what is the meaning of the pcmk_host_list. I have referenced to the manual but I can`t understand.
</pre>
</blockquote>
<pre wrap="">
Its a list of nodes the device can shoot/fence.
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Pacemaker mailing list: <a class="moz-txt-link-abbreviated" href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a>
<a class="moz-txt-link-freetext" href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a>
Project Home: <a class="moz-txt-link-freetext" href="http://www.clusterlabs.org">http://www.clusterlabs.org</a>
Getting started: <a class="moz-txt-link-freetext" href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a>
Bugs: <a class="moz-txt-link-freetext" href="http://bugs.clusterlabs.org">http://bugs.clusterlabs.org</a>
</pre>
</blockquote>
<br>
</body>
</html>