<div dir="ltr">Hello Pavel,<div><br></div><div>Thank you for your help.</div><div><br></div><div>I tried what you told me, but it doesn't seem to work, when I take off both networks layers (for the bond), the resource doesn't migrate.</div>
<div><br></div><div><br><br><div class="gmail_quote">2011/3/18 Pavel Levshin <span dir="ltr"><<a href="mailto:pavel@levshin.spb.ru">pavel@levshin.spb.ru</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div text="#000000" bgcolor="#ffffff">
18.03.2011 2:52, tariq fillah:
<div class="im"><blockquote type="cite">
<div dir="ltr">I meen this:<br>
<pre style="font-family:arial,helvetica,sans-serif"><font size="4">crm configure primitive ping ocf:pacemaker:ping \
</font><font size="4">
op monitor depth="0" timeout="20s" interval="10"
**********
<span style="font-family:arial,helvetica,sans-serif">clone pingdClone ping \</span>
<span style="font-family:arial,helvetica,sans-serif"> meta globally-unique="false" target-role="Started"</span></font>
</pre>
***********<br>
<font style="font-family:arial,helvetica,sans-serif" size="4">crm
configure location pingjb ClusterIP \<br>
<br>
rule -inf: not_defined ping<br>
</font><br>
<br>
</div>
</blockquote>
<br></div>
First, define what to monitor.<div class="im"><br>
<br>
primitive ping ocf:pacemaker:ping \<br></div>
op monitor timeout="20" interval="10"<br>
params host_list="192.168.0.1" multiplier=1000<br>
<br>
Second, make ping resource run on every node.<br>
<br>
clone c-ping ping<br>
<br>
Then the value of attribute pingd will be used as score for the
rule. Best connectivity will win. <br>
<br>
location pingjb ClusterIP \<br>
rule pingd: defined pingd<div class="im"><br>
<br>
<br>
2011/3/17 tariq fillah <span dir="ltr"><<a href="mailto:tariqfcb@gmail.com" target="_blank">tariqfcb@gmail.com</a>></span><br>
</div><blockquote type="cite"><div class="im">
<div dir="ltr">
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
<div dir="ltr">Hello the list,<br>
<br>
I want to add a switching condition for the resource
ClusterIP based on connectivity, how can I do this. Will
this work?<br>
<br>
<pre><font size="4">crm configure primitive example_ping ocf:pacemaker:ping \
</font><font size="4">
op monitor depth="0" timeout="20s" interval="10"</font></pre>
<br>
crm configure location pingjb ClusterIP \<br>
rule -inf: not_defined ping<br>
<br>
Thanks in advance<br>
</div>
</blockquote>
</div>
<br>
</div>
</div><pre><fieldset></fieldset>
_______________________________________________
Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org" target="_blank">Pacemaker@oss.clusterlabs.org</a>
<a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a>
Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a>
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>
Bugs: <a href="http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker" target="_blank">http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker</a>
</pre>
</blockquote>
</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://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker" target="_blank">http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker</a><br>
<br></blockquote></div><br></div></div>