Symptoms:
/var/run/log/vmkernel.log/var/log/vmware/hbrsrv.log
/var/run/log/hostd.log
Note: This log excerpt is an example. Date, time, and environmental variables may vary depending on your environment.
VMware vSphere Replication 6.5.x
VMware vSphere Replication 8.x
This issue is encountered due to the host experiencing NFC memory shortage, caused by an excessive number of retries or uncleared stale sessions.
To resolve this issue, restart the management services on the target host and see if we hit these errors.
In case the above steps does not resolve the issue, increase the session memory for nfc by changing the parameters in etc/vmware/hostd/config.xml nfcsvc config section and restart the hostd services.
<nfcsvc>
<path>libnfcsvc.so</path>
<enabled>true</enabled>
<maxMemory>50331648</maxMemory> <================= increase this to a larger value say 60*1024*1024
<maxStreamMemory>10485760</maxStreamMemory>
</nfcsvc>
For ESXi 7.0 U2, the service configuration settings are now stored in a dedicated configuration store database accessible by using /bin/configstorecli.
Below are the steps to modify the NFC settings:
1. Import the configuration to a temporary JSON file: $ /bin/configstorecli config current get -c esx -g services -k hostd -outfile tmp.json
2. Edit the file:
$ vi tmp.json
3. By default, maxMemory parameter is set to value 100663296. Set it to 150663296 (set the value as per the environmental requirement) :
<nfcsvc> <path>libnfcsvc.so</path> <enabled>true</enabled> <maxMemory>100663296</maxMemory> <================= increased this to 150663296 <maxStreamMemory>35651584</maxStreamMemory> </nfcsvc>
4. Save the changes : Hit Esc -> :wq!
5. Apply the file to the database:
$ /bin/configstorecli config current set -c esx -g services -k hostd -infile tmp.json
6. Restart hostd service: $ /etc/init.d/hostd restart
Note: In case of multiple host, decode the host name from the vCenter Sever mob page of DR site as per the host name in HBR logs.
NFC operations running out of memory indicate that there are concurrent NFC sessions requests coming in for the ESXi host. It is advised to reduce the number of NFC sessions getting created. For instance, where the NFC operations are the VM replication requests, the number of VM replications can be reduced.