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.
You should always stop the database before running re_ip
.
Caution
Do not usere_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-file
string
- 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:[ {"from_address": "10.20.30.40", "to_address": "10.20.30.41"}, {"from_address": "10.20.30.42", "to_address": "10.20.30.43"} ]
Options
--cert-file
string
- 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-param
PARAMETER
=
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-file
string
- 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
:
$ vcluster re_ip --db-name vertica_db --re-ip-file /data/re_ip_map.json