1<cib crm_feature_set="3.0.9" validate-with="pacemaker-2.0" epoch="4" num_updates="22" admin_epoch="0" cib-last-written="Thu May 15 18:22:01 2014" have-quorum="1" dc-uuid="3232238190"> 2 <configuration> 3 <crm_config> 4 <cluster_property_set id="cib-bootstrap-options"> 5 <nvpair id="cib-bootstrap-options-dc-version" name="dc-version" value="1.1.11-f0f09b8"/> 6 <nvpair id="cib-bootstrap-options-cluster-infrastructure" name="cluster-infrastructure" value="corosync"/> 7 <nvpair name="no-quorum-policy" value="ignore" id="cib-bootstrap-options-no-quorum-policy"/> 8 <nvpair name="stonith-enabled" value="false" id="cib-bootstrap-options-stonith-enabled"/> 9 </cluster_property_set> 10 </crm_config> 11 <nodes> 12 <node id="3232238190" uname="srv02"/> 13 <node id="3232238180" uname="srv01"/> 14 </nodes> 15 <resources> 16 <primitive id="A-master" class="ocf" provider="heartbeat" type="Dummy"> 17 <!--### Primitive Configuration ###--> 18 <operations> 19 <op name="start" interval="0s" timeout="60s" on-fail="restart" id="A-master-start-0s"/> 20 <op name="monitor" interval="10s" timeout="60s" on-fail="restart" id="A-master-monitor-10s"/> 21 <op name="stop" interval="0s" timeout="60s" on-fail="block" id="A-master-stop-0s"/> 22 </operations> 23 </primitive> 24 <master id="msPostgresql"> 25 <!--### Master/Slave Configuration ###--> 26 <meta_attributes id="msPostgresql-meta_attributes"> 27 <nvpair name="master-max" value="1" id="msPostgresql-meta_attributes-master-max"/> 28 <nvpair name="master-node-max" value="1" id="msPostgresql-meta_attributes-master-node-max"/> 29 <nvpair name="clone-max" value="2" id="msPostgresql-meta_attributes-clone-max"/> 30 <nvpair name="clone-node-max" value="1" id="msPostgresql-meta_attributes-clone-node-max"/> 31 <nvpair name="notify" value="true" id="msPostgresql-meta_attributes-notify"/> 32 </meta_attributes> 33 <primitive id="pgsql" class="ocf" provider="pacemaker" type="Stateful"> 34 <operations> 35 <op name="start" interval="0s" timeout="300s" on-fail="restart" id="pgsql-start-0s"/> 36 <op name="monitor" interval="10s" timeout="60s" on-fail="restart" id="pgsql-monitor-10s"/> 37 <op name="monitor" role="Master" interval="9s" timeout="60s" on-fail="restart" id="pgsql-monitor-9s"/> 38 <op name="promote" interval="0s" timeout="300s" on-fail="restart" id="pgsql-promote-0s"/> 39 <op name="demote" interval="0s" timeout="300s" on-fail="block" id="pgsql-demote-0s"/> 40 <op name="notify" interval="0s" timeout="60s" id="pgsql-notify-0s"/> 41 <op name="stop" interval="0s" timeout="300s" on-fail="block" id="pgsql-stop-0s"/> 42 </operations> 43 </primitive> 44 </master> 45 </resources> 46 <constraints> 47 <rsc_location id="rsc_location-msStateful-1" rsc="msPostgresql"> 48 <rule role="master" score="200" id="rsc_location-msStateful-1-rule"> 49 <expression attribute="#uname" operation="eq" value="srv01" id="rsc_location-msStateful-1-expression"/> 50 </rule> 51 <rule role="master" score="-INFINITY" id="rsc_location-msStateful-1-rule-0"> 52 <expression attribute="#uname" operation="eq" value="srv02" id="rsc_location-msStateful-1-expression-0"/> 53 </rule> 54 </rsc_location> 55 <rsc_colocation id="rsc_colocation-master-1" score="INFINITY" rsc="msPostgresql" rsc-role="Master" with-rsc="A-master"> 56 <!--### Resource Colocation ###--> 57 </rsc_colocation> 58 <rsc_order id="test-order-1" score="0" first="A-master" first-action="start" then="msPostgresql" then-action="promote" symmetrical="false"> 59 <!--### Resource Order ###--> 60 </rsc_order> 61 </constraints> 62 <rsc_defaults> 63 <meta_attributes id="rsc-options"> 64 <!--### Resource Defaults ###--> 65 <nvpair name="resource-stickiness" value="INFINITY" id="rsc-options-resource-stickiness"/> 66 <nvpair name="migration-threshold" value="1" id="rsc-options-migration-threshold"/> 67 </meta_attributes> 68 </rsc_defaults> 69 </configuration> 70 <status> 71 <node_state id="3232238190" uname="srv02" in_ccm="true" crmd="online" crm-debug-origin="do_state_transition" join="member" expected="member"> 72 <transient_attributes id="3232238190"> 73 <instance_attributes id="status-3232238190"> 74 <nvpair id="status-3232238190-shutdown" name="shutdown" value="0"/> 75 <nvpair id="status-3232238190-probe_complete" name="probe_complete" value="true"/> 76 <nvpair id="status-3232238190-master-pgsql" name="master-pgsql" value="5"/> 77 </instance_attributes> 78 </transient_attributes> 79 <lrm id="3232238190"> 80 <lrm_resources> 81 <lrm_resource id="pgsql" type="Stateful" class="ocf" provider="pacemaker"> 82 <lrm_rsc_op id="pgsql_last_0" operation_key="pgsql_start_0" operation="start" crm-debug-origin="build_active_RAs" crm_feature_set="3.0.9" transition-key="8:2:0:7af869e0-f085-410d-9877-48e022013911" transition-magic="0:0;8:2:0:7af869e0-f085-410d-9877-48e022013911" call-id="12" rc-code="0" op-status="0" interval="0" last-run="1400145721" last-rc-change="1400145721" exec-time="143" queue-time="1" op-digest="f2317cad3d54cec5d7d7aa7d0bf35cf8" on_node="srv02"/> 83 <lrm_rsc_op id="pgsql_monitor_10000" operation_key="pgsql_monitor_10000" operation="monitor" crm-debug-origin="build_active_RAs" crm_feature_set="3.0.9" transition-key="9:3:0:7af869e0-f085-410d-9877-48e022013911" transition-magic="0:0;9:3:0:7af869e0-f085-410d-9877-48e022013911" call-id="15" rc-code="0" op-status="0" interval="10000" last-rc-change="1400145721" exec-time="17" queue-time="1" op-digest="873ed4f07792aa8ff18f3254244675ea" on_node="srv02"/> 84 </lrm_resource> 85 <lrm_resource id="A-master" type="Dummy" class="ocf" provider="heartbeat"> 86 <lrm_rsc_op id="A-master_last_0" operation_key="A-master_start_0" operation="start" crm-debug-origin="build_active_RAs" crm_feature_set="3.0.9" transition-key="6:2:0:7af869e0-f085-410d-9877-48e022013911" transition-magic="0:0;6:2:0:7af869e0-f085-410d-9877-48e022013911" call-id="11" rc-code="0" op-status="0" interval="0" last-run="1400145721" last-rc-change="1400145721" exec-time="11" queue-time="0" op-digest="f2317cad3d54cec5d7d7aa7d0bf35cf8" on_node="srv02" op-force-restart=" state " op-restart-digest="f2317cad3d54cec5d7d7aa7d0bf35cf8"/> 87 <lrm_rsc_op id="A-master_monitor_10000" operation_key="A-master_monitor_10000" operation="monitor" crm-debug-origin="build_active_RAs" crm_feature_set="3.0.9" transition-key="7:2:0:7af869e0-f085-410d-9877-48e022013911" transition-magic="0:0;7:2:0:7af869e0-f085-410d-9877-48e022013911" call-id="13" rc-code="0" op-status="0" interval="10000" last-rc-change="1400145721" exec-time="19" queue-time="0" op-digest="873ed4f07792aa8ff18f3254244675ea" on_node="srv02"/> 88 </lrm_resource> 89 </lrm_resources> 90 </lrm> 91 </node_state> 92 <node_state id="3232238180" in_ccm="true" crmd="online" crm-debug-origin="do_update_resource" uname="srv01" join="member" expected="member"> 93 <transient_attributes id="3232238180"> 94 <instance_attributes id="status-3232238180"> 95 <nvpair id="status-3232238180-shutdown" name="shutdown" value="0"/> 96 <nvpair id="status-3232238180-probe_complete" name="probe_complete" value="true"/> 97 <nvpair id="status-3232238180-master-pgsql" name="master-pgsql" value="5"/> 98 </instance_attributes> 99 </transient_attributes> 100 <lrm id="3232238180"> 101 <lrm_resources> 102 <lrm_resource id="pgsql" type="Stateful" class="ocf" provider="pacemaker"> 103 <lrm_rsc_op id="pgsql_last_0" operation_key="pgsql_start_0" operation="start" crm-debug-origin="do_update_resource" crm_feature_set="3.0.9" transition-key="13:4:0:7af869e0-f085-410d-9877-48e022013911" transition-magic="0:0;13:4:0:7af869e0-f085-410d-9877-48e022013911" call-id="11" rc-code="0" op-status="0" interval="0" last-run="1400145760" last-rc-change="1400145760" exec-time="83" queue-time="0" op-digest="f2317cad3d54cec5d7d7aa7d0bf35cf8" on_node="srv01"/> 104 </lrm_resource> 105 <lrm_resource id="A-master" type="Dummy" class="ocf" provider="heartbeat"> 106 <lrm_rsc_op id="A-master_last_0" operation_key="A-master_monitor_0" operation="monitor" crm-debug-origin="do_update_resource" crm_feature_set="3.0.9" transition-key="6:4:7:7af869e0-f085-410d-9877-48e022013911" transition-magic="0:7;6:4:7:7af869e0-f085-410d-9877-48e022013911" call-id="5" rc-code="7" op-status="0" interval="0" last-run="1400145760" last-rc-change="1400145760" exec-time="453" queue-time="0" op-digest="f2317cad3d54cec5d7d7aa7d0bf35cf8" on_node="srv01" op-force-restart=" state " op-restart-digest="f2317cad3d54cec5d7d7aa7d0bf35cf8"/> 107 </lrm_resource> 108 </lrm_resources> 109 </lrm> 110 </node_state> 111 </status> 112</cib> 113