<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"><<a href="mailto:francis.souyri@apec.fr" target="_blank">francis.souyri@apec.fr</a>></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 "schoreshow" 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 <<a href="mailto:francis.souyri@apec.fr" target="_blank">francis.souyri@apec.fr</a><br></div>
<mailto:<a href="mailto:francis.souyri@apec.fr" target="_blank">francis.souyri@apec.fr</a><u></u>>><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> <<a href="http://192.168.1.0/24" target="_blank">http://192.168.1.0/24</a>> for cluster access,<br>
<a href="http://10.1.1.0/24" target="_blank">10.1.1.0/24</a> <<a href="http://10.1.1.0/24" target="_blank">http://10.1.1.0/24</a>> 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>
<<a href="http://192.168.1.0/24" target="_blank">http://192.168.1.0/24</a>> 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 "crm_attribute -G -t status -N -n pingd"<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>
<clone id="ping-gateway-clone"><br>
<meta_attributes id="ping-gateway-clone-meta"><br>
<nvpair id="ping-gateway-interleave" name="interleave"<br>
value="true"/><br>
</meta_attributes><br>
<primitive class="ocf" id="ping-gateway"<br>
provider="pacemaker" type="ping"><br></div>
<instance_attributes id="ping-gateway-instance___<u></u>attributes"><br>
<nvpair<br>
id="ping-gateway-instance___<u></u>attributes-host_list" name="host_list"<br>
value="192.168.1.1"/><br>
<nvpair<br>
id="ping-gateway-instance___<u></u>attributes-multiplier" name="multiplier"<div class="im"><br>
value="100"/><br>
</instance_attributes><br>
</primitive><br>
</clone><br>
</resources><br>
<constraints><br></div>
<rsc_location id="location-named-noeud1.__<u></u>apec.fr-50"<br>
node="<a href="http://noeud1.apec.fr" target="_blank">noeud1.apec.fr</a> <<a href="http://noeud1.apec.fr" target="_blank">http://noeud1.apec.fr</a>>" rsc="named" score="50"/><br>
<rsc_location id="location-dhcpd-noeud1.__<u></u>apec.fr-50"<br>
node="<a href="http://noeud1.apec.fr" target="_blank">noeud1.apec.fr</a> <<a href="http://noeud1.apec.fr" target="_blank">http://noeud1.apec.fr</a>>" rsc="dhcpd" score="50"/><br>
<rsc_location id="location-named2-noeud1.__<u></u>apec.fr-50"<br>
node="<a href="http://noeud1.apec.fr" target="_blank">noeud1.apec.fr</a> <<a href="http://noeud1.apec.fr" target="_blank">http://noeud1.apec.fr</a>>" rsc="named2" score="50"/><br>
<rsc_location id="location-samba-noeud1.__<u></u>apec.fr-50"<br>
node="<a href="http://noeud1.apec.fr" target="_blank">noeud1.apec.fr</a> <<a href="http://noeud1.apec.fr" target="_blank">http://noeud1.apec.fr</a>>" rsc="samba" score="50"/><div class="im">
<br>
<rsc_location id="pingnamed" rsc="named"><br>
<rule id="pingnamed-rule" score-attribute="pingd"><br>
<expression attribute="pingd" id="pingnamed-expression"<br>
operation="defined"/><br>
</rule><br>
</rsc_location><br>
</constraints><br>
<rsc_defaults><br>
<meta_attributes id="rsc_defaults-options"><br></div>
<nvpair id="rsc_defaults-options-__<u></u>resource-stickiness"<div class="im"><br>
name="resource-stickiness" value="100"/><br>
</meta_attributes><br>
</rsc_defaults><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>
<mailto:<a href="mailto:Pacemaker@oss.clusterlabs.org" target="_blank">Pacemaker@oss.<u></u>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><div class="im"><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:<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>
<<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>
<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>