Name
pgx_pclrsc -- Register, unregister, or display Symfoware database cluster with PRIMECLUSTER as resource of PRIMECLUSTER.
Synopsis
pgx_pclrsc -a -c name -u osuser -D directory -w directory
-n nodes [options...] pgx_pclrsc -d -c name
pgx_pclrsc -p [-c name]
Description
pgx_pclrsc is an utility for registering or unregistering Symfoware database cluster with PRIMECLUSTER, or displaying settings of Symfoware database cluster registered with PRIMECLUSTER. Execute the command on a member node of the cluster. Only the super user(root) can execute this command.
Options
Register the specified database cluster with PRIMECLUSTER. If the specified database cluster has already been registered with PRIMECLUSTER, then terminate abnormally.
Specify database cluster name. name is case-sensitive, and must be within 16 bytes, and an initial letter must be ascii alphabet, and following letters must be ascii alphabet or ascii digit or underscore(_).
Unregister the specified database cluster from PRIMECLUSTER.
Specify an absolute path of data directory.
Specify a database super user. Default is the user specified with '-u'.
Specify names of all member nodes of the cluster. Specfity a cluster node name with uffix "RMS" to the name. Separate names with comma(,). (e.g. -n node1RMS,node2RMS)
Print a list of database clusters registered with PRIMECLUSTER. If -c option is specified, then print settings of the database cluster.
Specify timeout of the query for health check. It's used with a count specified with '--timeout-retry-num'. The query is "SELECT 1" to the database "template1". If '0', wait infinitely. (default: '0')
Specify a limit count of retrying query when timeout is occurred. If retry counter is over the limit, then PRIMECLUSTER considers status of the database server as FAULT. If a query doesn't timeout once, retry counter is reset. (default: '6')
Specify max size(KB) of trace file. (default: '10240')
Specify an OS user who can start/stop Symfoware database server.
Specify a directory for temporary data and trace files. It's used for starting, stopping or checking Symfoware database server. If the directory doesn't exist, then create it. Owner of the directory created by the command is set to the user specified with '-u'. Permission of the directory created by the command is set to 0700.
Specify an interval. It's used for the amount of time between health checks. (default: '3')
Diagnostics
0 : On success
otherwise : On error
Notes
Before unregistering a resource, stop RMS of PRIMECLUSTER.
Example
The simplest example of registering a resource.
# pgx_pclrsc -a -c dbcluster1 -u postgres -D /mnt/swdsk1/pgdata -w /var/tmp/work -n node1RMS,node2RMS