<div dir="ltr">Read this link <a href="http://www.woodwose.net/thatremindsme/2011/04/the-pacemaker-ping-resource-agent/">http://www.woodwose.net/thatremindsme/2011/04/the-pacemaker-ping-resource-agent/</a><br></div><div class="gmail_extra">
<br><br><div class="gmail_quote">2013/8/29 Francis SOUYRI <span dir="ltr">&lt;<a href="mailto:francis.souyri@apec.fr" target="_blank">francis.souyri@apec.fr</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello Emmanuel,<br>
<br>
Yes I think also but why... that the question, I checked the Net for information about how the score is calculated without success.<br>
<br>
I retrieved a &quot;schoreshow&quot; script but I do not understand the result.<br>
<br>
Best regards.<br>
<br>
Francis<div class="im"><br>
<br>
On 08/29/2013 10:32 AM, emmanuel segura wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
I think your score is wrong in your rule expression<br>
<br>
<br>
2013/8/29 Francis SOUYRI &lt;<a href="mailto:francis.souyri@apec.fr" target="_blank">francis.souyri@apec.fr</a><br></div>
&lt;mailto:<a href="mailto:francis.souyri@apec.fr" target="_blank">francis.souyri@apec.fr</a><u></u>&gt;&gt;<div class="im"><br>
<br>
    Hello,<br>
<br>
    I have a corosync/pacemaker with 2 nodes and 2 nets by nodes,<br></div>
    <a href="http://192.168.1.0/24" target="_blank">192.168.1.0/24</a> &lt;<a href="http://192.168.1.0/24" target="_blank">http://192.168.1.0/24</a>&gt; for cluster access,<br>
    <a href="http://10.1.1.0/24" target="_blank">10.1.1.0/24</a> &lt;<a href="http://10.1.1.0/24" target="_blank">http://10.1.1.0/24</a>&gt; for drbd in bond, both used by<div class="im"><br>
    corosync.<br>
    I try to used ocf:pacemaker:ping to monitor the <a href="http://192.168.1.0/24" target="_blank">192.168.1.0/24</a><br></div>
    &lt;<a href="http://192.168.1.0/24" target="_blank">http://192.168.1.0/24</a>&gt; I have the configuration below, but when I<div class="im"><br>
    remove the cable of the noeud1 the named group resource do not<br>
    migrate to noeud2.<br>
<br>
    When I used these command &quot;crm_attribute -G -t status -N  -n pingd&quot;<br>
    I have this.<br>
<br>
    Could not map uname=-n to a UUID: The object/attribute does not exist<br>
    scope=status   value=(null)<br>
    Error performing operation: cib object missing<br>
