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 ๐ŸŽ€

  • --prefix path โ€” If this option is given, config-gfarm-update reads PREFIX/etc/gfmd.conf as the configuration file of gfmd. By default, it reads %%SYSCONFDIR%%/etc/gfmd.conf. ๐Ÿ—‚๏ธ
  • -P prefix โ€” Specify an installation prefix of the backend database (e.g. /usr/local). When config-gfarm-update executes a PostgreSQL command such as psql, it assumes the command is installed under the given prefix. If this option is omitted, config-gfarm-update searches directories listed in the environment variable PATH for the commands. ๐Ÿ”
  • -l path โ€” 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. ๐Ÿ’พ
  • -f file โ€” When config-gfarm-update invokes psql as a front-end terminal to PostgreSQL, config-gfarm-update passes -f option and the given file argument to psql. psql interprets commands written in the file, instead of reading commands interactively. This option is ignored when also --update option is specified. ๐Ÿ™ˆ
  • -o option โ€” When config-gfarm-update invokes psql as a front-end terminal to PostgreSQL, config-gfarm-update also passes the given option to psql. This option is ignored when also --update option is specified. ๐Ÿšซ
  • -j file โ€” Specify a path to the directory where gfmd puts journal files. The default value is PREFIX/var/gfarm-metadata/journal where PREFIX is a prefix given by --prefix option. ๐Ÿ““
  • --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 start gfmd after update/upgrade. This option takes effect only when also --update option is specified. ๐Ÿ›Œ
  • -r โ€” Enable metadata replication among metadata servers. This option takes effect only when also --update option 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 --update option is specified. ๐ŸŒˆ

๐Ÿฆ‹ FILES ๐Ÿฆ‹

  • %%SYSCONFDIR%%/gfmd.conf โ€” configuration file for gfmd

๐Ÿ‘‘ 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 ๐Ÿ’…โœจ๐ŸŽ€