[Linux-HA] Cloning heartbeat::ocf:IPaddr with different IPs

Christian Rishøj christian at rishoj.net
Sun Jun 17 15:58:04 MDT 2007


On 6/17/07, Michael Schwartzkopff <misch at multinet.de> wrote:
> Christian Rishøj schrieb:
> > And a more general clustering question: It is stated somewhere in the
> > documentation that clones were made for the purpose of IP adresses.
> > Now, wouldn't most routers prohibit usage of the same IP address on
> > several nodes? What is the common idiom in this case?
>
>
> Use multicast MAC Adresses. And yes, some routers do not learn multicast
> MAC addresses. You would have to configure these addresses statically. I
> wrote an  article about that (CLUSTERIP target of iptables) in the
> German "Linux Magazin". It will be published in the English version
> soon. For the use of CLUSTERIP in a Linux-HA RA see:
> http://www.linux-ha.org/ClusterIP

I have recompiled kernel and iptables with CLUSTERIP support, and
configured a resource:

 <clone ordered="false" id="webIP" interleave="true">
   <primitive id="IP_88_198_56_24" class="ocf" type="IPaddr2"
provider="heartbeat">
     <instance_attributes id="4b5fbbd4-9559-4654-ab70-a33c37c0954b">
       <attributes>
         <nvpair id="webIP_ip" name="ip" value="88.198.56.24"/>
         <nvpair id="webIP_nic" name="nic" value="eth0"/>
         <nvpair id="webIP_netmask" name="netmask" value="27"/>
         <nvpair id="webIP_clusterip_hash" name="clusterip_hash"
value="sourceip"/>
       </attributes>
     </instance_attributes>
   </primitive>
   <instance_attributes id="d54a7cf5-cbd3-43db-bc0b-f3c80a3130a8">
     <attributes>
       <nvpair name="clone_max" value="2"
id="793ddd47-4b8c-47d3-a77d-8d595b28b533"/>
       <nvpair name="clone_node_max" value="2"
id="382099e1-cdab-4864-bc34-5d50497cfd89"/>
     </attributes>
   </instance_attributes>
 </clone>

When one node is put on standby, one instance of the webIP clone is
stopped. Is this expected behavior?

Best,
Christian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cib.xml
Type: text/xml
Size: 47213 bytes
Desc: not available
Url : http://lists.community.tummy.com/pipermail/linux-ha/attachments/20070617/df10e65c/cib-0001.bin


More information about the Linux-HA mailing list