Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux Virtual Server: Users

[lvs-users] Can not connect to virtual IP

 

 

Linux Virtual Server users RSS feed   Index | Next | Previous | View Threaded


rittikorn at ttni

Oct 21, 2009, 6:21 AM

Post #1 of 2 (958 views)
Permalink
[lvs-users] Can not connect to virtual IP

Dear,

I follow up everything as same as
http://www.ultramonkey.org/3/topologies/sl-ha-lb-eg.html

Every think look like OK and tests stop service heartbeat can working normally but client can not connect to virtual ip
[test by telnet 192.168.0.87 25] but telnet 192.168.0.83 25 and 192.168.0.122 25 working normally . plase help me

[root [at] ha ha.d]# /etc/ha.d/resource.d/LVSSyncDaemonSwap master status
master running
(ipvs_syncmaster pid: 9376)


[root [at] ha ha.d]# ipvsadm -L -n
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
TCP 192.168.0.87:80 rr
-> 192.168.0.122:80 Route 1 0 0
-> 192.168.0.83:80 Local 0 0 0
TCP 192.168.0.87:25 rr
-> 192.168.0.83:25 Local 1 0 0
-> 192.168.0.122:25 Route 1 0 0


[root [at] ha ha.d]# ip addr sh
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
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:24:8c:c1:f3:07 brd ff:ff:ff:ff:ff:ff
inet 192.168.0.83/24 brd 192.168.0.255 scope global eth0
inet 192.168.0.87/24 brd 192.168.0.255 scope global secondary eth0




Best Regards,
Rittikorn L.




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

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


leon at linux

Oct 21, 2009, 8:39 PM

Post #2 of 2 (894 views)
Permalink
Re: [lvs-users] Can not connect to virtual IP [In reply to]

On Wed, 2009-10-21 at 20:21 +0700, Rittikorn L. wrote:
> Every think look like OK and tests stop service heartbeat can working normally but client can not connect to virtual ip
> [test by telnet 192.168.0.87 25] but telnet 192.168.0.83 25 and 192.168.0.122 25 working normally . plase help me
>
> [root [at] ha ha.d]# /etc/ha.d/resource.d/LVSSyncDaemonSwap master status
> master running
> (ipvs_syncmaster pid: 9376)
>
>
> [root [at] ha ha.d]# ipvsadm -L -n
> IP Virtual Server version 1.2.1 (size=4096)
> Prot LocalAddress:Port Scheduler Flags
> -> RemoteAddress:Port Forward Weight ActiveConn InActConn
> TCP 192.168.0.87:80 rr
> -> 192.168.0.122:80 Route 1 0 0
> -> 192.168.0.83:80 Local 0 0 0
> TCP 192.168.0.87:25 rr
> -> 192.168.0.83:25 Local 1 0 0
> -> 192.168.0.122:25 Route 1 0 0


One of your realservers (0.83) seems to be set to local, instead of
direct-routing. In your ldirectord.cf, set it to 'gate':

real=192.168.0.83:25 gate

And also for the port 80 version:

real=192.168.0.83:80 gate


--
Léon


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

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

Linux Virtual Server users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.