When attempting to create or manage Enhanced Replication Mappings within the Site Recovery Manager (SRM) or vSphere Replication (VR) plugin, the following symptoms occur:
VRMS error (InvalidState).VLR (VMware Live Recovery) 9.x or higher
This issue could be caused by one or more of the following environment failures occurring independently or in combination:
To resolve this issue, evaluate and perform the following actions based on the specific failures identified in your environment. Note: Section 1 and Section 2 should be performed on both the source and target site vSphere Replication appliances.
Before proceeding, take a virtual machine snapshot of both VRMS appliances.
Follow these steps on each appliance to clean the embedded database:
systemctl stop hms/opt/vmware/hms/bin/embedded_db_connect.shselect hbrserver_movalue from hbrtagentity where hbrserver_movalue IN (select movalue from hbrserverentity where vsrv_port = 443 AND NOT EXISTS (select hbrserver_movalue from secondarygroupentity where hbrserverentity.movalue = secondarygroupentity.hbrserver_movalue));
select hbrservername,movalue from hbrserverentity where vsrv_port = 443 AND NOT EXISTS (select hbrserver_movalue from secondarygroupentity where hbrserverentity.movalue = secondarygroupentity.hbrserver_movalue);delete from hbrtagentity where hbrserver_movalue IN (select movalue from hbrserverentity where vsrv_port = 443 AND NOT EXISTS (select hbrserver_movalue from secondarygroupentity where hbrserverentity.movalue = secondarygroupentity.hbrserver_movalue));
delete from hbrserverentity where vsrv_port = 443 AND NOT EXISTS (select hbrserver_movalue from secondarygroupentity where hbrserverentity.movalue = secondarygroupentity.hbrserver_movalue);If the HBR agent is missing from ESXi hosts (esxcli software vib list | grep hbr), enable auto-installation:
grep -i hms-auto-install-hbragent-vib /opt/vmware/hms/conf/hms-configuration.xmlfalse, run the following: /opt/vmware/hms/bin/hms-configtool -cmd reconfig -property hms-auto-install-hbragent-vib=truesystemctl restart hms Note: VRMS will now push the HBR VIBs to the local ESXi hosts.Insecure communication between vCenter/SRM and VRMS can block Enhanced Replication.
Modifying the embedded database and changing system certificates carries risk and will temporarily interrupt replication services. Ensure snapshots are confirmed healthy before making changes.