[Linux-HA] Steps to create a 3 node cluster.

Andreas Kurz akurz at sms.at
Mon Nov 6 09:23:39 MST 2006


Mc Linux wrote:
> Hi!
> 
> Now I know that I have to use cib.xml to configure a three node cluster.
> 
> I migrated my old-style haresources file with haresources2cib.py...
> 
> But how can I add thing like this:
> 
> <rsc_location id="location_named" rsc="named_id">
>                <rule id="prefered_location_named" score="100">
>                    <expression attribute="#uname" operation="eq"
> value="pluto"/>
>                </rule>
>                <rule id="prefered_location_named" score="-INFINITY">
>                    <expression attribute="#uname" operation="eq"
> value="mars"/>
>                </rule>
>   </rsc_location>
> 

cibadmin is your friend ...

http://linux-ha.org/v2_2fAdminTools_2fcibadmin

e.g.
# cibadmin -U -o constraints -X '<rsc_location
id="location_named"rsc="named_id">
       <rule id="prefered_location_named" score="100">
          <expression attribute="#uname" operation="eq" value="pluto"/>
       </rule>
       <rule id="prefered_location_named" score="-INFINITY">
          <expression attribute="#uname" operation="eq" value="mars"/>
       </rule>
  </rsc_location>'

Regards,
Andi




More information about the Linux-HA mailing list