Thanks Jason,

  I have modified the running keepalived configuration, and still, the
problem remains...

  When I type "ipvsadm -l", the table is blank:

###
[r...@lvs ~]# ipvsadm -L
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
  -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
###

  Here is my keepalived.conf again, with your changes:

###
[r...@lvs ~]# cat /etc/keepalived/keepalived.conf
! Configuration File for keepalived

global_defs {
   notification_email {
     [email protected]
   }
   notification_email_from [email protected]
   smtp_server 127.0.0.1
   smtp_connect_timeout 30
   router_id LVS1
}

#vrrp_sync_group VG1 {
#    group {
#        LVS1
#        LVS2
#    }
#}


vrrp_instance LVS1 {
    state MASTER
    interface eth0
    virtual_router_id 51
    priority 100
    advert_int 1
    authentication {
        auth_type PASS
        auth_pass vasiliy
    }
    virtual_ipaddress {
        192.168.1.195
        192.168.1.196
        192.168.1.197
        192.168.1.198
    }
}

virtual_server 192.168.1.195{
    delay_loop 6
    lb_algo wrr
    lb_kind DR
    #nat_mask 255.255.255.0
    persistence_timeout 50
    protocol TCP

        real_server 192.168.1.209 80 {
                weight 100
                TCP_CHECK {
                        connect_timeout 3
                }
        }
        real_server 192.168.1.211 80 {
                weight 100
                TCP_CHECK {
                        connect_timeout 3
                }
        }
}
###

On Thu, Apr 9, 2009 at 11:10 AM, <[email protected]> wrote:

> I'll repost my answer from lvs-users :).
>
> >virtual_server 192.168.1.195{
> >     delay_loop 6
> >     lb_algo rr
> [snip]
> >         real_server 192.168.1.209 80 {
> >                 weight 100
> >                 TCP_CHECK {
>
> You are using "rr" load balancing scheme while still setting weights in the
> config. Change to "wrr" or remove the weights.
>
> Sadly, keepalived doesn't complain when you give it a bad config; it tends
> to just not work.
>
>
>
> --
> Jason Faulkner
> Linux Systems Engineer
> Mailtrust, a division of Rackspace
>
>
>
_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - [email protected]
Send requests to [email protected]
or go to http://lists.graemef.net/mailman/listinfo/lvs-users

Reply via email to