CONFIG-GFARM-UPDAT(8) | Gfarm | CONFIG-GFARM-UPDAT(8) |
config-gfarm-update - upgrades/updates metadata server of Gfarm
config-gfarm-update [options]
config-gfarm-update --update [options]
config-gfarm-update upgrades/updates the backend database of a metadata server. Unless the metadata server is configured as the private mode, the root privilege is required to run this command. It reads the configuration file for gfmd (gfmd.conf), in order to get information for accessing the backend database.
config-gfarm-update can enable the following features of the backend database:
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.
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.
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.
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.
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.
--prefix path
-P prefix
-l path
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
-o option
-j file
--help
-t
-N
-r
-d
-X
%%SYSCONFDIR%%/gfmd.conf
2 Feb 2015 | Gfarm |