[Pacemaker] Error when managing network with ping/pingd.
Francis SOUYRI
francis.souyri at apec.fr
Tue Sep 17 07:45:44 UTC 2013
Hello,
Some help about my problem ?
I have a corosync/pacemaker with 2 nodes and 2 nets by nodes,
192.168.1.0/24 for cluster access, 10.1.1.0/24 for drbd in bond, both
used by corosync.
I try to used ocf:pacemaker:ping to monitor the 192.168.1.0/24 I have
the configuration below, but when I remove the cable of the noeud1 the
named group resource do not migrate to noeud2.
Below the complete cib.xml
Best regards.
Francis
On 09/04/2013 09:32 AM, Francis SOUYRI wrote:
> Hello Andrew,
>
> I removed it :( below the complete cib.xml.
>
> <cib epoch="121" num_updates="7" admin_epoch="0"
> validate-with="pacemaker-1.2" crm_feature_set="3.0.6"
> update-origin="noeud2.apec.fr" update-client="cibadmin"
> cib-last-written="Wed Sep 4 09:30:26 2013" have-quorum="1" dc-uuid="2">
> <configuration>
> <crm_config>
> <cluster_property_set id="cib-bootstrap-options">
> <nvpair id="cib-bootstrap-options-dc-version" name="dc-version"
> value="1.1.7-2.fc17-ee0730e13d124c3d58f00016c3376a1de5323cff"/>
> <nvpair id="cib-bootstrap-options-cluster-infrastructure"
> name="cluster-infrastructure" value="corosync"/>
> <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="1377611485"/>
> </cluster_property_set>
> </crm_config>
> <nodes>
> <node id="1" type="normal" uname="noeud1.apec.fr"/>
> <node id="2" type="normal" uname="noeud2.apec.fr"/>
> </nodes>
> <resources>
> <group id="named">
> <primitive class="ocf" id="IPaddr2_named" provider="heartbeat"
> type="IPaddr2">
> <instance_attributes id="IPaddr2_named-instance_attributes">
> <nvpair id="IPaddr2_named-instance_attributes-ip" name="ip"
> value="192.168.1.250"/>
> <nvpair id="IPaddr2_named-instance_attributes-cidr_netmask"
> name="cidr_netmask" value="24"/>
> </instance_attributes>
> <operations>
> <op id="IPaddr2_named-timeout-5s" interval="5s"
> name="monitor" timeout="5s"/>
> </operations>
> </primitive>
> <primitive class="ocf" id="drbd_named" provider="redhat"
> type="drbd.sh">
> <instance_attributes id="drbd_named-instance_attributes">
> <nvpair id="drbd_named-instance_attributes-resource"
> name="resource" value="named"/>
> </instance_attributes>
> <operations>
> <op id="drbd_named-timeout-60s" interval="120s"
> name="monitor" timeout="60s"/>
> </operations>
> </primitive>
> <primitive class="ocf" id="Filesystem_named"
> provider="heartbeat" type="Filesystem">
> <instance_attributes id="Filesystem_named-instance_attributes">
> <nvpair id="Filesystem_named-instance_attributes-device"
> name="device" value="/dev/drbd0"/>
> <nvpair id="Filesystem_named-instance_attributes-directory"
> name="directory" value="/named"/>
> <nvpair id="Filesystem_named-instance_attributes-fstype"
> name="fstype" value="ext4"/>
> <nvpair id="Filesystem_named-instance_attributes-interval"
> name="interval" value="120s"/>
> <nvpair id="Filesystem_named-instance_attributes-timeout"
> name="timeout" value="60s"/>
> </instance_attributes>
> <operations>
> <op id="Filesystem_named-timeout-60s" interval="120s"
> name="monitor" timeout="60s"/>
> </operations>
> </primitive>
> <meta_attributes id="named-meta_attributes">
> <nvpair id="named-meta_attributes-target-role"
> name="target-role" value="Started"/>
> </meta_attributes>
> </group>
> <group id="dhcpd">
> <primitive class="ocf" id="IPaddr2_dhcpd" provider="heartbeat"
> type="IPaddr2">
> <instance_attributes id="IPaddr2_dhcpd-instance_attributes">
> <nvpair id="IPaddr2_dhcpd-instance_attributes-ip" name="ip"
> value="192.168.1.252"/>
> <nvpair id="IPaddr2_dhcpd-instance_attributes-cidr_netmask"
> name="cidr_netmask" value="24"/>
> </instance_attributes>
> <operations>
> <op id="IPaddr2_dhcpd-timeout-5" interval="5s"
> name="monitor" timeout="5"/>
> </operations>
> </primitive>
> <primitive class="ocf" id="drbd_dhcpd" provider="redhat"
> type="drbd.sh">
> <instance_attributes id="drbd_dhcpd-instance_attributes">
> <nvpair id="drbd_dhcpd-instance_attributes-resource"
> name="resource" value="dhcpd"/>
> </instance_attributes>
> <operations>
> <op id="drbd_dhcpd-timeout-60s" interval="120s"
> name="monitor" timeout="60s"/>
> </operations>
> </primitive>
> <primitive class="ocf" id="Filesystem_dhcpd"
> provider="heartbeat" type="Filesystem">
> <instance_attributes id="Filesystem_dhcpd-instance_attributes">
> <nvpair id="Filesystem_dhcpd-instance_attributes-device"
> name="device" value="/dev/drbd1"/>
> <nvpair id="Filesystem_dhcpd-instance_attributes-directory"
> name="directory" value="/dhcpd"/>
> <nvpair id="Filesystem_dhcpd-instance_attributes-fstype"
> name="fstype" value="ext4"/>
> <nvpair id="Filesystem_dhcpd-instance_attributes-interval"
> name="interval" value="120s"/>
> <nvpair id="Filesystem_dhcpd-instance_attributes-timeout"
> name="timeout" value="60s"/>
> </instance_attributes>
> <operations>
> <op id="Filesystem_dhcpd-timeout-60s" interval="120s"
> name="monitor" timeout="60s"/>
> </operations>
> </primitive>
> <meta_attributes id="dhcpd-meta_attributes">
> <nvpair id="dhcpd-meta_attributes-target-role"
> name="target-role" value="Started"/>
> </meta_attributes>
> </group>
> <group id="named2">
> <primitive class="ocf" id="IPaddr2_named2" provider="heartbeat"
> type="IPaddr2">
> <instance_attributes id="IPaddr2_named2-instance_attributes">
> <nvpair id="IPaddr2_named2-instance_attributes-ip"
> name="ip" value="192.168.1.251"/>
> <nvpair
> id="IPaddr2_named2-instance_attributes-cidr_netmask" name="cidr_netmask"
> value="24"/>
> </instance_attributes>
> <operations>
> <op id="IPaddr2_named2-timeout-5s" interval="5s"
> name="monitor" timeout="5s"/>
> </operations>
> </primitive>
> <primitive class="ocf" id="drbd_named2" provider="redhat"
> type="drbd.sh">
> <instance_attributes id="drbd_named2-instance_attributes">
> <nvpair id="drbd_named2-instance_attributes-resource"
> name="resource" value="named2"/>
> </instance_attributes>
> <operations>
> <op id="drbd_named2-timeout-60s" interval="120s"
> name="monitor" timeout="60s"/>
> </operations>
> </primitive>
> <primitive class="ocf" id="Filesystem_named2"
> provider="heartbeat" type="Filesystem">
> <instance_attributes id="Filesystem_named2-instance_attributes">
> <nvpair id="Filesystem_named2-instance_attributes-device"
> name="device" value="/dev/drbd2"/>
> <nvpair
> id="Filesystem_named2-instance_attributes-directory" name="directory"
> value="/named2"/>
> <nvpair id="Filesystem_named2-instance_attributes-fstype"
> name="fstype" value="ext4"/>
> <nvpair id="Filesystem_named2-instance_attributes-interval"
> name="interval" value="120s"/>
> <nvpair id="Filesystem_named2-instance_attributes-timeout"
> name="timeout" value="60s"/>
> </instance_attributes>
> <operations>
> <op id="Filesystem_named2-timeout-60s" interval="120s"
> name="monitor" timeout="60s"/>
> </operations>
> </primitive>
> </group>
> <group id="samba">
> <meta_attributes id="samba-meta_attributes">
> <nvpair id="samba-meta_attributes-target-role"
> name="target-role" value="Started"/>
> </meta_attributes>
> <primitive class="ocf" id="IPaddr2_samba" provider="heartbeat"
> type="IPaddr2">
> <instance_attributes id="IPaddr2_samba-instance_attributes">
> <nvpair id="IPaddr2_samba-instance_attributes-ip" name="ip"
> value="192.168.1.249"/>
> <nvpair id="IPaddr2_samba-instance_attributes-cidr_netmask"
> name="cidr_netmask" value="24"/>
> </instance_attributes>
> <operations>
> <op id="IPaddr2_samba-timeout-5s" interval="5s"
> name="monitor" timeout="5s"/>
> </operations>
> </primitive>
> <primitive class="ocf" id="drbd_samba" provider="redhat"
> type="drbd.sh">
> <instance_attributes id="drbd_samba-instance_attributes">
> <nvpair id="drbd_samba-instance_attributes-resource"
> name="resource" value="samba"/>
> <nvpair id="drbd_samba-instance_attributes-interval"
> name="interval" value="120s"/>
> <nvpair id="drbd_samba-instance_attributes-timeout"
> name="timeout" value="60s"/>
> </instance_attributes>
> <operations>
> <op id="drbd_samba-interval-60s" interval="60s"
> name="monitor"/>
> </operations>
> </primitive>
> <primitive class="ocf" id="Filesystem_samba"
> provider="heartbeat" type="Filesystem">
> <instance_attributes id="Filesystem_samba-instance_attributes">
> <nvpair id="Filesystem_samba-instance_attributes-device"
> name="device" value="/dev/drbd3"/>
> <nvpair id="Filesystem_samba-instance_attributes-directory"
> name="directory" value="/samba"/>
> <nvpair id="Filesystem_samba-instance_attributes-fstype"
> name="fstype" value="ext4"/>
> <nvpair id="Filesystem_samba-instance_attributes-interval"
> name="interval" value="120s"/>
> <nvpair id="Filesystem_samba-instance_attributes-timeout"
> name="timeout" value="60s"/>
> </instance_attributes>
> <operations>
> <op id="Filesystem_samba-timeout-60s" interval="120s"
> name="monitor" timeout="60s"/>
> </operations>
> </primitive>
> </group>
> <clone id="ping-gateway-clone">
> <meta_attributes id="ping-gateway-clone-meta">
> <nvpair id="ping-gateway-interleave" name="interleave"
> value="true"/>
> </meta_attributes>
> <primitive class="ocf" id="ping-gateway" provider="pacemaker"
> type="ping">
> <instance_attributes id="ping-gateway-instance_attributes">
> <nvpair id="ping-gateway-instance_attributes-host_list"
> name="host_list" value="192.168.1.1"/>
> <nvpair id="ping-gateway-instance_attributes-multiplier"
> name="multiplier" value="100"/>
> </instance_attributes>
> </primitive>
> </clone>
> </resources>
> <constraints>
> <rsc_location id="location-dhcpd-noeud1.apec.fr-50"
> node="noeud1.apec.fr" rsc="dhcpd" score="50"/>
> <rsc_location id="location-named2-noeud2.apec.fr-50"
> node="noeud2.apec.fr" rsc="named2" score="50"/>
> <rsc_location id="location-samba-noeud2.apec.fr-50"
> node="noeud2.apec.fr" rsc="samba" score="50"/>
> <rsc_location id="location-named-noeud1.apec.fr-50"
> node="noeud1.apec.fr" rsc="named" score="50"/>
> <rsc_location id="pingnamed" rsc="named">
> <rule id="pingnamed-rule" score-attribute="pingd">
> <expression attribute="pingd" id="pingnamed-expression"
> operation="defined"/>
> </rule>
> </rsc_location>
> <rsc_location id="pingnamed2" rsc="named2">
> <rule id="pingnamed2-rule" score-attribute="pingd">
> <expression attribute="pingd" id="pingnamed2-expression"
> operation="defined"/>
> </rule>
> </rsc_location>
> <rsc_location id="pingdhcpd" rsc="dhcpd">
> <rule id="pingdhcpd-rule" score-attribute="pingd">
> <expression attribute="pingd" id="pingdhcpd-expression"
> operation="defined"/>
> </rule>
> </rsc_location>
> <rsc_location id="pingsamba" rsc="samba">
> <rule id="pingsamba-rule" score-attribute="pingd">
> <expression attribute="pingd" id="pingsamba-expression"
> operation="defined"/>
> </rule>
> </rsc_location>
> </constraints>
> <rsc_defaults>
> <meta_attributes id="rsc_defaults-options">
> <nvpair id="rsc_defaults-options-resource-stickiness"
> name="resource-stickiness" value="100"/>
> </meta_attributes>
> </rsc_defaults>
> </configuration>
> <status>
> <node_state id="2" uname="noeud2.apec.fr" ha="active" in_ccm="true"
> crmd="online" join="member" expected="member"
> crm-debug-origin="do_update_resource" shutdown="0">
> <transient_attributes id="2">
> <instance_attributes id="status-2">
> <nvpair id="status-2-probe_complete" name="probe_complete"
> value="true"/>
> <nvpair id="status-2-pingd" name="pingd" value="100"/>
> </instance_attributes>
> </transient_attributes>
> <lrm id="2">
> <lrm_resources>
> <lrm_resource id="Filesystem_samba" type="Filesystem"
> class="ocf" provider="heartbeat">
> <lrm_rsc_op id="Filesystem_samba_last_0"
> operation_key="Filesystem_samba_start_0" operation="start"
> crm-debug-origin="build_active_RAs" crm_feature_set="3.0.6"
> transition-key="51:0:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> transition-magic="0:0;51:0:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> call-id="29" rc-code="0" op-status="0" interval="0"
> op-digest="de1c3527fdcacf5aed20f276e368a8c6"/>
> <lrm_rsc_op id="Filesystem_samba_monitor_120000"
> operation_key="Filesystem_samba_monitor_120000" operation="monitor"
> crm-debug-origin="build_active_RAs" crm_feature_set="3.0.6"
> transition-key="52:0:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> transition-magic="0:0;52:0:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> call-id="32" rc-code="0" op-status="0" interval="120000"
> op-digest="adc543e4f2a9a59436057b19600be6c6"/>
> </lrm_resource>
> <lrm_resource id="Filesystem_named2" type="Filesystem"
> class="ocf" provider="heartbeat">
> <lrm_rsc_op id="Filesystem_named2_last_0"
> operation_key="Filesystem_named2_start_0" operation="start"
> crm-debug-origin="build_active_RAs" crm_feature_set="3.0.6"
> transition-key="41:0:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> transition-magic="0:0;41:0:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> call-id="35" rc-code="0" op-status="0" interval="0"
> op-digest="4cb0a146a01c90b1d261d03c5e5c7601"/>
> <lrm_rsc_op id="Filesystem_named2_monitor_120000"
> operation_key="Filesystem_named2_monitor_120000" operation="monitor"
> crm-debug-origin="build_active_RAs" crm_feature_set="3.0.6"
> transition-key="42:0:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> transition-magic="0:0;42:0:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> call-id="36" rc-code="0" op-status="0" interval="120000"
> op-digest="2940e71aaae78bbe5636fd1e542874e7"/>
> </lrm_resource>
> <lrm_resource id="Filesystem_dhcpd" type="Filesystem"
> class="ocf" provider="heartbeat">
> <lrm_rsc_op id="Filesystem_dhcpd_last_0"
> operation_key="Filesystem_dhcpd_stop_0" operation="stop"
> crm-debug-origin="do_update_resource" crm_feature_set="3.0.6"
> transition-key="29:6:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> transition-magic="0:0;29:6:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> call-id="43" rc-code="0" op-status="0" interval="0"
> op-digest="adf49c7e4c9ddf9e6bbf63cf06724df6" last-run="1378279824"
> last-rc-change="1378279824" exec-time="210" queue-time="0"/>
> <lrm_rsc_op id="Filesystem_dhcpd_monitor_120000"
> operation_key="Filesystem_dhcpd_monitor_120000" operation="monitor"
> crm-debug-origin="build_active_RAs" crm_feature_set="3.0.6"
> transition-key="32:0:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> transition-magic="0:0;32:0:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> call-id="39" rc-code="0" op-status="0" interval="120000"
> op-digest="75bdca1332e3a2268508dc2616ab1e6e"/>
> </lrm_resource>
> <lrm_resource id="Filesystem_named" type="Filesystem"
> class="ocf" provider="heartbeat">
> <lrm_rsc_op id="Filesystem_named_last_0"
> operation_key="Filesystem_named_stop_0" operation="stop"
> crm-debug-origin="do_update_resource" crm_feature_set="3.0.6"
> transition-key="19:4:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> transition-magic="0:0;19:4:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> call-id="40" rc-code="0" op-status="0" interval="0"
> op-digest="8e3b64bafbabd5f6bef7cce0778ff354" last-run="1378279809"
> last-rc-change="1378279809" exec-time="270" queue-time="0"/>
> <lrm_rsc_op id="Filesystem_named_monitor_120000"
> operation_key="Filesystem_named_monitor_120000" operation="monitor"
> crm-debug-origin="build_active_RAs" crm_feature_set="3.0.6"
> transition-key="22:0:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> transition-magic="0:0;22:0:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> call-id="33" rc-code="0" op-status="0" interval="120000"
> op-digest="cd7d39724655127c81edc4510232d741"/>
> </lrm_resource>
> <lrm_resource id="IPaddr2_samba" type="IPaddr2" class="ocf"
> provider="heartbeat">
> <lrm_rsc_op id="IPaddr2_samba_last_0"
> operation_key="IPaddr2_samba_start_0" operation="start"
> crm-debug-origin="build_active_RAs" crm_feature_set="3.0.6"
> transition-key="47:0:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> transition-magic="0:0;47:0:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> call-id="18" rc-code="0" op-status="0" interval="0"
> op-digest="28a6bbe8c88e8a405c44e1cf928e1ccc"/>
> <lrm_rsc_op id="IPaddr2_samba_monitor_5000"
> operation_key="IPaddr2_samba_monitor_5000" operation="monitor"
> crm-debug-origin="build_active_RAs" crm_feature_set="3.0.6"
> transition-key="48:0:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> transition-magic="0:0;48:0:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> call-id="26" rc-code="0" op-status="0" interval="5000"
> op-digest="62757aab880af6e3b30812042b150870"/>
> </lrm_resource>
> <lrm_resource id="IPaddr2_named" type="IPaddr2" class="ocf"
> provider="heartbeat">
> <lrm_rsc_op id="IPaddr2_named_last_0"
> operation_key="IPaddr2_named_stop_0" operation="stop"
> crm-debug-origin="do_update_resource" crm_feature_set="3.0.6"
> transition-key="17:4:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> transition-magic="0:0;17:4:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> call-id="42" rc-code="0" op-status="0" interval="0"
> op-digest="d48b5e029c1afc2a6cf777076f6a891e" last-run="1378279809"
> last-rc-change="1378279809" exec-time="130" queue-time="0"/>
> <lrm_rsc_op id="IPaddr2_named_monitor_5000"
> operation_key="IPaddr2_named_monitor_5000" operation="monitor"
> crm-debug-origin="build_active_RAs" crm_feature_set="3.0.6"
> transition-key="18:0:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> transition-magic="0:0;18:0:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> call-id="20" rc-code="0" op-status="0" interval="5000"
> op-digest="e3361ca30272f177f37551234d8a80a7"/>
> </lrm_resource>
> <lrm_resource id="drbd_named2" type="drbd.sh" class="ocf"
> provider="redhat">
> <lrm_rsc_op id="drbd_named2_last_0"
> operation_key="drbd_named2_start_0" operation="start"
> crm-debug-origin="build_active_RAs" crm_feature_set="3.0.6"
> transition-key="39:0:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> transition-magic="0:0;39:0:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> call-id="23" rc-code="0" op-status="0" interval="0"
> op-digest="4e128de154d10bbe3061f09c89b72148"/>
> <lrm_rsc_op id="drbd_named2_monitor_120000"
> operation_key="drbd_named2_monitor_120000" operation="monitor"
> crm-debug-origin="build_active_RAs" crm_feature_set="3.0.6"
> transition-key="40:0:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> transition-magic="0:0;40:0:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> call-id="34" rc-code="0" op-status="0" interval="120000"
> op-digest="ec635898461edb8fa8cf6abcdf43eeef"/>
> </lrm_resource>
> <lrm_resource id="IPaddr2_dhcpd" type="IPaddr2" class="ocf"
> provider="heartbeat">
> <lrm_rsc_op id="IPaddr2_dhcpd_last_0"
> operation_key="IPaddr2_dhcpd_stop_0" operation="stop"
> crm-debug-origin="do_update_resource" crm_feature_set="3.0.6"
> transition-key="27:6:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> transition-magic="0:0;27:6:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> call-id="45" rc-code="0" op-status="0" interval="0"
> op-digest="df037cddc82e2278dfb0255cbcd3a209" last-run="1378279824"
> last-rc-change="1378279824" exec-time="150" queue-time="0"/>
> <lrm_rsc_op id="IPaddr2_dhcpd_monitor_5000"
> operation_key="IPaddr2_dhcpd_monitor_5000" operation="monitor"
> crm-debug-origin="build_active_RAs" crm_feature_set="3.0.6"
> transition-key="28:0:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> transition-magic="0:0;28:0:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> call-id="24" rc-code="0" op-status="0" interval="5000"
> op-digest="ab6313d14ccf04b0163ca74c9b69fd6b"/>
> </lrm_resource>
> <lrm_resource id="drbd_samba" type="drbd.sh" class="ocf"
> provider="redhat">
> <lrm_rsc_op id="drbd_samba_last_0"
> operation_key="drbd_samba_start_0" operation="start"
> crm-debug-origin="build_active_RAs" crm_feature_set="3.0.6"
> transition-key="49:0:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> transition-magic="0:0;49:0:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> call-id="27" rc-code="0" op-status="0" interval="0"
> op-digest="7619ac98a6c1afb6e7b97b6e4e0abba9"/>
> <lrm_rsc_op id="drbd_samba_monitor_60000"
> operation_key="drbd_samba_monitor_60000" operation="monitor"
> crm-debug-origin="build_active_RAs" crm_feature_set="3.0.6"
> transition-key="50:0:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> transition-magic="0:0;50:0:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> call-id="28" rc-code="0" op-status="0" interval="60000"
> op-digest="563c38aa03ec584303b59ace63429325"/>
> </lrm_resource>
> <lrm_resource id="ping-gateway:0" type="ping" class="ocf"
> provider="pacemaker">
> <lrm_rsc_op id="ping-gateway:0_last_0"
> operation_key="ping-gateway:0_start_0" operation="start"
> crm-debug-origin="build_active_RAs" crm_feature_set="3.0.6"
> transition-key="57:0:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> transition-magic="0:0;57:0:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> call-id="19" rc-code="0" op-status="0" interval="0"
> op-digest="e746ac7936e48a80d701184bf3591d18"/>
> </lrm_resource>
> <lrm_resource id="drbd_named" type="drbd.sh" class="ocf"
> provider="redhat">
> <lrm_rsc_op id="drbd_named_last_0"
> operation_key="drbd_named_stop_0" operation="stop"
> crm-debug-origin="do_update_resource" crm_feature_set="3.0.6"
> transition-key="18:4:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> transition-magic="0:0;18:4:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> call-id="41" rc-code="0" op-status="0" interval="0"
> op-digest="2e33463d6f9307c95fc1c18551a95212" last-run="1378279809"
> last-rc-change="1378279809" exec-time="110" queue-time="0"/>
> <lrm_rsc_op id="drbd_named_monitor_120000"
> operation_key="drbd_named_monitor_120000" operation="monitor"
> crm-debug-origin="build_active_RAs" crm_feature_set="3.0.6"
> transition-key="20:0:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> transition-magic="0:0;20:0:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> call-id="30" rc-code="0" op-status="0" interval="120000"
> op-digest="06870bc4aba70635d9748a0c86d1092d"/>
> </lrm_resource>
> <lrm_resource id="drbd_dhcpd" type="drbd.sh" class="ocf"
> provider="redhat">
> <lrm_rsc_op id="drbd_dhcpd_last_0"
> operation_key="drbd_dhcpd_stop_0" operation="stop"
> crm-debug-origin="do_update_resource" crm_feature_set="3.0.6"
> transition-key="28:6:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> transition-magic="0:0;28:6:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> call-id="44" rc-code="0" op-status="0" interval="0"
> op-digest="54bedf55324cd684af35f21a90bc9a35" last-run="1378279824"
> last-rc-change="1378279824" exec-time="80" queue-time="0"/>
> <lrm_rsc_op id="drbd_dhcpd_monitor_120000"
> operation_key="drbd_dhcpd_monitor_120000" operation="monitor"
> crm-debug-origin="build_active_RAs" crm_feature_set="3.0.6"
> transition-key="30:0:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> transition-magic="0:0;30:0:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> call-id="37" rc-code="0" op-status="0" interval="120000"
> op-digest="1cde5d91618ddb6245f984761dcc9324"/>
> </lrm_resource>
> <lrm_resource id="IPaddr2_named2" type="IPaddr2" class="ocf"
> provider="heartbeat">
> <lrm_rsc_op id="IPaddr2_named2_last_0"
> operation_key="IPaddr2_named2_start_0" operation="start"
> crm-debug-origin="build_active_RAs" crm_feature_set="3.0.6"
> transition-key="37:0:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> transition-magic="0:0;37:0:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> call-id="17" rc-code="0" op-status="0" interval="0"
> op-digest="687d6d01480ec99722f77d7305dcf6c9"/>
> <lrm_rsc_op id="IPaddr2_named2_monitor_5000"
> operation_key="IPaddr2_named2_monitor_5000" operation="monitor"
> crm-debug-origin="build_active_RAs" crm_feature_set="3.0.6"
> transition-key="38:0:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> transition-magic="0:0;38:0:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> call-id="22" rc-code="0" op-status="0" interval="5000"
> op-digest="08ce7d44c103b28fdfc86460cebd86c7"/>
> </lrm_resource>
> </lrm_resources>
> </lrm>
> </node_state>
> <node_state id="1" uname="noeud1.apec.fr" crmd="online"
> crm-debug-origin="do_update_resource" in_ccm="true" join="member"
> expected="member" ha="active">
> <lrm id="1">
> <lrm_resources>
> <lrm_resource id="drbd_named" type="drbd.sh" class="ocf"
> provider="redhat">
> <lrm_rsc_op id="drbd_named_last_0"
> operation_key="drbd_named_start_0" operation="start"
> crm-debug-origin="do_update_resource" crm_feature_set="3.0.6"
> transition-key="16:5:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> transition-magic="0:0;16:5:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> call-id="89" rc-code="0" op-status="0" interval="0"
> last-run="1378279388" last-rc-change="0" exec-time="213" queue-time="13"
> op-digest="2e33463d6f9307c95fc1c18551a95212"/>
> <lrm_rsc_op id="drbd_named_monitor_120000"
> operation_key="drbd_named_monitor_120000" operation="monitor"
> crm-debug-origin="do_update_resource" crm_feature_set="3.0.6"
> transition-key="17:5:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> transition-magic="0:0;17:5:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> call-id="93" rc-code="0" op-status="0" interval="120000"
> last-rc-change="0" exec-time="200" queue-time="0"
> op-digest="06870bc4aba70635d9748a0c86d1092d"/>
> </lrm_resource>
> <lrm_resource id="drbd_dhcpd" type="drbd.sh" class="ocf"
> provider="redhat">
> <lrm_rsc_op id="drbd_dhcpd_last_0"
> operation_key="drbd_dhcpd_start_0" operation="start"
> crm-debug-origin="do_update_resource" crm_feature_set="3.0.6"
> transition-key="26:7:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> transition-magic="0:0;26:7:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> call-id="107" rc-code="0" op-status="0" interval="0"
> last-run="1378279404" last-rc-change="0" exec-time="244" queue-time="0"
> op-digest="54bedf55324cd684af35f21a90bc9a35"/>
> <lrm_rsc_op id="drbd_dhcpd_monitor_120000"
> operation_key="drbd_dhcpd_monitor_120000" operation="monitor"
> crm-debug-origin="do_update_resource" crm_feature_set="3.0.6"
> transition-key="27:7:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> transition-magic="0:0;27:7:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> call-id="111" rc-code="0" op-status="0" interval="120000"
> last-rc-change="0" exec-time="258" queue-time="0"
> op-digest="1cde5d91618ddb6245f984761dcc9324"/>
> </lrm_resource>
> <lrm_resource id="ping-gateway:1" type="ping" class="ocf"
> provider="pacemaker">
> <lrm_rsc_op id="ping-gateway:1_last_0"
> operation_key="ping-gateway:1_start_0" operation="start"
> crm-debug-origin="do_update_resource" crm_feature_set="3.0.6"
> transition-key="72:2:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> transition-magic="0:0;72:2:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> call-id="81" rc-code="0" op-status="0" interval="0"
> last-run="1378279305" last-rc-change="0" exec-time="2410" queue-time="0"
> op-digest="e746ac7936e48a80d701184bf3591d18"/>
> </lrm_resource>
> <lrm_resource id="drbd_named2" type="drbd.sh" class="ocf"
> provider="redhat">
> <lrm_rsc_op id="drbd_named2_last_0"
> operation_key="drbd_named2_monitor_0" operation="monitor"
> crm-debug-origin="do_update_resource" crm_feature_set="3.0.6"
> transition-key="23:2:7:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> transition-magic="0:7;23:2:7:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> call-id="41" rc-code="7" op-status="0" interval="0"
> last-run="1378279299" last-rc-change="1378279301" exec-time="1152"
> queue-time="0" op-digest="4e128de154d10bbe3061f09c89b72148"/>
> </lrm_resource>
> <lrm_resource id="drbd_samba" type="drbd.sh" class="ocf"
> provider="redhat">
> <lrm_rsc_op id="drbd_samba_last_0"
> operation_key="drbd_samba_monitor_0" operation="monitor"
> crm-debug-origin="do_update_resource" crm_feature_set="3.0.6"
> transition-key="26:2:7:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> transition-magic="0:7;26:2:7:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> call-id="56" rc-code="7" op-status="0" interval="0"
> last-run="1378279300" last-rc-change="1378279301" exec-time="1125"
> queue-time="0" op-digest="7619ac98a6c1afb6e7b97b6e4e0abba9"/>
> </lrm_resource>
> <lrm_resource id="IPaddr2_named" type="IPaddr2" class="ocf"
> provider="heartbeat">
> <lrm_rsc_op id="IPaddr2_named_last_0"
> operation_key="IPaddr2_named_start_0" operation="start"
> crm-debug-origin="do_update_resource" crm_feature_set="3.0.6"
> transition-key="14:5:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> transition-magic="0:0;14:5:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> call-id="84" rc-code="0" op-status="0" interval="0"
> last-run="1378279386" last-rc-change="0" exec-time="462" queue-time="0"
> op-digest="d48b5e029c1afc2a6cf777076f6a891e"/>
> <lrm_rsc_op id="IPaddr2_named_monitor_5000"
> operation_key="IPaddr2_named_monitor_5000" operation="monitor"
> crm-debug-origin="do_update_resource" crm_feature_set="3.0.6"
> transition-key="15:5:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> transition-magic="0:0;15:5:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> call-id="87" rc-code="0" op-status="0" interval="5000"
> last-rc-change="0" exec-time="407" queue-time="0"
> op-digest="e3361ca30272f177f37551234d8a80a7"/>
> </lrm_resource>
> <lrm_resource id="IPaddr2_dhcpd" type="IPaddr2" class="ocf"
> provider="heartbeat">
> <lrm_rsc_op id="IPaddr2_dhcpd_last_0"
> operation_key="IPaddr2_dhcpd_start_0" operation="start"
> crm-debug-origin="do_update_resource" crm_feature_set="3.0.6"
> transition-key="24:7:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> transition-magic="0:0;24:7:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> call-id="102" rc-code="0" op-status="0" interval="0"
> last-run="1378279402" last-rc-change="0" exec-time="515" queue-time="0"
> op-digest="df037cddc82e2278dfb0255cbcd3a209"/>
> <lrm_rsc_op id="IPaddr2_dhcpd_monitor_5000"
> operation_key="IPaddr2_dhcpd_monitor_5000" operation="monitor"
> crm-debug-origin="do_update_resource" crm_feature_set="3.0.6"
> transition-key="25:7:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> transition-magic="0:0;25:7:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> call-id="105" rc-code="0" op-status="0" interval="5000"
> last-rc-change="0" exec-time="417" queue-time="0"
> op-digest="ab6313d14ccf04b0163ca74c9b69fd6b"/>
> </lrm_resource>
> <lrm_resource id="IPaddr2_samba" type="IPaddr2" class="ocf"
> provider="heartbeat">
> <lrm_rsc_op id="IPaddr2_samba_last_0"
> operation_key="IPaddr2_samba_monitor_0" operation="monitor"
> crm-debug-origin="do_update_resource" crm_feature_set="3.0.6"
> transition-key="25:2:7:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> transition-magic="0:7;25:2:7:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> call-id="51" rc-code="7" op-status="0" interval="0"
> last-run="1378279299" last-rc-change="1378279301" exec-time="1473"
> queue-time="0" op-digest="28a6bbe8c88e8a405c44e1cf928e1ccc"/>
> </lrm_resource>
> <lrm_resource id="IPaddr2_named2" type="IPaddr2" class="ocf"
> provider="heartbeat">
> <lrm_rsc_op id="IPaddr2_named2_last_0"
> operation_key="IPaddr2_named2_monitor_0" operation="monitor"
> crm-debug-origin="do_update_resource" crm_feature_set="3.0.6"
> transition-key="22:2:7:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> transition-magic="0:7;22:2:7:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> call-id="36" rc-code="7" op-status="0" interval="0"
> last-run="1378279299" last-rc-change="1378279301" exec-time="1570"
> queue-time="0" op-digest="687d6d01480ec99722f77d7305dcf6c9"/>
> </lrm_resource>
> <lrm_resource id="Filesystem_named" type="Filesystem"
> class="ocf" provider="heartbeat">
> <lrm_rsc_op id="Filesystem_named_last_0"
> operation_key="Filesystem_named_start_0" operation="start"
> crm-debug-origin="do_update_resource" crm_feature_set="3.0.6"
> transition-key="18:5:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> transition-magic="0:0;18:5:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> call-id="95" rc-code="0" op-status="0" interval="0"
> last-run="1378279389" last-rc-change="0" exec-time="641" queue-time="0"
> op-digest="8e3b64bafbabd5f6bef7cce0778ff354"/>
> <lrm_rsc_op id="Filesystem_named_monitor_120000"
> operation_key="Filesystem_named_monitor_120000" operation="monitor"
> crm-debug-origin="do_update_resource" crm_feature_set="3.0.6"
> transition-key="19:5:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> transition-magic="0:0;19:5:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> call-id="99" rc-code="0" op-status="0" interval="120000"
> last-rc-change="0" exec-time="222" queue-time="16"
> op-digest="cd7d39724655127c81edc4510232d741"/>
> </lrm_resource>
> <lrm_resource id="Filesystem_dhcpd" type="Filesystem"
> class="ocf" provider="heartbeat">
> <lrm_rsc_op id="Filesystem_dhcpd_last_0"
> operation_key="Filesystem_dhcpd_start_0" operation="start"
> crm-debug-origin="do_update_resource" crm_feature_set="3.0.6"
> transition-key="28:7:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> transition-magic="0:0;28:7:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> call-id="113" rc-code="0" op-status="0" interval="0"
> last-run="1378279405" last-rc-change="0" exec-time="465" queue-time="0"
> op-digest="adf49c7e4c9ddf9e6bbf63cf06724df6"/>
> <lrm_rsc_op id="Filesystem_dhcpd_monitor_120000"
> operation_key="Filesystem_dhcpd_monitor_120000" operation="monitor"
> crm-debug-origin="do_update_resource" crm_feature_set="3.0.6"
> transition-key="29:7:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> transition-magic="0:0;29:7:0:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> call-id="117" rc-code="0" op-status="0" interval="120000"
> last-rc-change="0" exec-time="155" queue-time="0"
> op-digest="75bdca1332e3a2268508dc2616ab1e6e"/>
> </lrm_resource>
> <lrm_resource id="Filesystem_named2" type="Filesystem"
> class="ocf" provider="heartbeat">
> <lrm_rsc_op id="Filesystem_named2_last_0"
> operation_key="Filesystem_named2_monitor_0" operation="monitor"
> crm-debug-origin="do_update_resource" crm_feature_set="3.0.6"
> transition-key="24:2:7:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> transition-magic="0:7;24:2:7:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> call-id="46" rc-code="7" op-status="0" interval="0"
> last-run="1378279299" last-rc-change="1378279301" exec-time="1653"
> queue-time="0" op-digest="4cb0a146a01c90b1d261d03c5e5c7601"/>
> </lrm_resource>
> <lrm_resource id="Filesystem_samba" type="Filesystem"
> class="ocf" provider="heartbeat">
> <lrm_rsc_op id="Filesystem_samba_last_0"
> operation_key="Filesystem_samba_monitor_0" operation="monitor"
> crm-debug-origin="do_update_resource" crm_feature_set="3.0.6"
> transition-key="27:2:7:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> transition-magic="0:7;27:2:7:82e6059a-bc4a-4899-97f2-6c8140b707f8"
> call-id="61" rc-code="7" op-status="0" interval="0"
> last-run="1378279300" last-rc-change="1378279301" exec-time="1545"
> queue-time="0" op-digest="de1c3527fdcacf5aed20f276e368a8c6"/>
> </lrm_resource>
> </lrm_resources>
> </lrm>
> <transient_attributes id="1">
> <instance_attributes id="status-1">
> <nvpair id="status-1-probe_complete" name="probe_complete"
> value="true"/>
> <nvpair id="status-1-pingd" name="pingd" value="100"/>
> </instance_attributes>
> </transient_attributes>
> </node_state>
> </status>
> </cib>
>
> Best regards.
>
> Francis
> On 09/04/2013 06:25 AM, Andrew Beekhof wrote:
>> Where did the status section go?
>>
>> On 02/09/2013, at 5:46 PM, Francis SOUYRI <francis.souyri at apec.fr> wrote:
>>
>>> Hello Andrew,
>>>
>>> Now I understand, below the complete configuration.
>>>
>>> <cib epoch="117" num_updates="28" admin_epoch="0" validate-with="pacemaker-1.2" crm_feature_set="3.0.6" update-origin="noeud2.apec.fr" update-client="cibadmin" cib-last-written="Mon Sep 2 09:23:58 2013" have-quorum="1" dc-uuid="2">
>>> <configuration>
>>> <crm_config>
>>> <cluster_property_set id="cib-bootstrap-options">
>>> <nvpair id="cib-bootstrap-options-dc-version" name="dc-version" value="1.1.7-2.fc17-ee0730e13d124c3d58f00016c3376a1de5323cff"/>
>>> <nvpair id="cib-bootstrap-options-cluster-infrastructure" name="cluster-infrastructure" value="corosync"/>
>>> <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="1377611485"/>
>>> </cluster_property_set>
>>> </crm_config>
>>> <nodes>
>>> <node id="1" type="normal" uname="noeud1.apec.fr"/>
>>> <node id="2" type="normal" uname="noeud2.apec.fr"/>
>>> </nodes>
>>> <resources>
>>> <group id="named">
>>> <primitive class="ocf" id="IPaddr2_named" provider="heartbeat" type="IPaddr2">
>>> <instance_attributes id="IPaddr2_named-instance_attributes">
>>> <nvpair id="IPaddr2_named-instance_attributes-ip" name="ip" value="192.168.1.250"/>
>>> <nvpair id="IPaddr2_named-instance_attributes-cidr_netmask" name="cidr_netmask" value="24"/>
>>> </instance_attributes>
>>> <operations>
>>> <op id="IPaddr2_named-timeout-5s" interval="5s" name="monitor" timeout="5s"/>
>>> </operations>
>>> </primitive>
>>> <primitive class="ocf" id="drbd_named" provider="redhat" type="drbd.sh">
>>> <instance_attributes id="drbd_named-instance_attributes">
>>> <nvpair id="drbd_named-instance_attributes-resource" name="resource" value="named"/>
>>> </instance_attributes>
>>> <operations>
>>> <op id="drbd_named-timeout-60s" interval="120s" name="monitor" timeout="60s"/>
>>> </operations>
>>> </primitive>
>>> <primitive class="ocf" id="Filesystem_named" provider="heartbeat" type="Filesystem">
>>> <instance_attributes id="Filesystem_named-instance_attributes">
>>> <nvpair id="Filesystem_named-instance_attributes-device" name="device" value="/dev/drbd0"/>
>>> <nvpair id="Filesystem_named-instance_attributes-directory" name="directory" value="/named"/>
>>> <nvpair id="Filesystem_named-instance_attributes-fstype" name="fstype" value="ext4"/>
>>> <nvpair id="Filesystem_named-instance_attributes-interval" name="interval" value="120s"/>
>>> <nvpair id="Filesystem_named-instance_attributes-timeout" name="timeout" value="60s"/>
>>> </instance_attributes>
>>> <operations>
>>> <op id="Filesystem_named-timeout-60s" interval="120s" name="monitor" timeout="60s"/>
>>> </operations>
>>> </primitive>
>>> </group>
>>> <group id="dhcpd">
>>> <primitive class="ocf" id="IPaddr2_dhcpd" provider="heartbeat" type="IPaddr2">
>>> <instance_attributes id="IPaddr2_dhcpd-instance_attributes">
>>> <nvpair id="IPaddr2_dhcpd-instance_attributes-ip" name="ip" value="192.168.1.252"/>
>>> <nvpair id="IPaddr2_dhcpd-instance_attributes-cidr_netmask" name="cidr_netmask" value="24"/>
>>> </instance_attributes>
>>> <operations>
>>> <op id="IPaddr2_dhcpd-timeout-5" interval="5s" name="monitor" timeout="5"/>
>>> </operations>
>>> </primitive>
>>> <primitive class="ocf" id="drbd_dhcpd" provider="redhat" type="drbd.sh">
>>> <instance_attributes id="drbd_dhcpd-instance_attributes">
>>> <nvpair id="drbd_dhcpd-instance_attributes-resource" name="resource" value="dhcpd"/>
>>> </instance_attributes>
>>> <operations>
>>> <op id="drbd_dhcpd-timeout-60s" interval="120s" name="monitor" timeout="60s"/>
>>> </operations>
>>> </primitive>
>>> <primitive class="ocf" id="Filesystem_dhcpd" provider="heartbeat" type="Filesystem">
>>> <instance_attributes id="Filesystem_dhcpd-instance_attributes">
>>> <nvpair id="Filesystem_dhcpd-instance_attributes-device" name="device" value="/dev/drbd1"/>
>>> <nvpair id="Filesystem_dhcpd-instance_attributes-directory" name="directory" value="/dhcpd"/>
>>> <nvpair id="Filesystem_dhcpd-instance_attributes-fstype" name="fstype" value="ext4"/>
>>> <nvpair id="Filesystem_dhcpd-instance_attributes-interval" name="interval" value="120s"/>
>>> <nvpair id="Filesystem_dhcpd-instance_attributes-timeout" name="timeout" value="60s"/>
>>> </instance_attributes>
>>> <operations>
>>> <op id="Filesystem_dhcpd-timeout-60s" interval="120s" name="monitor" timeout="60s"/>
>>> </operations>
>>> </primitive>
>>> </group>
>>> <group id="named2">
>>> <primitive class="ocf" id="IPaddr2_named2" provider="heartbeat" type="IPaddr2">
>>> <instance_attributes id="IPaddr2_named2-instance_attributes">
>>> <nvpair id="IPaddr2_named2-instance_attributes-ip" name="ip" value="192.168.1.251"/>
>>> <nvpair id="IPaddr2_named2-instance_attributes-cidr_netmask" name="cidr_netmask" value="24"/>
>>> </instance_attributes>
>>> <operations>
>>> <op id="IPaddr2_named2-timeout-5s" interval="5s" name="monitor" timeout="5s"/>
>>> </operations>
>>> </primitive>
>>> <primitive class="ocf" id="drbd_named2" provider="redhat" type="drbd.sh">
>>> <instance_attributes id="drbd_named2-instance_attributes">
>>> <nvpair id="drbd_named2-instance_attributes-resource" name="resource" value="named2"/>
>>> </instance_attributes>
>>> <operations>
>>> <op id="drbd_named2-timeout-60s" interval="120s" name="monitor" timeout="60s"/>
>>> </operations>
>>> </primitive>
>>> <primitive class="ocf" id="Filesystem_named2" provider="heartbeat" type="Filesystem">
>>> <instance_attributes id="Filesystem_named2-instance_attributes">
>>> <nvpair id="Filesystem_named2-instance_attributes-device" name="device" value="/dev/drbd2"/>
>>> <nvpair id="Filesystem_named2-instance_attributes-directory" name="directory" value="/named2"/>
>>> <nvpair id="Filesystem_named2-instance_attributes-fstype" name="fstype" value="ext4"/>
>>> <nvpair id="Filesystem_named2-instance_attributes-interval" name="interval" value="120s"/>
>>> <nvpair id="Filesystem_named2-instance_attributes-timeout" name="timeout" value="60s"/>
>>> </instance_attributes>
>>> <operations>
>>> <op id="Filesystem_named2-timeout-60s" interval="120s" name="monitor" timeout="60s"/>
>>> </operations>
>>> </primitive>
>>> </group>
>>> <group id="samba">
>>> <meta_attributes id="samba-meta_attributes">
>>> <nvpair id="samba-meta_attributes-target-role" name="target-role" value="Started"/>
>>> </meta_attributes>
>>> <primitive class="ocf" id="IPaddr2_samba" provider="heartbeat" type="IPaddr2">
>>> <instance_attributes id="IPaddr2_samba-instance_attributes">
>>> <nvpair id="IPaddr2_samba-instance_attributes-ip" name="ip" value="192.168.1.249"/>
>>> <nvpair id="IPaddr2_samba-instance_attributes-cidr_netmask" name="cidr_netmask" value="24"/>
>>> </instance_attributes>
>>> <operations>
>>> <op id="IPaddr2_samba-timeout-5s" interval="5s" name="monitor" timeout="5s"/>
>>> </operations>
>>> </primitive>
>>> <primitive class="ocf" id="drbd_samba" provider="redhat" type="drbd.sh">
>>> <instance_attributes id="drbd_samba-instance_attributes">
>>> <nvpair id="drbd_samba-instance_attributes-resource" name="resource" value="samba"/>
>>> <nvpair id="drbd_samba-instance_attributes-interval" name="interval" value="120s"/>
>>> <nvpair id="drbd_samba-instance_attributes-timeout" name="timeout" value="60s"/>
>>> </instance_attributes>
>>> <operations>
>>> <op id="drbd_samba-interval-60s" interval="60s" name="monitor"/>
>>> </operations>
>>> </primitive>
>>> <primitive class="ocf" id="Filesystem_samba" provider="heartbeat" type="Filesystem">
>>> <instance_attributes id="Filesystem_samba-instance_attributes">
>>> <nvpair id="Filesystem_samba-instance_attributes-device" name="device" value="/dev/drbd3"/>
>>> <nvpair id="Filesystem_samba-instance_attributes-directory" name="directory" value="/samba"/>
>>> <nvpair id="Filesystem_samba-instance_attributes-fstype" name="fstype" value="ext4"/>
>>> <nvpair id="Filesystem_samba-instance_attributes-interval" name="interval" value="120s"/>
>>> <nvpair id="Filesystem_samba-instance_attributes-timeout" name="timeout" value="60s"/>
>>> </instance_attributes>
>>> <operations>
>>> <op id="Filesystem_samba-timeout-60s" interval="120s" name="monitor" timeout="60s"/>
>>> </operations>
>>> </primitive>
>>> </group>
>>> <clone id="ping-gateway-clone">
>>> <meta_attributes id="ping-gateway-clone-meta">
>>> <nvpair id="ping-gateway-interleave" name="interleave" value="true"/>
>>> </meta_attributes>
>>> <primitive class="ocf" id="ping-gateway" provider="pacemaker" type="ping">
>>> <instance_attributes id="ping-gateway-instance_attributes">
>>> <nvpair id="ping-gateway-instance_attributes-host_list" name="host_list" value="192.168.1.1"/>
>>> <nvpair id="ping-gateway-instance_attributes-multiplier" name="multiplier" value="100"/>
>>> </instance_attributes>
>>> </primitive>
>>> </clone>
>>> </resources>
>>> <constraints>
>>> <rsc_location id="location-dhcpd-noeud1.apec.fr-50" node="noeud1.apec.fr" rsc="dhcpd" score="50"/>
>>> <rsc_location id="location-named2-noeud2.apec.fr-50" node="noeud2.apec.fr" rsc="named2" score="50"/>
>>> <rsc_location id="location-samba-noeud2.apec.fr-50" node="noeud2.apec.fr" rsc="samba" score="50"/>
>>> <rsc_location id="location-named-noeud1.apec.fr-50" node="noeud1.apec.fr" rsc="named" score="50"/>
>>> <rsc_location id="pingnamed" rsc="named">
>>> <rule id="pingnamed-rule" score-attribute="pingd">
>>> <expression attribute="pingd" id="pingnamed-expression" operation="defined"/>
>>> </rule>
>>> </rsc_location>
>>> <rsc_location id="pingnamed2" rsc="named2">
>>> <rule id="pingnamed2-rule" score-attribute="pingd">
>>> <expression attribute="pingd" id="pingnamed2-expression" operation="defined"/>
>>> </rule>
>>> </rsc_location>
>>> <rsc_location id="pingdhcpd" rsc="dhcpd">
>>> <rule id="pingdhcpd-rule" score-attribute="pingd">
>>> <expression attribute="pingd" id="pingdhcpd-expression" operation="defined"/>
>>> </rule>
>>> </rsc_location>
>>> <rsc_location id="pingsamba" rsc="samba">
>>> <rule id="pingsamba-rule" score-attribute="pingd">
>>> <expression attribute="pingd" id="pingsamba-expression" operation="defined"/>
>>> </rule>
>>> </rsc_location>
>>> </constraints>
>>> <rsc_defaults>
>>> <meta_attributes id="rsc_defaults-options">
>>> <nvpair id="rsc_defaults-options-resource-stickiness" name="resource-stickiness" value="100"/>
>>> </meta_attributes>
>>> </rsc_defaults>
>>> </configuration>
>>> </cib>
>>>
>>> Best regards.
>>>
>>> Francis
>>>
>>> On 09/02/2013 01:09 AM, Andrew Beekhof wrote:
>>>>
>>>> On 30/08/2013, at 5:32 PM, Francis SOUYRI <francis.souyri at apec.fr> wrote:
>>>>
>>>>> Hello Andrew,
>>>>>
>>>>> Sorry I do not understand your comment after "Please don't do this.", What I need to do ?
>>>>
>>>> Cut off relevant parts of the config and replace them with "....".
>>>>
>>>>
>>>>>
>>>>> For my test system I have a cluster with 2 nodes and 4 resources group (named, dhcpd, named2, samba) with each group an ip resource, drbd resource, filesystem resource, start application resource (not on this test server).
>>>>> For each group I have a constraint to assignate named/dhcpd to noeud1 and named2/samba to noeud2
>>>>>
>>>>> <rsc_location id="location-named-noeud1.apec.fr-50" node="noeud1.apec.fr" rsc="named" score="50"/>
>>>>> <rsc_location id="location-dhcpd-noeud1.apec.fr-50" node="noeud1.apec.fr" rsc="dhcpd" score="50"/>
>>>>> <rsc_location id="location-named2-noeud1.apec.fr-50" node="noeud1.apec.fr" rsc="named2" score="50"/>
>>>>> <rsc_location id="location-samba-noeud1.apec.fr-50" node="noeud1.apec.fr" rsc="samba" score="50"/>
>>>>>
>>>>> I created a ping resource to "monitor" the network and when the network failed on one node I want the resources to migrate to other node.
>>>>>
>>>>> Best Regards.
>>>>>
>>>>> Francis
>>>>>
>>>>> On 08/30/2013 05:26 AM, Andrew Beekhof wrote:
>>>>>>
>>>>>> On 29/08/2013, at 5:36 PM, Francis SOUYRI <francis.souyri at apec.fr> wrote:
>>>>>>
>>>>>>> Hello,
>>>>>>>
>>>>>>> I have a corosync/pacemaker with 2 nodes and 2 nets by nodes, 192.168.1.0/24 for cluster access, 10.1.1.0/24 for drbd in bond, both used by corosync.
>>>>>>> I try to used ocf:pacemaker:ping to monitor the 192.168.1.0/24 I have the configuration below, but when I remove the cable of the noeud1 the named group resource do not migrate to noeud2.
>>>>>>>
>>>>>>> When I used these command "crm_attribute -G -t status -N -n pingd" I have this.
>>>>>>
>>>>>> Invalid command. -N requires an argument.
>>>>>>
>>>>>>>
>>>>>>> Could not map uname=-n to a UUID: The object/attribute does not exist
>>>>>>> scope=status value=(null)
>>>>>>> Error performing operation: cib object missing
>>>>>>>
>>>>>>> ##### CONFIG
>>>>>>> ...
>>>>>>> <clone id="ping-gateway-clone">
>>>>>>> <meta_attributes id="ping-gateway-clone-meta">
>>>>>>> <nvpair id="ping-gateway-interleave" name="interleave" value="true"/>
>>>>>>> </meta_attributes>
>>>>>>> <primitive class="ocf" id="ping-gateway" provider="pacemaker" type="ping">
>>>>>>> <instance_attributes id="ping-gateway-instance_attributes">
>>>>>>> <nvpair id="ping-gateway-instance_attributes-host_list" name="host_list" value="192.168.1.1"/>
>>>>>>> <nvpair id="ping-gateway-instance_attributes-multiplier" name="multiplier" value="100"/>
>>>>>>> </instance_attributes>
>>>>>>> </primitive>
>>>>>>> </clone>
>>>>>>> </resources>
>>>>>>> <constraints>
>>>>>>> <rsc_location id="location-named-noeud1.apec.fr-50" node="noeud1.apec.fr" rsc="named" score="50"/>
>>>>>>> <rsc_location id="location-dhcpd-noeud1.apec.fr-50" node="noeud1.apec.fr" rsc="dhcpd" score="50"/>
>>>>>>> <rsc_location id="location-named2-noeud1.apec.fr-50" node="noeud1.apec.fr" rsc="named2" score="50"/>
>>>>>>> <rsc_location id="location-samba-noeud1.apec.fr-50" node="noeud1.apec.fr" rsc="samba" score="50"/>
>>>>>>> <rsc_location id="pingnamed" rsc="named">
>>>>>>> <rule id="pingnamed-rule" score-attribute="pingd">
>>>>>>> <expression attribute="pingd" id="pingnamed-expression" operation="defined"/>
>>>>>>> </rule>
>>>>>>> </rsc_location>
>>>>>>> </constraints>
>>>>>>> <rsc_defaults>
>>>>>>> <meta_attributes id="rsc_defaults-options">
>>>>>>> <nvpair id="rsc_defaults-options-resource-stickiness" name="resource-stickiness" value="100"/>
>>>>>>> </meta_attributes>
>>>>>>> </rsc_defaults>
>>>>>>> ....
>>>>>>
>>>>>> Please don't do this.
>>>>>>
>>>>>> The contents of "...." might not seem relevant to you, but I assure you they are. Particularly in this case.
>>>>>>
>>>>>>
>>>>>>> ##### END CONFIG
>>>>>>>
>>>>>>> Best regards.
>>>>>>>
>>>>>>> Francis
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
>>>>>>> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>>>>>>>
>>>>>>> Project Home: http://www.clusterlabs.org
>>>>>>> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
>>>>>>> Bugs: http://bugs.clusterlabs.org
>>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
>>>>> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>>>>>
>>>>> Project Home: http://www.clusterlabs.org
>>>>> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
>>>>> Bugs: http://bugs.clusterlabs.org
>>>>
>>>
>>>
>>> _______________________________________________
>>> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
>>> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>>>
>>> Project Home: http://www.clusterlabs.org
>>> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
>>> Bugs: http://bugs.clusterlabs.org
>>
>
>
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org
>
>
More information about the Pacemaker
mailing list