I'm looking at a few problems with my cib.xml file, that may be skewing
what node takes the virtual-ip role at startup.
My nodes are specified in ha.cf as:
node clusternodeA clusternodeB
Yet in the cib.xml, the nodes are listed as:
<nodes>
<node id="822b06b7-f86d-42f2-93ef-06413bbe8609" uname="clusternodeB"
type="normal"/>
<node id="1a50ebcc-ce4d-46a3-80d1-6b5f0c7d923b" uname="clusternodeA"
type="normal"/>
</nodes>
Is there any way that I can change the order of these nodes in cib.xml?
Also, can someone assist me adding the 'pref_run_ip_resource' constraint
to cib.xml using cibadmin?
In the example the cib.xml is:
<cib>
<configuration>
<crm_config/>
<nodes/>
<resources>
<primitive id="ip_resource" class="ocf" type="IPaddr"
provider="heartbeat">
<instance_attributes>
<attributes>
<nvpair name="ip" value="1.2.3.4"/>
</attributes>
</instance_attributes>
</primitive>
</resources>
<constraints>
<rsc_location id="run_ip_resource" rsc="ip_resource">
<rule id="pref_run_ip_resource" score="100">
<expression attribute="#uname" operation="eq" value="paul"/>
</rule>
</rsc_location>
</constraints>
</configuration>
<status/>
</cib>
So how do I add the fact clusternodeA should take preference? I've got
as far as:
cibadmin -C -o constraints ' <constraints>
<rsc_location id="run_ip_resource" rsc="ip_resource">
<rule id="pref_run_ip_resource" score="100">
<expression attribute="#uname" operation="eq" value="paul"/>
</rule>
</rsc_location>
</constraints>'
Is this correct?
Any help is appreciated.
Regards
John
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems