I have an HA configuration where I have two hosts interconnected with two network links between them. One is a crossover and the other is a standard network connection. DRBD is configured to communicate over the crossover link only. Both nics are on different networks. I also have configured a ping node in the ha.cf file. I think I have my location constraint setup correctly such that DRBD will only be master on a node that communicate with the ping node. When I unplug the public facing nic on the master node it will fail over to the other node, however the failover is not graceful. Both nodes go into standalone but the services where are dependent on DRBD do fail over and continue to work.

I have included the cib which was created using the hb_gui. At present I am not using Stonith. Would using Stonith fix this problem?

<cib generated="true" admin_epoch="0" have_quorum="true" ignore_dtd="false" num_peers="2" cib_feature_revision="2.0" crm_feature_set="2.0" ccm_transition="2" dc_uuid="f77e4099-869b-40ea-868f-f843e3a927ec" epoch="725" num_updates="1" cib-last-written="Thu Oct 9 07:51:59 2008">
  <configuration>
    <crm_config>
      <cluster_property_set id="cib-bootstrap-options">
        <attributes>
<nvpair id="cib-bootstrap-options-dc-version" name="dc-version" value="2.1.4-node: 006a5468fde10a89ccecfd3f46b9eb5d026a013c"/> <nvpair id="cib-bootstrap-options-last-lrm-refresh" name="last-lrm-refresh" value="1223520022"/>
        </attributes>
      </cluster_property_set>
    </crm_config>
    <nodes>
<node id="f77e4099-869b-40ea-868f-f843e3a927ec" uname="scratchy" type="normal"> <instance_attributes id="nodes-f77e4099-869b-40ea-868f-f843e3a927ec">
          <attributes>
<nvpair id="standby-f77e4099-869b-40ea-868f-f843e3a927ec" name="standby" value="off"/>
          </attributes>
        </instance_attributes>
      </node>
<node id="855137df-8dca-4f70-a713-5f3381546ee6" uname="itchy" type="normal"> <instance_attributes id="nodes-855137df-8dca-4f70-a713-5f3381546ee6">
          <attributes>
<nvpair id="standby-855137df-8dca-4f70-a713-5f3381546ee6" name="standby" value="off"/>
          </attributes>
        </instance_attributes>
      </node>
    </nodes>
    <resources>
      <master_slave id="drbd">
        <meta_attributes id="drbd_meta_attrs">
          <attributes>
<nvpair id="drbd_metaattr_clone_max" name="clone_max" value="2"/> <nvpair id="drbd_metaattr_clone_node_max" name="clone_node_max" value="2"/> <nvpair id="drbd_metaattr_master_max" name="master_max" value="1"/> <nvpair id="drbd_metaattr_master_node_max" name="master_node_max" value="1"/>
            <nvpair id="drbd_metaattr_notify" name="notify" value="true"/>
<nvpair id="drbd_metaattr_globally_unique" name="globally_unique" value="false"/>
          </attributes>
        </meta_attributes>
<primitive class="ocf" type="drbd" provider="heartbeat" id="resource_drbd">
          <instance_attributes id="resource_drbd_instance_attrs">
            <attributes>
<nvpair id="7b176069-63e5-41d1-9c59-a4da798b7521" name="drbd_resource" value="MySQL"/>
            </attributes>
          </instance_attributes>
          <operations>
<op id="op_mon" name="monitor" interval="5" timeout="10" role="Master" start_delay="1" disabled="false"/> <op id="op_mon_slave" name="monitor" interval="5" timeout="10" disabled="false" role="Slave" start_delay="1"/> <op name="stop" timeout="10" prereq="nothing" on_fail="restart" start_delay="0" disabled="false" id="op_drbd_stop" role="Started"/> <op id="op_drbd_demote" name="demote" timeout="10" prereq="nothing" on_fail="restart" start_delay="0" disabled="false" role="Master"/>
          </operations>
          <meta_attributes id="resource_drbd:1_meta_attrs">
            <attributes>
<nvpair id="resource_drbd:2_metaattr_target_role" name="target_role" value="started"/>
            </attributes>
          </meta_attributes>
        </primitive>
      </master_slave>
      <group id="group_zabbix">
        <meta_attributes id="group_zabbix_meta_attrs">
          <attributes>
<nvpair id="group_zabbix_metaattr_ordered" name="ordered" value="true"/> <nvpair id="group_zabbix_metaattr_collocated" name="collocated" value="true"/>
          </attributes>
        </meta_attributes>
<primitive id="resource_fs_mysql" class="ocf" type="Filesystem" provider="heartbeat">
          <instance_attributes id="resource_fs_mysql_instance_attrs">
            <attributes>
