How to change vROps Master Node IP Address

changeFrom time to time a change is needed and in the case of vROps, changing the Master Node IP address is not something you will do via the GUI (well, at least not all the configurations 🙂 ).

Note: As always, it’s better to be safe than sorry so don’t be a hero and take a snapshot on vROps virtual machine before you start.

The first thing you need to do is to make sure you bring vROps cluster offline. This can be done via vROps admin UI at https://<your Master Node IP>/admin/

As a result of taking the cluster offline, the Master Node will be brought offline as well.

01

02

03

04Shutdown the Master Node VM and change its IP address. In vROps, this configuration is part of the VM properties.

05

06

Before powering on the VM, make sure to change any DNS A record you might have pointing to the old IP address.

Once the VM is up and running, open SSH console session. If you don’t how to do it, check out my previous post.

10Changing the IP in the VM properties is not enough, we also need to make sure the GemFire and the vROps cluster service are also aware of the change.

Navigate to /usr/lib/vmware-vcopssuite/utilities/sliceConfiguration/bin and run the following script:

./vcopsConfigureRoles.py –adminCS <Your New Master Node IP>

09If you feel like manual process is your thing (or if you just want to validate the script did its job), edit the IP address in the following 3 configuration files:

/usr/lib/vmware-vcopssuite/utilities/sliceConfiguration/data/roleState.properties

/usr/lib/vmware-vcops/user/conf/gemfire.properties

/usr/lib/vmware-vcops/user/conf/persistence/persistence.properties

10.1
roleState.properties
gemfire.properties
gemfire.properties
persistence.properties
persistence.properties

After the change has been made, all that is left is to login to the admin UI again (using the new IP address of course) and bring the cluster (and the Master Node for that matter) online again.

13

 That’s it – New IP, simple as that…

3 Comments

  1. Hi,

    You are missing this in you guide:
    #Stop the CaSA service
    service vmware-casa stop

    #Edit the following file:
    /storage/db/casa/webapp/hsqldb/casa.db.script

    #Update the old IP to the new IP
    #If the IPs do not exist yet in casa.db.script, start then stop the CaSA service.
    #Start the CaSA service
    service vmware-casa start

  2. thank you for this. Just pointing out you need 2 of the “-” before adminCS. so it should be:

    ./vcopsConfigureRoles.py –adminCS

  3. You’ll also need to check
    /usr/lib/vmware-vcops/user/conf/gemfire.native.properties
    /usr/lib/vmware-vcops/user/conf/gemfire.locator.properties

    In 6.1+ you also need to check
    /usr/lib/vmware-vcops/user/conf/cassandra/cassandra.yaml

1 Trackback / Pingback

  1. vROPS Changing Node Address | Cloud & Virtualization

Leave a Reply