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