You can use the cell management tool to update the IP addresses of the vCloud Director cells in a database high availability cluster.

Prerequisites

To update the IP addresses of the cells in a database high availability cluster, you must provide the IP address of the current primary. To find the IP address, check the status of the cluster to locate which node has the primary role. The node must be running. From that row, use the host value from the Connection string column to identify the IP address. See Check the Status of a Database High Availability Cluster.

Procedure

  1. Log in or SSH as root to the OS of any of the cells in the cluster.
  2. Check if the cell is running on that node.
    service vmware-vcd pid cell
    If the cell process ID is not NULL, the vCloud Director cell is running and you can change the IP address of the database without restarting the vCloud Director cell.
  3. To update the IP addresses on all the cells in the server group, run the following command:
    /opt/vmware/vcloud-director/bin/cell-management-tool reconfigure-database --database-host primary node IP address --pid cell process ID --remote-sudo-user postgres --private-key-path /opt/vmware/vcloud-director/id_rsa
    The system output indicates the successful reconfiguration.
  4. (Optional) Check if each vCloud Director cell is pointing to the correct database IP address.
    grep "database.jdbcUrl" /opt/vmware/vcloud-director/etc/global.properties
    The system output indicates that the cell is updated.
  5. If any of the cells is not updated, run the command to reconfigure it.
    • If the cell is not running, run the following command:
      /opt/vmware/vcloud-director/bin/cell-management-tool reconfigure-database --database-host primary node IP address
    • If the cell is running, run the following command:
      /opt/vmware/vcloud-director/bin/cell-management-tool reconfigure-database --database-host primary node IP address -i cell process ID
  6. If you reconfigured a cell that is not running, run the command to restart vCloud Director.
    service vmware-vcd restart