cib validate-with="pacemaker-1.0" crm_feature_set="3.0.1" remote-tls-port="1234" remote-clear-port="12345" have-quorum="0" admin_epoch="0" epoch="416" num_updates="22" cib-last-written="Wed Oct  7 10:51:53 2009" dc-uuid="box1">
  <configuration>
    <crm_config>
      <cluster_property_set id="cib-bootstrap-options">
        <nvpair id="cib-bootstrap-options-dc-version" name="dc-version" value="1.0.5-05c8b63cbca7ce95182bb41881b3c5677f20bd5c"/>
        <nvpair id="cib-bootstrap-options-cluster-infrastructure" name="cluster-infrastructure" value="openais"/>
        <nvpair id="cib-bootstrap-options-expected-quorum-votes" name="expected-quorum-votes" value="3"/>
        <nvpair id="cib-bootstrap-options-stonith-enabled" name="stonith-enabled" value="false"/>
        <nvpair id="cib-bootstrap-options-last-lrm-refresh" name="last-lrm-refresh" value="1251891300"/>
        <nvpair id="cib-bootstrap-options-no-quorum-policy" name="no-quorum-policy" value="ignore"/>
        <nvpair id="cib-bootstrap-options-default-resource-stickiness" name="default-resource-stickiness" value="1000"/>
      </cluster_property_set>
    </crm_config>
    <nodes>
      <node id="box1" uname="box1" type="normal">
        <instance_attributes id="nodes-box1">
          <nvpair id="nodes-box1-standby" name="standby" value="off"/>
        </instance_attributes>
      </node>
      <node id="box2" type="normal" uname="box2"/>
      <node uname="fc12-node1" type="normal" id="fc12-node1">
        <instance_attributes id="nodes-fc12-node1">
          <nvpair name="standby" id="nodes-fc12-node1-standby" value="off"/>
        </instance_attributes>
      </node>
    </nodes>
    <resources>
      <master id="ms_drbd">
        <meta_attributes id="ms_drbd-meta_attributes">
          <nvpair id="ms_drbd-meta_attributes-master-max" name="master-max" value="1"/>
          <nvpair id="ms_drbd-meta_attributes-master-node-max" name="master-node-max" value="1"/>
          <nvpair id="ms_drbd-meta_attributes-clone-max" name="clone-max" value="2"/>
          <nvpair id="ms_drbd-meta_attributes-clone-node-max" name="clone-node-max" value="1"/>
          <nvpair id="ms_drbd-meta_attributes-notify" name="notify" value="true"/>
        </meta_attributes>
        <primitive class="ocf" id="drbd" provider="linbit" type="drbd">
          <instance_attributes id="drbd-instance_attributes">
            <nvpair id="drbd-instance_attributes-drbd_resource" name="drbd_resource" value="r0"/>
          </instance_attributes>
          <operations>
            <op id="drbd-monitor-15s" interval="15s" name="monitor" role="Master"/>
            <op id="drbd-monitor-16s" interval="16s" name="monitor" role="Slave"/>
          </operations>
        </primitive>
      </master>
      <clone id="cl_pingd">
        <primitive class="ocf" id="pingd" provider="pacemaker" type="pingd">
          <operations>
            <op id="pingd-monitor-10s" interval="10s" name="monitor" timeout="20s"/>
          </operations>
          <instance_attributes id="pingd-instance_attributes">
            <nvpair id="pingd-instance_attributes-host_list" name="host_list" value="10.223.0.100 10.222.22.22"/>
            <nvpair id="pingd-instance_attributes-interval" name="interval" value="5s"/>
          </instance_attributes>
        </primitive>
      </clone>
      <group id="mysql_service_group">
        <primitive class="ocf" id="fs_r0" provider="heartbeat" type="Filesystem">
          <instance_attributes id="fs_r0-instance_attributes">
            <nvpair id="fs_r0-instance_attributes-fstype" name="fstype" value="ext3"/>
            <nvpair id="fs_r0-instance_attributes-directory" name="directory" value="/mnt/r0"/>
            <nvpair id="fs_r0-instance_attributes-device" name="device" value="/dev/drbd0"/>
          </instance_attributes>
          <meta_attributes id="fs_r0-meta_attributes">
            <nvpair id="fs_r0-meta_attributes-target-role" name="target-role" value="Started"/>
          </meta_attributes>
        </primitive>
        <primitive class="ocf" id="ip_mysql" provider="heartbeat" type="IPaddr2">
          <instance_attributes id="ip_mysql-instance_attributes">
            <nvpair id="ip_mysql-instance_attributes-ip" name="ip" value="10.223.0.222"/>
          </instance_attributes>
          <operations>
            <op id="ip_mysql-monitor-5s" interval="5s" name="monitor" timeout="20s"/>
          </operations>
        </primitive>
        <primitive class="ocf" id="mysql" provider="heartbeat" type="mysql">
          <instance_attributes id="mysql-instance_attributes">
            <nvpair id="mysql-instance_attributes-binary" name="binary" value="/usr/bin/mysqld_safe"/>
            <nvpair id="mysql-instance_attributes-config" name="config" value="/etc/mysql/my.cnf"/>
            <nvpair id="mysql-instance_attributes-datadir" name="datadir" value="/mnt/r0"/>
            <nvpair id="mysql-instance_attributes-user" name="user" value="root"/>
            <nvpair id="mysql-instance_attributes-group" name="group" value="root"/>
            <nvpair id="mysql-instance_attributes-test_user" name="test_user" value="pacemaker"/>
            <nvpair id="mysql-instance_attributes-test_passwd" name="test_passwd" value="pacemaker"/>
            <nvpair id="mysql-instance_attributes-test_table" name="test_table" value="pacemaker.test"/>
            <nvpair id="mysql-instance_attributes-enable_creation" name="enable_creation" value="true"/>
            <nvpair id="mysql-instance_attributes-socket" name="socket" value="/var/run/mysqld/mysqld.sock"/>
            <nvpair id="mysql-instance_attributes-pid" name="pid" value="/var/run/mysqld/mysqld.pid"/>
          </instance_attributes>
          <meta_attributes id="mysql-meta_attributes">
            <nvpair id="mysql-meta_attributes-target-role" name="target-role" value="Started"/>
          </meta_attributes>
          <operations>
            <op id="mysql-monitor-5s" interval="5s" name="monitor" timeout="30s"/>
          </operations>
        </primitive>
      </group>
    </resources>
    <constraints>
      <rsc_order first="ms_drbd" first-action="promote" id="ms_drbd-before-mysql_service_group" score="INFINITY" then="mysql_service_group" then-action="start"/>
      <rsc_colocation id="mysql_service_group-on-ms_drbd" rsc="mysql_service_group" score="INFINITY" with-rsc="ms_drbd" with-rsc-role="Master"/>
      <rsc_location id="sql-on-connected-node" rsc="mysql_service_group">
        <rule boolean-op="or" id="sql-on-connected-node-rule" score="-INFINITY">
          <expression attribute="pingd" id="sql-on-connected-node-expression" operation="not_defined"/>
          <expression attribute="pingd" id="sql-on-connected-node-expression-0" operation="lte" value="0"/>
        </rule>
      </rsc_location>
      <rsc_location id="drbd-on-box1-or-box2" rsc="ms_drbd">
        <rule id="drbd-on-box1-or-box2-rule" score="-INFINITY">
          <expression attribute="#uname" id="drbd-on-box1-or-box2-expression" operation="ne" value="box1"/>
          <expression attribute="#uname" id="drbd-on-box1-or-box2-expression-0" operation="ne" value="box2"/>
        </rule>
      </rsc_location>
    </constraints>
    <rsc_defaults/>
    <op_defaults/>
  </configuration>
  <status>
    <node_state id="box1" uname="box1" ha="active" in_ccm="true" crmd="online" join="member" expected="member" crm-debug-origin="do_update_resource" shutdown="0">
      <lrm id="box1">
        <lrm_resources>
          <lrm_resource id="pingd:0" type="pingd" class="ocf" provider="pacemaker">
            <lrm_rsc_op id="pingd:0_monitor_0" operation="monitor" crm-debug-origin="do_update_resource" crm_feature_set="3.0.1" transition-key="5:0:7:783cf4db-44a1-4606-aac4-2a762660ade9" transition-magic="0:7;5:0:7:783cf4db-44a1-4606-aac4-2a762660ade9" call-id="3" rc-code="7" op-status="0" interval="0" last-run="1254904201" last-rc-change="1254904201" exec-time="1610" queue-time="0" op-digest="e263a7860d8953f175e81604acfcc8b7"/>
            <lrm_rsc_op id="pingd:0_start_0" operation="start" crm-debug-origin="do_update_resource" crm_feature_set="3.0.1" transition-key="35:0:0:783cf4db-44a1-4606-aac4-2a762660ade9" transition-magic="0:0;35:0:0:783cf4db-44a1-4606-aac4-2a762660ade9" call-id="8" rc-code="0" op-status="0" interval="0" last-run="1254904205" last-rc-change="1254904205" exec-time="410" queue-time="0" op-digest="e263a7860d8953f175e81604acfcc8b7"/>
            <lrm_rsc_op id="pingd:0_monitor_10000" operation="monitor" crm-debug-origin="do_update_resource" crm_feature_set="3.0.1" transition-key="35:1:0:783cf4db-44a1-4606-aac4-2a762660ade9" transition-magic="0:0;35:1:0:783cf4db-44a1-4606-aac4-2a762660ade9" call-id="10" rc-code="0" op-status="0" interval="10000" last-run="1254904208" last-rc-change="1254904208" exec-time="70" queue-time="0" op-digest="c56a67ab52e1501226a0c1bc168186df"/>
          </lrm_resource>
          <lrm_resource id="fs_r0" type="Filesystem" class="ocf" provider="heartbeat">
            <lrm_rsc_op id="fs_r0_monitor_0" operation="monitor" crm-debug-origin="do_update_resource" crm_feature_set="3.0.1" transition-key="6:0:7:783cf4db-44a1-4606-aac4-2a762660ade9" transition-magic="0:7;6:0:7:783cf4db-44a1-4606-aac4-2a762660ade9" call-id="4" rc-code="7" op-status="0" interval="0" last-run="1254904202" last-rc-change="1254904202" exec-time="1000" queue-time="0" op-digest="98708c581b26d0cd01a8dbaefa05f461"/>
            <lrm_rsc_op id="fs_r0_start_0" operation="start" crm-debug-origin="do_update_resource" crm_feature_set="3.0.1" transition-key="40:2:0:783cf4db-44a1-4606-aac4-2a762660ade9" transition-magic="0:0;40:2:0:783cf4db-44a1-4606-aac4-2a762660ade9" call-id="15" rc-code="0" op-status="0" interval="0" last-run="1254904212" last-rc-change="1254904212" exec-time="860" queue-time="0" op-digest="98708c581b26d0cd01a8dbaefa05f461"/>
          </lrm_resource>
          <lrm_resource id="ip_mysql" type="IPaddr2" class="ocf" provider="heartbeat">
            <lrm_rsc_op id="ip_mysql_monitor_0" operation="monitor" crm-debug-origin="do_update_resource" crm_feature_set="3.0.1" transition-key="7:0:7:783cf4db-44a1-4606-aac4-2a762660ade9" transition-magic="0:7;7:0:7:783cf4db-44a1-4606-aac4-2a762660ade9" call-id="5" rc-code="7" op-status="0" interval="0" last-run="1254904202" last-rc-change="1254904202" exec-time="570" queue-time="0" op-digest="eda280979be9d3895b4a32ab626937c0"/>
            <lrm_rsc_op id="ip_mysql_start_0" operation="start" crm-debug-origin="do_update_resource" crm_feature_set="3.0.1" transition-key="41:2:0:783cf4db-44a1-4606-aac4-2a762660ade9" transition-magic="0:0;41:2:0:783cf4db-44a1-4606-aac4-2a762660ade9" call-id="16" rc-code="0" op-status="0" interval="0" last-run="1254904213" last-rc-change="1254904213" exec-time="550" queue-time="0" op-digest="eda280979be9d3895b4a32ab626937c0"/>
            <lrm_rsc_op id="ip_mysql_monitor_5000" operation="monitor" crm-debug-origin="do_update_resource" crm_feature_set="3.0.1" transition-key="42:2:0:783cf4db-44a1-4606-aac4-2a762660ade9" transition-magic="0:0;42:2:0:783cf4db-44a1-4606-aac4-2a762660ade9" call-id="17" rc-code="0" op-status="0" interval="5000" last-run="1254904213" last-rc-change="1254904213" exec-time="300" queue-time="0" op-digest="152e3180e81203068d805eff770ce550"/>
          </lrm_resource>
          <lrm_resource id="drbd:0" type="drbd" class="ocf" provider="linbit">
            <lrm_rsc_op id="drbd:0_monitor_0" operation="monitor" crm-debug-origin="do_update_resource" crm_feature_set="3.0.1" transition-key="4:0:7:783cf4db-44a1-4606-aac4-2a762660ade9" transition-magic="0:7;4:0:7:783cf4db-44a1-4606-aac4-2a762660ade9" call-id="2" rc-code="7" op-status="0" interval="0" last-run="1254904200" last-rc-change="1254904200" exec-time="3660" queue-time="0" op-digest="c0e018b73fdf522b6cdd355e125af15e"/>
            <lrm_rsc_op id="drbd:0_start_0" operation="start" crm-debug-origin="do_update_resource" crm_feature_set="3.0.1" transition-key="9:0:0:783cf4db-44a1-4606-aac4-2a762660ade9" transition-magic="0:0;9:0:0:783cf4db-44a1-4606-aac4-2a762660ade9" call-id="7" rc-code="0" op-status="0" interval="0" last-run="1254904204" last-rc-change="1254904204" exec-time="2300" queue-time="0" op-digest="c0e018b73fdf522b6cdd355e125af15e"/>
            <lrm_rsc_op id="drbd:0_post_notify_start_0" operation="notify" crm-debug-origin="do_update_resource" crm_feature_set="3.0.1" transition-key="65:0:0:783cf4db-44a1-4606-aac4-2a762660ade9" transition-magic="0:0;65:0:0:783cf4db-44a1-4606-aac4-2a762660ade9" call-id="9" rc-code="0" op-status="0" interval="0" last-run="1254904207" last-rc-change="1254904207" exec-time="190" queue-time="0" op-digest="c0e018b73fdf522b6cdd355e125af15e"/>
            <lrm_rsc_op id="drbd:0_pre_notify_promote_0" operation="notify" crm-debug-origin="do_update_resource" crm_feature_set="3.0.1" transition-key="64:1:0:783cf4db-44a1-4606-aac4-2a762660ade9" transition-magic="0:0;64:1:0:783cf4db-44a1-4606-aac4-2a762660ade9" call-id="11" rc-code="0" op-status="0" interval="0" last-run="1254904209" last-rc-change="1254904209" exec-time="440" queue-time="0" op-digest="c0e018b73fdf522b6cdd355e125af15e"/>
            <lrm_rsc_op id="drbd:0_promote_0" operation="promote" crm-debug-origin="do_update_resource" crm_feature_set="3.0.1" transition-key="7:1:0:783cf4db-44a1-4606-aac4-2a762660ade9" transition-magic="0:0;7:1:0:783cf4db-44a1-4606-aac4-2a762660ade9" call-id="12" rc-code="0" op-status="0" interval="0" last-run="1254904209" last-rc-change="1254904209" exec-time="240" queue-time="0" op-digest="c0e018b73fdf522b6cdd355e125af15e"/>
            <lrm_rsc_op id="drbd:0_post_notify_promote_0" operation="notify" crm-debug-origin="do_update_resource" crm_feature_set="3.0.1" transition-key="65:1:0:783cf4db-44a1-4606-aac4-2a762660ade9" transition-magic="0:0;65:1:0:783cf4db-44a1-4606-aac4-2a762660ade9" call-id="13" rc-code="0" op-status="0" interval="0" last-run="1254904210" last-rc-change="1254904210" exec-time="590" queue-time="0" op-digest="c0e018b73fdf522b6cdd355e125af15e"/>
            <lrm_rsc_op id="drbd:0_monitor_15000" operation="monitor" crm-debug-origin="do_update_resource" crm_feature_set="3.0.1" transition-key="9:2:8:783cf4db-44a1-4606-aac4-2a762660ade9" transition-magic="0:8;9:2:8:783cf4db-44a1-4606-aac4-2a762660ade9" call-id="14" rc-code="8" op-status="0" interval="15000" last-run="1254904211" last-rc-change="1254904211" exec-time="590" queue-time="0" op-digest="db2fb3216fa7207fdc0b2bf31bbd09c1"/>
          </lrm_resource>
          <lrm_resource id="mysql" type="mysql" class="ocf" provider="heartbeat">
            <lrm_rsc_op id="mysql_monitor_0" operation="monitor" crm-debug-origin="do_update_resource" crm_feature_set="3.0.1" transition-key="8:0:7:783cf4db-44a1-4606-aac4-2a762660ade9" transition-magic="0:7;8:0:7:783cf4db-44a1-4606-aac4-2a762660ade9" call-id="6" rc-code="7" op-status="0" interval="0" last-run="1254904203" last-rc-change="1254904203" exec-time="1310" queue-time="1040" op-digest="6bb531d012da78410246f306927bf858"/>
            <lrm_rsc_op id="mysql_start_0" operation="start" crm-debug-origin="do_update_resource" crm_feature_set="3.0.1" transition-key="43:2:0:783cf4db-44a1-4606-aac4-2a762660ade9" transition-magic="0:0;43:2:0:783cf4db-44a1-4606-aac4-2a762660ade9" call-id="18" rc-code="0" op-status="0" interval="0" last-run="1254904214" last-rc-change="1254904214" exec-time="4730" queue-time="0" op-digest="6bb531d012da78410246f306927bf858"/>
            <lrm_rsc_op id="mysql_monitor_5000" operation="monitor" crm-debug-origin="do_update_resource" crm_feature_set="3.0.1" transition-key="44:2:0:783cf4db-44a1-4606-aac4-2a762660ade9" transition-magic="0:0;44:2:0:783cf4db-44a1-4606-aac4-2a762660ade9" call-id="19" rc-code="0" op-status="0" interval="5000" last-run="1254904219" last-rc-change="1254904219" exec-time="200" queue-time="0" op-digest="f8f186bdb07f82032d00567e55883926"/>
          </lrm_resource>
        </lrm_resources>
      </lrm>
      <transient_attributes id="box1">
        <instance_attributes id="status-box1">
          <nvpair id="status-box1-probe_complete" name="probe_complete" value="true"/>
          <nvpair id="status-box1-master-drbd:0" name="master-drbd:0" value="100"/>
          <nvpair id="status-box1-pingd" name="pingd" value="2"/>
        </instance_attributes>
      </transient_attributes>
    </node_state>
  </status>
</cib>
