[Linux-cluster] dedicated heartbeat LAN and documentation

Jie Gao J.Gao at isu.usyd.edu.au
Fri Jul 21 11:59:05 UTC 2006

On Fri, 21 Jul 2006, sun sadm wrote:

> Date: Fri, 21 Jul 2006 11:25:02 +0200
> From: sun sadm <sunsadm at gmail.com>
> Reply-To: linux clustering <linux-cluster at redhat.com>
> To: linux-cluster at redhat.com
> Subject: [Linux-cluster] dedicated heartbeat LAN and documentation
> Hello colleague
> How to configure a dedicated LAN (for example eth3) as heartbeat? We
> don't wish heartbeat over public LAN.
> Second: the official  documentation (Red Hat Cluster Suite Configuring
> and Managing a Cluster) is very bad. Are there additional documents?

Here is an example of what I did in a two-node cluster:

Both nodes have a public interface on interface eth0. You can also set
up bonding using eth1 if you want to.

eth2 on both are assigned a private address (xxx.xx.xx.xxx and
yyy.yy.yy.yyy respectively) and are directly physically connected to
each other with one patch cable.

The cluster is configured to listen to these two ip addresses on the
two nodes.

Run on node1:

    /sbin/ifconfig eth2 xxx.xx.xx.xxx pointopoint yyy.yy.yy.yyy multicast netmask up
    /sbin/route add -net yyy.yy.yy.0 netmask dev eth0 # I need this for fencing the other
node via its service processor that is on the same subnet of yyy.yy.yy.0

    /sbin/route add -host yyy.yy.yy.yyy gw xxx.xx.xx.xxx
    /sbin/route add -net netmask dev eth2 # I use multicast.

and run on node2:

    /sbin/ifconfig eth2 yyy.yy.yy.yyy pointopoint xxx.xx.xx.xxx multicast netmask up
    /sbin/route add -net xxx.xx.xx.0 netmask dev eth0
    /sbin/route add -host xxx.xx.xx.xxx gw yyy.yy.yy.yyy
    /sbin/route add -net netmask dev eth2

You need to have these commands in a startup script and run right after eth0
is set up.

That's roughly the idea.



More information about the Linux-cluster mailing list