<div dir="ltr">I think they sould be<br><br>pcs constraint location ipmi-fencing-sv2837 prefers sv2837=-INFINITY<br>pcs constraint location ipmi-fencing-sv2836 prefers sv2836=-INFINITY<br><br></div><div class="gmail_extra">
<br><br><div class="gmail_quote">2013/12/9 Michael Schwartzkopff <span dir="ltr"><<a href="mailto:ms@sys4.de" target="_blank">ms@sys4.de</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Am Montag, 9. Dezember 2013, 14:58:13 schrieben Sie:<br>
<div><div class="h5">> > > pcs stonith create ipmi-fencing-sv2837 fence_ipmilan<br>
> ><br>
> > pcmk_host_list="sv2837"<br>
> ><br>
> > > ipaddr=10.110.28.37 action="off" login=ipmi passwd=abc<br>
> ><br>
> > delay=15 op monitor<br>
> ><br>
> > > interval=60s pcs stonith create ipmi-fencing-sv2836 fence_ipmilan<br>
> > > pcmk_host_list="sv2836" ipaddr=10.110.28.36 action="off" login=ipmi<br>
> > > passwd=abc delay=15 op monitor interval=60s<br>
> > ><br>
> > > pcs property set stonith-enabled=true<br>
> > ><br>
> > > pcs constraint location ipmi-fencing-sv2837 prefers sv2836=INFINITY<br>
> > > pcs constraint location ipmi-fencing-sv2836 prefers sv2837=INFINITY<br>
> > ><br>
> > > pcs status<br>
> > > ....<br>
> > ><br>
> > > Full list of resources:<br>
> > >  ClusterIP        (ocf::heartbeat:IPaddr2):       Started sv2836<br>
> > >  FIXRoute (ocf::baader:FIXRoute): Started sv2836<br>
> ><br>
> > >  ipmi-fencing-sv2837      (stonith:fence_ipmilan):<br>
> > Started sv2836<br>
> ><br>
> > >  ipmi-fencing-sv2836      (stonith:fence_ipmilan):<br>
> > Started sv2837<br>
> ><br>
> > This is not optimal. Nothing prevents the resource, that can<br>
> > fence node sv2837<br>
> > to run on host sv2837. You just say, that it should run on<br>
> > node sv2836.<br>
> ><br>
> > Better would be something like<br>
> ><br>
> > crm configure location place-fencing-sv2837 -inf: sv2837<br>
> ><br>
> > or the equivalent in pcs.<br>
> ><br>
> > Greetings,<br>
><br>
> Hi Michael,<br>
><br>
> I thought that the lines above will do that:<br>
> > > pcs constraint location ipmi-fencing-sv2837 prefers sv2836=INFINITY<br>
> > > pcs constraint location ipmi-fencing-sv2836 prefers sv2837=INFINITY<br>
><br>
> Don't they?<br>
<br>
</div></div>I don't  know pcs in depth and I could not find any detailed doc. So I stick<br>
with crmsh.<br>
<br>
As far as I can judge your lines above your tell the cluster, that the<br>
resource, that can fence node sv2836, gets INF points if it runs on node<br>
sv2837. But what happens if node sv2837 is down? Nothing prevents the resource<br>
starting on the node that it should fence. So if one node is down both fencing<br>
resources will run on the remaining node. No very nice.<br>
<br>
I suggest to assign -INF points to the resource that can fence node sv2836 if<br>
it runs on node sv2836. So it will run on sv2837. If that node is not<br>
available the resource cannot run. On the node (remaining) node sv2836 only<br>
the resource that can fence sv2837.<br>
<br>
For details see: <a href="http://clusterlabs.org/doc/crm_fencing.html" target="_blank">http://clusterlabs.org/doc/crm_fencing.html</a><br>
<div class="HOEnZb"><div class="h5"><br>
Mit freundlichen Grüßen,<br>
<br>
Michael Schwartzkopff<br>
<br>
--<br>
[*] sys4 AG<br>
<br>
<a href="http://sys4.de" target="_blank">http://sys4.de</a>, <a href="tel:%2B49%20%2889%29%2030%2090%2046%2064" value="+498930904664">+49 (89) 30 90 46 64</a>, <a href="tel:%2B49%20%28162%29%20165%200044" value="+491621650044">+49 (162) 165 0044</a><br>

Franziskanerstraße 15, 81669 München<br>
<br>
Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263<br>
Vorstand: Patrick Ben Koetter, Axel von der Ohe, Marc Schiffbauer<br>
Aufsichtsratsvorsitzender: Florian Kirstein</div></div><br>_______________________________________________<br>
Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
<a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
<br>
Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>esta es mi vida e me la vivo hasta que dios quiera
</div>