LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

[lvs-users] where is connection?

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: [lvs-users] where is connection?
From: Gerry Reno <greno@xxxxxxxxxxx>
Date: Thu, 02 Aug 2007 09:49:14 -0400
I went and established a ssh connection to my VIP and I also started a 
web session to my VIP but when I look for connections on MASTER I do not 
see them.  Instead I see connections on BACKUP.  Here is some output:

MASTER:
[root@grp-01-00-50 keepalived]# ipvsadm -l
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
  -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
TCP  192.168.1.240:https rr persistent 600
  -> 192.168.1.201:https          Route   1      0          0        
  -> 192.168.1.200:https          Route   1      0          0        
TCP  10.3.0.3:http wlc persistent 600
TCP  192.168.1.240:http rr persistent 600
  -> 192.168.1.201:http           Route   1      0          0        
  -> 192.168.1.200:http           Route   1      0          0        
TCP  192.168.1.240:ssh rr persistent 600
  -> 192.168.1.201:ssh            Route   1      0          0        
  -> 192.168.1.200:ssh            Route   1      0          0        
[root@grp-01-00-50 keepalived]# ip addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast 
qlen 1000
    link/ether 00:0c:29:a7:c7:33 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.150/24 brd 192.168.1.255 scope global eth0
    inet 192.168.1.240/24 scope global secondary eth0                 
<----------- VIP is here on MASTER
    inet6 fe80::20c:29ff:fea7:c733/64 scope link
       valid_lft forever preferred_lft forever


BACKUP:
[root@grp-01-00-51 keepalived]# ipvsadm -l
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
  -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
TCP  192.168.1.240:https rr persistent 600
  -> 192.168.1.201:https          Route   1      0          0        
  -> 192.168.1.200:https          Route   1      0          0        
TCP  192.168.1.240:http rr persistent 600
  -> 192.168.1.201:http           Route   1      3          0           
<------ VIP connections are here in BACKUP list
  -> 192.168.1.200:http           Route   1      0          0        
TCP  192.168.1.240:ssh rr persistent 600
  -> 192.168.1.201:ssh            Route   1      1          0           
<------ VIP connections are here in BACKUP list
  -> 192.168.1.200:ssh            Route   1      0          0        
[root@grp-01-00-51 keepalived]#
[root@grp-01-00-51 keepalived]# ip addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
    inet 192.168.1.240/32 scope host lo
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast 
qlen 1000
    link/ether 00:0c:29:54:ef:09 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.151/24 brd 192.168.1.255 scope global eth0
    inet6 fe80::20c:29ff:fe54:ef09/64 scope link
       valid_lft forever preferred_lft forever



This is confusing.

Gerry



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