LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

localnodes with heartbeat

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: localnodes with heartbeat
From: Jon Molin <Jon.Molin@xxxxxxxxxxx>
Date: Tue, 05 Feb 2002 17:42:05 +0100
Hi,

I've set up 2 servers with lvs, I've got the sharing running and all
seems fine. What I did was just following the setup in chapter 15
localnodes:

# cat /etc/sysconfig/ipvsadm
-A -t 212.75.72.15:80 -s wlc
-a -t 212.75.72.15:80 -r 212.75.72.31 -g -w 1
-a -t 212.75.72.15:80 -r 212.75.72.24 -g -w 1 

Now i want to combine this with linux-ha. So I downloaded the config
script and made this config file:

#----------lvs_dr.conf----------------------------------------
LVSCONF_FORMAT=1.1
LVS_TYPE=VS_DR
INITIAL_STATE=on
CLEAR_IPVS_TABLES=yes
VIP=eth1:1 212.75.72.15 255.255.255.192 212.75.72.63
DIP=eth1 212.75.72.24 255.255.255.224 212.75.72.63
SERVICE=t http wlc www1,www2
SERVER_VIP_DEVICE=lo:110
SERVER_NET_DEVICE=eth1
SERVER_GW=212.75.72.1
#----------end lvs_dr.conf------------------------------------

And when i run this on the first localnode, all seems fine. ipvsadm -L
shows nice values. Then i scped the rc.lvs_dr over to the other node and
it started screaming. Now i understand that DIP= 212.75.72.24 is a
troublemaker, since 212.75.72.31 is supposed to be a director as well
but im not sure how to configure this. 

The machines have 2 nics and if using 192.168.0.. would help in any way
is that fully possible as this is where i do the heartbeat.

If I get this running, all i need to do is to add this script
(rc.lvs_dr) to heartbeat and I'll be all set, right?

/Jon


<Prev in Thread] Current Thread [Next in Thread>