add_node
Adds one or more user-specified hosts as nodes to an existing database. You cannot add nodes to a sandboxed subcluster.
Adds one or more user-specified hosts as nodes to an existing database. You cannot add nodes to a sandboxed subcluster.
Syntax
vcluster add_node options
Required options
--catalog-pathstring- The absolute path to the catalog directory.
{ -c | --config }string- The path to the config file. If a configuration file is present in the default location (automatically generated by
create_db), you do not need to specify this option.Default:
/opt/vertica/config/vertica_cluster.yaml
--new-hostshostname_or_ip[,...]- A comma-separated list of hosts to add to the database.
Options
--add-node-timeoutint- The time, in seconds, to wait for the specified nodes to be added.
Default:
300
--cert-filestring- The absolute path to the certificate file. If you specify this option, you must also specify
--key-file. You should only use--cert-fileand--key-fileif you have configured the Node Management Agent (NMA) to use custom certificates.
--data-pathstring- The absolute path to the data directory. This should be the same for all nodes in the database.
--depot-pathstring- [Eon only] The absolute path to depot directory.
--depot-sizestring- [Eon only] Size of depot in one of the following formats:
integer{K|M|G|T}, whereKis kilobytes,Mis megabytes,Gis gigabytes, andTis terabytes.integer%, which expresses the depot size as a percentage of the total disk size.
--force-removal- Whether to delete any existing database directories in the new hosts before attempting to add them.
{ -h | --help }- Prints help text.
--ipv6- Whether the hosts use IPv6 addresses. Hostnames resolve to IPv4 by default.
--key-filestring- Path to the key file. If you specify this option, you must also specify
--cert-file. You should only use--cert-fileand--key-fileif you have configured the Node Management Agent (NMA) to use custom certificates.
{ -l | --log-path }string- The absolute path for debug logs.
Default:
/opt/vertica/log/vcluster.log
--node-namesstring- [Use only with support guidance] A comma-separated list of node names that exist in the cluster.
{ -p | --password }string- The database password.
--password-filestring- The absolute path to a file containing the database password.
If you pass a dash(-) (that is, `--password-file -`), the password is read from STDIN.
Important
Your database password cannot include single quotes.
--read-password-from-prompt- Prompts the user to enter the password.
--skip-rebalance-shards- [Eon only] Whether to skip shard rebalancing.
--subclusterstring- [Eon only] The name of the subcluster to which the host(s) should be added. This string must conform to the format used for database names.
Default: Default subcluster
--verbose- Shows the details of VCluster run in the console.
Examples
To add the node 192.2.0.4:
$ vcluster add_node --new-hosts 192.2.0.4
To add multiple nodes:
$ vcluster add_node --new-hosts 192.2.0.4,192.2.0.5