CONFIG-GFARM-UPDAT(8)
CONFIG-GFARM-UPDAT ๐ โจ
okay bestie, gather round, because this one is the glow-up page for your metadata server's backend database ๐ this is section 8 of the Gfarm manual, so it's a sysadmin-flavoured baddie. no cap.
โจ NAME โจ
config-gfarm-update โ upgrades/updates metadata server of Gfarm ๐ฆ
๐ธ SYNOPSIS ๐ธ
config-gfarm-update [options]
config-gfarm-update --update [options]
๐ DESCRIPTION ๐
So config-gfarm-update upgrades/updates the backend database of a metadata server. literally its whole thing. ๐ซถ
โ ๏ธ heads up bestie: unless the metadata server is configured as the private mode, the root privilege is required to run this command. so like, sudo energy, iykyk.
It reads the configuration file for gfmd (gfmd.conf), in order to get information for accessing the backend database. it's nosy like that but in a helpful way. ๐
config-gfarm-update can enable the following features of the backend database:
- XML Path Language (XPath) support [
-X] - Metadata replication among metadata servers [
-r] - Checksum calculation [
-d]
Whether the backend database supports those features or not is initially configured by config-gfarm. If you would like to enable a feature after the configuration, run config-gfarm-update --update with an option surrounded by [ ] in the list above. yes, the brackets were the whole point, slay. ๐
config-gfarm-update is also used for upgrading the backend database. Sometimes Gfarm contains incompatible changes against older releases ๐ญ. With --update option, config-gfarm-update edits table schema and/or data in the database for upgrading, if needed. she's fixing your table schema fr fr.
When you update/upgrade the metadata server, you must stop gfmd beforehand. ๐ If there are some metadata servers in a file system, run config-gfarm-update on every metadata servers. After the update/upgrade, it starts a metadata server on the host. okay so it does the restart for you, main character behaviour honestly.
Like config-gfarm, also config-gfarm-update has -t option which shows values of all configurable parameters, like this:
$ config-gfarm-update -t
prefix [--prefix]:
metadata backend [-b]: postgresql
metadata directory [-l]: /var/gfarm-pgsql
postgresql admin user [-U]: postgres
postgresql admin password [-W]: (auto generated)
postgresql user [-u]: gfarm
postgresql password [-w]: (auto generated)
postgresql prefix [-P]: /usr
postgresql version [-V]: 8.4
postgresql XML supported [-X]: no
postgresql data checksum support
[-E]: no
portmaster port [-p]: 10602
metadata replication [-r]: yes
metadata journal directory [-j]: /var/gfarm-metadata/journal
digest type [-d]: md5
It is recommended to execute config-gfarm-update -t before update/upgrade. ๐ vibe check first, always.
In case that the backend database is PostgreSQL and config-gfarm-update is executed without --update option, psql command is invoked. psql is a front-end terminal to the backend database. It enables you to type in queries interactively. This is useful since a connection from psql to the PostgreSQL server is established automatically. so you just get dropped straight into the group chat with your database, no login required. ๐โจ
๐ OPTIONS ๐
--prefixpath โ If this option is given,config-gfarm-updatereadsPREFIX/etc/gfmd.confas the configuration file ofgfmd. By default, it reads%%SYSCONFDIR%%/etc/gfmd.conf. ๐๏ธ-Pprefix โ Specify an installation prefix of the backend database (e.g./usr/local). Whenconfig-gfarm-updateexecutes a PostgreSQL command such aspsql, it assumes the command is installed under the given prefix. If this option is omitted,config-gfarm-updatesearches directories listed in the environment variablePATHfor the commands. ๐-lpath โ 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 isPREFIX/var/gfarm-pgsqlwhere PREFIX is a prefix given by--prefixoption. ๐พ-ffile โ Whenconfig-gfarm-updateinvokespsqlas a front-end terminal to PostgreSQL,config-gfarm-updatepasses-foption and the given file argument topsql.psqlinterprets commands written in the file, instead of reading commands interactively. This option is ignored when also--updateoption is specified. ๐-ooption โ Whenconfig-gfarm-updateinvokespsqlas a front-end terminal to PostgreSQL,config-gfarm-updatealso passes the given option topsql. This option is ignored when also--updateoption is specified. ๐ซ-jfile โ Specify a path to the directory wheregfmdputs journal files. The default value isPREFIX/var/gfarm-metadata/journalwhere PREFIX is a prefix given by--prefixoption. ๐--helpโ Show usage, then exit. bye bestie ๐-tโ Show values of configurable parameters in human readable format, then exit immediately. the receipts, if you will. ๐งพ-Nโ Do not startgfmdafter update/upgrade. This option takes effect only when also--updateoption is specified. ๐-rโ Enable metadata replication among metadata servers. This option takes effect only when also--updateoption is specified. ๐-dโ 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". ๐งฎ-Xโ Enable XML Path Language (XPath) support for querying XML extended attributes. This option takes effect only when also--updateoption is specified. ๐
๐ฆ FILES ๐ฆ
%%SYSCONFDIR%%/gfmd.confโ configuration file forgfmd
๐ SEE ALSO ๐
config-gfarm(8), gfmd(8), psql(1)
and that's the tea, bestie ๐ this page came to you from the Gfarm manual, dated 2 Feb 2015 โ go forth and upgrade responsibly, mwah ๐ โจ๐
๐ฆ where this page comes from
- debian bookworm: gfmd 2.7.20+dfsg-1+b2 ยท BSD-like
- debian trixie: gfmd 2.7.20+dfsg-1.2+b1 ยท BSD-like
- ubuntu jammy: gfmd 2.7.17+dfsg-1build2 ยท BSD-like
- ubuntu noble: gfmd 2.7.20+dfsg-1.1ubuntu1 ยท BSD-like
- ubuntu questing: gfmd 2.7.20+dfsg-1.2
- ubuntu resolute: gfmd 2.7.20+dfsg-1.3 ยท BSD-like
- ubuntu stonking: gfmd 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