LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: keepalived does not configure LVS

To: <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: keepalived does not configure LVS
From: "Brad Dameron" <brad@xxxxxxxxxx>
Date: Wed, 24 May 2006 21:39:52 -0700

----- Original Message ----- From: "Bill Shupp" <hostmaster@xxxxxxxxx>
To: <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Wednesday, May 24, 2006 6:32 PM
Subject: keepalived does not configure LVS


Hello,

I'm trying to setup LVS-NAT for HTTP with keepalived.  At the bottom is
my keepalived.conf contents.  The virtual IPs on the master director get
setup just fine, but forwarding does not occur.  When I run ipvsadm
without arguments, there are no services listed.  However, if I add the
service and real servers by hand via ipvsadm, it works.  I'm guessing
there's a problem with my config.

This is CentOS 4.3, ipvsadm 1.24 and keepalived 1.1.12 are installed via
rpms.  Kernel is 2.6.9-34.EL.

Any help is appreciated!

Cheers,

Bill Shupp





global_defs {
  notification_email {
    hostmaster@xxxxxxxxx
  }
  notification_email_from hostmaster@xxxxxxxxx
  smtp_server 192.168.1.8
  smtp_connect_timeout 30
  router_id LVS1_A
}

vrrp_instance VI_1 {
   state MASTER
   interface eth0
   virtual_router_id 1
   priority 100
   advert_int 1
   authentication {
       auth_type PASS
       auth_pass 1111
   }
   virtual_ipaddress {
       192.168.1.42
   }
}

vrrp_instance VI_2 {
   state MASTER
   interface eth1
   virtual_router_id 2
   priority 100
   advert_int 1
   authentication {
       auth_type PASS
       auth_pass 1111
   }
   virtual_ipaddress {
       10.10.1.1
   }
}

virtual_server 192.168.1.42 80 {
   delay_loop 6
   lb_algo rr
   lb_kind NAT
   nat_mask 255.255.255.0
   persistence_timeout 50
   protocol TCP

   real_server 10.10.1.4 {
       weight 1
       HTTP_GET {
           url {
             path /id.html
             digest 67db86c4f23170f673ce83c67bbcc642
           }
           connect_timeout 3
           nb_get_retry 3
           delay_before_retry 3
       }
   }

   real_server 10.10.1.5 {
       weight 1
       HTTP_GET {
           url {
             path /id.html
             digest 9c831a54020efc386b04fd618ac25d0c
           }
           connect_timeout 3
           nb_get_retry 3
           delay_before_retry 3
       }
   }
}


Looks ok. I had this same problem with a RPM of keepalived. I had to compile it from source so that it used the ipvs information from my kernel. That would be my next step.

Brad Dameron
SeaTab Software
www.seatab.com

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