LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: Configuration for LVS-DR

To: <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: Configuration for LVS-DR
From: "Victor" <victord@xxxxxxxx>
Date: Thu, 17 Jan 2002 17:39:12 -0500
> Victor wrote:
> >
> > I tried the configure perl script and got a 15K script that didn't work.
> > Is there just a simple clean setup for lvs that I could try?
>
> too short. It should be about 150k. See if you can figure out
> what went wrong before you look for answers all your other questions
> (all of which are in the HOWTO).
>
> Joe

Joe, here is what I have right now:

    Client
      |
      |
      +-- Director (RH 7.2 Kernel 2.4.12 with the big patch)
      |   DIP eth0     10.0.0.249 255.255.255.0   10.0.0.0
      |   VIP eth0:110 10.0.0.110 255.255.255.255 10.0.0.110
      |
      |   eth0     Link encap:Ethernet
      |         inet addr:10.0.0.249  Bcast:10.0.0.255  Mask:255.255.255.0
      |         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
      |   eth0:110 Link encap:Ethernet
      |         inet addr:10.0.0.110  Bcast:10.0.0.110  Mask:255.255.255.255
      |         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
      |
      |
      +-- RealServer (Solaris 2.7)
          ifconfig lo0:110 inet 10.0.0.110 netmask 255.255.255.255 -arp up

          lo0: flags=849<UP,LOOPBACK,RUNNING,MULTICAST> mtu 8232
               inet 127.0.0.1 netmask ff000000
          lo0:110: flags=8c9<UP,LOOPBACK,RUNNING,NOARP,MULTICAST> mtu 8232
               inet 10.0.0.110 netmask ffffffff
          hme0: flags=863<UP,BROADCAST,NOTRAILERS,RUNNING,MULTICAST> mtu
1500
               inet 10.0.0.100 netmask ffffff00 broadcast 10.0.0.255

Here is the config I got on the Director: (/etc/lvs.cf)

------------------ /etc/lvs.cf -------------------
primary = 10.0.0.249
service = lvs
rsh_command = ssh
backup = 0.0.0.0
heartbeat = 1
heartbeat_port = 539
keepalive = 6
deadtime = 18
network = direct
virtual vs1 {
     active = 1
     address = 10.0.0.110 eth0:110
     port = 80
     send = "GET / HTTP/1.0\r\n\r\n"
     expect = "HTTP"
     load_monitor = rup
     scheduler = rr
     protocol = tcp
     timeout = 6
     reentry = 15
     server sunbox {
         address = 10.0.0.100
         active = 1
         weight = 1000
     }
}
------------------ /etc/lvs.cf -------------------

I ran /etc/rc.d/init.d/ipvsadm and it failed (the only changes I made is to
check for lvs.cf file)
Would you have any thoughts on what I am doing wrong?

Here is the output when I just run ipvsadm from sbin:

IP Virtual Server version 0.8.2 (size=4096)
Prot LocalAddress:Port Scheduler Flags
  -> RemoteAddress:Port             Forward Weight ActiveConn InActConn

I have am rereading the howto now, hopefully I will see what you said I
missed. But I am not seeing any config file examples.



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