LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: LVS Configuration

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: LVS Configuration
From: Malcolm Turnbull <Malcolm.Turnbull@xxxxxxxxxxxx>
Date: Fri, 06 Dec 2002 09:50:28 +0000
Paul,

I'm not quite sure why you need 2 NICs ? or for that matter 2 VIPs ?


In LVS DR the LVS box is on the same subnet as the web servers...
i.e. your lvs box and two web servers sit behind your firewall / default gateway...


DIP1 = 10.80.18.202 (Only used for direct access to admin the LVS box)

VIP1 = 10.80.18.204 (used by all clients wishing to access the hosted vitual service i.e. your web farm)

Now the two real ip addresses on your web servers
RIP1 = 10.80.18.43
RIP2 = 10.80.18.44

each of these also needs the VIP (10.80.18.203) set up on the loopback adapter

Every single box including the LVS all need the same default gateway....

I recomend you set up by hand so that you understand the commands...
Personaly I dont use the scripts because Ldirectord sets everything up for me...
I think Keepalived does as well ?

example:

/sbin/ipvsadm -A -t 10.80.18.204:80 -s wlc
/sbin/ipvsadm -a -t 10.80.18.204:80 -r 10.80.18.43:80 -g -w 1
/sbin/ipvsadm -a -t 10.80.18.204:80 -r 10.80.18.43:80 -g -w 1

Regards,
Malcolm.






Rogers, Paul wrote:
Dear All

I notice from the mini-HOWTO that one can use configuration scripts to configure the LVS, which can then be used on both the Real Servers and the Directors. However these don't appear to be included in th ipvs tarball (ipvs-1.0.6.tar.gz). I did manage to find a configure-lvs_0.9.4.tar.gz but based on the 0.9.4 I assume the scripts contained therein may be out of date. I also notice that elsewhere on the site it says something to the effect that "our survey shows most of our users don't use the scripts".

Am I right in thinking the scripts are no longer maintained? If not would they still work with a 2.4.19 kernel? What is the preferred method fro configuring the LVS now - the "setup by hand" method mentioned in the mini-HOWTO.

I am trying to set up an LVS-DR with one director and two realservers. The director has two NICS in it (not sure if this relevant) and all the Real Servers, the Director and most of the clients are all on the same subnet, on our LAN. All other clients are on our WAN and come via a router.

Again looking at the scripts I am unsure which one I should use. I think the ip's I wish to set up are as follows :

DIP1 = 10.80.18.202
DIP2 = 10.80.18.203

VIP1 = 10.80.18.204
VIP2 = 10.80.18.205

RIP1 = 10.80.18.43
RIP2 = 10.80.18.44

GIP = 10.80.16.1

CIP = 10.80.21.26 (example)

The diagram on page 13 of the HOWTO.introduction appears ver close to what I wish to do. Can any one suggest which of the scripts is the nearest fit, or alternatively should I amend the setup by hand example to suit?

Many thanks


Paul

|

*****************************************************************************
This email and any attachments transmitted with it are confidential
and intended solely for the use of the individual or entity to whom
they are addressed. If you have received this email in error please
notify the sender and do not store, copy or disclose the content
to any other person.

It is the responsibility of the recipient to ensure that opening this
message and/or any of its attachments will not adversely affect
its systems. No responsibility is accepted by the Company.
*****************************************************************************
|



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