欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  科技

opensciencegrid - GridFTP 安装

程序员文章站 2022-05-18 09:22:48
最近配置一个GridFTP 用于测试其传输FTP性能, 在这里简单记录,备忘;使用本教程可以简单起一个GridFTP用于测试服务; 预配置环境: 测试系统:CentOS 7 1806 配置Yum仓库:https://opensciencegrid.org/docs/common/yum/ 安装Gri ......

最近配置一个gridftp 用于测试其传输ftp性能, 在这里简单记录,备忘;使用本教程可以简单起一个gridftp用于测试服务;

预配置环境:

测试系统:centos 7 1806 

配置yum仓库: 

安装gridftp:

参考文档:

 (管理员手册)

 

yum install osg-gridftp

也可以直接从epel中直接安装:

yum install globus-gridftp-server

启动gridftp匿名服务器:(带有认证的没有配置成功,也不想试了)

globus-gridftp-server -control-interface 0.0.0.0  -aa -p 5000  -anonymous-user 1000  # root 用户使用 1000 表示本地任意一个非root用户
globus-gridftp-server -control-interface 0.0.0.0  -aa -p 5000  # 非 root 用户使用
globus-gridftp-server -control-interface 0.0.0.0  -aa  -p 8080 -anonymous-user 1040 -home-dir /tmp/ -auth-level 0 -allow-root

更多选项可以使用 --help 查看;

安装  globus-url-copy 命令:

yum install globus-gass-copy-progs

生成测试文件:

dd if=/dev/zero of=size80m bs=8k count=10240

输出测试日志:

tail -f /var/log/gridftp-auth.log

运行匿名用户测试:

root@localhost ~# globus-url-copy -v file:///root/size80m ftp://127.0.0.1:5000/tmp/size80m
source: file:///root/
dest:   ftp://127.0.0.1:5000/tmp/
  size80m

测试成功:

[21230] thu sep 19 12:29:09 2019 :: new connection from: localhost:40224
[21230] thu sep 19 12:29:09 2019 :: user anonymous successfully authorized.
[21230] thu sep 19 12:29:09 2019 :: starting to transfer "/tmp/size80m".
[21230] thu sep 19 12:29:12 2019 :: finished transferring "/tmp/size80m".
[21230] thu sep 19 12:29:12 2019 :: closed connection from localhost:40224
[20327] thu sep 19 12:29:12 2019 :: child process 21230 ended with rc = 0

安装gridftp 客户端:

[root@xuyaowen ~]# yum search gridftp | grep -i client
last metadata expiration check: 2:28:09 ago on thu 19 sep 2019 11:44:29 am cst.
edg-gridftp-client.x86_64 : command line clients to gridftp libraries
uberftp.x86_64 : gridftp-enabled ftp client  (听说是最好用的工具, 但是我一运行就崩溃,最终还是使用 globus-url-copy 命令进行测试)
globus-ftp-client.x86_64 : grid community toolkit - gridftp client library
globus-ftp-client-devel.x86_64 : grid community toolkit - gridftp client library

测试吞吐:

 # test network throughput
 globus-url-copy -vb -p 4 ftp://10.134.150.5:5000/dev/zero file:///dev/null

顺序读:

#  tmp globus-url-copy -vb -p 4 ftp://10.134.150.5:5000/dev/zero file:///dev/null

顺序写:

#  tmp globus-url-copy -vb -p 4 file:///dev/zero ftp://10.134.150.5:5000/dev/null

使用udt:

globus-gridftp-server -control-interface 0.0.0.0  -aa  -p 5000 -anonymous-user 1040 -home-dir /tmp/ -auth-level 0 -allow-root -allow-udt
globus-url-copy -vb -p 4 -udt ftp://10.134.150.5:5000/dev/zero file:///dev/null

保持更新,如果对您有帮助或者对配置过程有疑问,请关注cnblogs.com/xuyaowen,并留言;

其他可用参考文档:

 

globus-url-copy 使用说明:

globus-url-copy(1)                                                           grid community toolkit manual                                                          globus-url-copy(1)

name
       globus-url-copy - globus-url-copy

synopsis
       globus-url-copy [options] source-url destination-url

description
       the globus-url-copy program is a command line tool for multi-protocol data movement. it supports gsiftp:// (gridftp), ftp://, http://, https://, sshftp:// and file:///
       protocol specifiers in the url.

