LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

[lvs-users] LVS-DR, Keepalived 1.1.17, installation question/problem

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: [lvs-users] LVS-DR, Keepalived 1.1.17, installation question/problem
From: Vasiliy Boulytchev <vasiliy@xxxxxxxxxxxxxxxx>
Date: Wed, 8 Apr 2009 23:18:09 -0400
Dear All,

   After installing keepalived and ipvsadm on Centos 5.3, ipvsadm -l  
produces ill results.

   I have compiled the keepalived daemon, and I assume that it finds  
the IPVS kernel headers properly:

#########################
Keepalived configuration
------------------------
Keepalived version       : 1.1.17
Compiler                 : gcc
Compiler flags           : -g -O2
Extra Lib                : -lpopt -lssl -lcrypto
Use IPVS Framework       : Yes
IPVS sync daemon support : Yes
Use VRRP Framework       : Yes
Use LinkWatch            : No
Use Debug flags          : No
##########################

   Background:

   I am trying to setup an LVS/Keepalived load balancer as a VM, with  
lvs-DR.  The load balancer, and the real servers are all the same VMs,  
residing on the same network.  In this case its a esx virtual switch.


   When keepalived starts, I see nothing, when issuing the following  
command:'
##############
[root@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 file:

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

global_defs {
    notification_email {
      vasiliyb@xxxxxxxxx
    }
    notification_email_from lvs1@xxxxxxxxxxxxxxxxxxxxxx
    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 rr
     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
                 }
         }
}


##################################


Any help is greatly appreciated!  Thanks!

-
Vasiliy Boulytchev
vasiliy@xxxxxxxxxxxxxxxx





_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
or go to http://lists.graemef.net/mailman/listinfo/lvs-users

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