[Linux-HA] clones

Serge.Dubrouski at fjcomm.com Serge.Dubrouski at fjcomm.com
Mon Oct 31 14:57:37 MST 2005


Hello All -

I want to configure a clone resource in 2 nodes cluster. I.e. I want to
have a resource running on both nodes in a cluster. Here is what I've done:

       <clone id="orion">
         <instance_attributes>
           <nvpair name="clone_max" value="2"/>
           <nvpair name="clone_node_max" value="1"/>
         </instance_attributes>
         <primitive class="ocf" type="orion" is_managed="true" id="orion"
provider="fjcomm">
           <instance_attributes>
             <attributes>
               <nvpair name="asp_user" value="aspimaging" />
               <nvpair name="orion_home" value="/opt/webapp/orion_cluster"
/>
             </attributes>
           </instance_attributes>
           <operations>
             <op name="start" timeout="20s" />
             <op name="stop" timeout="20s" />
             <op name="monitor" interval="60s" timeout="20s" />
           </operations>
         </primitive>
       </clone>
...... Here are some other resources ...........

       <rsc_location id="run_orion" rsc="orion">
         <rule id="pref_orion" score="100" boolean_op="or">
           <expression attribute="#uname" operation="eq" value="node1/>
           <expression attribute="#uname" operation="eq" value="node2"/>
         </rule>
       </rsc_location>

But with this configuration only one instance of that cloned resource
starts. How can I start 2 instances, one per each node?

Thanks.
Serge.



More information about the Linux-HA mailing list