config-gfsd - set up a file spool node of Gfarm
config-gfsd [options]
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.
--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 --prefix option on such host, config-gfsd doesn'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 is PREFIX/etc/unconfig-gfsd.sh. The default is "" (empty). -a architecture Specify architecture of the host. config-gfsd gives this value to gfhost -c as an argument of -a option. config-gfsd guesses the architecture, and use it by default. -p port Specify a TCP port number the configured gfsd listens on. The default is 10600 if the private mode, 600 otherwise. -h hostname Specify a hostname of the host. config-gfsd gives 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-gfsd creates the script. * The name of unit configuration file for systemd is changed from gfsd.service to gfsd-ADDRESS.service, when config-gfsd creates 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 --prefix option. -n ncpu Specify the number of CPUs of the host. config-gfsd gives this value to gfhost -c as an argument of -n option. config-gfsd guesses the number of CPUs, and use it by default. --help Show usage, then exit. -S Enable the private mode. config-gfsd sets up the Gfarm file system which can be run without root privilege. Specifically, config-gfsd changes the configuration procedures as follows: * The default listen port of gfsd (corresponding with -p option) 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 -N option is given. -S option 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-gfsd fails to create them. To avoid this problem, also specify --prefix option. -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.
%%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
gfarm2.conf(5), config-gfarm(8), gfsd(8)
Personal Opportunity - Free software gives you access to billions of dollars of software at no cost. Use this software for your business, personal use or to develop a profitable skill. Access to source code provides access to a level of capabilities/information that companies protect though copyrights. Open source is a core component of the Internet and it is available to you. Leverage the billions of dollars in resources and capabilities to build a career, establish a business or change the world. The potential is endless for those who understand the opportunity.
Business Opportunity - Goldman Sachs, IBM and countless large corporations are leveraging open source to reduce costs, develop products and increase their bottom lines. Learn what these companies know about open source and how open source can give you the advantage.
Free Software provides computer programs and capabilities at no cost but more importantly, it provides the freedom to run, edit, contribute to, and share the software. The importance of free software is a matter of access, not price. Software at no cost is a benefit but ownership rights to the software and source code is far more significant.
Free Office Software - The Libre Office suite provides top desktop productivity tools for free. This includes, a word processor, spreadsheet, presentation engine, drawing and flowcharting, database and math applications. Libre Office is available for Linux or Windows.
The Free Books Library is a collection of thousands of the most popular public domain books in an online readable format. The collection includes great classical literature and more recent works where the U.S. copyright has expired. These books are yours to read and use without restrictions.
Source Code - Want to change a program or know how it works? Open Source provides the source code for its programs so that anyone can use, modify or learn how to write those programs themselves. Visit the GNU source code repositories to download the source.
Study at Harvard, Stanford or MIT - Open edX provides free online courses from Harvard, MIT, Columbia, UC Berkeley and other top Universities. Hundreds of courses for almost all major subjects and course levels. Open edx also offers some paid courses and selected certifications.
Linux Manual Pages - A man or manual page is a form of software documentation found on Linux/Unix operating systems. Topics covered include computer programs (including library and system calls), formal standards and conventions, and even abstract concepts.