Hi,

I'm currently starting pingd in the ha.cf file but I'd like to use the
crm to start it. I've tried using the example from
http://www.linux-ha.org/v2/faq/pingd and the pingd resource looks like
it has started. Shouldn't I just need to change the attribute name in
the constraint to pingd-clone for this to work or is there something
else I need to do?

Thanks
Guy

This is the clone for pingd:
       <clone id="pingd-clone">
         <meta_attributes id="pingd-clone-ma">
           <attributes>
             <nvpair id="pingd-clone-1" name="globally_unique" value="false"/>
           </attributes>
         </meta_attributes>
         <primitive id="pingd-child" provider="heartbeat" class="ocf"
type="pingd">
           <operations>
             <op id="pingd-child-monitor" name="monitor"
interval="20s" timeout="60s" prereq="nothing"/>
             <op id="pingd-child-start" name="start" prereq="nothing"/>
           </operations>
           <instance_attributes id="pingd_inst_attr">
             <attributes>
               <nvpair id="pingd-1" name="dampen" value="5s"/>
               <nvpair id="pingd-2" name="multiplier" value="100"/>
             </attributes>
           </instance_attributes>
         </primitive>
       </clone>

Below are my constraints:
       <rsc_location id="ms-drbd0:connected" rsc="ms-drbd0">
         <rule role="master" id="ms-drbd0:connected:rule"
score="-INFINITY" boolean_op="or">
           <expression id="ms-drbd0:connected:expr:undefined"
attribute="pingd" operation="not_defined"/>
           <expression id="ms-drbd0:connected:expr:zero"
attribute="pingd" operation="lte" value="0"/>
         </rule>
       </rsc_location>
       <rsc_location id="ms-drbd1:connected" rsc="ms-drbd1">
         <rule role="master" id="ms-drbd1:connected:rule"
score="-INFINITY" boolean_op="or">
           <expression id="ms-drbd1:connected:expr:undefined"
attribute="pingd" operation="not_defined"/>
           <expression id="ms-drbd1:connected:expr:zero"
attribute="pingd" operation="lte" value="0"/>
         </rule>
       </rsc_location>


-- 
Don't just do something...sit there!
_______________________________________________
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