On 7/6/07, Adrian Chapela <[EMAIL PROTECTED]> wrote:

This rule is quite simple but I can't understand well.

         <rule id="my_resource:connected:rule" score="-INFINITY"
boolean_op="or">
           <expression id="my_resource:connected:expr:undefined"
attribute="pingd" operation="not_defined"/>
           <expression id="my_resource:connected:expr:zero"
attribute="pingd" operation="lte" value="0"/>
         </rule>

The first expression check if the attribute pingd is defined (I
think...) and the second expression compares the same attribute with 0.
My problem is, What it's this attribute ?? Who update its value  (I
think pingd, but the executable or the OCF script)??


the OCF script is just a wrapper for the executable

have you read all of http://www.linux-ha.org/v2/faq/pingd ?



Now I think in the same rule for other resource:

         <rule id="my_resource:connected:rule" score="-INFINITY"
boolean_op="or">
           <expression id="my_resource:connected:expr:undefined"
attribute="my_daemon" operation="not_defined"/>
           <expression id="my_resource:connected:expr:zero"
attribute="my_daemon" operation="lte" value="0"/>
         </rule>

How can I do to update the value of this attribute ? If I can update
this value, I can force movement the resource group to another node. My
it's only the rules, I don't understand how the script can to interact
with the CIB.

Thank you!!
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to