When maintaining an environment or network, you might need to assign a different host name to an existing master vRealize Automation appliance.

About this task

In a high availability cluster of vRealize Automation appliances, follow these steps to change the host name of the primary, or master, vRealize Automation appliance node.

Procedure

  1. In DNS, create an additional record with the new master host name.

    Do not remove the existing DNS record with the old host name yet.

  2. Wait for DNS replication and zone distribution to occur.
  3. From a console session as root on the master vRealize Automation appliance, run the following script.

    /usr/lib/vcac/tools/change-hostname/changeHostName-master.sh new-master-hostname

  4. Log in as root to the master vRealize Automation appliance management interface.

    https://vrealize-automation-appliance-FQDN:5480

  5. Click Network > Address.
  6. In the Hostname text box, enter the new master host name, and click Save Settings.
  7. From a console session as root, update the HAProxy configuration with the new master host name.

    On all vRealize Automation appliances in the cluster, including master and replicas, use a text editor to replace the old master host name throughout the files in the following directory.

    /etc/haproxy/conf.d

  8. Restart the master vRealize Automation appliance.
  9. Restart replica vRealize Automation appliances, one at a time.
  10. Log in as root to the master vRealize Automation appliance management interface.
  11. Click vRA Settings > Database.
  12. Reset any replica nodes that show a Status of N/A.
  13. Verify that the Sync State is correct for database replication on each vRealize Automation appliance node.
  14. Click vRA Settings > Cluster.
  15. Use Join Cluster to re-join each replica node to the cluster.
  16. Restart each replica node.
  17. In DNS, remove the existing DNS record with the old master host name.