You don't have pingd for monitor the gateway for your plublic Network<br><br>you can find an example in this link<br><br><a href="http://www.clusterlabs.org/wiki/Example_configurations">http://www.clusterlabs.org/wiki/Example_configurations</a><br>
<br><div class="gmail_quote">2012/2/3 Larry Brigman <span dir="ltr"><<a href="mailto:larry.brigman@gmail.com">larry.brigman@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I have a few clusters that we are about to put into production.<br>One of the tests was to pull the public network cable on the<br>node that hosted the Virtual IP for the Cluster.  <br>We did and the Virtual IP didn't move.  It stayed on the node originally<br>

selected.<br><br>Now, I'm thinking that I don't have the configuation setup correctly.<br><br>Setup:  3 to 5 nodes.  Two Private switches for corosync/pacemaker communications.<br>Active-Backup Bond into the private switches.<br>

<br>Public Interfaces of all the nodes on the same network and pingable between them.<br><br>corosync 1.4.2.<br>openais 1.1.3<br>pacemaker 1.1.5<br>cluster-glue 1.0.6<br>resource-agents 1.0.4<br>RHEL5 with 2.6.32.49 kernel.<br>

<br>Pacemaker config xml<br>[root@mfg311 ~]# cibadmin --query<br><cib epoch="43" num_updates="83" admin_epoch="0" validate-with="pacemaker-1.2" crm_feature_set="3.0.5" have-quorum="1" dc-uuid="mfg2-1"><br>

  <configuration><br>    <crm_config><br>      <cluster_property_set id="cib-bootstrap-options"><br>        <nvpair id="cib-bootstrap-options-dc-version" name="dc-version" value="1.1.5-1.2.sme-01e86afaaa6d4a8c4836f68df80ababd6ca3902f"/><br>

        <nvpair id="cib-bootstrap-options-cluster-infrastructure" name="cluster-infrastructure" value="openais"/><br>        <nvpair id="cib-bootstrap-options-expected-quorum-votes" name="expected-quorum-votes" value="3"/><br>

        <nvpair id="cib-bootstrap-options-stonith-enabled" name="stonith-enabled" value="false"/><br>        <nvpair id="cib-bootstrap-options-no-quorum-policy" name="no-quorum-policy" value="ignore"/><br>

        <nvpair id="cib-bootstrap-options-default-resource-stickiness" name="default-resource-stickiness" value="1000"/><br>        <nvpair id="cib-bootstrap-options-enable-acl" name="enable-acl" value="true"/><br>

      </cluster_property_set><br>    </crm_config><br>    <nodes><br>      <node id="mfg2-1" uname="mfg2-1" type="normal"><br>        <instance_attributes id="nodes-mfg2-1"><br>

          <nvpair id="nodes-mfg2-1-internalname" name="internalname" value="node1.local"/><br>          <nvpair id="nodes-mfg2-1-internalip" name="internalip" value="4.0.0.1"/><br>

          <nvpair id="nodes-mfg2-1-internalid" name="internalid" value="1"/><br>          <nvpair id="nodes-mfg2-1-adminip" name="adminip" value="134.242.157.62"/><br>

        </instance_attributes><br>      </node><br>      <node id="mfg2-2" uname="mfg2-2" type="normal"><br>        <instance_attributes id="nodes-mfg2-2"><br>

          <nvpair id="nodes-mfg2-2-internalname" name="internalname" value="node2.local"/><br>          <nvpair id="nodes-mfg2-2-internalip" name="internalip" value="4.0.0.2"/><br>

          <nvpair id="nodes-mfg2-2-internalid" name="internalid" value="2"/><br>          <nvpair id="nodes-mfg2-2-adminip" name="adminip" value="134.242.157.60"/><br>

        </instance_attributes><br>      </node><br>      <node id="mfg2-3" uname="mfg2-3" type="normal"><br>        <instance_attributes id="nodes-mfg2-3"><br>

          <nvpair id="nodes-mfg2-3-internalname" name="internalname" value="node3.local"/><br>          <nvpair id="nodes-mfg2-3-internalip" name="internalip" value="4.0.0.3"/><br>

          <nvpair id="nodes-mfg2-3-internalid" name="internalid" value="3"/><br>          <nvpair id="nodes-mfg2-3-adminip" name="adminip" value="134.242.157.58"/><br>

        </instance_attributes><br>      </node><br>    </nodes><br>    <resources><br>      <primitive class="ocf" id="ClusterIP" provider="heartbeat" type="IPaddr2"><br>

        <instance_attributes id="ClusterIP-instance_attributes"><br>          <nvpair id="ClusterIP-instance_attributes-ip" name="ip" value="134.242.157.65"/><br>          <nvpair id="ClusterIP-instance_attributes-cidr_netmask" name="cidr_netmask" value="32"/><br>

          <nvpair id="ClusterIP-instance_attributes-nic" name="nic" value="lan0"/><br>        </instance_attributes><br>        <operations><br>          <op id="ClusterIP-monitor-30s" interval="30s" name="monitor"/><br>

        </operations><br>      </primitive><br>    </resources><br>    <constraints/><br>    <acls><br>      <acl_role id="monitor"><br>        <read id="monitor-read" xpath="/cib"/><br>

      </acl_role><br>      <acl_role id="admin"><br>        <write id="admin-write" xpath="/cib"/><br>      </acl_role><br>      <acl_user id="nvs"><br>

        <role_ref id="monitor"/><br>      </acl_user><br>    </acls><br>  </configuration><br>  <status><br>    <node_state id="mfg2-1" uname="mfg2-1" crmd="online" crm-debug-origin="do_state_transition" ha="active" in_ccm="true" join="member" expected="member" shutdown="0"><br>

      <transient_attributes id="mfg2-1"><br>        <instance_attributes id="status-mfg2-1"><br>          <nvpair id="status-mfg2-1-probe_complete" name="probe_complete" value="true"/><br>

        </instance_attributes><br>      </transient_attributes><br>      <lrm id="mfg2-1"><br>        <lrm_resources><br>          <lrm_resource id="ClusterIP" type="IPaddr2" class="ocf" provider="heartbeat"><br>

            <lrm_rsc_op id="ClusterIP_monitor_0" operation="monitor" crm-debug-origin="build_active_RAs" crm_feature_set="3.0.5" transition-key="6:15:7:35783a82-6ec5-4e0a-b8e9-fb7705874df6" transition-magic="0:7;6:15:7:35783a82-6ec5-4e0a-b8e9-fb7705874df6" call-id="2" rc-code="7" op-status="0" interval="0" last-run="1328131950" last-rc-change="1328131950" exec-time="30" queue-time="0" op-digest="3743ac5035464b9704ea522bbbe4b1df"/><br>

            <lrm_rsc_op id="ClusterIP_stop_0" operation="stop" crm-debug-origin="build_active_RAs" crm_feature_set="3.0.5" transition-key="7:114:0:c9a528d7-1112-4e18-aef2-d076d88d3f77" transition-magic="0:0;7:114:0:c9a528d7-1112-4e18-aef2-d076d88d3f77" call-id="8" rc-code="0" op-status="0" interval="0" last-run="1328231542" last-rc-change="1328231542" exec-time="30" queue-time="0" op-digest="3743ac5035464b9704ea522bbbe4b1df"/><br>

            <lrm_rsc_op id="ClusterIP_start_0" operation="start" crm-debug-origin="build_active_RAs" crm_feature_set="3.0.5" transition-key="8:117:0:c9a528d7-1112-4e18-aef2-d076d88d3f77" transition-magic="0:0;8:117:0:c9a528d7-1112-4e18-aef2-d076d88d3f77" call-id="9" rc-code="0" op-status="0" interval="0" last-run="1328232621" last-rc-change="1328232621" exec-time="40" queue-time="0" op-digest="3743ac5035464b9704ea522bbbe4b1df"/><br>

            <lrm_rsc_op id="ClusterIP_monitor_30000" operation="monitor" crm-debug-origin="build_active_RAs" crm_feature_set="3.0.5" transition-key="9:117:0:c9a528d7-1112-4e18-aef2-d076d88d3f77" transition-magic="0:0;9:117:0:c9a528d7-1112-4e18-aef2-d076d88d3f77" call-id="10" rc-code="0" op-status="0" interval="30000" last-rc-change="1328232622" exec-time="20" queue-time="0" op-digest="6a42b0adc3d196e1e2e5f47ee2281b5f"/><br>

          </lrm_resource><br>        </lrm_resources><br>      </lrm><br>    </node_state><br>    <node_state id="mfg2-2" uname="mfg2-2" crmd="online" crm-debug-origin="do_state_transition" ha="active" in_ccm="true" join="member" expected="member" shutdown="0"><br>

      <transient_attributes id="mfg2-2"><br>        <instance_attributes id="status-mfg2-2"><br>          <nvpair id="status-mfg2-2-probe_complete" name="probe_complete" value="true"/><br>

        </instance_attributes><br>      </transient_attributes><br>      <lrm id="mfg2-2"><br>        <lrm_resources><br>          <lrm_resource id="ClusterIP" type="IPaddr2" class="ocf" provider="heartbeat"><br>

            <lrm_rsc_op id="ClusterIP_monitor_0" operation="monitor" crm-debug-origin="build_active_RAs" crm_feature_set="3.0.5" transition-key="7:16:7:35783a82-6ec5-4e0a-b8e9-fb7705874df6" transition-magic="0:7;7:16:7:35783a82-6ec5-4e0a-b8e9-fb7705874df6" call-id="2" rc-code="7" op-status="0" interval="0" last-run="1328131971" last-rc-change="1328131971" exec-time="30" queue-time="0" op-digest="3743ac5035464b9704ea522bbbe4b1df"/><br>

            <lrm_rsc_op id="ClusterIP_start_0" operation="start" crm-debug-origin="build_active_RAs" crm_feature_set="3.0.5" transition-key="8:114:0:c9a528d7-1112-4e18-aef2-d076d88d3f77" transition-magic="0:0;8:114:0:c9a528d7-1112-4e18-aef2-d076d88d3f77" call-id="6" rc-code="0" op-status="0" interval="0" last-run="1328231542" last-rc-change="1328231542" exec-time="30" queue-time="0" op-digest="3743ac5035464b9704ea522bbbe4b1df"/><br>

            <lrm_rsc_op id="ClusterIP_stop_0" operation="stop" crm-debug-origin="build_active_RAs" crm_feature_set="3.0.5" transition-key="7:117:0:c9a528d7-1112-4e18-aef2-d076d88d3f77" transition-magic="0:0;7:117:0:c9a528d7-1112-4e18-aef2-d076d88d3f77" call-id="8" rc-code="0" op-status="0" interval="0" last-run="1328232621" last-rc-change="1328232621" exec-time="30" queue-time="0" op-digest="3743ac5035464b9704ea522bbbe4b1df"/><br>

          </lrm_resource><br>        </lrm_resources><br>      </lrm><br>    </node_state><br>    <node_state id="mfg2-3" uname="mfg2-3" crmd="online" crm-debug-origin="do_update_resource" ha="active" in_ccm="true" join="member" expected="member" shutdown="0"><br>

      <lrm id="mfg2-3"><br>        <lrm_resources><br>          <lrm_resource id="ClusterIP" type="IPaddr2" class="ocf" provider="heartbeat"><br>            <lrm_rsc_op id="ClusterIP_monitor_0" operation="monitor" crm-debug-origin="do_update_resource" crm_feature_set="3.0.5" transition-key="7:133:7:c9a528d7-1112-4e18-aef2-d076d88d3f77" transition-magic="0:7;7:133:7:c9a528d7-1112-4e18-aef2-d076d88d3f77" call-id="2" rc-code="7" op-status="0" interval="0" last-run="1328243701" last-rc-change="1328243701" exec-time="20" queue-time="0" op-digest="3743ac5035464b9704ea522bbbe4b1df"/><br>

          </lrm_resource><br>        </lrm_resources><br>      </lrm><br>      <transient_attributes id="mfg2-3"><br>        <instance_attributes id="status-mfg2-3"><br>          <nvpair id="status-mfg2-3-probe_complete" name="probe_complete" value="true"/><br>

        </instance_attributes><br>      </transient_attributes><br>    </node_state><br>  </status><br></cib><br><br>Should IPaddr2 correctly detect link loss and move the Virtual IP?<br>Examining the code doesn't show that it would detect that failure.<br>

What other resources/agents would recommend be configure to correctly migrate <br>the Virtual IP?<br><br><br>
<br>_______________________________________________<br>
Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
<a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
<br>
Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>esta es mi vida e me la vivo hasta que dios quiera<br>