<nvpair id="cebbd7f4-bf66-416b-a401-293d8f77c2d3" name="device" value="/dev/drbd0"/> <nvpair id="143d64c5-7b64-490d-88e7-24792de363b5" name="directory" value="/var/lib/mysql"/> <nvpair id="262dc0c3-8869-4e9c-8a3c-efdd709350ca" name="fstype" value="ext3"/>
            </attributes>
          </instance_attributes>
          <operations>
            <op id="op_start_fs" name="start" start_delay="2"/>
          </operations>
        </primitive>
<primitive id="resource_ip" class="ocf" type="IPaddr2" provider="heartbeat">
          <instance_attributes id="resource_ip_instance_attrs">
            <attributes>
<nvpair id="630e3493-38fc-4263-a9bb-2c86b5e2f22c" name="ip" value="192.168.1.17"/>
            </attributes>
          </instance_attributes>
        </primitive>
<primitive id="resource_mysql" class="lsb" type="mysql" provider="heartbeat">
          <operations>
<op id="op_start" name="start" start_delay="2" disabled="false" role="Started"/>
          </operations>
        </primitive>
<primitive id="resource_zabbix_server" class="ocf" type="zabbix" provider="zabbix">
          <instance_attributes id="resource_zabbix_server_instance_attrs">
            <attributes>
<nvpair id="0f5593bf-9b6e-46f6-9ac1-ee3e50b759be" name="zbxbin" value="/usr/local/sbin/zabbix_server"/> <nvpair id="62609fd5-1c84-4c99-ac1a-2eafada49ca9" name="zbxconf" value="/etc/zabbix/zabbix_server.conf"/>
            </attributes>
          </instance_attributes>
        </primitive>
<primitive id="resource_zabbix_apache" class="lsb" type="apache2" provider="heartbeat"/> <primitive id="resource_notify_email" class="ocf" type="MailTo" provider="heartbeat">
          <instance_attributes id="resource_notify_email_instance_attrs">
            <attributes>
<nvpair id="f1581c45-d59b-427c-bcd5-88ad0d6bd42a" name="email" value="[EMAIL PROTECTED]"/>
            </attributes>
          </instance_attributes>
          <meta_attributes id="resource_notify_email_meta_attrs">
            <attributes/>
          </meta_attributes>
        </primitive>
<primitive id="resource_cluster_mon_html" class="ocf" type="ClusterMon" provider="heartbeat"> <instance_attributes id="resource_cluster_mon_html_instance_attrs">
            <attributes>
<nvpair id="ccebf122-ad2a-4da6-bc27-356fbd25d209" name="htmlfile" value="/srv/www/htdocs/clustermon.html"/>
            </attributes>
          </instance_attributes>
        </primitive>
      </group>
      <clone id="ping">
        <meta_attributes id="ping_meta_attrs">
          <attributes>
<nvpair id="ping_metaattr_globally_unique" name="globally_unique" value="false"/>
          </attributes>
        </meta_attributes>
<primitive id="resource_ping" class="ocf" type="pingd" provider="heartbeat">
          <operations>
<op id="op_ping_mon" name="monitor" interval="5" timeout="5" prereq="nothing" start_delay="0" disabled="false" role="Started"/> <op id="op_ping_start" name="start" prereq="nothing" start_delay="0" disabled="false" role="Started"/>
          </operations>
          <instance_attributes id="resource_ping:0_instance_attrs">
            <attributes>
<nvpair id="bbd0de5a-92fa-4e12-a1a8-62229c2ad765" name="dampen" value="1s"/> <nvpair id="ab3dc48a-1325-4e5d-979e-c7b572921cb2" name="multiplier" value="100"/>
            </attributes>
          </instance_attributes>
          <meta_attributes id="resource_ping:0_meta_attrs">
            <attributes/>
          </meta_attributes>
        </primitive>
      </clone>
    </resources>
    <constraints>
<rsc_colocation id="colocation_zabbix" to_role="Master" from="group_zabbix" to="drbd" score="INFINITY"/>
      <rsc_order id="order_zabbix" to="drbd" from="group_zabbix"/>
      <rsc_location id="location_ping" rsc="drbd">
        <rule id="prefered_location_ping" score="-200" boolean_op="or">
<expression attribute="pingd" id="b7fab612-626e-4e28-af50-ffc751037428" operation="not_defined"/> <expression attribute="pingd" id="f9e75632-337a-4998-a9cd-d440315f53d0" operation="lte" value="0"/>
        </rule>
      </rsc_location>
    </constraints>
  </configuration>
</cib>

_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to