Large deployments require increasing vSphere Replication Server memory
search cancel

Large deployments require increasing vSphere Replication Server memory

book

Article ID: 312759

calendar_today

Updated On:

Products

VMware Live Recovery VMware vSphere ESXi

Issue/Introduction

On very large deployments, vSphere Replication Server can fail during some SRM workflows. The server restarts, but might fail again, or the recovery might fail.
 


Resolution

  1. For the additional vSphere Replication server appliances in the inventory, increase the virtual machine memory size after checking the current memory consumption. To check the current memory consumption of the appliance, run the command below.
root [ ]# systemctl status hbrsrv
● hbrsrv.service - Host-based replication server.
   Loaded: loaded (/lib/systemd/system/hbrsrv.service; enabled; vendor preset: enabled)
   Active: active (running) since Wed 2023-10-04 00:19:05 UTC; 3 weeks 1 days ago
 Main PID: 861 (hbrsrv-bin)
    Tasks: 405 (limit: 2351)
   Memory: 275.5M (limit: 1.2G)
   CGroup: /system.slice/hbrsrv.service
           861 /usr/bin/hbrsrv-bin --daemon --pidfile /var/run/hbrsrv/hbrsrv.pid --vmodlport 8123 --lwdport 31031 --lwdsport 32032
           └─865 /usr/bin/logger -p daemon err -t hbrsrv.stdout[861]

Oct 04 00:19:04 vrms.prod.local systemd[1]: Starting Host-based replication server....
Oct 04 00:19:05 vrms.prod.local systemd[1]: hbrsrv.service: Can't open PID file /var/run/hbrsrv/hbrsrv.pid (yet?) after start: No such file or directory
Oct 04 00:19:05 vrms.prod.local systemd[1]: Started Host-based replication server..

MAX_MEM_SIZE = Max number megabytes of resident system memory the hbrsrv may consume. Note that this is _resident_ memory. So it is possible for the hbrsrv to consume more than this if there is available swap space. Default is 640.
  1. Increase memory size from VM Edit Settings for the VRMS & the VR Add-ons
  1. Increase the MAX_MEM_SIZE for the vSphere Replication Server in the VRMS and VR Add-ons:
                 a. Log into the appliance.
                 b. In the /etc/hbrsrv-init.config file change the MAX_MEM_SIZE setting from 640 to 1024 or higher depending on the limit you see for hbrsrv. Look at the command above. The value must be set in megabytes.
  1. Restart the appliances after performing the steps above.
  
For translated versions of this article, see:
日本語:規模の大きい構成では vSphere Replication Server のメモリサイズの増加が必要となる (2063849)