How to change a node hostname in vRealize Operations Manager
search cancel

How to change a node hostname in vRealize Operations Manager

book

Article ID: 337564

calendar_today

Updated On:

Products

VMware Aria Suite

Issue/Introduction

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

Environment

VMware vRealize Operations Manager 7.5.x
VMware vRealize Operations Manager 7.0.x
VMware vRealize Operations Manager 6.7.x
VMware vRealize Operations Manager 6.6.x
VMware vRealize Operations 8.0.x

Resolution

Ensure a valid forward and reverse DNS entry are created on the Domain Controller.

To change a node hostname in vRealize Operations Manager:

vRealize Operations Manager 6.0.x :

  1. Use the vRealize Operations Manager administrator interface to take the cluster offline.
  2. Log in to the console of the vRealize Operations Manager node.
  3. To prevent the vApp from updating the host file to the reverse DNS value when the node is restarted, remove the vami_setnetwork file by running this command:

    rm /opt/vmware/etc/vami/flags/vami_setnetwork
     
  4. Change the hostname by running this command:

    /opt/vmware/share/vami/vami_set_hostname new-hostname
     
  5. Restart the node.
Note: If the hostname fails to update after a restart, follow Restoring the vApp properties in vRealize Operations Manager 6.x and Later and try steps 2-5 again.
  1. Use the vRealize Operations Manager administrator interface to bring the cluster online.

vRealize Operations Manager 6.1.x and later:

  1. Log in to the vRealize Operations Manager 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.
Note: If the hostname fails to update after a restart, follow Restoring the vApp properties in vRealize Operations Manager 6.x and Later and try steps 3-5 again.
  1. Use the vRealize Operations Manager admin UI to bring the cluster online.


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 vRealize Operations Manager 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 in the cluster.

For translated versions of this article, see: