Sir,<br>Thank you for your advice but still my resources cant run anywhere as per crm_verify -LV.<br>My slony resources are dependent of vir-ip. vir-ip can't start on any node as per this configuration... please check it..<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:heartbeat:pingd \<br>        params name="pingd" hostlist="192.168.10.1 192.168.10.69" multiplier="100" \<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" 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" 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 pingd number:lte 0<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="1266912039"<br>rsc_defaults $id="rsc-options" \<br>        resource-stickiness="INFINITY"<br><br><br>--------------------------------------------<br>the log files are also attached...<br>

<br>In crm_mon <br><br>============<br>Last updated: Tue Feb 23 13:49:41 2010<br>Stack: Heartbeat<br>Current DC: node1 (ac87f697-5b44-4720-a8af-12a6f2295930) - partition with 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: [ node2 node1 ]<br>Clone Set: pingclone<br>        Started: [ node2 node1 ]<br>

---------------------------------------------------------------<br><br>Sir,<br>What could be the issue <img goomoji="33A" style="margin: 0pt 0.2ex; vertical-align: middle;" src="cid:33A@goomoji.gmail"><br><br>With thanks,<br>

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

<div class="im">On Tue, Feb 23, 2010 at 8:51 AM, Jayakrishnan <<a href="mailto:jayakrishnanlll@gmail.com">jayakrishnanlll@gmail.com</a>> wrote:<br>
> Sir,<br>
</div><div class="im">> Could you explain that a bit more. I have been reading the same document for<br>
> 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>
</div>[08:18 AM] root@f12 ~ # crm configure help location<br>
Signon to CIB failed: connection failed<br>
Init failed, could not perform requested operations<br>
ERROR: cannot parse xml: no element found: line 1, column 0<br>
<br>
`location` defines the preference of nodes for the given<br>
resource. The location constraints consist of one or more rules<br>
which specify a score to be awarded if the rule matches.<br>
<br>
Usage:<br>
...............<br>
        location <id> <rsc> {node_pref|rules}<br>
<br>
        node_pref :: <score>: <node><br>
<br>
        rules ::<br>
          rule [id_spec] [$role=<role>] <score>: <expression><br>
          [rule [id_spec] [$role=<role>] <score>: <expression> ...]<br>
<br>
        id_spec :: $id=<id> | $id-ref=<id><br>
        score :: <number> | <attribute> | [-]inf<br>
        expression :: <simple_exp> [bool_op <simple_exp> ...]<br>
        bool_op :: or | and<br>
        simple_exp :: <attribute> [type:]<binary_op> <value><br>
                      | <unary_op> <attribute><br>
                      | date <date_expr><br>
        type :: string | version | number<br>
        binary_op :: lt | gt | lte | gte | eq | ne<br>
        unary_op :: defined | not_defined<br>
<br>
        date_expr :: lt <end><br>
                     | gt <start><br>
                     | in_range start=<start> end=<end><br>
                     | in_range start=<start> <duration><br>
                     | date_spec <date_spec><br>
        duration|date_spec ::<br>
                     hours=<value><br>
                     | monthdays=<value><br>
                     | weekdays=<value><br>
                     | yearsdays=<value><br>
                     | months=<value><br>
                     | weeks=<value><br>
                     | years=<value><br>
                     | weekyears=<value><br>
                     | moon=<value><br>
...............<br>
Examples:<br>
...............<br>
        location conn_1 internal_www 100: node1<br>
<br>
        location conn_1 internal_www \<br>
          rule 50: #uname eq node1 \<br>
          rule pingd: defined pingd<br>
<br>
        location conn_2 dummy_float \<br>
<div class="im">          rule -inf: not_defined pingd or pingd lte 0<br>
</div>...............<br>
<br>
<br>
Though this last example is wrong:<br>
<br>
        location conn_2 dummy_float \<br>
          rule -inf: not_defined pingd or pingd number:lte 0<br>
<div><div></div><div class="h5"><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>