   <group id="tsm1_group">
     <primitive class="ocf" id="10.0.0.70" provider="heartbeat" type="IPaddr2">
       <operations>
         <op id="ip_tsm1_mon" interval="5s" name="monitor" timeout="5s"/>
       </operations>
       <instance_attributes id="ip_tsm1_inst_attr">
         <attributes>
           <nvpair id="ip_tsm1" name="ip" value="10.0.0.70"/>
           <nvpair id="ip_tsm1_bcast" name="broadcast" value="10.0.0.255"/>
           <nvpair id="ip_tsm1_device" name="nic" value="eth0"/>
           <nvpair id="ip_tsm1_netmask" name="cidr_netmask" value="24"/>
           <nvpair id="ip_tsm1_label" name="iflabel" value="tsm1"/>
           <nvpair id="ip_tsm1_status" name="target_role" value="started"/>
         </attributes>
       </instance_attributes>
     </primitive>
     <primitive class="ocf" id="/tsm/TSM1" provider="heartbeat" type="Filesystem">
       <operations>
         <op id="fs_1_tsm1_mon" interval="5s" name="monitor" timeout="5s"/>
       </operations>
       <instance_attributes id="fs_1_tsm1_inst_attr">
         <attributes>
           <nvpair id="fs_1_tsm1_dev" name="device" value="/dev/tsm1_server_dir"/>
           <nvpair id="fs_1_tsm1_mountpoint" name="directory" value="/tsm/TSM1"/>
           <nvpair id="fs_1_tsm1_fstype" name="fstype" value="ext3"/>
           <nvpair id="fs_1_tsm1_status" name="target_role" value="started"/>
         </attributes>
       </instance_attributes>
     </primitive>
     <primitive class="ocf" id="/tsm/TSM1/db" provider="heartbeat" type="Filesystem">
       <operations>
         <op id="fs_2_tsm1_mon" interval="5s" name="monitor" timeout="5s"/>
       </operations>
       <instance_attributes id="fs_2_tsm1_inst_attr">
         <attributes>
           <nvpair id="fs_2_tsm1_dev" name="device" value="/dev/tsm1_db"/>
           <nvpair id="fs_2_tsm1_mountpoint" name="directory" value="/tsm/TSM1/db"/>
           <nvpair id="fs_2_tsm1_fstype" name="fstype" value="ext2"/>
         </attributes>
       </instance_attributes>
     </primitive>
     <primitive class="ocf" id="/tsm/TSM1/db_mirror" provider="heartbeat" type="Filesystem">
       <operations>
         <op id="fs_3_tsm1_mon" interval="5s" name="monitor" timeout="5s"/>
       </operations>
       <instance_attributes id="fs_3_tsm1_inst_attr">
         <attributes>
           <nvpair id="fs_3_tsm1_dev" name="device" value="/dev/tsm1_db_mirror"/>
           <nvpair id="fs_3_tsm1_mountpoint" name="directory" value="/tsm/TSM1/db_mirror"/>
           <nvpair id="fs_3_tsm1_fstype" name="fstype" value="ext2"/>
         </attributes>
       </instance_attributes>
     </primitive>
     <primitive class="ocf" id="/tsm/TSM1/log" provider="heartbeat" type="Filesystem">
       <operations>
         <op id="fs_4_tsm1_mon" interval="5s" name="monitor" timeout="5s"/>
       </operations>
       <instance_attributes id="fs_4_tsm1_inst_attr">
         <attributes>
           <nvpair id="fs_4_tsm1_dev" name="device" value="/dev/tsm1_log"/>
           <nvpair id="fs_4_tsm1_mountpoint" name="directory" value="/tsm/TSM1/log"/>
           <nvpair id="fs_4_tsm1_fstype" name="fstype" value="ext2"/>
         </attributes>
       </instance_attributes>
     </primitive>
     <primitive class="ocf" id="/tsm/TSM1/log_mirror" provider="heartbeat" type="Filesystem">
       <operations>
         <op id="fs_5_tsm1_mon" interval="5s" name="monitor" timeout="5s"/>
       </operations>
       <instance_attributes id="fs_5_tsm1_inst_attr">
         <attributes>
           <nvpair id="fs_5_tsm1_dev" name="device" value="/dev/tsm1_log_mirror"/>
           <nvpair id="fs_5_tsm1_mountpoint" name="directory" value="/tsm/TSM1/log_mirror"/>
           <nvpair id="fs_5_tsm1_fstype" name="fstype" value="ext2"/>
         </attributes>
       </instance_attributes>
     </primitive>
     <primitive class="ocf" id="TSM1: dsmserv" provider="heartbeat" type="dsmserv">
       <operations>
         <op id="dsmserv_tsm1_mon" interval="5s" name="monitor" timeout="5s"/>
       </operations>
       <instance_attributes id="dsmserv_tsm1_inst_attr">
         <attributes>
           <nvpair id="dsmserv_tsm1_status" name="target_role" value="started"/>
           <nvpair id="dsmserv_tsm1_prefix" name="prefix" value="/tsm"/>
           <nvpair id="dsmserv_tsm1_instance" name="instance" value="TSM1"/>
           <nvpair id="dsmserv_tsm1_userid" name="id" value="ha_client"/>
           <nvpair id="dsmserv_tsm1_password" name="password" value="ha_client"/>
           <nvpair id="dsmserv_tsm1_tcpaddress" name="TCPAddress" value="10.0.0.70"/>
           <nvpair id="dsmserv_tsm1_tcpport" name="TCPPort" value="1500"/>
         </attributes>
       </instance_attributes>
     </primitive>
   </group>
   <group id="tsm2_group">
     <primitive class="ocf" id="10.0.0.80" provider="heartbeat" type="IPaddr2">
       <operations>
         <op id="ip_tsm2_mon" interval="5s" name="monitor" timeout="5s"/>
       </operations>
       <instance_attributes id="ip_tsm2_inst_attr">
         <attributes>
           <nvpair id="ip_tsm2" name="ip" value="10.0.0.80"/>
           <nvpair id="ip_tsm2_bcast" name="broadcast" value="10.0.0.255"/>
           <nvpair id="ip_tsm2_device" name="nic" value="eth0"/>
           <nvpair id="ip_tsm2_netmask" name="cidr_netmask" value="24"/>
           <nvpair id="ip_tsm2_label" name="iflabel" value="tsm2"/>
           <nvpair id="ip_tsm2_status" name="target_role" value="started"/>
         </attributes>
       </instance_attributes>
     </primitive>
     <primitive class="ocf" id="/tsm/TSM2" provider="heartbeat" type="Filesystem">
       <operations>
         <op id="fs_1_tsm2_mon" interval="5s" name="monitor" timeout="5s"/>
       </operations>
       <instance_attributes id="fs_1_tsm2_inst_attr">
         <attributes>
           <nvpair id="fs_1_tsm2_dev" name="device" value="/dev/tsm2_server_dir"/>
           <nvpair id="fs_1_tsm2_mountpoint" name="directory" value="/tsm/TSM2"/>
           <nvpair id="fs_1_tsm2_fstype" name="fstype" value="ext3"/>
           <nvpair id="fs_1_tsm2_status" name="target_role" value="started"/>
         </attributes>
       </instance_attributes>
     </primitive>
     <primitive class="ocf" id="/tsm/TSM2/db" provider="heartbeat" type="Filesystem">
       <operations>
         <op id="fs_2_tsm2_mon" interval="5s" name="monitor" timeout="5s"/>
       </operations>
       <instance_attributes id="fs_2_tsm2_inst_attr">
         <attributes>
           <nvpair id="fs_2_tsm2_dev" name="device" value="/dev/tsm2_db"/>
           <nvpair id="fs_2_tsm2_mountpoint" name="directory" value="/tsm/TSM2/db"/>
           <nvpair id="fs_2_tsm2_fstype" name="fstype" value="ext2"/>
         </attributes>
       </instance_attributes>
     </primitive>
     <primitive class="ocf" id="/tsm/TSM2/db_mirror" provider="heartbeat" type="Filesystem">
       <operations>
         <op id="fs_3_tsm2_mon" interval="5s" name="monitor" timeout="5s"/>
       </operations>
       <instance_attributes id="fs_3_tsm2_inst_attr">
         <attributes>
           <nvpair id="fs_3_tsm2_dev" name="device" value="/dev/tsm2_db_mirror"/>
           <nvpair id="fs_3_tsm2_mountpoint" name="directory" value="/tsm/TSM2/db_mirror"/>
           <nvpair id="fs_3_tsm2_fstype" name="fstype" value="ext2"/>
         </attributes>
       </instance_attributes>
     </primitive>
     <primitive class="ocf" id="/tsm/TSM2/log" provider="heartbeat" type="Filesystem">
       <operations>
         <op id="fs_4_tsm2_mon" interval="5s" name="monitor" timeout="5s"/>
       </operations>
       <instance_attributes id="fs_4_tsm2_inst_attr">
         <attributes>
           <nvpair id="fs_4_tsm2_dev" name="device" value="/dev/tsm2_log"/>
           <nvpair id="fs_4_tsm2_mountpoint" name="directory" value="/tsm/TSM2/log"/>
           <nvpair id="fs_4_tsm2_fstype" name="fstype" value="ext2"/>
         </attributes>
       </instance_attributes>
     </primitive>
     <primitive class="ocf" id="/tsm/TSM2/log_mirror" provider="heartbeat" type="Filesystem">
       <operations>
         <op id="fs_5_tsm2_mon" interval="5s" name="monitor" timeout="5s"/>
       </operations>
       <instance_attributes id="fs_5_tsm2_inst_attr">
         <attributes>
           <nvpair id="fs_5_tsm2_dev" name="device" value="/dev/tsm2_log_mirror"/>
           <nvpair id="fs_5_tsm2_mountpoint" name="directory" value="/tsm/TSM2/log_mirror"/>
           <nvpair id="fs_5_tsm2_fstype" name="fstype" value="ext2"/>
         </attributes>
       </instance_attributes>
     </primitive>
     <primitive class="ocf" id="TSM2: dsmserv" provider="heartbeat" type="dsmserv">
       <operations>
         <op id="dsmserv_tsm2_mon" interval="5s" name="monitor" timeout="5s"/>
       </operations>
       <instance_attributes id="dsmserv_tsm2_inst_attr">
         <attributes>
           <nvpair id="dsmserv_tsm2_status" name="target_role" value="started"/>
           <nvpair id="dsmserv_tsm2_prefix" name="prefix" value="/tsm"/>
           <nvpair id="dsmserv_tsm2_instance" name="instance" value="TSM2"/>
           <nvpair id="dsmserv_tsm2_userid" name="id" value="ha_client"/>
           <nvpair id="dsmserv_tsm2_password" name="password" value="ha_client"/>
           <nvpair id="dsmserv_tsm2_tcpaddress" name="TCPAddress" value="10.0.0.80"/>
           <nvpair id="dsmserv_tsm2_tcpport" name="TCPPort" value="1501"/>
           <nvpair id="dsmserv_tsm2_max_retries" name="max_retries" value="2"/>
           <nvpair id="dsmserv_tsm2_shutdown_timeout" name="shutdown_timeout" value="10"/>
         </attributes>
       </instance_attributes>
     </primitive>
   </group>
