"Replication server" Label does not report correct name in vSphere replication UI
search cancel

"Replication server" Label does not report correct name in vSphere replication UI

book

Article ID: 429564

calendar_today

Updated On:

Products

VMware Live Recovery

Issue/Introduction

Symptoms:

  • The Replication Server label is showing as ''127.0.0.1" in the Ongoing tab of the vSphere Replication UI.

  • Despite reconfiguring and rebooting the vSphere Replication Server, and confirming that DNS and the /etc/hosts file are correct, the 'Replication server' label incorrectly remains '127.0.0.1'.

  • No recent changes have been made to vSphere Replication Server certificates or the hostname.

Environment

VMware Live Recovery 9.x

Cause

  • The issue occurs if vSphere replication configuration information is incorrectly supplied during deployment.
  • Configuration details provided during deployment are stored in the vSphere Replication database. This data is referenced whenever the Replication UI is accessed.

There are 2 tables that hold VR server naming info.
  - hbrserverentity  .. ..... for LOCAL VR naming  
 -  hbrserverinfoentity ...for REMOTE VR naming   

vrmsdb=# select * from hbrsreverentity;

-[ RECORD 18 ]------------+------------------------------------------------------------------------------------------------
movalue                   | HBRSRV-########-####-####-####-############
internaljpaversion        | #
proxyurl                  |
vsrv_address              | 127.0.0.1
vsrv_certificate          | -----BEGIN CERTIFICATE-----| -----END CERTIFICATE-----|
vsrv_path                 |
vsrv_port                 | 8123
vsrv_protocol             | 1
vsrv_sitename             | #####.####.###.####
vsrv_thumbprint           | ##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##
vsrv_uuid                 | ########-####-####-####-#############
aggregateversion          | #
configurationurl          | https://#####.####.###.####:5480/
connected                 | t
connstatusupdaterequested | f
hbrservername             | 127.0.0.1
hostid                    |
hostuuid                  |
maxsupporteddistdbversion |
replicationtrafficaddress | ##.###.#.##
vmmoid 

vrmsdb=# select * from hbrserverinfoentity;
-[ RECORD 1 ]--------------+------------------------------------------------------------------------------------------------
uuid                       | ########-####-####-####-############
aggregateversion           | ##
configurationurl           | https://##.###.#.##:####/
connected                  | t
connstatusupdaterequested  | f
name                       | 127.0.0.1
repltrafficaddress         | ##.###.#.##
repltrafficport            |
resolvedrepltrafficaddress | ##.###.#.##
sitename                   | #####.####.###.####
tunnelid                   |
uri                        | https://127.0.0.1:8123
thumbprint                 | ##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##
certificate                | -----BEGIN CERTIFICATE-----                                                     | -----END CERTIFICATE-----

Resolution

  • Take Snapshot for vSphere replication server.

  • Extract the present info. from the 2 VR Db tables

    •  # select vmmoid, vsrv_address,  hbrservername, replicationtrafficaddress from hbrserverentity;

    •  # select uuid,configurationurl,name,sitename from hbrserverinfoentity

  • Collect the correct vSphere Replication server information like sitename, FQDN etc.

  • Update the Database table "hbrserverentity" with vSphere Replication Server name in "hbrservername" label.

    1. To access database password use below command
      $/opt/vmware/hms/bin/embedded_db_connect.sh

    2. To login to database use below command,

      $cd /opt/vmware/vpostgres/current/bin/psql -U vrmsdb

    3. To Update the database table run below command,

      vrmsdb# update hbrserverentity set hbrservername = 'Name of VR server' where vsrv_address='127.0.0.1';

      vrmsdb# select vmmoid, hbrservername, vsrv_address from hbrserverentity;

      $systemctl restart hms

      $systemctl restart hbrsrv
  • Update the  database table "hbrserverinfoentity" table with vSphere Replication Server name in "name" label.

    1. To access database password use below command
      $/opt/vmware/hms/bin/embedded_db_connect.sh

    2. To login to database use below command,

      $cd /opt/vmware/vpostgres/current/bin/psql -U vrmsdb

    3. To Update the database table run below command

      vrmsdb# update hbrserverinfoentity set name='Name of VR server' where sitename = '';

      vrmsdb# select uuid,configurationurl,name,sitename from hbrserverinfoentity;

      $systemctl restart hms

      $systemctl restart hbrsrv

Additional Information

For Reference, Replication server name does not report correct name in UI after VM display name has been updated.