Product SiteDocumentation Site

H.2. A Simple Configuration

Example H.2. 2 nodes, some cluster options and a resource

  <cib admin_epoch="0" epoch="1" num_updates="0" have-quorum="false" validate-with="pacemaker-1.0">
        <nvpair id="option-1" name="symmetric-cluster" value="true"/>
        <nvpair id="option-2" name="no-quorum-policy" value="stop"/>
        <nvpair id="op-default-1" name="timeout" value="30s"/>
        <nvpair id="rsc-default-1" name="resource-stickiness" value="100"/>
        <nvpair id="rsc-default-2" name="migration-threshold" value="10"/>
       <node id="xxx" uname="c001n01" type="normal"/>
       <node id="yyy" uname="c001n02" type="normal"/>
        <primitive id="myAddr" class="ocf" provider="heartbeat" type="IPaddr">
           <op id="myAddr-monitor" name="monitor" interval="300s"/>
             <nvpair name="ip" value=""/>
       <rsc_location id="myAddr-prefer" rsc="myAddr" node="c001n01" score="INFINITY"/>

In this example, we have one resource (an IP address) that we check every five minutes and will run on host c001n01 until either the resource fails 10 times or the host shuts down.