This section contains reference material and simple examples for various vcluster commands. These examples assume that you have fulfilled the prerequisites for using vcluster. For more detailed examples, see Common administrative tasks.
You can also use the --help flag on any command or vcluster itself to view the manual.
For the vcluster manual:
$ vcluster --help
For help with any given command, use vclustercommand--help or vcluster helpcommand. For example:
$ vcluster create_db --help$ vcluster help create_db
1 - 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-file and --key-file if 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}, where K is kilobytes, M is megabytes, G is gigabytes, and T is 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-file and --key-file if 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.
Adds a new subcluster to an Eon Mode database. For details, see Creating subclusters.
Syntax
vcluster add_subcluster 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
--subclusterstring
The name of the new subcluster. This string must conform to the format used for database names.
Options
--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-file and --key-file if you have configured the Node Management Agent (NMA) to use custom certificates.
--control-set-sizeint
The number of control nodes in the subcluster.
Default:-1 (All nodes in the subcluster are control nodes)
--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}, where K is kilobytes, M is megabytes, G is gigabytes, and T is 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.
--is-primary
Whether the new subcluster should be a primary subcluster. If this option is omitted, new subclusters are secondary.
--key-filestring
Path to the key file. If you specify this option, you must also specify --cert-file. You should only use --cert-file and --key-file if 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
--new-hostsstring[,...]
A comma-separated list of hosts or IP addresses to add to the subcluster.
{ -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.
Creates a tab-completion script for a specified shell.
Creates a tab-completion script for a specified shell.
A tab-completion script for your default shell is automatically generated and configured when you install Vertica, so completion is only necessary in cases where you either change shells or want to use vcluster from a non-Vertica node.
Syntax
vcluster completion subcommand
Subcommands options
shell
The shell for which to generate a completion script, one of the following:
bash
fish
powershell
zsh
Examples
For example, to configure tab-completion for bash on Linux, generate the tab-completion script, redirecting its output to a new file vcluster_tab_completion:
Creates a new database and its associated configuration file for use with other vcluster commands.
Creates a new database and its associated configuration file for use with other vcluster commands.
Syntax
vcluster create_db { options }
Required options
--catalog-pathstring
The absolute path to the catalog directory.
--data-pathstring
The absolute path to the data directory. This should be the same for all nodes in the database.
{ -d | --db-name }string
The name of the database. You should only use this option if you want to override the database name in your configuration file. This string must conform to the format used for database names.
[Eon only] The absolute path of your communal storage location.
--shard-countint
[Eon only] The number of shards in the database.
Options
--broadcast
Configures Spread to use UDP broadcast traffic between nodes on the same subnet. Do not combine this option with --point-to-point.
Up to 80 Spread daemons are supported by broadcast traffic. You can exceed the 80-node limit by using large cluster mode, which only installs the Spread daemon on a subset of your nodes.
Default: Disabled
--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-file and --key-file if you have configured the Node Management Agent (NMA) to use custom certificates.
{ -c | --config }string
The path to write the configuration file.
Default:/opt/vertica/config/vertica_cluster.yaml
--config-paramPARAMETER=VALUE[,...]
A comma-separated list of PARAMETER=VALUE pairs. Parameters specified with this option override the ones in configuration files, if any, and take the following parameters:
AWSAuth
AWSEndpoint
AWSEnableHttps
AWSRegion
--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}, where K is kilobytes, M is megabytes, G is gigabytes, and T is terabytes.
integer%, which expresses the depot size as a percentage of the total disk size.
--force-cleanup-on-failure
Deletes directories created by create_db upon failure.
--force-overwrite-file
Overwrites the current configuration file, if any.
--force-removal-at-creation
Deletes existing database directories before attempting to create the database.
--get-aws-credentials-from-env-vars
[Eon only] Retrieves AWS credentials from the following environment variables:
$AWS_ACCESS_KEY_ID
$AWS_SECRET_ACCESS_KEY
{ -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-file and --key-file if you have configured the Node Management Agent (NMA) to use custom certificates.
--large-clusterint
Enables the large cluster layout and sets the number of control nodes. The effect of this option is slightly different on Enterprise and Eon databases. For details, see Enabling large cluster.
Default:-1 (Disabled)
--licensestring
The absolute path to a license file. The path to this license must be the same on all nodes.
{ -l | --log-path }string
The absolute path for debug logs.
Default:/opt/vertica/log/vcluster.log
{ -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.
--point-to-point
Configures Spread to use point-to-point communication between all Vertica nodes. You should use this option if your nodes are not on the same subnet and for virtual environments. Do not combine this option with --broadcast.
Up to 80 Spread daemons are supported by point-to-point communication. You can exceed the 80-node limit by using large cluster mode, which only installs the Spread daemon on a subset of your nodes.
Default: Enabled
--read-password-from-prompt
Prompts the user to enter the password.
--skip-package-install
Skips installing the packages in /opt/vertica/packages.
Default: Disabled
--startup-timeout int
The time, in seconds, to wait for the nodes to start after database creation.
Default:300
--verbose
Shows the details of VCluster run in the console.
Examples
Create a database with the nodes 192.0.2.0, 192.0.2.1, and 192.0.2.2 with the password in /password.txt:
Drops a stopped database. The effects this command has on your data differs slightly between database modes:
Drops a stopped database. The effects this command has on your data differs slightly between database modes:
Enterprise: Deletes the database data (including catalog, data, and depot directories) from all nodes.
Eon: Deletes non-communal storage data. Dropped Eon Mode databases can be revived.
The data deleted by this operation cannot be recovered.
Syntax
vcluster drop_db [options]
Required options
{ -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
Options
--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-file and --key-file if you have configured the Node Management Agent (NMA) to use custom certificates.
{ -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-file and --key-file if 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
--verbose
Shows the details of VCluster run in the console.
Examples
To drop a database:
$ vcluster drop_db --db-name test_db
6 - help
Prints the help text for any command or subcommand. This is the same as using the --help option.
Prints the help text for any command or subcommand. This is the same as using the --help option.
Syntax
vcluster help command
Commands
command
The command to print help text for.
Options
{ -h | --help }
Prints help text.
7 - install_packages
Installs the packages in /opt/vertica/packages.
Installs the packages in /opt/vertica/packages. This is useful in cases where packages weren't installed during Vertica installation (either due to --skip-package-install or an error) or if your existing packages are corrupt.
Syntax
vcluster install_packages options
Required options
{ -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
Options
--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-file and --key-file if you have configured the Node Management Agent (NMA) to use custom certificates.
--force-reinstall
Install the packages even if they are already installed.
{ -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-file and --key-file if 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
{ -o | --output-file }string
Writes the output to the specified file instead of STDOUT.
Default: STDOUT
{ -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.
The major states a node can be in are UP and DOWN. Other states are largely transitional.
Note
list_all_nodes returns the state UNKNOWN for nodes separated by a sandbox.
Syntax
vcluster list_all_nodes options
Required options
{ -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
Options
--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-file and --key-file if you have configured the Node Management Agent (NMA) to use custom certificates.
{ -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-file and --key-file if 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
{ -o | --output-file }string
Writes the output to the specified file instead of STDOUT.
Default: STDOUT
{ -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.
--verbose
Shows the details of VCluster run in the console.
Examples
To list the status of nodes for a password-protected database:
Displays the contents of or recreates the VCluster configuration file. The configuration file (/opt/vertica/config/vertica_cluster.yaml) is automatically generated when you use create_db.
Syntax
vcluster manage_config subcommand
Subcommands
recover
Recreates the VCluster configuration file based on the configuration of the database.
show
Shows the contents of the current configuration file.
9.1 - manage_config recover
lorem ipsum
Recreates the vcluster configuration file.
This file is automatically generated in /opt/vertica/config/vertica_cluster.yaml when you use create_db.
Syntax
vcluster manage_config recover options
Required options
--catalog-pathstring
The absolute path to the catalog directory.
{ -c | --config }string
The path to write the configuration file.
Default:/opt/vertica/config/vertica_cluster.yaml
--hostsstrings
A comma-separated list of hosts in database.
Options
--after-revive
Recovers the configuration file after reviving the database. You should only use this if, after reviving the database, you modify the configuration file manually, which is not recommended.
--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-file and --key-file if you have configured the Node Management Agent (NMA) to use custom certificates.
{ -d | --db-name }string
The name of the database. You should only use this option if you want to override the database name in your configuration file. This string must conform to the format used for database names.
--depot-pathstring
[Eon only] The absolute path to depot directory.
{ -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-file and --key-file if 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
--overwrite
Overwrites the existing /opt/vertica/config/vertica_cluster.yaml, if any. If a configuration file already exists and this flag is not specified, recover has no effect.
--verbose
Shows the details of VCluster run in the console.
Examples
Recrates the configuration file in the default location for an Eon Mode database:
Displays the contents of the vcluster configuration file.
This file is automatically generated in /opt/vertica/config/vertica_cluster.yaml when you use create_db.
Syntax
vcluster manage_config show options
Required options
{ -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
Options
{ -h | --help }
Prints help text.
{ -l | --log-path }string
The absolute path for debug logs.
Default:/opt/vertica/log/vcluster.log
--verbose
Shows the details of VCluster run in the console.
Examples
Show the configuration file in the default location (/opt/vertica/config/vertica_cluster.yaml):
$ vcluster config show
Show the configuration file at the specified location:
$ vcluster config show --config /tmp/vertica_cluster.yaml
10 - re_ip
Updates the catalog with the IP addresses of your nodes when the database is stopped.
Updates the catalog with the IP addresses of your nodes when the database is stopped. You should run this command when the IP address for a node changes. For details, see Reconfiguring node messaging.
Do not use re_ip when the database is up without support guidance. Improper use of this command can corrupt the catalog.
Syntax
vcluster re_ip options
Required options
{ -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
--re-ip-filestring
Path to a .json file that maps the old IP addresses to the new IP addresses. This file should only include the IP addresses of nodes that you want to update. This file has the following format:
The absolute path to the certificate file. If you specify this option, you must also specify --key-file. You should only use --cert-file and --key-file if you have configured the Node Management Agent (NMA) to use custom certificates.
--config-paramPARAMETER=VALUE[,...]
A comma-separated list of PARAMETER=VALUE pairs. Parameters specified with this option override the ones in configuration files, if any, and take the following parameters:
AWSAuth
AWSEndpoint
AWSEnableHttps
AWSRegion
{ -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-file and --key-file if 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
--verbose
Shows the details of VCluster run in the console.
Examples
To update the IP addresses with the information in /data/re_ip_map.json:
You cannot remove nodes from a sandboxed subcluster.
Syntax
vcluster remove_node options
Required options
{ -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
--removestrings[,...]
A comma-separated list of hosts to remove from the database.
Options
--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-file and --key-file if you have configured the Node Management Agent (NMA) to use custom certificates.
--depot-pathstring
[Eon only] The absolute path to depot directory.
{ -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-file and --key-file if 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
{ -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.
Removes a non-sandboxed subcluster and its nodes from an Eon Mode database.
Removes a non-sandboxed subcluster and its nodes from an Eon Mode database.
Syntax
vcluster remove_subcluster options
Required options
{ -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
--subclusterstring
Name of subcluster to remove.
Options
--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-file and --key-file if 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.
{ -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-file and --key-file if 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
{ -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.
Revives or restores an Eon Mode database. You cannot revive sandboxes with this command.
Revives or restores an Eon Mode database. You cannot revive sandboxes with this command.
Note
After you revive your database, the next command you run should be start_db unless otherwise directed by Vertica Support.
Syntax
vcluster revive_db options
Required options
If access to communal storage requires access keys, you must provide the keys with the --config-param option.
--communal-storage-locationstring
[Eon only] The absolute path of your communal storage location.
{ -d | --db-name }string
The name of the database. You should only use this option if you want to override the database name in your configuration file. This string must conform to the format used for database names.
--hostsstrings
Comma-separated list of hosts in the database. The number of hosts that you provide must match the number of hosts in the existing database. You can omit the hosts only if --display-only is specified.
Options
--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-file and --key-file if you have configured the Node Management Agent (NMA) to use custom certificates.
{ -c | --config }string
The path to write the configuration file.
Default:/opt/vertica/config/vertica_cluster.yaml
.
--config-paramPARAMETER=VALUE[,...]
A comma-separated list of PARAMETER=VALUE pairs. Parameters specified with this option override the ones in configuration files, if any, and take the following parameters:
AWSAuth
AWSEndpoint
AWSEnableHttps
AWSRegion
--display-only
Shows information about the database in communal storage. If you specify this option, you can omit --hosts.
--force-removal
Deletes any existing database directories before reviving, excluding user storage directories.
{ -h | --help }
Prints help text.
--ignore-cluster-lease
Do not check for the existence of other clusters running on shared storage. If another system is using the same communal storage, using this option results in data corruption.
Default: Disabled
--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-file and --key-file if you have configured the Node Management Agent (NMA) to use custom certificates.
--load-catalog-timeoutuint
The timeout, in seconds, for loading the remote catalog.
Default:3600
{ -l | --log-path }string
The absolute path for debug logs.
Default:/opt/vertica/log/vcluster.log
{ -o | --output-file }string
Writes the output to the specified file instead of STDOUT.
Default: STDOUT
--restore-point-archivestring
The name of the restore point archive to use for bootstrapping. If you specify this option, you must also specify --restore-point-id or -restore-point-index.
--restore-point-idstring
The identifier of the restore point in the restore archive.
--restore-point-indexint
The index of the restore point in the restore archive to restore from. Restore point indexes are one-indexed.
--verbose
Shows the details of VCluster run in the console.
Examples
To revive the database and write the configuration file to /opt/vertica/config/vertica_cluster.yaml:
Sandboxes a subcluster in an Eon Mode database. All hosts in the subcluster must be up. When you sandbox a subcluster, its hosts immediately shut down and restart; the subcluster becomes sandboxed after the hosts start back up.
A sandbox can contain multiple subclusters, and subclusters in the sandbox can interact with each other. If you want to isolate subclusters, they must be in separate sandboxes.
Note
Subcluster sandboxing should be used for testing database changes or upgrades in a safe, isolated environment and should not be used for production subclusters. For example, you can create sandboxes and then upgrade Vertica in those sandboxes.
Syntax
vcluster sandbox_subcluster options
Required options
{ -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
--sandboxstring
The name of the sandbox. This string must conform to the format used for database names.
--subclusterstring
The name of the subcluster to sandbox.
Options
--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-file and --key-file if you have configured the Node Management Agent (NMA) to use custom certificates.
{ -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-file and --key-file if 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
{ -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.
Runs the scrutinize utility to collect diagnostic information about a database.
Runs the scrutinize utility to collect diagnostic information about a database. Vertica Support might request that you run this utility when resolving a case.
By default, diagnostics are stored in a /tmp/scrutinize/VerticaScrutinize.timestamp.tar.
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
Options
--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-file and --key-file if you have configured the Node Management Agent (NMA) to use custom certificates.
--db-userstring
The username of a database user.
--exclude-active-queries
Exclude information affected by currently running queries.
--exclude-containers
Excludes information in system tables that can scale with the number of ROS containers.
{ -h | --help }
Prints help text.
--include-external-table-details
Include information about external tables. This option is computationally expensive.
--include-ros
Include information about ROS containers.
--include-udx-details
Include information describing all UDX functions. This option can be computationally expensive for Eon Mode databases.
--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-file and --key-file if you have configured the Node Management Agent (NMA) to use custom certificates.
--log-age-hoursint
The maximum age, in hours, of archived Vertica log files to collect.
Default:24
--log-age-newest-timeYYYY-MM-DD HH [+|-XX]
Timestamp of the minimum age of archived Vertica log files to collect with an optional UTC hour offset [+|-XX].
--log-age-oldest-timeYYYY-MM-DD HH [+|-XX]
Timestamp of the maximum age of archived Vertica log files to collect with an optional UTC hour offset [+/-XX].
{ -l | --log-path }string
The absolute path for debug logs.
Default:/opt/vertica/log/vcluster.log
{ -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-collect-libraries
Skips gathering linked and catalog-shared libraries.
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
Options
--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-file and --key-file if you have configured the Node Management Agent (NMA) to use custom certificates.
--communal-storage-locationstring
[Eon only] The absolute path of your communal storage location.
--config-paramPARAMETER=VALUE[,...]
A comma-separated list of PARAMETER=VALUE pairs. Parameters specified with this option override the ones in configuration files, if any, and take the following parameters:
AWSAuth
AWSEndpoint
AWSEnableHttps
AWSRegion
--end-timestampstring
Shows restore points up to and including the specified UTC timestamp in either date-time or date-only format. For example:
"2006-01-02 15:04:05"
"2006-01-02"
"2006-01-02 15:04:05.000000000"
{ -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-file and --key-file if 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
{ -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.
--restore-point-archivestring
Filter for restore point names that include the specified string.
--restore-point-idstring
Filter for restore point IDs that include the specified ID.
--restore-point-indexstring
Filter for restore points indices that include the specified index.
--start-timestampstring
Shows restore points after and including the specified UTC timestamp in either date-time or date-only format. For example:
The IP address provided for each node name must match the current IP address in the Vertica catalog. If the IPs do not match, you must first run re_ip to inform the database of the updated IP addresses.
If you pass the --hosts option a subset of all nodes in the cluster, only the specified nodes are started, and the specified subset must be a quorum of nodes.
Syntax
vcluster start_db options
Required options
{ -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
Option
--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-file and --key-file if you have configured the Node Management Agent (NMA) to use custom certificates.
--communal-storage-locationstring
[Eon only] The absolute path of your communal storage location.
--config-paramPARAMETER=VALUE[,...]
A comma-separated list of PARAMETER=VALUE pairs. Parameters specified with this option override the ones in configuration files, if any, and take the following parameters:
AWSAuth
AWSEndpoint
AWSEnableHttps
AWSRegion
--config-param-filestring
The absolute path to a file containing configuration parameters and their values.
--eon-mode
[Eon only] Indicates that the database is an Eon Mode database.
{ -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-file and --key-file if 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
--main-cluster-only
Starts the database on a main cluster and does not start any sandboxes.
{ -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.
--sandboxsubcluster
Name of the sandbox to start.
--timeoutint
The time (in seconds) to wait for nodes to start up.
Starts nodes in a running cluster. This differs from start_db, which starts Vertica after cluster quorum is lost.
Syntax
vcluster restart_node options
Required options
{ -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
One of --restart and --start-hosts is required.
--restartnode_name=ip_address[,...]
A comma-separated list of node_name=ip_address pairs, specifying the nodes to restart. If ip_address doesn't match the database's listed IP address for that node, Vertica updates its catalog information for that node with the specified IP address and then restarts the node.
--start-hostsstring[,...]
A comma-separated list of hosts to be restarted.
Options
--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-file and --key-file if you have configured the Node Management Agent (NMA) to use custom certificates.
{ -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-file and --key-file if 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
{ -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.
--timeoutint
The time (in seconds) to wait for nodes to start up.
To restart a single node and change its IP address in the database with config file (assuming the node IP address previously stored catalog was not 192.0.2.4):
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
--subclusterstring
Name of subcluster to start
Options
--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-file and --key-file if you have configured the Node Management Agent (NMA) to use custom certificates.
{ -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-file and --key-file if 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
{ -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.
--timeoutint
The time (in seconds) to wait for nodes to start up.
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
Options
--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-file and --key-file if you have configured the Node Management Agent (NMA) to use custom certificates.
--drain-secondsint
[Eon only] The time to wait, in seconds, for user connections to close on their own. When the time expires, user connections are automatically closed and the database is shut down. If set to 0, VCluster closes all user connections immediately. If the value is negative, VCluster waits indefinitely until all user connections close.
Default:60
--eon-mode
[Eon only] Indicates that the database is an Eon Mode database.
{ -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-file and --key-file if you have configured the Node Management Agent (NMA) to use custom certificates.
You must provide the host list with the --stop-hosts option followed by one or more hosts to stop as a comma-separated list.
Caution
If you only have just enough nodes up to establish database quorum and you stop a node, you will lose database quorum and the remaining up nodes will be set to read-only mode to prevent data loss.
Syntax
vcluster stop_node options
Required options
{ -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
--stop-hostsstrings[,...]
Comma-separated list of host(s) to stop.
Options
--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-file and --key-file if you have configured the Node Management Agent (NMA) to use custom certificates.
{ -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-file and --key-file if 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
{ -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.
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
--subclusterstring
The name of the subcluster to stop.
Options
--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-file and --key-file if you have configured the Node Management Agent (NMA) to use custom certificates.
--drain-secondsint
[Eon only] The time to wait, in seconds, for user connections to close on their own. When the time expires, user connections are automatically closed and the database is shut down. If set to 0, VCluster closes all user connections immediately. If the value is negative, VCluster waits indefinitely until all user connections close.
Default:60
--force
Shut down the subcluster immediately even if users are connected.
{ -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-file and --key-file if 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
{ -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.
--verbose
Shows the details of VCluster run in the console.
Examples
Stops the subcluster sc1, waiting 10 seconds for user connections to close:
Removes a subcluster from the sandbox, unsandboxing it.
Removes a subcluster from the sandbox, "unsandboxing" it. When you unsandbox a subcluster, its hosts immediately shut down and restart. When the hosts come back up, the subcluster is unsandboxed.
When a subcluster is unsandboxed, you should manually delete that subcluster's metadata in communal storage before attempting to add a subcluster to that sandbox again. For example, if you unsandbox subcluster sc1, you should delete the directory path_to_catalog_of_sc1/metadata/sandbox_name.
Syntax
$ vcluster unsandbox_subcluster options
Required options
{ -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
--subclusterstring
The name of the subcluster to be unsandboxed.
Options
--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-file and --key-file if you have configured the Node Management Agent (NMA) to use custom certificates.
{ -h | --help }
Prints help text.
--hostsstrings
A comma-separated list of hosts in the database. This must include at least one up host from the primary subcluster.
--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-file and --key-file if 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
{ -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.