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