LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

problem building a connection

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: problem building a connection
From: Dan Yocum <yocum@xxxxxxxx>
Date: Fri, 02 Jul 2004 10:25:39 -0500
Hello all,

I've got a small problem with one of my services (rsync) not getting correctly set up from my director to the real servers (via direct routing, fwiw). All the other services work just fine (3 https and gsiftp) but rsync doesn't seem to want to cooperate. If I do this, by hand, the connections are built up, but I want this to be automatic, of course:

ipvsadm -a -t 131.225.7.156:873 -r 131.225.7.158:873 -g -w 10
ipvsadm -a -t 131.225.7.156:873 -r 131.225.7.159:873 -g -w 10

Until I do this, ipvsadm only reports this:

[/root]# ipvsadm -Ln
IP Virtual Server version 1.0.8 (size=65536)
Prot LocalAddress:Port Scheduler Flags
  -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
TCP  131.225.7.156:2811 wlc persistent 600
  -> 131.225.7.159:2811           Route   10     0          0
  -> 131.225.7.158:2811           Route   10     0          0
TCP  131.225.7.156:8001 wlc persistent 600
  -> 131.225.7.158:8001           Route   10     0          0
  -> 131.225.7.159:8001           Route   10     0          0
TCP  131.225.7.156:8000 wlc persistent 600
  -> 131.225.7.159:8000           Route   10     0          2
  -> 131.225.7.158:8000           Route   10     0          1
TCP  131.225.7.156:8015 wlc persistent 600
  -> 131.225.7.159:8015           Route   10     2          0
  -> 131.225.7.158:8015           Route   10     0          0
TCP  131.225.7.156:80 wlc persistent 600
  -> 131.225.7.158:80             Route   10     2          6
  -> 131.225.7.159:80             Route   10     0          2
TCP  131.225.7.156:873 wlc persistent 600

<not a misprint - the Route info is missing for the rsync service>


Some details:

Red Hat 7.3,
piranha 0.7.6,
kernel 2.4.21-4.0.1.EL.sgi

My lvs.cf file is attached.

Any help would be greatly appreciated.

Thanks,
Dan

--
Dan Yocum
Sloan Digital Sky Survey, Fermilab  630.840.6509
yocum@xxxxxxxx, http://www.sdss.org
SDSS.  Mapping the Universe.
serial_no = 205
primary = 131.225.7.180
service = lvs
backup = 0.0.0.0
heartbeat = 1
heartbeat_port = 539
keepalive = 6
deadtime = 18
network = direct
debug_level = NONE
virtual HTTP:80 {
     active = 1
     address = 131.225.7.156 eth0:1
     vip_nmask = 255.255.255.0
     port = 80
     persistent = 600
     send = "GET / HTTP/1.0\r\n\r\n"
     expect = "HTTP"
     use_regex = 0
     load_monitor = none
     scheduler = wlc
     protocol = tcp
     timeout = 6
     reentry = 15
     quiesce_server = 1
     server sdsswww1.fnal.gov {
         address = 131.225.7.158
         active = 1
         weight = 10
     }
     server sdsswww2.fnal.gov {
         address = 131.225.7.159
         active = 1
         weight = 10
     }
}
virtual RSYNC {
     active = 1
     address = 131.225.7.156 eth0:1
     vip_nmask = 255.255.255.0
     port = 873
     persistent = 600
     send = "\n"
     expect = "RSYNC"
     use_regex = 0
     load_monitor = none
     scheduler = wlc
     protocol = tcp
     timeout = 6
     reentry = 15
     quiesce_server = 1
     server sdsswww1.fnal.gov {
         address = 131.225.7.158
         active = 1
         weight = 10
     }
     server sdsswww2.fnal.gov {
         address = 131.225.7.159
         active = 1
         weight = 10
     }
}
virtual HTTP:8000 {
     active = 1
     address = 131.225.7.156 eth0:1
     vip_nmask = 255.255.255.0
     port = 8000
     persistent = 600
     send = "GET / HTTP/1.0\r\n\r\n"
     expect = "HTTP"
     use_regex = 0
     load_monitor = none
     scheduler = wlc
     protocol = tcp
     timeout = 6
     reentry = 15
     quiesce_server = 1
     server sdsswww1.fnal.gov {
         address = 131.225.7.158
         active = 1
         weight = 10
     }
     server sdsswww2.fnal.gov {
         address = 131.225.7.159
         active = 1
         weight = 10
     }
}
virtual HTTP:8001 {
     active = 1
     address = 131.225.7.156 eth0:1
     vip_nmask = 255.255.255.0
     port = 8001
     persistent = 600
     send = "GET / HTTP/1.0\r\n\r\n"
     expect = "HTTP"
     use_regex = 0
     load_monitor = none
     scheduler = wlc
     protocol = tcp
     timeout = 6
     reentry = 15
     quiesce_server = 1
     server sdsswww1.fnal.gov {
         address = 131.225.7.158
         active = 1
         weight = 10
     }
     server sdsswww2.fnal.gov {
         address = 131.225.7.159
         active = 1
         weight = 10
     }
}
virtual HTTP:8015 {
     active = 1
     address = 131.225.7.156 eth0:1
     vip_nmask = 255.255.255.0
     port = 8015
     persistent = 600
     send = "GET / HTTP/1.0\r\n\r\n"
     expect = "HTTP"
     use_regex = 0
     load_monitor = none
     scheduler = wlc
     protocol = tcp
     timeout = 6
     reentry = 15
     quiesce_server = 1
     server sdsswww1.fnal.gov {
         address = 131.225.7.158
         active = 1
         weight = 10
     }
     server sdsswww2.fnal.gov {
         address = 131.225.7.159
         active = 1
         weight = 10
     }
}
virtual GSIFTP:2811 {
     active = 1
     address = 131.225.7.156 eth0:1
     vip_nmask = 255.255.255.0
     port = 2811
     persistent = 600
     send = "quit"
     expect = "220"
     use_regex = 0
     load_monitor = none
     scheduler = wlc
     protocol = tcp
     timeout = 6
     reentry = 15
     quiesce_server = 1
     server sdsswww1.fnal.gov {
         address = 131.225.7.158
         active = 1
         weight = 10
     }
     server sdsswww2.fnal.gov {
         address = 131.225.7.159
         active = 1
         weight = 10
     }
}
<Prev in Thread] Current Thread [Next in Thread>