CONFIG-GFSD(8)
๐ config-gfsd(8) โ the Gfarm file spool node setup bestie ๐
okay so. hi. welcome to config-gfsd, a manual page from the Gfarm family of man pages, and honestly? she's a lot. but we're gonna get through her together. ๐ซถ
โจ NAME โจ
config-gfsd โ set up a file spool node of Gfarm. that's it. that's the job. ๐
โจ SYNOPSIS โจ
config-gfsd [options]
โจ DESCRIPTION โจ
okay so config-gfsd is a utility that sets up a file spool node of the Gfarm file system. the server program that actually is a file spool node is called gfsd, and config-gfsd is the little fairy godmother that gets her dressed for the ball. ๐ง
ngl, you gotta run config-gfsd with root privilege โ unless you're using the file system for private purposes, like development, evaluation, or testing of Gfarm. in that case? you're free, bestie. live your truth. ๐
config-gfsd assumes that the configuration file %%SYSCONFDIR%%/gfarm2.conf (or %%SYSCONFDIR%%/gfsd.conf when you're in private mode) already exists on the host. if it's missing? please copy the file from the metadata server. don't skip this step, i'm begging. ๐ญ
here's the whole glow-up routine, in order:
- Create a spool directory.
- Update the Gfarm configuration file
%%SYSCONFDIR%%/gfarm2.confor%%SYSCONFDIR%%/gfsd.conf. - 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, depending on the operating system. classic behavior. iconic even.
on Linux with systemd โ think 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 it executes systemctl enable gfsd.service (or systemctl enable gfsd-ADDRESS.service respectively). systemd girlies rise up ๐ฅ
- In case of the private mode,
config-gfsdregisters the host as a file spool node to the metadata server, by executing thegfhost -ccommand. in the non-private mode, it just shows you 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
(yes it's giving "here's a note for your mom". very demure.)
- In case of the private mode,
config-gfsdstartsgfsd. in the non-private mode, it shows you how to startgfsd, like as follows:
After that, start gfsd by the following command as a root:
systemctl start gfsd.service
- Puts the script
unconfig-gfsd.shon%%SYSCONFDIR%%. this script does the unconfiguration ofgfsd. it stopsgfsdand removes all files created byconfig-gfsdโ includingunconfig-gfsd.shitself. she takes herself out too. main character exit. ๐
before you set up a file spool node using config-gfsd, it is recommended to execute config-gfsd -t. with the -t option, the setup is not performed. instead, it shows you the 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. so like, if it's in brackets, it's adjustable. if it's not? that's just the vibe. ๐ธ
โจ OPTIONS โจ
--prefix pathโ configure some paths related togfsd. specifically, the followings are affected. (yes, it touches a lot. she's thorough.)- the spool directory of
gfsd. that isPREFIX/var/gfarm-spool. - the directory to put a PID file of
gfsd. that isPREFIX/var/run. - the directory of configuration files. that is
PREFIX/etc. - the directory of the start/stop script for
gfsd. that isPREFIX/etc/init.dorPREFIX/rc.d/init.d/etc, depending on operating systems. - if systemd is running on the host, there is a special exception. when an empty prefix is given by the
--prefixoption on such host,config-gfsddoesn't put a unit configuration file for systemd. instead, it puts the traditional start/stop script atPREFIX/etc/init.d. plot twist ๐ซข - the unconfiguration script
unconfig-gfsd.sh. that isPREFIX/etc/unconfig-gfsd.sh.
- the spool directory of
the default is "" (empty).
-a architectureโ specify the architecture of the host.config-gfsdgives this value togfhost -cas an argument of the-aoption.config-gfsdguesses the architecture, and uses it by default. she just knows. ๐ฎ-p portโ specify a TCP port number the configuredgfsdlistens on. the default is10600if the private mode,600otherwise. two defaults, one option. slay.-h hostnameโ specify a hostname of the host.config-gfsdgives this value togfhost -cas a non-option argument. the default is the fully qualified domainname of the host on DNS. no cap.-l addressโ specify a listen address ofgfsd. by default, it listens on all local IP addresses. if this option is specified, also the following changes occur:- the name of the start/stop script is changed from
gfsdtogfsd-ADDRESS, whenconfig-gfsdcreates the script. - the name of the unit configuration file for systemd is changed from
gfsd.servicetogfsd-ADDRESS.service, whenconfig-gfsdcreates the file. - the spool directory is changed from
PREFIX/var/gfarm-spooltoPREFIX/var/gfarm-spool-ADDRESS, wherePREFIXis a prefix given by the--prefixoption.
- the name of the start/stop script is changed from
-n ncpuโ specify the number of CPUs of the host.config-gfsdgives this value togfhost -cas an argument of the-noption.config-gfsdguesses the number of CPUs, and uses it by default.--helpโ show usage, then exit. the polite goodbye. ๐-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 the-poption) is changed from600to10600. - 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 the-Noption is given.
- the default listen port of
โ ๏ธ okay important: the-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 the--prefixoption. do not forget. i'm serious. ๐ญ
-Nโ do not startgfsd. that's it. she's sitting this one out. ๐-fโ force overwriting an existing set up. chaotic but valid.-tโ show values of all configurable parameters in human readable format, then exit immediately. the vibe check option. ๐-Tโ like-t, but it shows values inKEY=VALUEformat. for the script girlies. ๐ค
โจ FILES โจ
%%SYSCONFDIR%%/gfarm2.confโ configuration file for Gfarm clients%%SYSCONFDIR%%/gfsd.confโ configuration file forgfsd(used only in the private mode)/etc/init.d/gfsdโ start/stop script forgfsd/etc/systemd/system/gfsd.serviceโ unit configuration file forgfsd, read by systemd
โจ SEE ALSO โจ
gfarm2.conf(5), config-gfarm(8), gfsd(8)
go read those too, bestie, they're all part of the same friend group. ๐ฆ
and that's the whole page!! this one came from Gfarm, dated 20 Jan 2015, and you can find her chilling at CONFIG-GFSD(8). mwah, go set up that spool node. periodt. ๐
โจ๐
๐ฆ where this page comes from
- debian bookworm: gfsd 2.7.20+dfsg-1+b2 ยท BSD-like
- debian trixie: gfsd 2.7.20+dfsg-1.2+b1 ยท BSD-like
- ubuntu jammy: gfsd 2.7.17+dfsg-1build2 ยท BSD-like
- ubuntu noble: gfsd 2.7.20+dfsg-1.1ubuntu1 ยท BSD-like
- ubuntu questing: gfsd 2.7.20+dfsg-1.2
- ubuntu resolute: gfsd 2.7.20+dfsg-1.3 ยท BSD-like
- ubuntu stonking: gfsd 2.7.20+dfsg-1.3build1 ยท BSD-like
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms