Note: Back up both the SRM and VRMS databases before performing the steps below.
- Change the vCenter Server user name and/or password in Active Directory.
- Run the SRM installer with the modify option at both sites using the new vCenter Server user name and password.
- Pair the SRM sites. For more information, see the Connect the Sites section of the Site Recovery Manager Administration Guide.
- To change the vCenter Server user name and password used on the vSphere Replication Management Servers (VRMS):
Note: Repeat this procedure for both servers.
- Use SSH to connect to the VRMS, and log in using the
root
user credentials. - Encode the new vCenter Server user password by running the command:
python -c "import base64; print(base64.b64encode('new_vCenter_user_password'))"
The output is an encoded password. For example:
dmlydHVhbGx5aHlwZXI=
- Navigate to the
/opt/vmware/hms/conf
directory and open the hms-configuration.xml
file in a text editor. - Update the password and/or user name in the file by entering the newly encoded password and user name, if applicable. For example:
<hms-localvc-user>Administrator</hms-localvc-user>
<hms-localvc-password>Y2EkaGMwdw==</hms-localvc-password>
- Connect to the VRMS database with an SQL client.
- Highlight the VRMS database from the inventory and open a New Query window.
- Extract the key and value pairs for the vCenter Server user name and password stored in the database by running this query:
SELECT configKey,configValue FROM ConfigEntryEntity;
- Update the vCenter Server user password in the
ConfigEntryEntity
table by running this query:
UPDATE ConfigEntryEntity SET configValue = 'encoded_new_vCenter_user_password' WHERE configKey = 'hms-localvc-password'
- If you also changed the vCenter Server user name, update it in the
ConfigEntryEntity
table by running this query:
UPDATE ConfigEntryEntity SET configValue = 'new_vCenter_username' WHERE configKey = 'hms-localvc-user'
- Verify that the values have been updated correctly by running the query:
SELECT configKey,configValue FROM ConfigEntryEntity WHERE configKey IN ('hms-localvc-password', 'hms-localvc-user')
Example output:
configKey configValue
hms-localvc-password encoded_new_vCenter_user_password
hms-localvc-user new_vCenter_username
- Restart the
hms
service to make the changes take effect by running the command:
/etc/init.d/hms restart
After completing these steps, the VRMS successfully connects to the vCenter Server. Log into Site Recovery Manager and reconfigure the VRMS pairing.