Hello,

I want to make some test to do my HA system. My first test is simple but I can do successfully.

I have two machines and I am using crm. I want to pass only (at the moment...) the VIP from one server to the second server.

I am using pingd to detects (IPFAIL isn't valid to HA V2 no ??) a network failure. I start the heartbeat in two servers. Then I unplug the wire on the "master" server. The VIP still is in the "master" server and the "slave" server doesn't assume the VIP.

I am doing something wrong ??

My ha.cf:

keepalive 1
warntime 3
deadtime 4
initdead 60
auto_failback off
udpport 694
ucast eth3 192.168.2.150

use_logd on

node    s1
node    s2

crm             on                # use backwards compatibility mode

logfacility     local0             # make sure we see messages in syslog
apiauth default uid=root # make sure we can run cluster control commands as root

ping_group network 192.168.18.150 192.168.18.254 192.168.18.210

respawn root /usr/lib/heartbeat/pingd -m 100 -d 2s

My cib.xml:


<cib admin_epoch="1" have_quorum="true" ignore_dtd="false" num_peers="2" cib_feature_revision="1.3" generated="true" ccm_transition="2" dc_uuid="2658f3c0-66a9-4348-b598-b9ff49769be7" epoch="102" num_updates="2137" cib-last-written="Thu Jun 28 13:16:09 2007">
  <configuration>
    <crm_config>
      <cluster_property_set id="cps1">
        <attributes>
<nvpair id="transition_idle_timeout" name="cluster-delay" value="120s"/> <nvpair id="symmetric_cluster" name="symmetric-cluster" value="true"/> <nvpair id="no_quorum_policy" name="no-quorum-policy" value="stop"/> <nvpair id="stonith_enabled" name="stonith-enabled" value="true"/>
        </attributes>
      </cluster_property_set>
    </crm_config>
    <nodes>
<node id="2658f3c0-66a9-4348-b598-b9ff49769be7" uname="s1" type="normal"/> <node id="8768362c-5ec4-45ef-a5a3-aa4ee09272ed" uname="s2" type="normal"/>
    </nodes>
    <resources>
      <group id="MySQL_GROUP">
<primitive class="ocf" id="IPaddr_1" provider="heartbeat" type="IPaddr">
          <operations>
            <op id="1" interval="5s" name="monitor" timeout="5s"/>
          </operations>
          <instance_attributes id="ia1">
            <attributes>
              <nvpair id="ip1" name="ip" value="10.0.200.30"/>
              <nvpair id="ip2" name="netmask" value="16"/>
              <nvpair id="ip3" name="nic" value="eth3"/>
            </attributes>
          </instance_attributes>
        </primitive>
      </group>
    </resources>
    <constraints>
      <rsc_location id="rsc_location_group_1" rsc="MySQL_GROUP">
        <rule id="prefered_location_group_1" role="master" score="100">
<expression id="ex1" attribute="#uname" operation="eq" value="s1"/>
        </rule>
      </rsc_location>
    </constraints>
  </configuration>
</cib>

If I desactive stonith, the VIP goes OK to s2 but it's still in s1. When I plug the wire again the VIP is two servers in a few moments. Then the s1 remains with VIP. can you see my errors ??

Thank you!!
_______________________________________________
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