<resources>
  <master_slave id="ms-##DRBDDEVICE##">
    <meta_attributes id="ms-##DRBDDEVICE##-ma">
      <attributes>
        <nvpair id="ms-##DRBDDEVICE##-ma-1" name="clone_max" value="2"/>
        <nvpair id="ms-##DRBDDEVICE##-ma-2" name="clone_node_max" value="1"/>
        <nvpair id="ms-##DRBDDEVICE##-ma-3" name="master_max" value="1"/>
        <nvpair id="ms-##DRBDDEVICE##-ma-4" name="master_node_max" value="1"/>
        <nvpair id="ms-##DRBDDEVICE##-ma-5" name="notify" value="yes"/>
        <nvpair id="ms-##DRBDDEVICE##-ma-6" name="globally_unique" value="false"/>
        <nvpair id="ms-##DRBDDEVICE##-ma-7" name="target_role" value="stopped"/>
      </attributes>
    </meta_attributes>
    <primitive id="##DRBDDEVICE##" class="ocf" provider="heartbeat" type="drbd">
      <instance_attributes id="##DRBDDEVICE##-ia">
        <attributes>
          <nvpair id="##DRBDDEVICE##-ia-1" name="drbd_resource" value="##DRBDRESOURCE##"/>
        </attributes>
      </instance_attributes>
      <operations>
        <op id="##DRBDDEVICE##-op-1" name="monitor" interval="59s" timeout="10s" role="Master"/>
        <op id="##DRBDDEVICE##-op-2" name="monitor" interval="60s" timeout="10s" role="Slave"/>
      </operations>
    </primitive>
  </master_slave>
  <group id="gp-##VENAME##">
    <meta_attributes id="gp-##VENAME##-ma">
      <attributes>
        <nvpair id="gp-##VENAME##-ma-1" name="target_role" value="stopped"/>
      </attributes>
    </meta_attributes>
    <primitive id="gp-##VENAME##-fs" class="ocf" provider="heartbeat" type="Filesystem">
      <instance_attributes id="gp-##VENAME##-fs-ia">
        <attributes>
          <nvpair id="gp-##VENAME##-fs-ia-1" name="fstype" value="ext3"/>
          <nvpair id="gp-##VENAME##-fs-ia-2" name="directory" value="/srv/openvz/ve/##VEID##"/>
          <nvpair id="gp-##VENAME##-fs-ia-3" name="device" value="/dev/##DRBDDEVICE##"/>
        </attributes>
      </instance_attributes>
    </primitive>
    <primitive id="gp-##VENAME##-ve" class="ocf" provider="heartbeat" type="ManageVE">
      <instance_attributes id="gp-##VENAME##-ve-ia">
        <attributes>
          <nvpair id="gp-##VENAME##-ve-ia-1" name="veid" value="##VEID##"/>
        </attributes>
      </instance_attributes>
    </primitive>
  </group>
</resources>
