<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
18.03.2011 2:52, tariq fillah:
<blockquote
cite="mid:AANLkTin9So4cuF4L+2MWeyE__8+LmEnoehY1L-OAbxRK@mail.gmail.com"
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>
First, define what to monitor.<br>
<br>
primitive ping ocf:pacemaker:ping \<br>
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<br>
<br>
<br>
2011/3/17 tariq fillah <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:tariqfcb@gmail.com">tariqfcb@gmail.com</a>></span><br>
<blockquote
cite="mid:AANLkTin9So4cuF4L+2MWeyE__8+LmEnoehY1L-OAbxRK@mail.gmail.com"
type="cite">
<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>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
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://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker">http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker</a>
</pre>
</blockquote>
</body>
</html>