Thanks again Joe.
For some reason I still can't get it to work, but I could be missing
something.
Here is what I tried, I apologize for the verbosity:
You can hit the two ports and see they're awake:
"
thor:~# netstat -tan|grep 9000
tcp 0 0 127.0.0.3:9000 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.2:9000 0.0.0.0:* LISTEN
thor:~# telnet 127.0.0.2 9000
Trying 127.0.0.2...
Connected to 127.0.0.2.
Escape character is '^]'.
quit
Connection closed by foreign host.
thor:~# telnet 127.0.0.3 9000
Trying 127.0.0.3...
Connected to 127.0.0.3.
Escape character is '^]'.
quit
Connection closed by foreign host.
"
I added the routes:
"
thor:~# ip route
127.0.0.2 dev lo scope link
127.0.0.3 dev lo scope link
192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.5
default via 192.168.1.1 dev eth0
"
I can ping em:
"thor:~# ping -c1 127.0.0.2
PING 127.0.0.2 (127.0.0.2) 56(84) bytes of data.
64 bytes from 127.0.0.2: icmp_req=1 ttl=64 time=0.021 ms
--- 127.0.0.2 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.021/0.021/0.021/0.000 ms
thor:~# ping -c1 127.0.0.3
PING 127.0.0.3 (127.0.0.3) 56(84) bytes of data.
64 bytes from 127.0.0.3: icmp_req=1 ttl=64 time=0.023 ms
--- 127.0.0.3 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.023/0.023/0.023/0.000 ms
"
Setup LVS. 127.0.0.1:9000 mapping to realservers 127.0.0.2 and
127.0.0.3, no change in port:
"
thor:~# ipvsadm -A -t 127.0.0.1:9000 -s rr
thor:~# ipvsadm -a -t 127.0.0.1:9000 -r 127.0.0.2 -m
thor:~# ipvsadm -a -t 127.0.0.1:9000 -r 127.0.0.3 -m
"
When you try this port, you are refused:
"
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused
"
In my proxy daemon's settings and logs, there is no reason to suggest
the connection it is refusing the connections, or even seeing them
through the 127.0.0.1:9000, and the same error is returned if you kill
the two daemons and leave the LVS as is.
Lastly, I tried these routes:
"
thor:/dev/shm/torctl/log# ip route
127.0.0.2 via 127.0.0.1 dev lo
127.0.0.3 via 127.0.0.1 dev lo
192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.5
default via 192.168.1.1 dev eth0
"
If you hit the RR port a few times you'll see InActConn's to the
realservers, but they never seem to get it as far as I can tell. I may
need to dig deeper.
"
thor:/dev/shm/torctl/log# ipvsadm
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
TCP localhost:9000 rr
-> localhost2:9000 Local 1 0 1
-> localhost3:9000 Local 1 0 1
"
Cheers, and thanks again for help. I should look deeper but figured I
would update with my findings so far.
Tim
On 21/03/11 04:47 PM, Joseph Mack NA3T wrote:
> On Mon, 21 Mar 2011, Tim Vaillancourt wrote:
>
>
>> This make sense of what I am seeing. I'll try to get this
>> working tonight and see if there is any useful
>> information/documentation I can provide back if there is
>> any missing.
>>
> I notice you're using lo:0. If what you want doesn't work,
> don't give up till you try it with iproute2 tools and just
> lo. I don't have any clue that it's going to make a
> difference, but aliases are always a suspect point.
>
> G.L.
>
> Joe
> --
>
> Joseph Mack NA3T EME(B,D), FM05lw North Carolina
> jmack (at) wm7d (dot) net - azimuthal equidistant map
> generator at http://www.wm7d.net/azproj.shtml
> Homepage http://www.austintek.com/ It's GNU/Linux!
>
> _______________________________________________
> 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
>
_______________________________________________
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
|