Sir,<br>Could you explain that a bit more. I have been reading the same document for 2 days and cant specify the type as integer. It is showing as <br><br>&quot;Parsing error, do you want tot edit it again&quot;<br><br>With lots of thanks<br>

<br>Jayakrishnan. L<br><br><div class="gmail_quote">On Tue, Feb 23, 2010 at 12:51 PM, Andrew Beekhof <span dir="ltr">&lt;<a href="mailto:andrew@beekhof.net">andrew@beekhof.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<a href="http://www.clusterlabs.org/doc/en-US/Pacemaker/1.0/html/Pacemaker_Explained/ch-rules.html#id2083551" target="_blank">http://www.clusterlabs.org/doc/en-US/Pacemaker/1.0/html/Pacemaker_Explained/ch-rules.html#id2083551</a><br>


<br>
Look for the &quot;type&quot; field.<br>
<div><div></div><div class="h5"><br>
On Tue, Feb 23, 2010 at 5:08 AM, Jayakrishnan &lt;<a href="mailto:jayakrishnanlll@gmail.com">jayakrishnanlll@gmail.com</a>&gt; wrote:<br>
&gt; Sir,<br>
&gt; I am afraid to ask you but how can I tell pacemaker to compare as number<br>
&gt; instead of string.<br>
&gt; I changed -inf: to -10000 in pingd location constarint but same problem<br>
&gt; persists.<br>
&gt; I also changer the global resource stickness to 10000. but still not<br>
&gt; working.<br>
&gt;<br>
&gt; With thanks,<br>
&gt; Jayakrishnan.L<br>
&gt;<br>
&gt; On Tue, Feb 23, 2010 at 1:04 AM, Andrew Beekhof &lt;<a href="mailto:andrew@beekhof.net">andrew@beekhof.net</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; On Mon, Feb 22, 2010 at 6:46 PM, Jayakrishnan &lt;<a href="mailto:jayakrishnanlll@gmail.com">jayakrishnanlll@gmail.com</a>&gt;<br>
&gt;&gt; wrote:<br>
&gt;&gt; &gt; Sir,<br>
&gt;&gt; &gt; I have setup a 2 node cluster with heartbeat 2.99  pacemaker 1.05. I am<br>
&gt;&gt; &gt; using Ubuntu 9.1. Both the packages are installed from ubuntu karmic<br>
&gt;&gt; &gt; repository.<br>
&gt;&gt; &gt; My packages are:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; heartbeat                   2.99.2+sles11r9-5ubuntu1<br>
&gt;&gt; &gt; heartbeat-common                     2.99.2+sles11r9-5ubuntu1<br>
&gt;&gt; &gt; heartbeat-common-dev                 2.99.2+sles11r9-5ubuntu1<br>
&gt;&gt; &gt; heartbeat-dev                        2.99.2+sles11r9-5ubuntu1<br>
&gt;&gt; &gt; libheartbeat2                        2.99.2+sles11r9-5ubuntu1<br>
&gt;&gt; &gt; libheartbeat2-dev                    2.99.2+sles11r9-5ubuntu1<br>
&gt;&gt; &gt; pacemaker-heartbeat                  1.0.5+hg20090813-0ubuntu4<br>
&gt;&gt; &gt; pacemaker-heartbeat-dev              1.0.5+hg20090813-0ubuntu4<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; My <a href="http://ha.cf" target="_blank">ha.cf</a> file, crm configuration are all attached in the mail.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; I am making a postgres database cluster with slony replication. eth1 is<br>
&gt;&gt; &gt; my<br>
&gt;&gt; &gt; heartbeat link, a cross over cable is connected between the servers in<br>
&gt;&gt; &gt; eth1.<br>
&gt;&gt; &gt; eth0 is my external network where my cluster IP get assigned.<br>
&gt;&gt; &gt; server1--&gt; hostname node1<br>
&gt;&gt; &gt; node 1 192.168.10.129 eth1<br>
&gt;&gt; &gt; 192.168.1.1--&gt;eth0<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; servver2 --&gt; hostname node2<br>
&gt;&gt; &gt; node2  192.168.10.130 eth1<br>
&gt;&gt; &gt; 192.168.1.2 --&gt; eth0<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Now when I pull out my eth1 cable, I need to make a failover to the<br>
&gt;&gt; &gt; other<br>
&gt;&gt; &gt; node. For that i have configured pingd as follows. But it is not<br>
&gt;&gt; &gt; working. My<br>
&gt;&gt; &gt; resources are not at all starting when I give rule as<br>
&gt;&gt; &gt; rule -inf: not_defined pingd or pingd lte0<br>
&gt;&gt;<br>
&gt;&gt; You need to get 1.0.7 or tell pacemaker to do the comparison as a<br>
&gt;&gt; number instead of as a string.<br>
&gt;&gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; I tried changing the -inf: to inf: then the resources got started but<br>
&gt;&gt; &gt; resource failover is not taking place when i pull out the eth1 cable.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Please check my configuration and kindly point out where I am missing.<br>
&gt;&gt; &gt; PLease see that I am using default resource stickness as INFINITY which<br>
&gt;&gt; &gt; is<br>
&gt;&gt; &gt; compulsory for slony replication.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; MY <a href="http://ha.cf" target="_blank">ha.cf</a> file<br>
&gt;&gt; &gt; ------------------------------------------------------------------<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; autojoin none<br>
&gt;&gt; &gt; keepalive 2<br>
&gt;&gt; &gt; deadtime 15<br>
&gt;&gt; &gt; warntime 10<br>
&gt;&gt; &gt; initdead 64<br>
&gt;&gt; &gt; initdead 64<br>
&gt;&gt; &gt; bcast eth1<br>
&gt;&gt; &gt; auto_failback off<br>
&gt;&gt; &gt; node node1<br>
&gt;&gt; &gt; node node2<br>
&gt;&gt; &gt; crm respawn<br>
&gt;&gt; &gt; use_logd yes<br>
&gt;&gt; &gt; ____________________________________________<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; My crm configuration<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; node $id=&quot;3952b93e-786c-47d4-8c2f-a882e3d3d105&quot; node2 \<br>
&gt;&gt; &gt;         attributes standby=&quot;off&quot;<br>
&gt;&gt; &gt; node $id=&quot;ac87f697-5b44-4720-a8af-12a6f2295930&quot; node1 \<br>
&gt;&gt; &gt;         attributes standby=&quot;off&quot;<br>
&gt;&gt; &gt; primitive pgsql lsb:postgresql-8.4 \<br>
&gt;&gt; &gt;         meta target-role=&quot;Started&quot; resource-stickness=&quot;inherited&quot; \<br>
&gt;&gt; &gt;         op monitor interval=&quot;15s&quot; timeout=&quot;25s&quot; on-fail=&quot;standby&quot;<br>
&gt;&gt; &gt; primitive pingd ocf:pacemaker:pingd \<br>
&gt;&gt; &gt;         params name=&quot;pingd&quot; hostlist=&quot;192.168.10.1 192.168.10.75&quot; \<br>
&gt;&gt; &gt;         op monitor interval=&quot;15s&quot; timeout=&quot;5s&quot;<br>
&gt;&gt; &gt; primitive slony-fail lsb:slony_failover \<br>
&gt;&gt; &gt;         meta target-role=&quot;Started&quot;<br>
&gt;&gt; &gt; primitive slony-fail2 lsb:slony_failover2 \<br>
&gt;&gt; &gt;         meta target-role=&quot;Started&quot;<br>
&gt;&gt; &gt; primitive vir-ip ocf:heartbeat:IPaddr2 \<br>
&gt;&gt; &gt;         params ip=&quot;192.168.10.10&quot; nic=&quot;eth0&quot; cidr_netmask=&quot;24&quot;<br>
&gt;&gt; &gt; broadcast=&quot;192.168.10.255&quot; \<br>
&gt;&gt; &gt;         op monitor interval=&quot;15s&quot; timeout=&quot;25s&quot; on-fail=&quot;standby&quot; \<br>
&gt;&gt; &gt;         meta target-role=&quot;Started&quot;<br>
&gt;&gt; &gt; clone pgclone pgsql \<br>
&gt;&gt; &gt;         meta notify=&quot;true&quot; globally-unique=&quot;false&quot; interleave=&quot;true&quot;<br>
&gt;&gt; &gt; target-role=&quot;Started&quot;<br>
&gt;&gt; &gt; clone pingclone pingd \<br>
&gt;&gt; &gt;         meta globally-unique=&quot;false&quot; clone-max=&quot;2&quot; clone-node-max=&quot;1&quot;<br>
&gt;&gt; &gt; location vir-ip-with-pingd vir-ip \<br>
&gt;&gt; &gt;         rule $id=&quot;vir-ip-with-pingd-rule&quot; inf: not_defined pingd or<br>
&gt;&gt; &gt; pingd<br>
&gt;&gt; &gt; lte 0<br>
&gt;&gt; &gt; meta globally-unique=&quot;false&quot; clone-max=&quot;2&quot; clone-node-max=&quot;1&quot;<br>
&gt;&gt; &gt; colocation ip-with-slony inf: slony-fail vir-ip<br>
&gt;&gt; &gt; colocation ip-with-slony2 inf: slony-fail2 vir-ip<br>
&gt;&gt; &gt; order ip-b4-slony2 inf: vir-ip slony-fail2<br>
&gt;&gt; &gt; order slony-b4-ip inf: vir-ip slony-fail<br>
&gt;&gt; &gt; property $id=&quot;cib-bootstrap-options&quot; \<br>
&gt;&gt; &gt;         dc-version=&quot;1.0.5-3840e6b5a305ccb803d29b468556739e75532d56&quot; \<br>
&gt;&gt; &gt;         cluster-infrastructure=&quot;Heartbeat&quot; \<br>
&gt;&gt; &gt;         no-quorum-policy=&quot;ignore&quot; \<br>
&gt;&gt; &gt;         stonith-enabled=&quot;false&quot; \<br>
&gt;&gt; &gt;         last-lrm-refresh=&quot;1266851027&quot;<br>
&gt;&gt; &gt; rsc_defaults $id=&quot;rsc-options&quot; \<br>
&gt;&gt; &gt;         resource-stickiness=&quot;INFINITY&quot;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; _____________________________________<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; My crm status:<br>
&gt;&gt; &gt; __________________________<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; crm(live)# status<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; ============<br>
&gt;&gt; &gt; Last updated: Mon Feb 22 23:15:56 2010<br>
&gt;&gt; &gt; Stack: Heartbeat<br>
&gt;&gt; &gt; Current DC: node2 (3952b93e-786c-47d4-8c2f-a882e3d3d105) - partition<br>
&gt;&gt; &gt; with<br>
&gt;&gt; &gt; quorum<br>
&gt;&gt; &gt; Version: 1.0.5-3840e6b5a305ccb803d29b468556739e75532d56<br>
&gt;&gt; &gt; 2 Nodes configured, unknown expected votes<br>
&gt;&gt; &gt; 5 Resources configured.<br>
&gt;&gt; &gt; ============<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Online: [ node2 node1 ]<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Clone Set: pgclone<br>
&gt;&gt; &gt;     Started: [ node1 node2 ]<br>
&gt;&gt; &gt; Clone Set: pingclone<br>
&gt;&gt; &gt;     Started: [ node2 node1 ]<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; ============================<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; please help me out.<br>
&gt;&gt; &gt; --<br>
&gt;<br>
&gt;<br>
</div></div><div><div></div><div class="h5">&gt; _______________________________________________<br>
&gt; Pacemaker mailing list<br>
&gt; <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
&gt; <a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
&gt;<br>
&gt;<br>
<br>
_______________________________________________<br>
Pacemaker mailing list<br>
<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>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br><br>Jayakrishnan. L<br><br>Visit: <a href="http://www.jayakrishnan.bravehost.com">www.jayakrishnan.bravehost.com</a><br><br>