Do any one have any idea??<br><br><div class="gmail_quote">On Tue, Feb 23, 2010 at 1:51 PM, Jayakrishnan <span dir="ltr">&lt;<a href="mailto:jayakrishnanlll@gmail.com">jayakrishnanlll@gmail.com</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;">

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&#39;t start on any node as per this configuration... please check it..<br>


------------------------<div class="im"><br>node $id=&quot;3952b93e-786c-47d4-8c2f-a882e3d3d105&quot; node2 \<br>        attributes standby=&quot;off&quot;<br>node $id=&quot;ac87f697-5b44-4720-a8af-12a6f2295930&quot; node1 \<br>

        attributes standby=&quot;off&quot;<br>
primitive pgsql lsb:postgresql-8.4 \<br>        meta target-role=&quot;Started&quot; resource-stickness=&quot;inherited&quot; \<br>        op monitor interval=&quot;15s&quot; timeout=&quot;25s&quot; on-fail=&quot;standby&quot;<br>

</div>
primitive pingd ocf:heartbeat:pingd \<br>        params name=&quot;pingd&quot; hostlist=&quot;192.168.10.1 192.168.10.69&quot; multiplier=&quot;100&quot; \<div class="im"><br>        op monitor interval=&quot;15s&quot; timeout=&quot;5s&quot;<br>


primitive slony-fail lsb:slony_failover \<br>        meta target-role=&quot;Started&quot;<br>primitive slony-fail2 lsb:slony_failover2 \<br>        meta target-role=&quot;Started&quot;<br>primitive vir-ip ocf:heartbeat:IPaddr2 \<br>


        params ip=&quot;192.168.10.10&quot; nic=&quot;eth0&quot; cidr_netmask=&quot;24&quot; broadcast=&quot;192.168.10.255&quot; \<br>        op monitor interval=&quot;15s&quot; timeout=&quot;25s&quot; on-fail=&quot;standby&quot; \<br>


        meta target-role=&quot;Started&quot;<br>clone pgclone pgsql \<br>        meta notify=&quot;true&quot; globally-unique=&quot;false&quot; interleave=&quot;true&quot; target-role=&quot;Started&quot;<br>clone pingclone pingd \<br>


        meta globally-unique=&quot;false&quot; clone-max=&quot;2&quot; clone-node-max=&quot;1&quot;<br>location vir-ip-with-pingd vir-ip \<br></div>rule $id=&quot;vir-ip-with-pingd-rule&quot; -inf: not_defined pingd or pingd number:lte 0<div class="im">

<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=&quot;cib-bootstrap-options&quot; \<br>


        dc-version=&quot;1.0.5-3840e6b5a305ccb803d29b468556739e75532d56&quot; \<br>        cluster-infrastructure=&quot;Heartbeat&quot; \<br>        no-quorum-policy=&quot;ignore&quot; \<br>        stonith-enabled=&quot;false&quot; \<br>

</div>
        last-lrm-refresh=&quot;1266912039&quot;<div class="im"><br>rsc_defaults $id=&quot;rsc-options&quot; \<br>        resource-stickiness=&quot;INFINITY&quot;<br><br><br></div>--------------------------------------------<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<div class="im"><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></div>        Started: [ node2 node1 ]<div class="im"><br>Clone Set: pingclone<br>

        Started: [ node2 node1 ]<br></div>
---------------------------------------------------------------<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>

<font color="#888888">
Jayakrishnan. L</font><div><div></div><div class="h5"><br><br><br><div class="gmail_quote">On Tue, Feb 23, 2010 at 1:32 PM, Andrew Beekhof <span dir="ltr">&lt;<a href="mailto:andrew@beekhof.net" target="_blank">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>On Tue, Feb 23, 2010 at 8:51 AM, Jayakrishnan &lt;<a href="mailto:jayakrishnanlll@gmail.com" target="_blank">jayakrishnanlll@gmail.com</a>&gt; wrote:<br>
&gt; Sir,<br>
</div><div>&gt; Could you explain that a bit more. I have been reading the same document for<br>
&gt; 2 days and cant specify the type as integer. It is showing as<br>
&gt;<br>
&gt; &quot;Parsing error, do you want tot edit it again&quot;<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 &lt;id&gt; &lt;rsc&gt; {node_pref|rules}<br>
<br>
        node_pref :: &lt;score&gt;: &lt;node&gt;<br>
<br>
        rules ::<br>
          rule [id_spec] [$role=&lt;role&gt;] &lt;score&gt;: &lt;expression&gt;<br>
          [rule [id_spec] [$role=&lt;role&gt;] &lt;score&gt;: &lt;expression&gt; ...]<br>
<br>
        id_spec :: $id=&lt;id&gt; | $id-ref=&lt;id&gt;<br>
        score :: &lt;number&gt; | &lt;attribute&gt; | [-]inf<br>
        expression :: &lt;simple_exp&gt; [bool_op &lt;simple_exp&gt; ...]<br>
        bool_op :: or | and<br>
        simple_exp :: &lt;attribute&gt; [type:]&lt;binary_op&gt; &lt;value&gt;<br>
                      | &lt;unary_op&gt; &lt;attribute&gt;<br>
                      | date &lt;date_expr&gt;<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 &lt;end&gt;<br>
                     | gt &lt;start&gt;<br>
                     | in_range start=&lt;start&gt; end=&lt;end&gt;<br>
                     | in_range start=&lt;start&gt; &lt;duration&gt;<br>
                     | date_spec &lt;date_spec&gt;<br>
        duration|date_spec ::<br>
                     hours=&lt;value&gt;<br>
                     | monthdays=&lt;value&gt;<br>
                     | weekdays=&lt;value&gt;<br>
                     | yearsdays=&lt;value&gt;<br>
                     | months=&lt;value&gt;<br>
                     | weeks=&lt;value&gt;<br>
                     | years=&lt;value&gt;<br>
                     | weekyears=&lt;value&gt;<br>
                     | moon=&lt;value&gt;<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>          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><br>
_______________________________________________<br>
Pacemaker mailing list<br>
<a href="mailto:Pacemaker@oss.clusterlabs.org" target="_blank">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></div></div><div><div></div><div class="h5">-- <br>Regards,<br><br>Jayakrishnan. L<br><br>Visit: <a href="http://www.jayakrishnan.bravehost.com" target="_blank">www.jayakrishnan.bravehost.com</a><br>

<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>