[Pacemaker] How to set resource order to satisfy this situation
Mia Lueng
xiaozunvlg at gmail.com
Tue Aug 6 05:11:44 UTC 2013
hatest01:~ # rpm -q pacemaker
pacemaker-1.1.6-1.27.26
hatest01:~ # cibadmin -Ql
<cib epoch="63" num_updates="67" admin_epoch="0"
validate-with="pacemaker-1.2" crm_feature_set="3.0.5"
update-origin="hatest02" update-client="crm_resource" update-user="root"
cib-last-written="Tue Aug 6 11:14:05 2013" have-quorum="1"
dc-uuid="hatest01">
<configuration>
<crm_config>
<cluster_property_set id="cib-bootstrap-options">
<nvpair id="cib-bootstrap-options-dc-version" name="dc-version"
value="1.1.6-b988976485d15cb702c9307df55512d323831a5e"/>
<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-no-quorum-policy"
name="no-quorum-policy" value="ignore"/>
<nvpair id="cib-bootstrap-options-stonith-enabled"
name="stonith-enabled" value="true"/>
<nvpair id="cib-bootstrap-options-last-lrm-refresh"
name="last-lrm-refresh" value="1375681574"/>
</cluster_property_set>
</crm_config>
<nodes>
<node id="hatest01" type="normal" uname="hatest01"/>
<node id="hatest02" type="normal" uname="hatest02"/>
</nodes>
<resources>
<primitive class="stonith" id="stonith_sbd" type="external/sbd">
<instance_attributes id="stonith_sbd-instance_attributes">
<nvpair id="stonith_sbd-instance_attributes-sbd_device"
name="sbd_device" value="/dev/sdb1"/>
</instance_attributes>
<meta_attributes id="stonith_sbd-meta_attributes">
<nvpair id="stonith_sbd-meta_attributes-target-role"
name="target-role" value="Started"/>
</meta_attributes>
</primitive>
<clone id="ocfs2-clone">
<meta_attributes id="ocfs2-clone-meta_attributes">
<nvpair id="ocfs2-clone-meta_attributes-interleave"
name="interleave" value="true"/>
<nvpair id="ocfs2-clone-meta_attributes-target-role"
name="target-role" value="Started"/>
</meta_attributes>
<group id="ocfs2-group">
<primitive class="ocf" id="dlm" provider="pacemaker"
type="controld">
<operations>
<op id="dlm-monitor-60" interval="60" name="monitor"
timeout="60"/>
</operations>
</primitive>
<primitive class="ocf" id="o2cb" provider="ocfs2" type="o2cb">
<operations>
<op id="o2cb-monitor-60" interval="60" name="monitor"
timeout="60"/>
</operations>
</primitive>
<primitive class="ocf" id="ocfs2_mount" provider="heartbeat"
type="Filesystem">
<instance_attributes id="ocfs2_mount-instance_attributes">
<nvpair id="ocfs2_mount-instance_attributes-device"
name="device" value="/dev/sdb2"/>
<nvpair id="ocfs2_mount-instance_attributes-directory"
name="directory" value="/ocfsshare"/>
<nvpair id="ocfs2_mount-instance_attributes-fstype"
name="fstype" value="ocfs2"/>
</instance_attributes>
<operations>
<op id="ocfs2_mount-monitor-20" interval="20" name="monitor"
timeout="40"/>
</operations>
</primitive>
</group>
</clone>
<group id="nfsserver">
<primitive class="ocf" id="nfs_server_ip" provider="heartbeat"
type="IPaddr2">
<instance_attributes id="nfs_server_ip-instance_attributes">
<nvpair id="nfs_server_ip-instance_attributes-ip" name="ip"
value="192.168.4.15"/>
<nvpair id="nfs_server_ip-instance_attributes-cidr_netmask"
name="cidr_netmask" value="24"/>
</instance_attributes>
<operations>
<op id="nfs_server_ip-monitor-30s" interval="30s"
name="monitor"/>
</operations>
</primitive>
<primitive class="ocf" id="nfs_directory" provider="heartbeat"
type="Filesystem">
<instance_attributes id="nfs_directory-instance_attributes">
<nvpair id="nfs_directory-instance_attributes-device"
name="device" value="/dev/sda1"/>
<nvpair id="nfs_directory-instance_attributes-directory"
name="directory" value="/share"/>
<nvpair id="nfs_directory-instance_attributes-fstype"
name="fstype" value="ext3"/>
</instance_attributes>
<operations>
<op id="nfs_directory-monitor-20" interval="20" name="monitor"
timeout="40"/>
</operations>
</primitive>
<primitive class="ocf" id="nfs_server" provider="heartbeat"
type="nfsserver">
<instance_attributes id="nfs_server-instance_attributes">
<nvpair id="nfs_server-instance_attributes-nfs_ip"
name="nfs_ip" value="192.168.4.15"/>
<nvpair id="nfs_server-instance_attributes-nfs_shared_infodir"
name="nfs_shared_infodir" value="/share"/>
</instance_attributes>
<operations>
<op id="nfs_server-monitor-30s" interval="30s" name="monitor"
timeout="40"/>
</operations>
</primitive>
</group>
<clone id="nfs_client_clone">
<meta_attributes id="nfs_client_clone-meta_attributes">
<nvpair id="nfs_client_clone-meta_attributes-interleave"
name="interleave" value="true"/>
</meta_attributes>
<primitive class="ocf" id="nfs_client" provider="heartbeat"
type="Filesystem">
<instance_attributes id="nfs_client-instance_attributes">
<nvpair id="nfs_client-instance_attributes-device"
name="device" value="192.168.4.15:/share"/>
<nvpair id="nfs_client-instance_attributes-directory"
name="directory" value="/srv/www/htdocs"/>
<nvpair id="nfs_client-instance_attributes-fstype"
name="fstype" value="nfs"/>
</instance_attributes>
<operations>
<op id="nfs_client-monitor-20" interval="20" name="monitor"
timeout="40"/>
</operations>
</primitive>
</clone>
<primitive class="lsb" id="apache" type="apache2">
<operations>
<op id="apache-monitor-20s" interval="20s" name="monitor"
timeout="20s"/>
</operations>
</primitive>
<primitive class="lsb" id="vsftp" type="vsftpd">
<operations>
<op id="vsftp-monitor-20s" interval="20s" name="monitor"
timeout="10s"/>
</operations>
</primitive>
</resources>
<constraints>
<rsc_order first="nfs_server" id="nfs_cs_order" score="0"
then="nfs_client_clone"/>
<rsc_location id="cli-prefer-nfsserver" rsc="nfsserver">
<rule id="cli-prefer-rule-nfsserver" score="INFINITY"
boolean-op="and">
<expression attribute="#uname" id="cli-prefer-expr-nfsserver"
operation="eq" value="hatest01" type="string"/>
</rule>
</rsc_location>
<rsc_order first="nfs_client_clone" id="apache_mount"
score="INFINITY" then="apache"/>
<rsc_order first="nfs_client_clone" id="vsftp_mount" score="INFINITY"
then="vsftp"/>
<rsc_colocation id="ftp_www_balance" rsc="apache" score="-INFINITY"
with-rsc="vsftp"/>
<rsc_order first="nfsserver" id="first_ns_ftp" score="0"
then="vsftp"/>
<rsc_order first="nfsserver" id="first_ns_www" score="0"
then="apache"/>
</constraints>
</configuration>
<status>
<node_state id="hatest01" uname="hatest01" ha="active" in_ccm="true"
crmd="online" join="member" expected="member"
crm-debug-origin="do_update_resource" shutdown="0">
<lrm id="hatest01">
<lrm_resources>
<lrm_resource id="stonith_sbd" type="external/sbd"
class="stonith">
<lrm_rsc_op id="stonith_sbd_last_0"
operation_key="stonith_sbd_start_0" operation="start"
crm-debug-origin="do_update_resource" crm_feature_set="3.0.5"
transition-key="25:0:0:5c8f77b8-4f7a-4f3f-a420-001a6a7a99ee"
transition-magic="0:0;25:0:0:5c8f77b8-4f7a-4f3f-a420-001a6a7a99ee"
call-id="12" rc-code="0" op-status="0" interval="0" last-run="1375758980"
last-rc-change="1375758980" exec-time="10" queue-time="0"
op-digest="7a0c9ab9ef5f6f4bc547db2ce6b59619"/>
</lrm_resource>
<lrm_resource id="o2cb:1" type="o2cb" class="ocf"
provider="ocfs2">
<lrm_rsc_op id="o2cb:1_last_0" operation_key="o2cb:1_start_0"
operation="start" crm-debug-origin="do_update_resource"
crm_feature_set="3.0.5"
transition-key="38:0:0:5c8f77b8-4f7a-4f3f-a420-001a6a7a99ee"
transition-magic="0:0;38:0:0:5c8f77b8-4f7a-4f3f-a420-001a6a7a99ee"
call-id="20" rc-code="0" op-status="0" interval="0" last-run="1375758982"
last-rc-change="1375758982" exec-time="2360" queue-time="0"
op-digest="f2317cad3d54cec5d7d7aa7d0bf35cf8"/>
<lrm_rsc_op id="o2cb:1_monitor_60000"
operation_key="o2cb:1_monitor_60000" operation="monitor"
crm-debug-origin="do_update_resource" crm_feature_set="3.0.5"
transition-key="39:0:0:5c8f77b8-4f7a-4f3f-a420-001a6a7a99ee"
transition-magic="0:0;39:0:0:5c8f77b8-4f7a-4f3f-a420-001a6a7a99ee"
call-id="25" rc-code="0" op-status="0" interval="60000"
last-rc-change="1375758984" exec-time="30" queue-time="0"
op-digest="873ed4f07792aa8ff18f3254244675ea"/>
</lrm_resource>
<lrm_resource id="dlm:1" type="controld" class="ocf"
provider="pacemaker">
<lrm_rsc_op id="dlm:1_last_0" operation_key="dlm:1_start_0"
operation="start" crm-debug-origin="do_update_resource"
crm_feature_set="3.0.5"
transition-key="36:0:0:5c8f77b8-4f7a-4f3f-a420-001a6a7a99ee"
transition-magic="0:0;36:0:0:5c8f77b8-4f7a-4f3f-a420-001a6a7a99ee"
call-id="13" rc-code="0" op-status="0" interval="0" last-run="1375758980"
last-rc-change="1375758980" exec-time="1060" queue-time="0"
op-digest="f2317cad3d54cec5d7d7aa7d0bf35cf8"/>
<lrm_rsc_op id="dlm:1_monitor_60000"
operation_key="dlm:1_monitor_60000" operation="monitor"
crm-debug-origin="do_update_resource" crm_feature_set="3.0.5"
transition-key="37:0:0:5c8f77b8-4f7a-4f3f-a420-001a6a7a99ee"
transition-magic="0:0;37:0:0:5c8f77b8-4f7a-4f3f-a420-001a6a7a99ee"
call-id="19" rc-code="0" op-status="0" interval="60000"
last-rc-change="1375758981" exec-time="30" queue-time="0"
op-digest="873ed4f07792aa8ff18f3254244675ea"/>
</lrm_resource>
<lrm_resource id="nfs_server_ip" type="IPaddr2" class="ocf"
provider="heartbeat">
<lrm_rsc_op id="nfs_server_ip_last_0"
operation_key="nfs_server_ip_start_0" operation="start"
crm-debug-origin="do_update_resource" crm_feature_set="3.0.5"
transition-key="50:0:0:5c8f77b8-4f7a-4f3f-a420-001a6a7a99ee"
transition-magic="0:0;50:0:0:5c8f77b8-4f7a-4f3f-a420-001a6a7a99ee"
call-id="14" rc-code="0" op-status="0" interval="0" last-run="1375758980"
last-rc-change="1375758980" exec-time="360" queue-time="0"
op-digest="e68dfbd28bbcc97b87256fab430f340c"/>
<lrm_rsc_op id="nfs_server_ip_monitor_30000"
operation_key="nfs_server_ip_monitor_30000" operation="monitor"
crm-debug-origin="do_update_resource" crm_feature_set="3.0.5"
transition-key="51:0:0:5c8f77b8-4f7a-4f3f-a420-001a6a7a99ee"
transition-magic="0:0;51:0:0:5c8f77b8-4f7a-4f3f-a420-001a6a7a99ee"
call-id="15" rc-code="0" op-status="0" interval="30000"
last-rc-change="1375758980" exec-time="40" queue-time="0"
op-digest="7ac169a354c64dab80d064b1b878e6ac"/>
</lrm_resource>
<lrm_resource id="ocfs2_mount:1" type="Filesystem" class="ocf"
provider="heartbeat">
<lrm_rsc_op id="ocfs2_mount:1_last_0"
operation_key="ocfs2_mount:1_start_0" operation="start"
crm-debug-origin="do_update_resource" crm_feature_set="3.0.5"
transition-key="40:0:0:5c8f77b8-4f7a-4f3f-a420-001a6a7a99ee"
transition-magic="0:0;40:0:0:5c8f77b8-4f7a-4f3f-a420-001a6a7a99ee"
call-id="26" rc-code="0" op-status="0" interval="0" last-run="1375758984"
last-rc-change="1375758984" exec-time="640" queue-time="0"
op-digest="84ece3c4ea88542b026a246895a2db91"/>
<lrm_rsc_op id="ocfs2_mount:1_monitor_20000"
operation_key="ocfs2_mount:1_monitor_20000" operation="monitor"
crm-debug-origin="do_update_resource" crm_feature_set="3.0.5"
transition-key="41:0:0:5c8f77b8-4f7a-4f3f-a420-001a6a7a99ee"
transition-magic="0:0;41:0:0:5c8f77b8-4f7a-4f3f-a420-001a6a7a99ee"
call-id="28" rc-code="0" op-status="0" interval="20000"
last-rc-change="1375758984" exec-time="30" queue-time="0"
op-digest="fa63450ef8664191a1a62d4d1e8bc9c4"/>
</lrm_resource>
<lrm_resource id="apache" type="apache2" class="lsb">
<lrm_rsc_op id="apache_last_0" operation_key="apache_start_0"
operation="start" crm-debug-origin="do_update_resource"
crm_feature_set="3.0.5"
transition-key="68:0:0:5c8f77b8-4f7a-4f3f-a420-001a6a7a99ee"
transition-magic="0:0;68:0:0:5c8f77b8-4f7a-4f3f-a420-001a6a7a99ee"
call-id="24" rc-code="0" op-status="0" interval="0" last-run="1375758982"
last-rc-change="1375758982" exec-time="2190" queue-time="0"
op-digest="f2317cad3d54cec5d7d7aa7d0bf35cf8"/>
<lrm_rsc_op id="apache_monitor_20000"
operation_key="apache_monitor_20000" operation="monitor"
crm-debug-origin="do_update_resource" crm_feature_set="3.0.5"
transition-key="69:0:0:5c8f77b8-4f7a-4f3f-a420-001a6a7a99ee"
transition-magic="0:0;69:0:0:5c8f77b8-4f7a-4f3f-a420-001a6a7a99ee"
call-id="27" rc-code="0" op-status="0" interval="20000"
last-rc-change="1375758984" exec-time="10" queue-time="0"
op-digest="4811cef7f7f94e3a35a70be7916cb2fd"/>
</lrm_resource>
<lrm_resource id="nfs_server" type="nfsserver" class="ocf"
provider="heartbeat">
<lrm_rsc_op id="nfs_server_last_0"
operation_key="nfs_server_start_0" operation="start"
crm-debug-origin="do_update_resource" crm_feature_set="3.0.5"
transition-key="54:0:0:5c8f77b8-4f7a-4f3f-a420-001a6a7a99ee"
transition-magic="0:0;54:0:0:5c8f77b8-4f7a-4f3f-a420-001a6a7a99ee"
call-id="18" rc-code="0" op-status="0" interval="0" last-run="1375758981"
last-rc-change="1375758981" exec-time="600" queue-time="0"
op-digest="ee6f35259574975580de0cb264a23be6"/>
<lrm_rsc_op id="nfs_server_monitor_30000"
operation_key="nfs_server_monitor_30000" operation="monitor"
crm-debug-origin="do_update_resource" crm_feature_set="3.0.5"
transition-key="55:0:0:5c8f77b8-4f7a-4f3f-a420-001a6a7a99ee"
transition-magic="0:0;55:0:0:5c8f77b8-4f7a-4f3f-a420-001a6a7a99ee"
call-id="21" rc-code="0" op-status="0" interval="30000"
last-rc-change="1375758982" exec-time="190" queue-time="0"
op-digest="a38b5e95863a455aecb1a14f249c3604"/>
</lrm_resource>
<lrm_resource id="nfs_directory" type="Filesystem" class="ocf"
provider="heartbeat">
<lrm_rsc_op id="nfs_directory_last_0"
operation_key="nfs_directory_start_0" operation="start"
crm-debug-origin="do_update_resource" crm_feature_set="3.0.5"
transition-key="52:0:0:5c8f77b8-4f7a-4f3f-a420-001a6a7a99ee"
transition-magic="0:0;52:0:0:5c8f77b8-4f7a-4f3f-a420-001a6a7a99ee"
call-id="16" rc-code="0" op-status="0" interval="0" last-run="1375758981"
last-rc-change="1375758981" exec-time="170" queue-time="0"
op-digest="852218a9fe81223d4465c87c1c2e7260"/>
<lrm_rsc_op id="nfs_directory_monitor_20000"
operation_key="nfs_directory_monitor_20000" operation="monitor"
crm-debug-origin="do_update_resource" crm_feature_set="3.0.5"
transition-key="53:0:0:5c8f77b8-4f7a-4f3f-a420-001a6a7a99ee"
transition-magic="0:0;53:0:0:5c8f77b8-4f7a-4f3f-a420-001a6a7a99ee"
call-id="17" rc-code="0" op-status="0" interval="20000"
last-rc-change="1375758981" exec-time="30" queue-time="0"
op-digest="3b7e245d791b78264756f6db909bd22f"/>
</lrm_resource>
<lrm_resource id="nfs_client:1" type="Filesystem" class="ocf"
provider="heartbeat">
<lrm_rsc_op id="nfs_client:1_last_0"
operation_key="nfs_client:1_start_0" operation="start"
crm-debug-origin="do_update_resource" crm_feature_set="3.0.5"
transition-key="62:0:0:5c8f77b8-4f7a-4f3f-a420-001a6a7a99ee"
transition-magic="0:0;62:0:0:5c8f77b8-4f7a-4f3f-a420-001a6a7a99ee"
call-id="22" rc-code="0" op-status="0" interval="0" last-run="1375758982"
last-rc-change="1375758982" exec-time="360" queue-time="0"
op-digest="7340a009e00a61904375a1ede9842bb9"/>
<lrm_rsc_op id="nfs_client:1_monitor_20000"
operation_key="nfs_client:1_monitor_20000" operation="monitor"
crm-debug-origin="do_update_resource" crm_feature_set="3.0.5"
transition-key="63:0:0:5c8f77b8-4f7a-4f3f-a420-001a6a7a99ee"
transition-magic="0:0;63:0:0:5c8f77b8-4f7a-4f3f-a420-001a6a7a99ee"
call-id="23" rc-code="0" op-status="0" interval="20000"
last-rc-change="1375758982" exec-time="40" queue-time="0"
op-digest="f5304526c59207a7c0066ccc099b7010"/>
</lrm_resource>
<lrm_resource id="vsftp" type="vsftpd" class="lsb">
<lrm_rsc_op id="vsftp_last_0" operation_key="vsftp_monitor_0"
operation="monitor" crm-debug-origin="do_update_resource"
crm_feature_set="3.0.5"
transition-key="13:0:7:5c8f77b8-4f7a-4f3f-a420-001a6a7a99ee"
transition-magic="0:7;13:0:7:5c8f77b8-4f7a-4f3f-a420-001a6a7a99ee"
call-id="11" rc-code="7" op-status="0" interval="0" last-run="1375758980"
last-rc-change="1375758980" exec-time="10" queue-time="2010"
op-digest="f2317cad3d54cec5d7d7aa7d0bf35cf8"/>
</lrm_resource>
</lrm_resources>
</lrm>
<transient_attributes id="hatest01">
<instance_attributes id="status-hatest01">
<nvpair id="status-hatest01-probe_complete" name="probe_complete"
value="true"/>
</instance_attributes>
</transient_attributes>
</node_state>
<node_state id="hatest02" uname="hatest02" ha="active" in_ccm="true"
crmd="online" join="member" expected="member"
crm-debug-origin="do_update_resource" shutdown="0">
<lrm id="hatest02">
<lrm_resources>
<lrm_resource id="stonith_sbd" type="external/sbd"
class="stonith">
<lrm_rsc_op id="stonith_sbd_last_0"
operation_key="stonith_sbd_monitor_0" operation="monitor"
crm-debug-origin="do_update_resource" crm_feature_set="3.0.5"
transition-key="15:0:7:5c8f77b8-4f7a-4f3f-a420-001a6a7a99ee"
transition-magic="0:7;15:0:7:5c8f77b8-4f7a-4f3f-a420-001a6a7a99ee"
call-id="2" rc-code="7" op-status="0" interval="0" last-run="1375758978"
last-rc-change="1375758978" exec-time="120" queue-time="0"
op-digest="7a0c9ab9ef5f6f4bc547db2ce6b59619"/>
</lrm_resource>
<lrm_resource id="dlm:0" type="controld" class="ocf"
provider="pacemaker">
<lrm_rsc_op id="dlm:0_last_0" operation_key="dlm:0_start_0"
operation="start" crm-debug-origin="do_update_resource"
crm_feature_set="3.0.5"
transition-key="26:0:0:5c8f77b8-4f7a-4f3f-a420-001a6a7a99ee"
transition-magic="0:0;26:0:0:5c8f77b8-4f7a-4f3f-a420-001a6a7a99ee"
call-id="12" rc-code="0" op-status="0" interval="0" last-run="1375758980"
last-rc-change="1375758980" exec-time="1030" queue-time="0"
op-digest="f2317cad3d54cec5d7d7aa7d0bf35cf8"/>
<lrm_rsc_op id="dlm:0_monitor_60000"
operation_key="dlm:0_monitor_60000" operation="monitor"
crm-debug-origin="do_update_resource" crm_feature_set="3.0.5"
transition-key="27:0:0:5c8f77b8-4f7a-4f3f-a420-001a6a7a99ee"
transition-magic="0:0;27:0:0:5c8f77b8-4f7a-4f3f-a420-001a6a7a99ee"
call-id="13" rc-code="0" op-status="0" interval="60000"
last-rc-change="1375758982" exec-time="20" queue-time="0"
op-digest="873ed4f07792aa8ff18f3254244675ea"/>
</lrm_resource>
<lrm_resource id="ocfs2_mount:0" type="Filesystem" class="ocf"
provider="heartbeat">
<lrm_rsc_op id="ocfs2_mount:0_last_0"
operation_key="ocfs2_mount:0_start_0" operation="start"
crm-debug-origin="do_update_resource" crm_feature_set="3.0.5"
transition-key="30:0:0:5c8f77b8-4f7a-4f3f-a420-001a6a7a99ee"
transition-magic="0:0;30:0:0:5c8f77b8-4f7a-4f3f-a420-001a6a7a99ee"
call-id="20" rc-code="0" op-status="0" interval="0" last-run="1375758984"
last-rc-change="1375758984" exec-time="380" queue-time="0"
op-digest="84ece3c4ea88542b026a246895a2db91"/>
<lrm_rsc_op id="ocfs2_mount:0_monitor_20000"
operation_key="ocfs2_mount:0_monitor_20000" operation="monitor"
crm-debug-origin="do_update_resource" crm_feature_set="3.0.5"
transition-key="31:0:0:5c8f77b8-4f7a-4f3f-a420-001a6a7a99ee"
transition-magic="0:0;31:0:0:5c8f77b8-4f7a-4f3f-a420-001a6a7a99ee"
call-id="21" rc-code="0" op-status="0" interval="20000"
last-rc-change="1375758984" exec-time="20" queue-time="0"
op-digest="fa63450ef8664191a1a62d4d1e8bc9c4"/>
</lrm_resource>
<lrm_resource id="o2cb:0" type="o2cb" class="ocf"
provider="ocfs2">
<lrm_rsc_op id="o2cb:0_last_0" operation_key="o2cb:0_start_0"
operation="start" crm-debug-origin="do_update_resource"
crm_feature_set="3.0.5"
transition-key="28:0:0:5c8f77b8-4f7a-4f3f-a420-001a6a7a99ee"
transition-magic="0:0;28:0:0:5c8f77b8-4f7a-4f3f-a420-001a6a7a99ee"
call-id="14" rc-code="0" op-status="0" interval="0" last-run="1375758982"
last-rc-change="1375758982" exec-time="2070" queue-time="0"
op-digest="f2317cad3d54cec5d7d7aa7d0bf35cf8"/>
<lrm_rsc_op id="o2cb:0_monitor_60000"
operation_key="o2cb:0_monitor_60000" operation="monitor"
crm-debug-origin="do_update_resource" crm_feature_set="3.0.5"
transition-key="29:0:0:5c8f77b8-4f7a-4f3f-a420-001a6a7a99ee"
transition-magic="0:0;29:0:0:5c8f77b8-4f7a-4f3f-a420-001a6a7a99ee"
call-id="19" rc-code="0" op-status="0" interval="60000"
last-rc-change="1375758984" exec-time="40" queue-time="0"
op-digest="873ed4f07792aa8ff18f3254244675ea"/>
</lrm_resource>
<lrm_resource id="nfs_server_ip" type="IPaddr2" class="ocf"
provider="heartbeat">
<lrm_rsc_op id="nfs_server_ip_last_0"
operation_key="nfs_server_ip_monitor_0" operation="monitor"
crm-debug-origin="do_update_resource" crm_feature_set="3.0.5"
transition-key="19:0:7:5c8f77b8-4f7a-4f3f-a420-001a6a7a99ee"
transition-magic="0:7;19:0:7:5c8f77b8-4f7a-4f3f-a420-001a6a7a99ee"
call-id="6" rc-code="7" op-status="0" interval="0" last-run="1375758979"
last-rc-change="1375758979" exec-time="150" queue-time="0"
op-digest="e68dfbd28bbcc97b87256fab430f340c"/>
</lrm_resource>
<lrm_resource id="apache" type="apache2" class="lsb">
<lrm_rsc_op id="apache_last_0" operation_key="apache_monitor_0"
operation="monitor" crm-debug-origin="do_update_resource"
crm_feature_set="3.0.5"
transition-key="23:0:7:5c8f77b8-4f7a-4f3f-a420-001a6a7a99ee"
transition-magic="0:7;23:0:7:5c8f77b8-4f7a-4f3f-a420-001a6a7a99ee"
call-id="10" rc-code="7" op-status="0" interval="0" last-run="1375758979"
last-rc-change="1375758979" exec-time="40" queue-time="1000"
op-digest="f2317cad3d54cec5d7d7aa7d0bf35cf8"/>
</lrm_resource>
<lrm_resource id="nfs_server" type="nfsserver" class="ocf"
provider="heartbeat">
<lrm_rsc_op id="nfs_server_last_0"
operation_key="nfs_server_monitor_0" operation="monitor"
crm-debug-origin="do_update_resource" crm_feature_set="3.0.5"
transition-key="21:0:7:5c8f77b8-4f7a-4f3f-a420-001a6a7a99ee"
transition-magic="0:7;21:0:7:5c8f77b8-4f7a-4f3f-a420-001a6a7a99ee"
call-id="8" rc-code="7" op-status="0" interval="0" last-run="1375758979"
last-rc-change="1375758979" exec-time="70" queue-time="1000"
op-digest="ee6f35259574975580de0cb264a23be6"/>
</lrm_resource>
<lrm_resource id="nfs_client:0" type="Filesystem" class="ocf"
provider="heartbeat">
<lrm_rsc_op id="nfs_client:0_last_0"
operation_key="nfs_client:0_start_0" operation="start"
crm-debug-origin="do_update_resource" crm_feature_set="3.0.5"
transition-key="60:0:0:5c8f77b8-4f7a-4f3f-a420-001a6a7a99ee"
transition-magic="0:0;60:0:0:5c8f77b8-4f7a-4f3f-a420-001a6a7a99ee"
call-id="15" rc-code="0" op-status="0" interval="0" last-run="1375758982"
last-rc-change="1375758982" exec-time="360" queue-time="0"
op-digest="7340a009e00a61904375a1ede9842bb9"/>
<lrm_rsc_op id="nfs_client:0_monitor_20000"
operation_key="nfs_client:0_monitor_20000" operation="monitor"
crm-debug-origin="do_update_resource" crm_feature_set="3.0.5"
transition-key="61:0:0:5c8f77b8-4f7a-4f3f-a420-001a6a7a99ee"
transition-magic="0:0;61:0:0:5c8f77b8-4f7a-4f3f-a420-001a6a7a99ee"
call-id="16" rc-code="0" op-status="0" interval="20000"
last-rc-change="1375758982" exec-time="30" queue-time="0"
op-digest="f5304526c59207a7c0066ccc099b7010"/>
</lrm_resource>
<lrm_resource id="nfs_directory" type="Filesystem" class="ocf"
provider="heartbeat">
<lrm_rsc_op id="nfs_directory_last_0"
operation_key="nfs_directory_monitor_0" operation="monitor"
crm-debug-origin="do_update_resource" crm_feature_set="3.0.5"
transition-key="20:0:7:5c8f77b8-4f7a-4f3f-a420-001a6a7a99ee"
transition-magic="0:7;20:0:7:5c8f77b8-4f7a-4f3f-a420-001a6a7a99ee"
call-id="7" rc-code="7" op-status="0" interval="0" last-run="1375758979"
last-rc-change="1375758979" exec-time="80" queue-time="1000"
op-digest="852218a9fe81223d4465c87c1c2e7260"/>
</lrm_resource>
<lrm_resource id="vsftp" type="vsftpd" class="lsb">
<lrm_rsc_op id="vsftp_last_0" operation_key="vsftp_start_0"
operation="start" crm-debug-origin="do_update_resource"
crm_feature_set="3.0.5"
transition-key="70:0:0:5c8f77b8-4f7a-4f3f-a420-001a6a7a99ee"
transition-magic="0:0;70:0:0:5c8f77b8-4f7a-4f3f-a420-001a6a7a99ee"
call-id="17" rc-code="0" op-status="0" interval="0" last-run="1375758982"
last-rc-change="1375758982" exec-time="120" queue-time="0"
op-digest="f2317cad3d54cec5d7d7aa7d0bf35cf8"/>
<lrm_rsc_op id="vsftp_monitor_20000"
operation_key="vsftp_monitor_20000" operation="monitor"
crm-debug-origin="do_update_resource" crm_feature_set="3.0.5"
transition-key="71:0:0:5c8f77b8-4f7a-4f3f-a420-001a6a7a99ee"
transition-magic="0:0;71:0:0:5c8f77b8-4f7a-4f3f-a420-001a6a7a99ee"
call-id="18" rc-code="0" op-status="0" interval="20000"
last-rc-change="1375758983" exec-time="0" queue-time="0"
op-digest="19240b0a103493c96459e91c1a816b50"/>
</lrm_resource>
</lrm_resources>
</lrm>
<transient_attributes id="hatest02">
<instance_attributes id="status-hatest02">
<nvpair id="status-hatest02-probe_complete" name="probe_complete"
value="true"/>
</instance_attributes>
</transient_attributes>
</node_state>
</status>
</cib>
2013/8/6 Andrew Beekhof <andrew at beekhof.net>
>
> On 06/08/2013, at 1:06 PM, Mia Lueng <xiaozunvlg at gmail.com> wrote:
>
> > colocation ftp_www_balance -inf: apache vsftp
> > order apache_mount inf: nfs_client_clone apache
> > order nfs_cs_order 0: nfs_server nfs_client_clone
> > order vsftp_mount inf: nfs_client_clone vsftp
> >
> >
> > nfsserver---->nfsclient----->www
> > \
> > \------->nfsclient----->ftp
> >
> > I want when nfsserver migrate from hostA to hostB, nfsclient/www/ftp do
> not stop/start.
> >
> > But When I migrate nfsserver , nfsclient do not migrate, but www/ftp do
> migrate with nfsserver.
> >
> > How should I set the resource order to avoid www/ftp migrate with
> nfsserver?
>
> Can you send me the result of cibadmin -Ql please?
> It will be easier for me to experiment. What you have should work
> though... what version of pacemaker do you have?
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20130806/c49c52b9/attachment.htm>
More information about the Pacemaker
mailing list