Can you please elaborate on this. Give me an example of how / where to use it?

This is an example using constraints. I dont have a group example at hand.

This could be part of your cib:

MailTo RA

<primitive id="mailto" class="ocf" type="MailTo" provider="heartbeat">
         <meta_attributes id="ma-mailto">
           <attributes>
             <nvpair name="target_role" id="ma-mailto-1" value="started"/>
           </attributes>
         </meta_attributes>
         <instance_attributes id="ia-mailto">
           <attributes>
<nvpair id="mailto-a-1" name="email" value="[EMAIL PROTECTED]"/>
           </attributes>
         </instance_attributes>
       </primitive>

MailTo constraints

<rsc_order id="mailto_after_xen_r0" from="mailto" action="start" to="xen_r0" to_action="start"/> <rsc_colocation id="mailto_with_xen_r0" from="mailto" to="xen_r0" score="INFINITY"/>

This is to say that "mailto start" is executed on the same host as xen_r0 after xen_r0 is started. xen_r0 is another resource in my system. It may be any other resource in YOUR system.
_______________________________________________
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