options
       -help, -usage
           print help.

       -versions
           print the versions of all modules that this program uses

       -c, -continue-on-error
           do not die after any errors. by default, program will exit after most errors.

       -a, -ascii
           convert the file to/from ascii format to/from local file format

       -b, -binary
           do not apply any conversion to the files.  default

       -f filename
           read a list of url pairs from filename. each line should contain sourceurl desturl. enclose urls with spaces in double qoutes ("). blank lines and lines beginning with #
           will be ignored.

       -cd, -create-dest
           create destination directory if needed.

       -r
           copy files in subdirectories

       -fast
           recommended when using gridftp servers. use mode e for all data transfers, including reusing data channels between list and transfer operations.

       -t seconds
           run the transfer for this number of seconds and then end. useful for performance testing or forced restart loops.

       -q, -quiet
           suppress all output for successful operation.

       -v, -verbose
           display urls being transferred

       -vb, -verbose-perf
           during the transfer, display the number of bytes transferred and the transfer rate per second. show urls being transferred

       -dbg, -debugftp
           debug ftp connections. prints control channel communication to stderr

       -rst, -restart
           restart failed ftp operations.

       -rst-retries retries
           the maximum number of times to retry the operation before giving up on the transfer. use 0 for infinite. default is 5.

       -rst-interval seconds
           the interval in seconds to wait after a failure before retrying the transfer. use 0 for an exponential backoff. default is 0.

       -rst-timeout seconds
           maximum time after a failure to keep retrying. use 0 for no timeout. default is 0.

       -stall-timeout seconds, -st seconds
           how long before cancelling/restarting a transfer with no data movement. set to 0 to disable. default is 600 seconds.

       -df filename, -dumpfile filename
           path to a file where untransferred urls will be saved for later restarting. resulting file is the same format as the -f input file. if file exists, it will be read and all
           other url input will be ignored.

       -do filename, -dump-only filename
           perform no write operations on the destination. instead, all files that would be transferred are enumerated and dumped to the specified file. resulting file is the same
           format as the -f input file. note: if you intend to use this file as input for a future transfer, the -create-dest option will be required if any destination directories
           do not already exist.

       -rp, -relative-paths
           the path portion of ftp urls will be interpreted as relative to the user’s starting directory on the server. by default, all paths are root-relative. when this flag is
           set, the path portion of the ftp url must start with %2f if it designates a root-relative path.

       -s subject, -subject subject
           use this subject to match with both the source and dest servers.

       -ss subject, -source-subject subject
           use this subject to match with the source server

       -ds subject, -dest-subject subject
           use this subject to match with the destination server.

       -tcp-bs size, -tcp-buffer-size size
           specify the size (in bytes) of the buffer to be used by the underlying ftp data channels.

       -bs block size, -block-size block size
           specify the size (in bytes) of the buffer to be used by the underlying transfer methods.

       -p parallelism, -parallel parallelism
           specify the number of parallel data connections should be used.

       -notpt, -no-third-party-transfers
           turn third-party transfers off (on by default).

       -nodcau, -no-data-channel-authentication
           turn off data channel authentication for ftp transfers.

       -dcsafe, -data-channel-safe
           set data channel protection mode to safe

       -dcpriv, -data-channel-private
           set data channel protection mode to private

       -off, -partial-offset
           offset for partial ftp file transfers, defaults to 0.

       -len, -partial-length
           length for partial ftp file transfers, used only for the source url, defaults the full file.

       -list url
           list the files located at url.

       -stripe
           enable striped transfers on supported servers.

       -striped-block-size, -sbs
           set layout mode and block size for striped transfers. if not set, server defaults will be used. if set to 0, partitioned mode will be used. if set to > 0, blocked mode
           will be used, with this as the block size.

       -ipv6
           use ipv6 when available (experimental)

       -udt
           use udt, a reliable udp based transport protocol, for data transfers

       -g2, -gridftp2
           use gridftp v2 protocol enhancements when possible.

       -dp, -delayed-pasv
           enable delayed passive.

       -mn name, -module-name name
           set the back-end storage module to use for both the source and destination in a gridftp transfer.

       -mp parameters, -module-parameters parameters
           set the back-end storage module arguments to use for both the source and destination in a gridftp transfer.

       -smn name, -src-module-name name
           set the back-end storage module to use for the source in a gridftp transfer.

       -smp parameters, -src-module-parameters parameters
           set the back-end storage module arguments to use for the source in a gridftp transfer.

       -dmn name, -dst-module-name name
           set the back-end storage module to use for the destination in a gridftp transfer.

       -dmp parameters, -dst-module-parameters parameters
           set the back-end storage module arguments to use for the destination in a gridftp transfer.

       -aa file, -authz-assert file
           use the assertions in file to authorize the access with both source and destination servers.

       -saa file, -src-authz-assert file
           use the assertions in this file to authorize the access with source server.

       -daa file, -dst-authz-assert file
           use the assertions in this file to authorize the access with dest server.

       -cache-aa, -cache-authz-assert
           cache the authz assertion for subsequent transfers.

       -cache-saa, -cache-src-authz-assert
           cache the src authz assertion for subsequent transfers.

       -cache-daa, -cache-dst-authz-assert
           cache the dst authz assertion for subsequent transfers.

       -pipeline, -pp
           enable pipelining support for multi-file ftp transfers. currently third-party transfers benefit from this.  experimental

       -concurrency, -cc
           number of concurrent ftp connections to use for multiple transfers.

       -nl-bottleneck, -nlb
           use netlogger to estimate speeds of disk and network read/write system calls, and attempt to determine the bottleneck component.

       -sp commands, -src-pipe commands
           set the source end of a remote transfer to use piped in input with the given command line. do not use with -fsstack.

       -dp commands, -dst-pipe commands
           set the destination end of a remote transfer to write data to then standard input of the program run via the given command line. do not use with -fsstack.

       -pipe commands
           sets both -src-pipe and -dst-pipe to the same thing.

       -dcstack stack, -data-channel-stack stack
           set the xio driver stack for the network on both the source and the destination. both must be gridftp servers. the stack should contain all network drivers to use, in the
           order specified from bottom to top (e.g. -dcstack tcp,gsi). if the gsi driver is not included in the stack and data channel authentication is enabled, it will be inserted
           above the transport driver in the stack.

       -fsstack stack, -file-system-stack stack
           set the xio driver stack for the disk on both the source and the destination. both must be gridftp servers. the stack should contain all file system drivers to use, in the
           order specified from bottom to top.

       -src-dcstack stack, -source-data-channel-stack stack
           set the xio driver stack for the network on the source gridftp server. see -dcstack above for description of the stack string.

       -src-fsstack stack, -source-file-system-stack stack
           set the xio driver stack for the disk on the source gridftp server. see -fsstack above for description of the stack string.

       -dst-dcstack stack, -dest-data-channel-stack stack
           set the xio driver stack for the network on the destination gridftp server. see -dcstack above for description of the stack string.

       -dst-fsstack stack, -dest-file-system-stack stack
           set the xio driver stack for the disk on the destination gridftp server. see -fsstack above for description of the stack string.

       -cred path
           set the credentials to use for both ftp connections.

       -src-cred cred-file, -sc cred-file
           set the credentials to use for source ftp connections.

       -dst-cred cred-file, -dc cred-file
           set the credentials to use for destination ftp connections.

       -af filename, -alias-file filename
           file with mapping of logical host aliases to lists of physical hosts. when used with multiple concurrent connections, each connection uses the next host in the list. each
           line should either be an alias, noted with the @ symbol, or a hostname[:port]. currently, only the aliases @source and @destination are valid, and they are used for every
           source or destination url.

       -sync
           only transfer files where the destination does not exist or differs from the source. -sync-level controls how to determine if files differ.

       -sync-level number
           criteria for determining if files differ when performing a sync transfer. the default sync level is 2. the available levels are:

           ·   level 0 will only transfer if the destination does not exist.

           ·   level 1 will transfer if the size of the destination does not match the size of the source.

           ·   level 2 will transfer if the time stamp of the destination is older than the time stamp of the source.

           ·   level 3 will perform a checksum of the source and destination and transfer if the checksums do not match. the default algorithm used for this checksum is md5, but
               other algorithms can be specified with the -algo parameter.

       -checksum-alg checksum-algorithm
           set the algorithm type to use for all checksum operations during the transfer.

       -verify-checksum
           perform a checksum on the source and destination after each file transfer and compare the two. if they do not match, fail the transfer. the default algorithm used for this
           checksum is md5, but other algorithms can be specified with the -checksum-alg parameter.

author
       copyright © 1999-2016 university of chicago

grid community toolkit 6                                                              03/31/2018                                                                    globus-url-copy(1)

globus-gridftp-server 使用说明:

globus-gridftp-ser(8)                                                        grid community toolkit manual                                                       globus-gridftp-ser(8)

name
       globus-gridftp-server - the globus gridftp server daemon

synopsis
       globus-gridftp-server options

description
       the globus-gridftp-server program is a ftp server with support for gridftp protocol extensions, including strong authentication, parallel data transfers, and parallel data
       layouts.

options
       the list below contains the command-line options for the server, and also the name of the configuration file entry that implements that option. note that any boolean option
       can be negated on the command line by preceding the specified option with -no- or -n. example: -no-cas or -nf.

   informational options
       -h,-help
           show usage information and exit.

           this option can also be set in the configuration file as help. the default value of this option is false.

       -hh,-longhelp
           show more usage information and exit.

           this option can also be set in the configuration file as longhelp. the default value of this option is false.

       -v,-version
           show version information for the server and exit.

           this option can also be set in the configuration file as version. the default value of this option is false.

       -v,-versions
           show version information for all loaded globus libraries and exit.

           this option can also be set in the configuration file as versions. the default value of this option is false.

   modes of operation
       -i,-inetd
           run under an inetd service.

           this option can also be set in the configuration file as inetd. the default value of this option is false.

       -s,-daemon
           run as a daemon. all connections will fork off a new process and setuid if allowed.

           this option can also be set in the configuration file as daemon. the default value of this option is true.

       -s,-detach
           run as a background daemon detached from any controlling terminals.

           this option can also be set in the configuration file as detach. the default value of this option is false.

       -ssh
           run over a connected ssh session.

           this option can also be set in the configuration file as ssh. the default value of this option is false.

       -exec string
           for statically compiled or non-globus_location standard binary locations, specify the full path of the server binary here. only needed when run in daemon mode.

           this option can also be set in the configuration file as exec.

       -chdir
           change directory when the server starts. this will change directory to the dir specified by the chdir_to option.

           this option can also be set in the configuration file as chdir. the default value of this option is true.

       -chdir-to string
           directory to chdir to after starting. will use / if not set. note that this is the directory of the process, not the client’s home directory.

           this option can also be set in the configuration file as chdir_to.

       -threads number
           enable threaded operation and set the number of threads. the default is 0, which is non-threaded. when threading is required, a thread count of 1 or 2 should be
           sufficient.

           this option can also be set in the configuration file as threads.

       -f,-fork
           server will fork for each new connection. disabling this option is only recommended when debugging. note that non-forked servers running as root will only accept a single
           connection, and then exit.

           this option can also be set in the configuration file as fork. the default value of this option is true.

       -1,-single
           exit after a single connection.

           this option can also be set in the configuration file as single. the default value of this option is false.

       -chroot-path string
           path to become the new root after authentication. this path must contain a valid certificate structure, /etc/passwd, and /etc/group. the command
           globus-gridftp-server-setup-chroot can help create a suitable directory structure.

           this option can also be set in the configuration file as chroot_path.

   authentication, authorization, and security options
       -auth-level number
           add levels together to use more than one. if not set uses level 2 for front ends and level 1 for data nodes. note that levels 2 and 4 imply level 1 as well.

               0 = disables all authorization checks.
               1 = authorize identity.
               2 = authorize all file/resource accesses.
               4 = disable changing process uid to authenticated user (no
                   setuid) -- do not use this when process is started as root.

           this option can also be set in the configuration file as auth_level.

       -process-user string
           user to setuid to upon login for all connections. only applies when running as root.

           this option can also be set in the configuration file as process_user.

       -process-group string
           group to setgid to upon login for all connections. if unset, the default group of process_user will be used.

           this option can also be set in the configuration file as process_group.

       -ipc-allow-from string
           only allow connections from these source ip addresses. specify a comma separated list of ip address fragments. a match is any ip address that starts with the specified
           fragment. example: 192.168.1.  will match and allow a connection from 192.168.1.45. note that if this option is used any address not specifically allowed will be denied.

           this option can also be set in the configuration file as ipc_allow_from.

       -ipc-deny-from string
           deny connections from these source ip addresses. specify a comma separated list of ip address fragments. a match is any ip address that starts with the specified fragment.
           example: 192.168.2.  will match and deny a connection from 192.168.2.45.

           this option can also be set in the configuration file as ipc_deny_from.

       -allow-from string
           only allow connections from these source ip addresses. specify a comma separated list of ip address fragments. a match is any ip address that starts with the specified
           fragment. example: 192.168.1.  will match and allow a connection from 192.168.1.45. note that if this option is used any address not specifically allowed will be denied.

           this option can also be set in the configuration file as allow_from.

       -deny-from string
           deny connections from these source ip addresses. specify a comma separated list of ip address fragments. a match is any ip address that starts with the specified fragment.
           example: 192.168.2.  will match and deny a connection from 192.168.2.45.

           this option can also be set in the configuration file as deny_from.

       -encrypt-data
           require encrypted data channels. this will cause an error and prevent all transfers in which the client does not request an authenticated and encrypted data channel.

           this option can also be set in the configuration file as encrypt_data. the default value of this option is false.

       -si,-secure-ipc
           use gsi security on ipc channel.

           this option can also be set in the configuration file as secure_ipc. the default value of this option is true.

       -ia string,-ipc-auth-mode string
           set gsi authorization mode for the ipc connection. options are: none, host, self or subject:[subject].

           this option can also be set in the configuration file as ipc_auth_mode. the default value of this option is host.

       -aa,-allow-anonymous
           allow clear text anonymous access. if server is running as root anonymous_user must also be set. disables ipc security.

           this option can also be set in the configuration file as allow_anonymous. the default value of this option is false.

       -anonymous-names-allowed string
           comma separated list of names to treat as anonymous users when allowing anonymous access. if not set, the default names of anonymous and ftp will be allowed. use * to
           allow any username.

           this option can also be set in the configuration file as anonymous_names_allowed.

       -anonymous-user string
           user to setuid to for an anonymous connection. only applies when running as root.

           this option can also be set in the configuration file as anonymous_user.

       -anonymous-group string
           group to setgid to for an anonymous connection. if unset, the default group of anonymous_user will be used.

           this option can also be set in the configuration file as anonymous_group.

       -sharing-dn string
           allow sharing when using the supplied dn. a client connected with these credentials will be able to access any user for which sharing is enabled.

           this option can also be set in the configuration file as sharing_dn.

       -sharing-state-dir string
           full path to a directory that will contain files used by gridftp to control sharing access for individual local accounts. the special variables $home and $user can be used
           to create a dynamic path that is unique to each local account. this pathmust be writable by the associated account. the default path is $home/.globus/sharing/. this must
           refer to a path on the filesystem, not a path that is only accessible via a dsi plugin.

           this option can also be set in the configuration file as sharing_state_dir.

       -sharing-control
           allow a local user account to control its own sharing access via special gridftp client commands. the user account must have filesystem write access to the sharing state
           dir.

           this option can also be set in the configuration file as sharing_control. the default value of this option is true.

       -sharing-rp string
           sharing specific path restrictions. this completely replaces the normal path restrictions (-rp) when an account is being shared by a sharing-dn login.follows normal path
           restriction semantics.

           this option can also be set in the configuration file as sharing_rp.

       -sharing-users-allow string
           comma separated list of usernames that are allowed to share unless matched in the user deny lists. if this list is set, users that are not included will be denied unless
           matched in the group allow list.

           this option can also be set in the configuration file as sharing_users_allow.

       -sharing-users-deny string
           comma separated list of usernames that are denied sharing even if matched in the user or group allow lists.

           this option can also be set in the configuration file as sharing_users_deny.

       -sharing-groups-allow string
           comma separated list of groups whose members are allowed to share unless matched in the user or group deny lists. if this list is set, groups that are not included will be
           denied unless matched in the user allow list.

           this option can also be set in the configuration file as sharing_groups_allow.

       -sharing-groups-deny string
           comma separated list of groups whose members will be denied sharing unless matched in the user allow list.

           this option can also be set in the configuration file as sharing_groups_deny.

       -allow-root
           allow clients to be mapped to the root account.

           this option can also be set in the configuration file as allow_root. the default value of this option is false.

       -allow-disabled-login
           do not check if a user’s system account is disabled before allowing login.

           this option can also be set in the configuration file as allow_disabled_login. the default value of this option is false.

       -password-file string
           enable clear text access and authenticate users against this /etc/passwd formatted file.

           this option can also be set in the configuration file as pw_file.

       -connections-max number
           maximum concurrent connections allowed. only applies when running in daemon mode. unlimited if not set.

           this option can also be set in the configuration file as connections_max.

       -connections-disabled
           disable all new connections. for daemon mode, issue a sighup to the server process after changing the config file in order to not affect ongoing connections.

           this option can also be set in the configuration file as connections_disabled. the default value of this option is false.

       -offline-msg string
           custom message to be displayed to clients when the server is offline via the connections_disabled or connections_max = 0 options.

           this option can also be set in the configuration file as offline_msg.

       -disable-command-list string
           a comma separated list of client commands that will be disabled.

           this option can also be set in the configuration file as disable_command_list.

       -authz-callouts,-cas
           enable the gsi authorization callout framework, for callouts such as cas.

           this option can also be set in the configuration file as cas. the default value of this option is true.

       -use-home-dirs
           set the starting directory to the authenticated users home dir. disabling this is the same as setting -home-dir /.

           this option can also be set in the configuration file as use_home_dirs. the default value of this option is true.

       -home-dir string
           set a path to override the system defined home/starting directory for authenticated users. the special variable strings $user and $home may be used. the authenticated
           username will be substituted for $user, and the user’s real home dir will be substituted for $home. be sure to escape the $ character if using these on the command line.

           this option can also be set in the configuration file as home_dir.

       -rp string,-restrict-paths string
           a comma separated list of full paths that clients may access. each path may be prefixed by r and/or w, denoting read or write access, otherwise full access is granted. if
           a given path is a directory, all contents and subdirectories will be given the same access. order of paths does not matter — the permissions on the longest matching path
           will apply. the special character ~ will be replaced by the authenticated user’s home directory, or the -home-dir option, if used. note that if the home directory is not
           accessible, \~ will be set to /. by default all paths are allowed, and access control is handled by the os. in a striped or split process configuration, this should be set
           on both the frontend and data nodes.

           this option can also be set in the configuration file as restrict_paths.

       -rp-follow-symlinks
           do not verify that a symlink points to an allowed path before following. by default, symlinks are followed only when they point to an allowed path. by enabling this
           option, symlinks will be followed even if they point to a path that is otherwise restricted.

           this option can also be set in the configuration file as rp_follow_symlinks. the default value of this option is false.

       -em string,-acl string
           a comma separated list of acl or event modules to load.

           this option can also be set in the configuration file as acl.

   logging options
       -d string,-log-level string
           log level. a comma separated list of levels from: error, warn, info, transfer, dump, all. transfer includes the same statistics that are sent to the separate transfer log
           when -log-transfer is used. example: error,warn,info. you may also specify a numeric level of 1-255. the default level is error.

           this option can also be set in the configuration file as log_level. the default value of this option is error.

       -log-module string
           globus_logging module that will be loaded. if not set, the default stdio module will be used, and the logfile options apply. built in modules are stdio and syslog. log
           module options may be set by specifying module:opt1=val1:opt2=val2. available options for the built in modules are interval and buffer, for buffer flush interval and
           buffer size, respectively. the default options are a 64k buffer size and a 5 second flush interval. a 0 second flush interval will disable periodic flushing, and the
           buffer will only flush when it is full. a value of 0 for buffer will disable buffering and all messages will be written immediately. example: -log-module
           stdio:buffer=4096:interval=10

           this option can also be set in the configuration file as log_module.

       -l string,-logfile string
           path of a single file to log all activity to. if neither this option or log_unique is set, logs will be written to stderr unless the execution mode is detached or inetd,
           in which case logging will be disabled.

           this option can also be set in the configuration file as log_single.

       -l string,-logdir string
           partial path to which gridftp.(pid).log will be appended to construct the log filename. example: -l /var/log/gridftp/ will create a separate log (
           /var/log/gridftp/gridftp.xxxx.log ) for each process (which is normally each new client session). if neither this option or log_single is set, logs will be written to
           stderr unless the execution mode is detached or inetd, in which case logging will be disabled.

           this option can also be set in the configuration file as log_unique.

       -z string,-log-transfer string
           log netlogger style info for each transfer into this file. you may also use the log-level of transfer to include this info in the standard log.

           this option can also be set in the configuration file as log_transfer.

       -log-filemode string
           file access permissions of log files. should be an octal number such as 0644.

           this option can also be set in the configuration file as log_filemode.

       -disable-usage-stats
           usage statistics collection is no longer supported. this option is ignored.

           this option can also be set in the configuration file as disable_usage_stats. the default value of this option is true.

       -usage-stats-target string
           usage statistics collection is no longer supported. this option is ignored.

           this option can also be set in the configuration file as usage_stats_target.

       -usage-stats-id string
           usage statistics collection is no longer supported. this option is ignored.

           this option can also be set in the configuration file as usage_stats_id.

   single and striped remote data node options
       -r string,-remote-nodes string
           comma separated list of remote node contact strings.

           this option can also be set in the configuration file as remote_nodes.

       -hybrid
           when a server is configured for striped operation with the remote_nodes option, both a frontend and backend process are started even if the client does not request
           multiple stripes. this option will start backend processes only when striped operation is requested by the client, while servicing non-striped requests with a single
           frontend process.

           this option can also be set in the configuration file as hybrid. the default value of this option is false.

       -dn,-data-node
           this server is a backend data node.

           this option can also be set in the configuration file as data_node. the default value of this option is false.

       -sbs number,-stripe-blocksize number
           size in bytes of sequential data that each stripe will transfer.

           this option can also be set in the configuration file as stripe_blocksize. the default value of this option is 1048576.

       -stripe-count number
           number of number stripes to use per transfer when this server controls that number. if remote nodes are statically configured (via -r or remote_nodes), this will be set to
           that number of nodes, otherwise the default is 1.

           this option can also be set in the configuration file as stripe_count.

       -sl number,-stripe-layout number
           stripe layout.

               1 = partitioned
               2 = blocked

           this option can also be set in the configuration file as stripe_layout. the default value of this option is 2.

       -stripe-blocksize-locked
           do not allow client to override stripe blocksize with the opts retr command

           this option can also be set in the configuration file as stripe_blocksize_locked. the default value of this option is false.

       -stripe-layout-locked
           do not allow client to override stripe layout with the opts retr command

           this option can also be set in the configuration file as stripe_layout_locked. the default value of this option is false.

   disk options
       -bs number,-blocksize number
           size in bytes of data blocks to read from disk before posting to the network.

           this option can also be set in the configuration file as blocksize. the default value of this option is 262144.

       -sync-writes
           flush disk writes before sending a restart marker. this attempts to ensure that the range specified in the restart marker has actually been committed to disk. this option
           will probably impact performance, and may result in different behavior on different storage systems. see the manpage for sync() for more information.

           this option can also be set in the configuration file as sync_writes. the default value of this option is false.

       -perms string
           set the default permissions for created files. should be an octal number such as 0644. the default is 0644. note: if umask is set it will affect this setting — i.e. if the
           umask is 0002 and this setting is 0666, the resulting files will be created with permissions of 0664.

           this option can also be set in the configuration file as perms.

       -file-timeout number
           timeout in seconds for all disk accesses. a value of 0 disables the timeout.

           this option can also be set in the configuration file as file_timeout.

   network options
       -p number,-port number
           port on which a frontend will listen for client control channel connections, or on which a data node will listen for connections from a frontend. if not set a random port
           will be chosen and printed via the logging mechanism.

           this option can also be set in the configuration file as port.

       -control-interface string
           hostname or ip address of the interface to listen for control connections on. if not set will listen on all interfaces.

           this option can also be set in the configuration file as control_interface.

       -data-interface string
           hostname or ip address of the interface to use for data connections. if not set will use the current control interface.

           this option can also be set in the configuration file as data_interface.

       -ipc-interface string
           hostname or ip address of the interface to use for ipc connections. if not set will listen on all interfaces.

           this option can also be set in the configuration file as ipc_interface.

       -hostname string
           effectively sets the above control_interface, data_interface and ipc_interface options.

           this option can also be set in the configuration file as hostname.

       -ipc-port number
           port on which the frontend will listen for data node connections.

           this option can also be set in the configuration file as ipc_port.

       -control-preauth-timeout number
           time in seconds to allow a client to remain connected to the control channel without activity before authenticating.

           this option can also be set in the configuration file as control_preauth_timeout. the default value of this option is 120.

       -control-idle-timeout number
           time in seconds to allow a client to remain connected to the control channel without activity.

           this option can also be set in the configuration file as control_idle_timeout. the default value of this option is 600.

       -ipc-idle-timeout number
           idle time in seconds before an unused ipc connection will close.

           this option can also be set in the configuration file as ipc_idle_timeout. the default value of this option is 900.

       -ipc-connect-timeout number
           time in seconds before canceling an attempted ipc connection.

           this option can also be set in the configuration file as ipc_connect_timeout. the default value of this option is 60.

       -allow-udt
           enable protocol support for udt with nat traversal if the udt driver is available. requires threads.

           this option can also be set in the configuration file as allow_udt. the default value of this option is false.

       -port-range string
           port range to use for incoming connections. the format is "startport,endport". this, along with -data-interface, can be used to enable operation behind a firewall and/or
           when nat is involved. this is the same as setting the environment variable globus_tcp_port_range.

           this option can also be set in the configuration file as port_range.

       -epsv-ip
           adds an ipv6 address to epsv response. breaks rfc 2428, but allows redirection to work with ipv6.

           this option can also be set in the configuration file as epsv_ip. the default value of this option is false.

   user messages
       -banner string
           message to display to the client before authentication.

           this option can also be set in the configuration file as banner.

       -banner-file string
           file to read banner message from.

           this option can also be set in the configuration file as banner_file.

       -banner-terse
           when this is set, the minimum allowed banner message will be displayed to unauthenticated clients.

           this option can also be set in the configuration file as banner_terse. the default value of this option is false.

       -banner-append
           when this is set, the message set in the banner or banner_file option will be appended to the default banner message rather than replacing it.

           this option can also be set in the configuration file as banner_append. the default value of this option is false.

       -version-tag string
           add an identifying string to the existing toolkit version. this is displayed in the default banner message, the site version command, and usage stats.

           this option can also be set in the configuration file as version_tag.

       -login-msg string
           message to display to the client after authentication.

           this option can also be set in the configuration file as login_msg.

       -login-msg-file string
           file to read login message from.

           this option can also be set in the configuration file as login_msg_file.

   module options
       -dsi string
           data storage interface module to load. file and remote modules are defined by the server. if not set, the file module is loaded, unless the remote option is specified, in
           which case the remote module is loaded. an additional configuration string can be passed to the dsi using the format [module name]:[configuration string] to this option.
           the format of the configuration string is defined by the dsi being loaded.

           this option can also be set in the configuration file as load_dsi_module.

       -allowed-modules string
           comma separated list of eret/esto modules to allow, and optionally specify an alias for. example: module1,alias2:module2,module3 (module2 will be loaded when a client asks
           for alias2).

           this option can also be set in the configuration file as allowed_modules.

       -dc-whitelist string
           a comma separated list of drivers allowed on the network stack.

           this option can also be set in the configuration file as dc_whitelist.

       -fs-whitelist string
           a comma separated list of drivers allowed on the disk stack.

           this option can also be set in the configuration file as fs_whitelist.

       -popen-whitelist string
           a comma separated list of programs that the popen driver is allowed to execute, when used on the network or disk stack. an alias may also be specified, so that a client
           does not need to specify the full path. format is [alias:]prog,[alias:]prog. example: /bin/gzip,tar:/bin/tar

           this option can also be set in the configuration file as popen_whitelist.

       -xnetmgr string
           an option string to pass to the xio network manager driver, which will then be loaded for all data channel connections. this must be in the form
           "manager=module;option1=value;option2=value;". see the network manager documentation for more info.

           this option can also be set in the configuration file as xnetmgr.

       -dc-default string
           a comma separated list of xio drivers and options representing the default network stack. format is of each driver entry is driver1[:opt1=val1;opt2=val2;...]. the bottom
           of the stack, the transport driver, is always first.

           this option can also be set in the configuration file as dc_default.

       -fs-default string
           a comma separated list of xio drivers and options representing the default disk stack. format is of each driver entry is driver1[:opt1=val1;opt2=val2;...]. the bottom of
           the stack, the transport driver, is always first.

           this option can also be set in the configuration file as fs_default.

   other
       -c string
           path to main configuration file that should be loaded. otherwise will attempt to load $globus_location/etc/gridftp.conf and /etc/grid-security/gridftp.conf.

       -c string
           path to directory holding configuration files that should be loaded. files will be loaded in alphabetical order, and in the event of duplicate parameters the last loaded
           file will take precedence. backup files and files created by package updates (e.g. file.rpmsave) will be ignored. note that the main configuration file, if one exists,
           will always be loaded last.

           this option can also be set in the configuration file as config_dir.

       -config-base-path string
           base path to use when config and log path options are not full paths. by default this is the current directory when the process is started.

           this option can also be set in the configuration file as config_base_path.

       -debug
           sets options that make server easier to debug. forces no-fork, no-chdir, and allows core dumps on bad signals instead of exiting cleanly. not recommended for production
           servers. note that non-forked servers running as root will only accept a single connection, and then exit.

           this option can also be set in the configuration file as debug. the default value of this option is false.

       -pidfile string

           this option can also be set in the configuration file as pidfile.

exit status
       0
           successful program execution.

grid community toolkit 6                                                              12/06/2018                                                                 globus-gridftp-ser(8)