LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: Initial setup

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: Initial setup
From: Horms <horms@xxxxxxxxxxxx>
Date: Mon, 28 Mar 2005 15:19:07 +0900
On Sun, Mar 27, 2005 at 03:59:00AM -0800, Rob wrote:
> What version is your kernel? I run LVS-DR on Fedora Core 3 with no patches.
> Seems to work OK, I haven't noticed any issues.
> 
> You can check ifconfig -a
> for dummy/tun devices or lo aliases.
> check /etc/sysctl.conf for things like:
> # ipvs settings for realservers:
> net.ipv4.conf.lo.arp_ignore = 1
> net.ipv4.conf.lo.arp_announce = 2

arp_ignore and arp_announce opperate on the arping interface.
That is they usually should be set on eth0 (and whatever
other interfaces you have that respond to arp) not lo.

> net.ipv4.conf.all.arp_ignore = 1
> net.ipv4.conf.all.arp_announce = 2
> 
> To set up a 2.6.10 kernel for use as a real server AFAIK all that is 
> required is:
> * add lo alias with the vip address, something like (if your vip is 
> 10.1.1.59) :
> ifconfig lo:2 10.1.1.59 netmask 255.255.255.255
> * add the arp settings to sysctl.conf
> * run sysctl -p
> * you may want to restart any programs that run socket listeners that you 
> wish to usr with LVS just to be sure and review their config to be sure 
> they are listening on 127.0.0.1
> 
> use ipvsadm to add the server to a vip and test it - I recommend testing 
> against smtp or a simple web server to isolate LVS issues from any complex 
> application configuration issues.

-- 
Horms

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