This problem occurs when the SNMP agent fails to remove the /var/spool/snmp folder, causing the hostd process to continue to write trap files to this location.
When this happens you are unable to execute any tasks on the host, unable to reconnect a host that is disconnected from vCenter Server, /var/spool/snmp location is filled up with SNMP trap files and You will see below error log in the vmkernel.log file on the ESXi host:
The file table of the ramdisk ‘root’ is full. As a result, the file /var/run/vmware/tickets/vmtck-<UUID> could not be created by the application ‘hostd-worker’
To solve this issue follow the steps below:
1. Log in to ESXi host with root using SSH session.
2.Enter this command to prevent the SNMP service from starting upon boot:
esxcli system snmp set -e 0
3. Type this command to stop the SNMP service and remove /var/spool/snmp by typing this command:
/etc/init.d/snmpd stop rm -rf /var/spool/snmp
Finally, restart the ESXi host.
If You have any question about this or another topic Please feel free to email us. You can also ask to create specific articles which you want to see on our blog.