Adding Hosts to a Cluster

After you have backed up the database and configured the hosts you want to add to the cluster, you can now add hosts to the cluster using the update_vertica script.

You can use MC to add standby nodes to a database, but you cannot add hosts to a cluster using MC.

Prerequisites and Restrictions

$ sudo /opt/vertica/sbin/update_vertica --add-hosts v_vmart_node0005 --rpm vertica_8.1.x.x86_64.RHEL6.rpm
Vertica 8.1.x Installation Tool
Starting installation tasks...
Getting system information for cluster (this may take a while)....
Spread is running on ['v_vmart_node0001']. Vertica and spread must be stopped before adding nodes to a 1 node cluster.
Use the admin tools to stop the database, if running, then use the following command to stop spread:
        /etc/init.d/spread stop (as root or with sudo)
Installation completed with errors.
Installation failed. 

Procedure to Add Hosts

From one of the existing cluster hosts, run the update_vertica script with a minimum of the --add-hosts host(s) parameter (where host(s) is the hostname or IP address of the system(s) that you are adding to the cluster) and the --rpm or --deb parameter:

# /opt/vertica/sbin/update_vertica --add-hosts host(s) --rpm package

Note: See Installing Vertica with the Installation Script for the full list of parameters. You must also provide the same options you used when originally installing the cluster.

The update_vertica script uses all the same options as install_vertica and:

Important Tips:

Examples:

--add-hosts host01 --rpm
--add-hosts 192.168.233.101
--add-hosts host02,host03