--prefixpath
Configure some paths related to gfmd and the backend database. Specifically, the followings are
affected.
• The directory to put metadata of Gfarm. That is PREFIX/var/gfarm-pgsql if the backend database is
PostgreSQL. The path can also be changed by -l option. When both options are specified, -l option
has preference.
• The directory to put log files about metadata. That is PREFIX/var/gfarm-pgsql/pg_xlog if the
backend database is PostgreSQL. The path can also be changed by -L option. When both options are
specified, -L option has preference.
• The directory to put journal files of gfmd. That is PREFIX/var/gfarm-metadata/journal. The path
can also be changed by -j option. When both options are specified, -j option has preference.
• The directory to put PID files of gfmd and the backend database. That is PREFIX/var/run.
• The directory to put configuration files. That is PREFIX/etc.
• The directory of start/stop scripts for gfmd and its backend database. 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-gfarm doesn't put unit configuration files for systemd.
Instead, it puts traditional start/stop scripts at PREFIX/etc/init.d.
• The unconfiguration script unconfig-gfarm.sh. That is PREFIX/etc/unconfig-gfarm.sh.
The default is "" (empty).
-bbackend
Specify backend database. It currently supports "postgresql" (for PostgreSQL) only. "ldap" (for LDAP)
was supported in the past, but not maintained any longer. config-gfarm-t lists which backend
databases are available.
PostgreSQL is chosen by default if "postgresql" is in the list. If the available backend is "ldap"
only, it is still chosen by default. Note that you need to recompile Gfarm if you'd like to make
Gfarm on your system support a backend database not in the list.
-ddigest_type
Enable checksum calculation and specify the digest type of the checksum. The digest_type argument is
a lower-case name which is supported by the OpenSSL library on the host, such as "md5".
-Uusername
Specify administrator's username of the Gfarm file system. Since the default value differs depending
on operating systems, execute config-gfarm-t to confirm the username.
-uusername
The configured gfmd will connect to the backend database as the specified username. The default is
"gfarm".
-Pprefix
Specify an installation prefix of the backend database (e.g. /usr/local). When config-gfarm executes
an administration command of the backend database, it assumes the command is installed under the
given prefix. An example of those commands is initdb of PostgreSQL. If this option is omitted,
config-gfarm searches directories listed in the environment variable PATH for the commands.
-Vversion
Tell version of the backend database to config-gfarm. In most cases, config-gfarm can detect a
correct version number by itself. This option should be used only when config-gfarm fails to get the
correct version number.
-ldirectory
Specify a path to the directory where the backend database puts files to store metadata of Gfarm.
If the backend database is PostgreSQL, the directory is commonly called PGDATA directory. The default
is PREFIX/var/gfarm-pgsql where PREFIX is a prefix given by --prefix option.
-Ldirectory
Specify a path to the directory where the backend database puts log files. If the backend database is
PostgreSQL, the default is PREFIX/var/gfarm-pgsql/pg_xlog where PREFIX is a prefix given by --prefix
option.
-hhostname
Specify a hostname which is used to identify the metadata server. The default is the fully qualified
domainname of the host.
-jdirectory
Specify a path to the directory where gfmd puts journal files. This option takes an effect only when
metadata replication is enabled by -r option. The default value is PREFIX/var/gfarm-metadata/journal
where PREFIX is a prefix given by --prefix option.
-Ausername
Specify administrator of the Gfarm file system. If this option is omitted, config-gfarm gets a
username by executing whoami command.
-Dsubject-dn
Specify a subject DN of global administrator. This option is mandatory, in case that the
authentication method is GSI,
-pport
Specify a TCP port number the configured backend database listens on. The default is 10602.
-mport
Specify a TCP port number the configured gfmd listens on. The default value is 10601 in case of the
private mode, 601 otherwise.
-amethod
Specify an authentication method. It currently recognizes "sharedsecret" or "gsi". The default is
"sharedsecret".
--help
Show usage, then exit.
-S
Enable the private mode. config-gfarm sets up the Gfarm file system which can be run without root
privilege. Specifically, config-gfarm changes the configuration procedures as follows:
• The default listen port of gfmd (corresponding with -m option) is changed from 601 to 10601.
• The user map file %%SYSCONFDIR%%/usermap is also created. The metadata server reads this file
when it starts. In the non-private mode, it is required to create the user accounts for _gfarmmd
and _gfarmfs on the operating system. With the user map file, the creation of the user accounts
is not needed. The file defines mappings of Gfarm system users to actual user accounts.
• The configuration file for gfsd, %%SYSCONFDIR%%/gfsd.conf is also created. In the non-private
mode, gfsd reads the configuration file %%SYSCONFDIR%%/gfarm2.conf instead, which is read by all
Gfarm programs connecting with a metadata server. %%SYSCONFDIR%%/gfsd.conf is a configuration
file cutomized for gfsd running under the private mode.
-S option never changes locations of start/stop scripts and configuration files. Since the default
locations of those files are usually writable only for privilege users, config-gfarm fails to create
them. To avoid this problem, also specify --prefix option.
-N
Do not start gfmd or the backend database.
-f
Force overwriting an existing set up.
-t
Show values of all configurable parameters in human readable format, then exit immediately.
-T
Like -t option, but it shows values in KEY=VALUE format.
-r
Enable metadata replication among metadata servers.
-Wpassword
Specify administrator's password of backend database. This option corresponds with -U option which
specifies the username. By default, the password is generated automatically.
-wpassword
The configured gfmd will connect the backend database with the specified password. This option
corresponds with -u option which specifies the username. By default, the password is generated
automatically.
-X
Enable XML Path Language (XPath) support for querying XML extended attributes.
-E
Set up PostgreSQL with the data checksums option. config-gfarm gives --data-checksums option to
initdb command of PostgreSQL. Note that PostgreSQL 9.3 or later is required to use this feature. This
option takes an effect only when the backend database is PostgreSQL.