Hello everyone.

I've been trying to use heartbeat version 2 with the script IPaddr2 and I've 
managed to get it running with cibadmin, crm_mon, etc.
The problem is that it doesn't get the virtual mac address that I establish in 
the xml configuration. 

"crm_mon" tells me this:

============
Last updated: Wed Jan 13 17:55:01 2010
Stack: Heartbeat
Current DC: heart (883e1da9-c47e-4eeb-850c-e118a31a2d55) - partition with quorum
Version: 1.0.5-3840e6b5a305ccb803d29b468556739e75532d56
2 Nodes configured, unknown expected votes
1 Resources configured.
============

Online: [ heart bacula ]

Resource Group: group_1
    rscIPaddr2  (ocf::heartbeat:IPaddr2):       Started bacula





So IPaddr2 it's running, but when I look at the ip configuration and make tests 
with ping and look at ARP cache, I don't see the virtual mac anywhere.

And before someone warns me about this topic, yes, I've read this old thread:  
http://lists.linux-ha.org/pipermail/linux-ha/2008-July/033776.html



Both servers are running ubuntu-server 9.10 Karmic, the master node with kernel 
2.6.31-16-386 and the slave with 2.6.31.14-generic-pae.
I only want to put in high-availability a virtual ip and a virtual mac, to 
solve ARP problems on switchs.

This is my cib.xml:

<cib validate-with="transitional-0.6" crm_feature_set="3.0.1" have-quorum="1" 
admin_epoch="0" epoch="41" num_updates="0" cib-last-written="Wed Jan 13 
14:56:36 2010" dc-uuid="883e1da9-c47e-4eeb-850c-e118a31a2d55">
  <configuration>
    <crm_config>
      <cluster_property_set id="cib-bootstrap-options">
        <attributes>
          <nvpair id="cib-bootstrap-options-symmetric-cluster" 
name="symmetric-cluster" value="true"/>
          <nvpair id="cib-bootstrap-options-no-quorum-policy" 
name="no-quorum-policy" value="stop"/>
          <nvpair id="cib-bootstrap-options-default-resource-stickiness" 
name="default-resource-stickiness" value="0"/>
          <nvpair 
id="cib-bootstrap-options-default-resource-failure-stickiness" 
name="default-resource-failure-stickiness" value="0"/>
          <nvpair id="cib-bootstrap-options-stonith-enabled" 
name="stonith-enabled" value="false"/>
          <nvpair id="cib-bootstrap-options-stonith-action" 
name="stonith-action" value="reboot"/>
          <nvpair id="cib-bootstrap-options-startup-fencing" 
name="startup-fencing" value="true"/>
          <nvpair id="cib-bootstrap-options-stop-orphan-resources" 
name="stop-orphan-resources" value="true"/>
          <nvpair id="cib-bootstrap-options-stop-orphan-actions" 
name="stop-orphan-actions" value="true"/>
          <nvpair id="cib-bootstrap-options-remove-after-stop" 
name="remove-after-stop" value="false"/>
          <nvpair id="cib-bootstrap-options-short-resource-names" 
name="short-resource-names" value="true"/>
          <nvpair id="cib-bootstrap-options-transition-idle-timeout" 
name="transition-idle-timeout" value="5min"/>
          <nvpair id="cib-bootstrap-options-default-action-timeout" 
name="default-action-timeout" value="20s"/>
          <nvpair id="cib-bootstrap-options-is-managed-default" 
name="is-managed-default" value="true"/>
          <nvpair id="cib-bootstrap-options-cluster-delay" name="cluster-delay" 
value="60s"/>
          <nvpair id="cib-bootstrap-options-pe-error-series-max" 
name="pe-error-series-max" value="-1"/>
          <nvpair id="cib-bootstrap-options-pe-warn-series-max" 
name="pe-warn-series-max" value="-1"/>
          <nvpair id="cib-bootstrap-options-pe-input-series-max" 
name="pe-input-series-max" value="-1"/>
          <nvpair id="cib-bootstrap-options-dc-version" name="dc-version" 
value="1.0.5-3840e6b5a305ccb803d29b468556739e75532d56"/>
          <nvpair id="cib-bootstrap-options-cluster-infrastructure" 
name="cluster-infrastructure" value="Heartbeat"/>
        </attributes>
      </cluster_property_set>
    </crm_config>
    <nodes>
      <node id="883e1da9-c47e-4eeb-850c-e118a31a2d55" uname="heart" 
type="normal"/>
      <node id="108569f5-5a4d-440e-bbd7-b9f76fd9ac70" uname="bacula" 
type="normal"/>
    </nodes>
    <resources>
      <group id="group_1">
        <primitive class="ocf" id="rscIPaddr2" provider="heartbeat" 
type="IPaddr2">
          <operations>
            <op id="rscIpaddr2OpMonitor5s" interval="5s" name="monitor" 
timeout="5s"/>
          </operations>
          <instance_attributes id="rscIpaddr2InstanceAttributes">
            <attributes>
              <nvpair id="rscIpaddr2InstanceAttributesIp" name="ip" 
value="192.168.2.19"/>
              <nvpair id="rscIpaddr2InstanceAttributesNetmask" 
name="cidr_netmask" value="24"/>
              <nvpair id="rscIpaddr2InstanceAttributesNic" name="nic" 
value="eth0"/>
              <nvpair id="rscIpaddr2InstanceAttributesMac" name="mac" 
value="00:11:22:33:44:55"/>
              <nvpair id="rscIpaddr2InstanceAttributesArpMac" name="arp_mac" 
value="00:11:22:33:44:55"/>
            </attributes>
          </instance_attributes>
        </primitive>
      </group>
    </resources>
    <constraints>
      <rsc_location id="rsc_location_group_1" rsc="group_1">
        <rule id="prefered_location_group_1" score="100">
          <expression attribute="#uname" id="prefered_location_group_1_expr" 
operation="eq" value="bacula"/>
        </rule>
      </rsc_location>
    </constraints>
  </configuration>



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

Reply via email to