How to change a node hostname in Aria Operations
search cancel

How to change a node hostname in Aria Operations

book

Article ID: 337564

calendar_today

Updated On:

Products

VMware Aria Suite

Issue/Introduction

This article provides steps to change a node hostname in Aria Operations.

Environment

VMware vRealize Operations Manager 7.x
VMware vRealize Operations Manager 6.x
VMware Aria Operations 8.x

Resolution

Note: Ensure a valid forward and reverse DNS entry are created on the DNS server by performing a nslookup on IP and FQDN.


To change analytics node (primary, replica, data) hostname in Aria Operations:
  1. Log in to the Aria Operations admin UI
  2. Take the cluster OFFLINE
  3. Log in to the node as root
  4. Update the hostname by running this command:

    $VMWARE_PYTHON_BIN /usr/lib/vmware-vcopssuite/utilities/bin/sethostname.py NewHostName


    Where NewHostName is the hostname you want to use
     
  5. Restart the node from vCenter
  1. Use the Aria Operations admin UI to bring the cluster ONLINE

 

To change the Cloud Proxy hostname in Aria Operations:

    1. SSH into the Cloud Proxy as root.

    2. Update the hostname by running this command:

        $VMWARE_PYTHON_BIN /usr/lib/vmware-vcopssuite/utilities/bin/sethostname.py NewHostName

        Where NewHostName is the hostname you want to use.

    3. Restart the node from vCenter.

        Note: If the hostname fails to update after a restart, follow Restoring the vApp properties in VMware Aria Operations 8.12 and Below or Restoring vApp properties in VMware Aria  Operations 8.14 and Later and try steps 1-3 again.


Additional Information:

If the hostname was used when adding a node to the cluster, the entry needs to be updated in the casa.db.script file:

  1. Log in to VMware Aria Operations Master node as root through SSH or console.
  2. Stop the casa service, by running this command:

    service vmware-casa stop
     
  3. Back up the casa.db.script file, by running this command:

    cp /storage/db/casa/webapp/hsqldb/casa.db.script /tmp/casa.db.script.old
     
  4. Open /storage/db/casa/webapp/hsqldb/casa.db.script file using a text editor.
  5. Search for any instance of the old hostname in the ip_address field, and replace it with the new hostname.
  6. Save and exit the file.
  7. Start the casa service by running this command:

    service vmware-casa start
     
  8. Repeat steps 1 to 7 on all analytic nodes (primary, replica, data) in the cluster.