LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

ldirectord works for HTTP but Not FTP

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: ldirectord works for HTTP but Not FTP
From: "Robinson, Eric" <eric.robinson@xxxxxxxxxx>
Date: Fri, 14 Jul 2006 09:13:23 -0700
 
I'm still having problems getting FTP to work. HTTP works fine so I
temporarily removed it from ldirectord.cf so I could focus on FTP. I
stopped heartbeart and started ldirectord manually to capture the debug
information. Below is the console output.

You can see about half way down that a problem occurs when it runs...

        ipvsadm -a -t 192.168.5.100:21 -r 192.168.10.61:21 -m -w 1

..and gets...

        Destination already exists

I don't know if this is the root of the problem. If I stop ldirectord
and check status on ipvsadm, I get...

        [root@lb1 ha.d]# ipvsadm -l
        IP Virtual Server version 1.2.0 (size=4096)
        Prot LocalAddress:Port Scheduler Flags
                -> RemoteAddress:Port           Forward Weight
ActiveConn InActConn
        [root@lb1 ha.d]#

If I then add the service and the virtual server manually, as follows, I
don't get an error message...

        [root@lb1 ha.d]# ipvsadm -A -t 192.168.5.100:21 -s rr
        [root@lb1 ha.d]# ipvsadm -a -t 192.168.5.100:21 -r
192.168.10.61:21 -m -w 1
        [root@lb1 ha.d]#

Any ideas why FTP won't work?

---< log snippet >---

[root@lb1 ha.d]# /usr/sbin/ldirectord -d start
DEBUG2: Running exec(/usr/sbin/ldirectord -d start)
Running exec(/usr/sbin/ldirectord -d start)
DEBUG2: Invoking ldirectord invoked as: /usr/sbin/ldirectord start
Invoking ldirectord invoked as: /usr/sbin/ldirectord start
DEBUG2: Starting Linux Director v1.131 with pid: 3342
Starting Linux Director v1.131 with pid: 3342
DEBUG2: Running system(/sbin/ipvsadm -A -t 192.168.5.100:21 -s rr )
Running system(/sbin/ipvsadm -A -t 192.168.5.100:21 -s rr )
DEBUG2: Added virtual server: 192.168.5.100:21
Added virtual server: 192.168.5.100:21
DEBUG2: Running system(/sbin/ipvsadm -a -t 192.168.5.100:21 -r
192.168.10.61:21 -m -w 0)
Running system(/sbin/ipvsadm -a -t 192.168.5.100:21 -r 192.168.10.61:21
-m -w 0)
DEBUG2: Quiescent real server: 192.168.10.61:21 ( x 192.168.5.100:21)
(Weight set to 0)
Quiescent real server: 192.168.10.61:21 ( x 192.168.5.100:21) (Weight
set to 0)
DEBUG2: Disabled server=192.168.10.61
DEBUG2: Checking negotiate: real
server=negotiate:ftp:tcp:192.168.10.61:21::::\/checkup\.txt:ftp_is_up
(virtual=tcp:192.168.5.100:21)
DEBUG2: Checking ftp server=192.168.10.61 port=21
DEBUG2: Running system(/sbin/ipvsadm -a -t 192.168.5.100:21 -r
192.168.10.61:21 -m -w 1)
Running system(/sbin/ipvsadm -a -t 192.168.5.100:21 -r 192.168.10.61:21
-m -w 1)
Destination already exists
DEBUG2: system(/sbin/ipvsadm -a -t 192.168.5.100:21 -r 192.168.10.61:21
-m -w 1) failed:
system(/sbin/ipvsadm -a -t 192.168.5.100:21 -r 192.168.10.61:21 -m -w 1)
failed:
DEBUG2: Added real server: 192.168.10.61:21 ( x 192.168.5.100:21)
(Weight set to 1)
Added real server: 192.168.10.61:21 ( x 192.168.5.100:21) (Weight set to
1)
DEBUG2: Enabled server=192.168.10.61
DEBUG2: Checking negotiate: real
server=negotiate:ftp:tcp:192.168.10.61:21::::\/checkup\.txt:ftp_is_up
(virtual=tcp:192.168.5.100:21)
DEBUG2: Checking ftp server=192.168.10.61 port=21
DEBUG2: Enabled server=192.168.10.61
DEBUG2: Checking negotiate: real
server=negotiate:ftp:tcp:192.168.10.61:21::::\/checkup\.txt:ftp_is_up
(virtual=tcp:192.168.5.100:21)
DEBUG2: Checking ftp server=192.168.10.61 port=21
DEBUG2: Enabled server=192.168.10.61
DEBUG2: Checking negotiate: real
server=negotiate:ftp:tcp:192.168.10.61:21::::\/checkup\.txt:ftp_is_up
(virtual=tcp:192.168.5.100:21)
DEBUG2: Checking ftp server=192.168.10.61 port=21
DEBUG2: Enabled server=192.168.10.61

--
Eric Robinson





Disclaimer - July 14, 2006 
This email and any files transmitted with it are confidential and intended 
solely for LinuxVirtualServer.org users mailing list.. If you are not the named 
addressee you should not disseminate, distribute, copy or alter this email. Any 
views or opinions presented in this email are solely those of the author and 
might not represent those of Physician Select Management (PSM) or Physician's 
Managed Care (PMC). Warning: Although the message sender has taken reasonable 
precautions to ensure no viruses are present in this email, neither PSM nor PMC 
can accept responsibility for any loss or damage arising from the use of this 
email or attachments.

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