<?xml version="1.0"?>
<cluster name="ineturd-cluster" config_version="2009092506">

<!-- Make note of the two node count 0 
   - The fact that there is a quorum device means this is a 3 node cluster
   - which is reflected by the expected_vote.
-->
<cman expected_vote="3" two_node="0" quorum_dev_poll="23900"/>

<!-- Setup the CMAN timeout interval
   - This value is set to 2.7x the ArrayFailoverWaitTime found in mpp.conf
   - 
   - The token value is defined in milliseconds.
-->
<totem token="24300"/>


	<!-- The heuristics below are used to identify whether or not the storage is actually available.
           -
	   - Notice the interval and tko values.  The quorum failover = interval * tko.  the quorum failover
           - time was computed from 1.7x the ArrayFailoverWaitTime found in mpp.conf
	-->
	<quorumd device="/dev/sdd" interval="3" lable="51ba2bbe-3a83-4a33-a3eb-2fb899aef3ca" min_score="1" tko="53" tko_up="3" votes="1" status_file="/qdisk_status"> 
		<heuristic program="/bin/ping -c1 -i1 192.168.100.101" score="1" interval="2" tko="3"/>
		<heuristic program="/bin/ping -c1 -i1 192.168.100.102" score="1" interval="2" tko="3"/>
		<heuristic program="/bin/ping -c1 -i1 192.168.101.101" score="1" interval="2" tko="3"/>
		<heuristic program="/bin/ping -c1 -i1 192.168.101.102" score="1" interval="2" tko="3"/>
	</quorumd>

	<clusternodes>
		<clusternode name="ineturd-cnode01.lab.inetu.net" votes="1" nodeid="1">
			<fence>
				<method name="single">
					<device name="ineturd-cnode01-ipmi"/>
				</method>
			</fence>
		</clusternode>

		<clusternode name="ineturd-cnode02.lab.inetu.net" votes="1" nodeid="2">
			<fence>
				<method name="single">
					<device name="ineturd-cnode02-ipmi"/>
				</method>
			</fence>
		</clusternode>
	</clusternodes>

	<fencedevices>
		<fencedevice name="ineturd-cnode01-ipmi" agent="fence_ipmilan" ipaddr="192.168.10.197" login="root" passwd="lkjlkj" option="reboot" auth="password"/>
		<fencedevice name="ineturd-cnode02-ipmi" agent="fence_ipmilan" ipaddr="192.168.10.198" login="root" passwd="lkjlkj" option="reboot" auth="password"/>
	</fencedevices>


	<!-- Resource manager configuration section 
	   - The following sections outline the services which will be monitored
	   - and controled by the cluster.
	-->

	<rm>
		<!-- Failover domain configuration for MySQL -->
		<failoverdomains>
			<failoverdomain name="MySQLFailoverDomain" restricted="1" ordered="0" nofailback="1">
				<failoverdomainnode name="ineturd-cnode01.lab.inetu.net" priority="50"/>
				<failoverdomainnode name="ineturd-cnode02.lab.inetu.net" priority="50"/>
			</failoverdomain>
		</failoverdomains>

		<!-- No resources defined by default -->
		<resources/>

		<!-- Service definition for the MySQL service and it's IP -->
		<service autostart="1" domain="MySQLFailoverDomain" name="MySQL" recovery="restart" max_restarts="3" restart_expire_time="60">
			<ip address="192.168.10.50" monitor_link="1"/>
			<mysql name="ClusteredMySQL" config_file="/clustered_storage/my.cnf"/>
		</service>
	</rm>
</cluster>
