<?xml version="1.0"?>
<cluster name="pretty" config_version="6">

<cman>
</cman>

<dlm>
</dlm>

<clusternodes>
  <clusternode name="red" votes="4">
    <fence>
      <method name="power">
        <device name="wti" port="1"/>
      </method>
    </fence>
  </clusternode>
  <clusternode name="green" votes="3">
    <fence>
      <method name="power">
        <device name="wti" port="2"/>
      </method>
    </fence>
  </clusternode>
</clusternodes>


<fencedevices>
  <fencedevice name="wti" agent="fence_wti" ipaddress="nps1" password="wti"/>
</fencedevices>


<!-- The RM block holds resources, failover domains, and any number of
     'group' (= resource group) blocks -->
<rm>
  <!-- Similar to failover domains in RHEL3 -->
  <failoverdomains>
    <failoverdomain name="thisdomain" ordered="1">
      <failoverdomainnode name="red" priority="1"/>
      <failoverdomainnode name="green" priority="1"/>
      <failoverdomainnode name="blue" priority="2"/>
    </failoverdomain>
    <failoverdomain name="bluedomain" restricted="1">
      <failoverdomainnode name="blue" priority="2"/>
    </failoverdomain>
  </failoverdomains>

  <!-- Define resources here -->
  <resources>

    <group name="oracle" domain="thisdomain"/>
    <script name="Oracle Script" file="/etc/init.d/oracle"/>
    <script name="Oracle Script 2" file="/etc/init.d/oracle2"/>
    <ip address="192.168.0.28" monitor_link="yes"/>
    <ip address="192.168.0.29" monitor_link="yes"/>
    <nfsclient name="User group" target="@users" options="ro"/>
    <nfsclient name="Admin group" target="@admin" options="rw"/>
    <nfsexport name="nfs exports"/>
  </resources>

  <!-- Define resource groups here -->
  <service ref="oracle">

    <!-- Reference the above resources by their primary attribute -->
    <script ref="Oracle Script"/>
    <script ref="Oracle Script 2"/>
    <ip ref="192.168.0.28"/>
    <ip ref="192.168.0.29"/>

    <!-- Or define them inline.  Fine with me! -->
    <fs fstype="ext3" name="NFS Mount" mountpoint="/mnt/cluster" device="/dev/sdb8">

       <!-- nfs export path inherited from parent file system's mount point-->
       <nfsexport ref="nfs exports">
          <!-- Export path inherited from export. So, for this instance
               of "admin group", the export path is /mnt/cluster. -->
          <nfsclient ref="Admin group"/>
	  <nfsclient ref="User group"/>
       </nfsexport>
    </fs>

    <fs fstype="ext3" name="NFS2" mountpoint="/mnt/sdb7" device="/dev/sdb7">
       <!-- nfs export path inherited from parent file system's mount point-->
       <nfsexport name="NFS Export" type="nfs">
          <!-- Export path inherited from export. So, for this instance
               of "admin group", the export path is /mnt/sdb7. -->
          <nfsclient ref="Admin group"/>
	  <nfsclient ref="User group"/>
       </nfsexport>
    </fs>
  </service>

  <!-- Define a bunch of test resource groups. -->
  <service name="test1"/>
  <service name="test2"/>
  <service name="test3"/>
  <service name="test4"/>
  <service name="test5"/>
  <service name="test6"/>
  <service name="test7"/>
  <service name="test8"/>
  <service name="test9"/>
  <service name="blueonly" domain="bluedomain"/>
</rm>

</cluster>
