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: * 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. 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 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. -t Show values of configurable parameters in human readable format, then exit immediately. -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.
%%SYSCONFDIR%%/gfmd.conf configuration file for gfmd
config-gfarm(8), gfmd(8), psql(1)
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.