Sir,<br>I am afraid to ask you but how can I tell pacemaker to compare as number instead of string.<br>I changed -inf: to -10000 in pingd location constarint but same problem persists.<br>I also changer the global resource stickness to 10000. but still not working.<br>

<br>With thanks,<br>Jayakrishnan.L<br><br><div class="gmail_quote">On Tue, Feb 23, 2010 at 1:04 AM, 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;">

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