You can configure this with pingd. The documentation is very confuse but it's possible.

I make this with:

ha.cf:

ping_group ping_nodes 192.168.X.X 192.168.X.X # These are the ping nodes of the documentation

cib.xml:

      <clone id="pingd">
        <instance_attributes id="pingd">
          <attributes>
<nvpair id="pingd-clone_node_max" name="clone_node_max" value="1"/>
          </attributes>
        </instance_attributes>
<primitive id="pingd-child" provider="heartbeat" class="ocf" type="pingd">
          <operations>
<op id="pingd-child-monitor" name="monitor" interval="20s" timeout="40s" prereq="nothing"/>
            <op id="pingd-child-start" name="start" prereq="nothing"/>
          </operations>
          <instance_attributes id="pingd_inst_attr">
            <attributes>
              <nvpair id="pingd-dampen" name="dampen" value="5s"/>
              <nvpair id="pingd-multiplier" name="multiplier" value="100"/>
            </attributes>
          </instance_attributes>
        </primitive>
      </clone>


An then the rules in the same file:

<rsc_location id="my_resource:connected" rsc="RESOURCE_GROUP"> ## Resource GROUP is the group of resources to move when a network failure happens. <rule id="my_resource:connected:rule" score="-INFINITY" boolean_op="or"> <expression id="my_resource:connected:expr:undefined" attribute="pingd" operation="not_defined"/> <expression id="my_resource:connected:expr:zero" attribute="pingd" operation="lte" value="0"/>
        </rule>
        </rsc_location>

I am trying to configure now a clone set of mysql servers and when pingd or mysql resource tells an error, the VIP must be moved to another cluster node!

Best Regards...



Pankaj escribió:
Hello,

Can anyone tell me where in Linux-ha is the Ethernet failure detected, which triggers the complete take-over procedure. Can anyone suggest any documents related with the same.
Thanks in advance.
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


_______________________________________________
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