Configuring replication fails with error: "No host can be used to access datastore path '[####-####] ####/#####.vmdk'. "
search cancel

Configuring replication fails with error: "No host can be used to access datastore path '[####-####] ####/#####.vmdk'. "

book

Article ID: 440451

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

Symptoms:

  • Configuring replication fails with error:

    "No host can be used to access datastore path '[####-####] ####/#####.vmdk'. "

  • Existing replications goes to "Not Active" state.

  • Replication starts working when moved to a different host.

  • VMs under the replication tab display the following error:

    A replication error occurred at the vSphere Replication Server for replication '####-#####'. Details: 'No connection to VR Server for virtual machine #####-#### on host ####.###.###.## in cluster ####.####.####.## in #####-######: Not responding'

  • Few host information in the Hostinfo table in hbrsrv.##.db at the source site is not updated in hbrsrv.###.db table at the target site VR appliance.

 

Environment

  • VMware ESXi 8.x
  • VMware ESXi 9.x
  • vSphere Replication 9.0.2, 9.0.2.2, 9.0.2.3

Cause

  • These errors can arise when a server’s motherboard is replaced or ESXi is reinstalled or the host is tagged with DISALLOW tag. Also, A certificate synchronization failure prevented the vSphere Replication Management Server (VRMS) from properly registering and trusting peer site ESXi hosts for enhanced replication traffic i.e. desynchronized state between the peers.

  • The /var/run/log/VMkwarning.log file from source host confirms connection failures to vSphere replication appliance:

    YYYY-MM-DDTHH:MM.SSSZ Wa(180) vmkwarning: cpu0:8847777)WARNING: Hbr: 5362: Failed to establish connection to [127.0.0.1]:32032 (groupID=GID-########-####-####-####-############): Broken pipe
    YYYY-MM-DDTHH:MM.SSSZ Wa(180) vmkwarning: cpu1:8847777)WARNING: Hbr: 788: Failed to receive from 127.0.0.1 (groupID=GGID-########-####-####-####-############): Broken pipe
    YYYY-MM-DDTHH:MM.SSSZ Wa(180) vmkwarning: cpu1:8847777)WARNING: Hbr: 2542: Failed to receive extended handshake response
    YYYY-MM-DDTHH:MM.SSSZ Wa(180) vmkwarning: cpu1:8847777)WARNING: Hbr: 5362: Failed to establish connection to [127.0.0.1]:32032 (groupID=GID-########-####-####-####-############): Broken pipe
    YYYY-MM-DDTHH:MM.SSSZ Wa(180) vmkwarning: cpu54:8847777)WARNING: Hbr: 788: Failed to receive from 127.0.0.1 (groupID=GID-########-####-####-####-############): Broken pipe
    YYYY-MM-DDTHH:MM.SSSZ Wa(180) vmkwarning: cpu54:8847777)WARNING: Hbr: 2542: Failed to receive extended handshake response

  • The hbrsrv.log file report below errors: 

    YYYY-MM-DDTHH:MM.SSSZ In(166) hbrsrv[8848852]: [Originator@6876 sub=Main opID=hs-init-#####] HbrError stack:
    YYYY-MM-DDTHH:MM.SSSZ In(166) hbrsrv[8848852]: [Originator@6876 sub=Main opID=hs-init-#####]    [0] Resource temporarily unavailable
    YYYY-MM-DDTHH:MM.SSSZ In(166) hbrsrv[8848852]: [Originator@6876 sub=Main opID=hs-init-#####]    [1] NfsVfs: While trying to lock '/vmfs/volumes/######-########/.hbrroot_################################################################/persistent-cleanup-index-#####-#####-#####-#####-############.db'
    YYYY-MM-DDTHH:MM.SSSZ In(166) hbrsrv[8848852]: [Originator@6876 sub=Main opID=hs-init-#####]    [2] Ignored error.
    YYYY-MM-DDTHH:MM.SSSZ In(166) hbrsrv[8848852]: [Originator@6876 sub=Main opID=hs-init-#####] HbrError stack:
    YYYY-MM-DDTHH:MM.SSSZ In(166) hbrsrv[8848852]: [Originator@6876 sub=Main opID=hs-init-#####]    [0] SQLite error 14: unable to open database file
    YYYY-MM-DDTHH:MM.SSSZ In(166) hbrsrv[8848852]: [Originator@6876 sub=Main opID=hs-init-#####]    [1] Opening database /vmfs/volumes/######-######/.hbrroot_################################################################/persistent-cleanup-index-#####-#####-#####-#####-############.db 'Retry #2 for operation 'Open database '/vmfs/volumes/######-########/.hbrroot_################################################################/persistent-cleanup-index-#####-#####-#####-#####-############.db'', Total time retrying: 20.6158 secs.'

  • The hbr-agent.log report below errors: 

    YYYY-MM-DDT1HH:MM.SSSZ In(166)[+] hbr-agent-bin[######]: thumbprint: ##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##
    YYYY-MM-DDTHH:MM.SSSZ In(166)[+] hbr-agent-bin[######]: certificate:-----BEGIN CERTIFICATE-----
    YYYY-MM-DDTHH:MM.SSSZ In(166)[+] hbr-agent-bin[######]: ####/########/########
    YYYY-MM-DDTHH:MM.SSSZ In(166) hbr-agent-bin[######]: [0x000000fd97e3a700] info: [ConfigManager] No user configuration for key=hbrsvc_target_info in ConfigStore.
    YYYY-MM-DDTHH:MM.SSSZ In(166) hbr-agent-bin[######]: [0x000000fd97e3a700] error: [ConfigManager] Failed to get config store object. Comp: esx, Grp: services, Key: hbrsvc_target_info, Id: ##.#.#.#, Prop: certificate
    YYYY-MM-DDTHH:MM.SSSZ In(166) hbr-agent-bin[######]: [0x000000fd97e3a700] info: [ProxyConnection] Setting up secure tunnel to broker on ######:32032
    YYYY-MM-DDTHH:MM.SSSZ In(166) hbr-agent-bin[######]: [0x000000fd97e3a700] info: [Proxy [Group: ] -> [##.#.#.#:32032]] Bound to vmk: vmk11 for connection to #######:32032
    YYYY-MM-DDTHH:MM.SSSZ In(166) hbr-agent-bin[######]: [0x000000fd97cb7700] info: [Proxy [Group: ] -> [##.#.#.#::32032]] TCP Connect latency was 2634µs
    YYYY-MM-DDTHH:MM.SSSZ In(166) hbr-agent-bin[######]: [0x000000fd97db9700] error: [Proxy [Group: GID-########-####-####-####-############] -> [######:32032]] The find server request failed: (1) Failed
    YYYY-MM-DDTHH:MM.SSSZ In(166) hbr-agent-bin[######]: [0x000000fd97db9700] error: [Proxy [Group: GID-########-####-####-####-############] -> [######:32032]] Failed find server request additional error info: Thumbprint and certificate is not allowed to send replication data

  • The hms.log file report issues in validating the certificate chain:

    YYYY-MM-DD HH:MM.SSS INFO  com.vmware.hms.hbrsrvuw.HbrsrvuwRegistrarService [hms-main-thread-5133] (..hms.hbrsrvuw.HbrsrvuwRegistrarService) [operationID=########-####-####-####-#######-HMSINT-#######] | handleHmsTaskFinishedEvent: [host-######][#######-####-####-####-############]: HmsTaskFinishedEvent[id: HTID-########-####-####-####-############; taskName: Register hbrsrvuw from host-######; taskManagedEntityId: null; taskTypeId: RegisterHbrTask; requestedExecutorId: hbr-management; taskTag: hbrsrvuw-reg-host-######--id--#######-####-####-####-############; autoAbort: true; queueTime: #######; startTime: ######; completeTime: null; error
    : Cannot start connection to VR Server https://##.#.#.#:443/hbr: null; success: false; result: null]
    YYYY-MM-DD HH:MM.SSS INFO  com.vmware.jvsl.util.SingleThumbprintVerifier [hms-ping-scheduled-thread-8] (..jvsl.util.SingleThumbprintVerifier) [operationID=########-####-####-####-#######-HMSINT-#######, operationID=########-####-####-####-############-HMS-PING] | Failed to validate certificate chain for ##.#.#.# against HMS truststore. Error message: The certificate was not issued for use with the given hostname: #######
    YYYY-MM-DD HH:MM.SSS ERROR com.vmware.hms.hbrsrvuw.HbrsrvuwRegistrarService [hms-main-thread-5133] (..hms.hbrsrvuw.HbrsrvuwRegistrarService$HostTask) [operationID=########-####-####-####-############-HMSINT-#######] | Register hbrsrvuw from host-######...FAILED (HTID-########-####-####-####-############); will retry
    com.vmware.vim.binding.hms.remote.fault.ConnectionFault: Cannot start connection to VR Server https://##.#.#.#:443/hbr: null


    YYYY-MM-DD HH:MM.SSS DEBUG com.vmware.hms.monitor.host [hms-main-thread-31] (..monitor.host.HostInventoryMonitor) [operationID=########-####-######-HMSINT-###, operationID=########-###-###########-HMSINT-###] | host host-### is disallowed: true
    YYYY-MM-DD HH:MM.SSS DEBUG com.vmware.hms.monitor.host [hms-main-thread-86] (..monitor.host.HostInventoryMonitor) [operationID=########-####-#######-HMSINT-### | host host-### is disallowed: true
    YYYY-MM-DD HH:MM.SSS DEBUG com.vmware.hms.monitor.host [hms-main-thread-31] (..monitor.host.HostInventoryMonitor) [operationID=########-####-####-####-############-HMSINT-106441] | host host-### is disallowed: true

 

Resolution

Validate the current certificate used by ESXi - 

COMMAND: openssl s_client -connect <Host FQDN/IP Address>:443 | openssl x509 -noout -fingerprint -sha256

  1. Step 1:

    To Ensure there is no DISALLOW TAG assigned to host from vsphere UI or VRMS DB.

    1. Navigate to /opt/vmware/hms/conf → cat embedded_db.cfg → Copy the VRMSDB Password from here and paste it in step 2.
    2. Connect vrmsdb  “/opt/vmware/vpostgres/current/bin/psql -U vrmsdb“
    3. run query : select vcmoid,aggregateversion,clustermoid,lastknownthubmprint,state from hostentity where state='5';
      State 5 means DISALLOW host.
    4. if any DISALLOW host are there, remove the tag from vCenter and restart HMS and HBRSRV service in VR appliance.

  2. Step 2:

    To be followed, if STEP 1 does not work or in case of not valid case.
    To ensure the same certificate is used by hbr-agent, restart the hbrsrv and hbr-agent services by going to Configuration > Services on the ESXi host.
    Using commands to restart these services from ESXi SSH -

    /etc/init.d/ restart hbrsrv
    /etc/init.d/ restart hbr-agent

    Restart HMS on vSphere replication appliance:

    systemctl restart hms

  3. Step 3:

    To be followed, if STEP 2 does not work. Try with RECONNECT the site pair.

  4. Step 4:

    To be followed, if STEP 3 does not work.

    Enhanced replication mode requires securely authenticated connections between the replication appliances and the ESXi hosts across both sites. When the VRMS appliance boots or when new hosts are introduced, it must synchronize and trust the peer site host certificates. Because this synchronization was failing silently in the background, the VRMS could not build secure connections to the hosts. Consequently, the hosts were omitted from the replication database (`HostInfo` table), blocking the enhanced replication data path and causing the replications to stall in an RPO violation state. Legacy mode bypassed this specific certificate trust enforcement, allowing traffic to flow temporarily.

Check for a maintenance window and follow the below steps:

  1. Take the snapshot of VR appliances for both the sites.
  2. Change the value <sync-peer-site-host-certificates-on-boot> to true in hms-configuration.xml file in both sites of VR appliances. It will force host sync between the sites.
  3. Restart HMS on both sites and wait for a few minutes.
  4. RECONNECT the site pair.
  5. Also,( optional and in case of Enhanced replication) If any VR ADD-ON appliance is running, then shut down the VR ADD-ON appliance as it is not required in Enhanced replication. 

The default value of "sync-peer-site-host-certificates-on-boot" is always set as FALSE.

Here is a quick breakdown of how changing this setting affects behavior:

When Disabled (false - Default):

  • Behavior: After hms starts, it only performs a targeted catch-up for sites where it does not yet have host mirror information. If host data is already cached from before the restart, it skips a full site-wide refresh.

  • Impact: Routine restarts are faster, lighter, and don’t require all remote sites to be immediately reachable at boot. Day-to-day changes continue to sync via standard runtime mechanisms.

When Enabled (true):

  • Behavior: After hms starts, it forces a scheduled, full refresh of host information across all paired sites, even if cached data already exists.

  • Impact: Startup is heavier and relies on immediate connectivity to all remote sites to rebuild the full topology. This is primarily used for troubleshooting or recovery scenarios where a complete baseline resync is needed.

With the setting (sync-peer-site-host-certificates-on-boot) off, restarts are faster and do not require all remote sites to be online to boot successfully. Turning it on forces a full re-sync across all partners after every restart (useful for troubleshooting), but with higher startup overhead and strict network requirements.

 

 

Additional Information

Before initiating a migration from Legacy to Enhanced replication, the user must ensure that the vSphere Replication Management Server has direct network connectivity to the management networks of all ESXi hosts intended to participate in the vSphere Replication protection workflows. This requirement applies to both the source hosts running the protected production VMs and the target hosts running the receiving replication traffic service instances.