config-gfsd8
Set up a file spool node of gfarm
Usage
config-gfsd [options]
Overview
config-gfsd is a utility to set up a file sppol node of Gfarm file system. The server program for a file spool node is named gfsd. config-gfsd is required to be run with the root privilege, unless you use the file system for private purpose such as development, evaluation or test of Gfarm.
config-gfsd assumes that the configuration file %%SYSCONFDIR%%/gfarm2.conf (or %%SYSCONFDIR%%/gfsd.conf in case of the private-mode) exists on the host. Please copy the file from the metadata server, if missing.
It performs the following processes, in that order:
1. Crerate a spool directory.
2. Update the Gfarm configuration file %%SYSCONFDIR%%/gfarm2.conf or %%SYSCONFDIR%%/gfsd.conf.
3. Create a script (or a configuration file) to start/stop gfsd.
On most systems, config-gfsd puts a start/stop script gfsd (or gfsd-ADDRESS in case of the private mode) onto either /etc/init.d or /etc/rc.d/init.d, according to the operating system.
On Linux with systemd such as Red Hat Enterprise Linux 7 or later, config-gfsd puts the unit configuration file gfsd.service (or gfsd-ADDRESS.service in case of the private mode) onto /etc/systemd/system, and then executes systemctl enable gfsd.service (or systemctl enable gfsd-ADDRESS.service respectively).
4. In case of the private mode, config-gfsd registers the host as a file spool node to the metadata server, by executing gfhost -c command. In the non-private mode, it shows how to register the host as a file spool node to the metadata server, like this:
Please ask admin_user to register your host by the following command: /usr/bin/gfhost -c -a x86_64-centos7.0-linux -p 600 -n 2 ext540
5. In case of the private mode, config-gfsd starts gfsd. In the non-private mode, it shows how to start gfsd, like as follows:
After that, start gfsd by the following command as a root: systemctl start gfsd.service
6.
Puts the script unconfig-gfsd.sh on %%SYSCONFDIR%%. The script does unconfiguration of gfsd. It stops gfsd and removes all files created by config-gfsd including unconfig-gfsd.sh itself.
Before set up a file spool node using config-gfsd, it is recommended to execute config-gfsd -t. With -t option, the sets up is not performed. Instead, it shows values of all configurable parameters:
$ config-gfsd -t prefix [--prefix]: hostname [-h]: host1.example.org listen address [-l]: (all local IP addresses) architecture [-a]: x86_64-centos6.5-linux port [-p]: 600 ncpu [-n]: 8 spool directory : /var/gfarm-spool rc script : /etc/init.d/gfsd gfarm client conf file : /etc/gfarm2.conf gfsd pid file : /var/run/gfsd.pid
The option name surrounded by [ ] means that you can specify a value with that option.
Options
-
--prefix path -
Configure some paths related to
gfsd. Specifically, the followings are affected.• The spool directory of
gfsd. That is PREFIX/var/gfarm-spool.• The directory to put a PID file of
gfsd. That is PREFIX/var/run.• The directory of configuration files. That is PREFIX/etc.
• The directory of start/stop script for
gfsd. That is PREFIX/etc/init.d or PREFIX/rc.d/init.d/etc which is depending on operating systems.• If systemd is running on the host, there is a special exception. When an empty prefix is given by
--prefixoption on such host,config-gfsddoesn't put a unit configuration file for systemd. Instead, it puts traditional start/stop script at PREFIX/etc/init.d.• The unconfiguration script
unconfig-gfsd.sh. That isPREFIX/etc/unconfig-gfsd.sh.The default is "" (empty).
-
-a architecture -
Specify architecture of the host.
config-gfsdgives this value to gfhost -c as an argument of-aoption.config-gfsdguesses the architecture, and use it by default.
-
-p port -
Specify a TCP port number the configured
gfsdlistens on. The default is 10600 if the private mode, 600 otherwise.
-
-h hostname -
Specify a hostname of the host.
config-gfsdgives this value to gfhost -c as an non-option argument. The default is the fully qualified domainname of the host on DNS.
-
-l address -
Specify a listen address of
gfsd. By default, it listens on all local IP addresses. If this option is specified, also the following changes occur:• The name of start/stop script is changed from gfsd to gfsd-ADDRESS, when
config-gfsdcreates the script.• The name of unit configuration file for systemd is changed from gfsd.service to gfsd-ADDRESS.service, when
config-gfsdcreates the file.• The spool directory is changed from PREFIX/var/gfarm-spool to PREFIX/var/gfarm-spool-ADDRESS, where PREFIX is a prefix given by
--prefixoption.
-
-n ncpu -
Specify the number of CPUs of the host.
config-gfsdgives this value to gfhost -c as an argument of-noption.config-gfsdguesses the number of CPUs, and use it by default.
-
--help -
Show usage, then exit.
-
-S -
Enable the private mode.
config-gfsdsets up the Gfarm file system which can be run without root privilege. Specifically,config-gfsdchanges the configuration procedures as follows:• The default listen port of
gfsd(corresponding with-poption) is changed from 600 to 10600.• It updates the configuration file %%SYSCONFDIR%%/gfsd.conf, instead of %%SYSCONFDIR%%/gfarm2.conf.
• It registers the file spool node by executing gfhost -c.
• It starts
gfsd, unless-Noption is given.-Soption never changes locations of a start/stop script and a configuration file. Since the default locations of those files are usually writable only for privilege users,config-gfsdfails to create them. To avoid this problem, also specify--prefixoption.
-
-N -
Do not start
gfsd.
-
-f -
Force overwriting an existing set up.
-
-t -
Show values of all configurable parameters in human readable format, then exit immediately.
-
-T -
Like '-t', but it shows values in KEY=VALUE format.
Files
%%SYSCONFDIR%%/gfarm2.conf
configuration file for Gfarm clients
%%SYSCONFDIR%%/gfsd.conf
configuration file for gfsd (used only in the private mode)
/etc/init.d/gfsd
start/stop script for gfsd
/etc/systemd/system/gfsd.service
unit configuration file for gfsd, read by systemd
Releases
5 releases since Debian 9 (Stretch); the text changed 1 time.