
The most common, basic configuration is that of a high-availability server which simply provides a single IP address (1.2.3.4) to be failed over[1] between the nodes[2] of our cluster[3]. This is an ActivePassive[4] configuration - the most basic configuration.
<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>
GettingStarted/OneIPAddress[5].
| [1] | http://en.wikipedia.org/wiki/Failover |
| [2] | http://www.linux-ha.org/ClusterNode |
| [3] | http://en.wikipedia.org/wiki/Computer_cluster |
| [4] | http://www.linux-ha.org/ActivePassive |
| [5] | http://www.linux-ha.org/GettingStarted/OneIPAddress |
This information provided courtesy of the Linux-HA project at http://linux-ha.org/