<br>
    ##### CONFIG<br>
    ...<br>
           &lt;clone id=&quot;ping-gateway-clone&quot;&gt;<br>
             &lt;meta_attributes id=&quot;ping-gateway-clone-meta&quot;&gt;<br>
               &lt;nvpair id=&quot;ping-gateway-interleave&quot; name=&quot;interleave&quot;<br>
    value=&quot;true&quot;/&gt;<br>
             &lt;/meta_attributes&gt;<br>
             &lt;primitive class=&quot;ocf&quot; id=&quot;ping-gateway&quot;<br>
    provider=&quot;pacemaker&quot; type=&quot;ping&quot;&gt;<br></div>
               &lt;instance_attributes id=&quot;ping-gateway-instance___<u></u>attributes&quot;&gt;<br>
                 &lt;nvpair<br>
    id=&quot;ping-gateway-instance___<u></u>attributes-host_list&quot; name=&quot;host_list&quot;<br>
    value=&quot;192.168.1.1&quot;/&gt;<br>
                 &lt;nvpair<br>
    id=&quot;ping-gateway-instance___<u></u>attributes-multiplier&quot; name=&quot;multiplier&quot;<div class="im"><br>
    value=&quot;100&quot;/&gt;<br>
               &lt;/instance_attributes&gt;<br>
             &lt;/primitive&gt;<br>
           &lt;/clone&gt;<br>
         &lt;/resources&gt;<br>
         &lt;constraints&gt;<br></div>
           &lt;rsc_location id=&quot;location-named-noeud1.__<u></u>apec.fr-50&quot;<br>
    node=&quot;<a href="http://noeud1.apec.fr" target="_blank">noeud1.apec.fr</a> &lt;<a href="http://noeud1.apec.fr" target="_blank">http://noeud1.apec.fr</a>&gt;&quot; rsc=&quot;named&quot; score=&quot;50&quot;/&gt;<br>

           &lt;rsc_location id=&quot;location-dhcpd-noeud1.__<u></u>apec.fr-50&quot;<br>
    node=&quot;<a href="http://noeud1.apec.fr" target="_blank">noeud1.apec.fr</a> &lt;<a href="http://noeud1.apec.fr" target="_blank">http://noeud1.apec.fr</a>&gt;&quot; rsc=&quot;dhcpd&quot; score=&quot;50&quot;/&gt;<br>

           &lt;rsc_location id=&quot;location-named2-noeud1.__<u></u>apec.fr-50&quot;<br>
    node=&quot;<a href="http://noeud1.apec.fr" target="_blank">noeud1.apec.fr</a> &lt;<a href="http://noeud1.apec.fr" target="_blank">http://noeud1.apec.fr</a>&gt;&quot; rsc=&quot;named2&quot; score=&quot;50&quot;/&gt;<br>

           &lt;rsc_location id=&quot;location-samba-noeud1.__<u></u>apec.fr-50&quot;<br>
    node=&quot;<a href="http://noeud1.apec.fr" target="_blank">noeud1.apec.fr</a> &lt;<a href="http://noeud1.apec.fr" target="_blank">http://noeud1.apec.fr</a>&gt;&quot; rsc=&quot;samba&quot; score=&quot;50&quot;/&gt;<div class="im">
<br>
           &lt;rsc_location id=&quot;pingnamed&quot; rsc=&quot;named&quot;&gt;<br>
             &lt;rule id=&quot;pingnamed-rule&quot; score-attribute=&quot;pingd&quot;&gt;<br>
               &lt;expression attribute=&quot;pingd&quot; id=&quot;pingnamed-expression&quot;<br>
    operation=&quot;defined&quot;/&gt;<br>
             &lt;/rule&gt;<br>
           &lt;/rsc_location&gt;<br>
         &lt;/constraints&gt;<br>
         &lt;rsc_defaults&gt;<br>
           &lt;meta_attributes id=&quot;rsc_defaults-options&quot;&gt;<br></div>
             &lt;nvpair id=&quot;rsc_defaults-options-__<u></u>resource-stickiness&quot;<div class="im"><br>
    name=&quot;resource-stickiness&quot; value=&quot;100&quot;/&gt;<br>
           &lt;/meta_attributes&gt;<br>
         &lt;/rsc_defaults&gt;<br>
    ....<br>
    ##### END CONFIG<br>
<br>
    Best regards.<br>
<br>
    Francis<br>
<br></div>
    ______________________________<u></u>___________________<br>
    Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org" target="_blank">Pacemaker@oss.clusterlabs.org</a><br>
    &lt;mailto:<a href="mailto:Pacemaker@oss.clusterlabs.org" target="_blank">Pacemaker@oss.<u></u>clusterlabs.org</a>&gt;<br>
    <a href="http://oss.clusterlabs.org/__mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/__<u></u>mailman/listinfo/pacemaker</a><div class="im"><br>
    &lt;<a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/<u></u>mailman/listinfo/pacemaker</a>&gt;<br>
<br>
    Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
    Getting started:<br></div>
    <a href="http://www.clusterlabs.org/__doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/__<u></u>doc/Cluster_from_Scratch.pdf</a><div class="im"><br>
    &lt;<a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/<u></u>doc/Cluster_from_Scratch.pdf</a>&gt;<br>
    Bugs: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
<br>
<br>
<br>
<br>
--<br>
esta es mi vida e me la vivo hasta que dios quiera<br>
</div></blockquote><div class="HOEnZb"><div class="h5">
<br>
<br>
______________________________<u></u>_________________<br>
Pacemaker mailing list: <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/<u></u>mailman/listinfo/pacemaker</a><br>
<br>
Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/<u></u>doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>esta es mi vida e me la vivo hasta que dios quiera
</div>