| 1 | = GridFTP server installation = |
| 2 | * install grid-ftp server using the YUM Package Manager: |
| 3 | It is recommended to take the gridFTP server from the IGE (Initiative for Globus in Europe) repository. |
| 4 | Please configure IGE repositories |
| 5 | {{{#!sh |
| 6 | cat > /etc/yum.repos.d/IGE.repo << EOF |
| 7 | [IGE] |
| 8 | name=IGE |
| 9 | baseurl=http://repo-rpm.ige-project.eu/sl/sl5/x86_64/ |
| 10 | enabled=1 |
| 11 | gpgcheck=1 |
| 12 | gpgkey=http://repo-rpm.ige-project.eu/RPM-GPG-KEY-IGE |
| 13 | EOF |
| 14 | }}} |
| 15 | |
| 16 | {{{#!sh |
| 17 | cat > /etc/yum.repos.d/IGE-updates.repo << EOF |
| 18 | [IGE-updates] |
| 19 | name=IGE - Updates |
| 20 | baseurl=http://repo-rpm.ige-project.eu/sl/updates/sl5/x86_64/ |
| 21 | enabled=1 |
| 22 | gpgcheck=1 |
| 23 | gpgkey=http://repo-rpm.ige-project.eu/RPM-GPG-KEY-IGE |
| 24 | }}} |
| 25 | |
| 26 | '''IMPORTANT:''' If for any reason you do not want to use IGE repos, you can alternatively configure the system to use EPEL (Extra Packages for Enterprise Linux) repository. |
| 27 | * The configuration can be done by installation of yum-conf-epel.noarch package using the YUM Package Manager. |
| 28 | {{{ |
| 29 | #!div style="font-size: 90%" |
| 30 | {{{#!sh |
| 31 | yum install yum-conf-epel.noarch |
| 32 | }}} |
| 33 | }}} |
| 34 | |
| 35 | Install the gridFTP server package: |
| 36 | {{{ |
| 37 | #!div style="font-size: 90%" |
| 38 | {{{#!sh |
| 39 | yum install globus-gridftp-server-progs.x86_64 |
| 40 | }}} |
| 41 | }}} |
| 42 | |
| 43 | |
| 44 | The grid-ftp server requires the X.509 certificate and key to be present in the following locations |
| 45 | * ''/etc/grid-security/hostcert.pem'' |
| 46 | * ''/etc/grid-security/hostkey.pem'' |
| 47 | |
| 48 | The GridFTP server has to be configured to know the range of opened ports for connections. |
| 49 | Please edit the /etc/xinetd.d/gsiftp file and set the GLOBUS_TCP_PORT_RANGE environment variable. |
| 50 | |
| 51 | {{{#!sh |
| 52 | service gsiftp |
| 53 | { |
| 54 | instances = 100 |
| 55 | per_source = 50 |
| 56 | socket_type = stream |
| 57 | wait = no |
| 58 | user = root |
| 59 | env += GLOBUS_TCP_PORT_RANGE=20000,25000 |
| 60 | server = /usr/sbin/globus-gridftp-server |
| 61 | server_args = -i -l /var/log/globus-gridftp.log -disable-usage-stats |
| 62 | server_args += -d ERROR,WARN |
| 63 | log_on_success += DURATION |
| 64 | nice = 10 |
| 65 | disable = no |
| 66 | } |
| 67 | }}} |
| 68 | |
| 69 | * If needed please install the xinetd tool first |
| 70 | {{{#!sh |
| 71 | yum install xinetd.x86_64 |
| 72 | }}} |
| 73 | |
| 74 | IMPORTANT: Do not forget to start or reload xinetd service. |
| 75 | |
| 76 | {{{#!default |
| 77 | service xinetd reload |
| 78 | }}} |
| 79 | |
| 80 | {{{#!default |
| 81 | service xinetd start |
| 82 | }}} |
| 83 | |
| 84 | We also recommend to adjust system wide TCP keepalive parameters for reliability reasons: |
| 85 | {{{ |
| 86 | echo "600" > /proc/sys/net/ipv4/tcp_keepalive_time |
| 87 | echo "75" > /proc/sys/net/ipv4/tcp_keepalive_intvl |
| 88 | echo "9" > /proc/sys/net/ipv4/tcp_keepalive_probes |
| 89 | }}} |
| 90 | In order to make the changes persistent add it also to the `/etc/sysctl.conf` |
| 91 | |