Your XigmaNAS, NAS4Free, FreeNAS, of in general your NFS server is repeatedly showing a mount access error denied in the logs. The NFS client that's trying to mount an NFS export that does not exist or once existed. The NFS client is a VMWare ESXi host.
The Problem
A VMWare ESXi host is trying to mount an NFS export that you deleted or moved. You log is spammed with endless mount request denied entries.
Jan 7 00:20:12 | storage | mountd: mount request denied from 10.8.8.249 for /mnt/CDImages |
Jan 7 00:20:12 | storage | mountd: mount request from 10.8.8.249 for non existent path /mnt/CDImages |
Jan 7 00:19:55 | storage | mountd: mount request denied from 10.9.9.250 for /mnt/CDImages |
Jan 7 00:19:55 | storage | mountd: mount request from 10.9.9.250 for non existent path /mnt/CDImages |
Jan 7 00:19:42 | storage | mountd: mount request denied from 10.8.8.249 for /mnt/CDImages |
Jan 7 00:19:42 | storage | mountd: mount request from 10.8.8.249 for non existent path /mnt/CDImages |
Jan 7 00:19:25 | storage | mountd: mount request denied from 10.9.9.250 for /mnt/CDImages |
Jan 7 00:19:25 | storage | mountd: mount request from 10.9.9.250 for non existent path /mnt/CDImages |
Jan 7 00:19:12 | storage | mountd: mount request denied from 10.8.8.249 for /mnt/CDImages |
Jan 7 00:19:12 | storage | mountd: mount request from 10.8.8.249 for non existent path /mnt/CDImages |
Jan 7 00:18:55 | storage | mountd: mount request denied from 10.9.9.250 for /mnt/CDImages |
Jan 7 00:18:55 | storage | mountd: mount request from 10.9.9.250 for non existent path /mnt/CDImages |
Jan 7 00:18:42 | storage | mountd: mount request denied from 10.8.8.249 for /mnt/CDImages |
Jan 7 00:18:42 | storage | mountd: mount request from 10.8.8.249 for non existent path /mnt/CDImages |
Jan 7 00:18:25 | storage | mountd: mount request denied from 10.9.9.250 for /mnt/CDImages |
Jan 7 00:18:25 | storage | mountd: mount request from 10.9.9.250 for non existent path /mnt/CDImages |
The ESXi host also displays the following error in it's logs:
2023-01-07T04:24:47.368Z cpu14:32813)WARNING: NFS: 221: Got error 2 from mount call
However the VMware VCenter or ESXi GUI does not show that NFS mount anywhere.
Solution
Enable SSH access on the problematic ESXi host, the log into it's console.
Search the /etc/vmware/esx.conf configuration file for the non-existent path that your NFS server logs show
cat /etc/vmware/esx.conf | grep /mnt/CDImages
The output should reveal the name of the data store that the host is attempting to mount
/nas/CD Images/share = "/mnt/CDImages"
/nas/CD Images/host = "10.8.8.241"
/nas/CD Images/enabled = "true"
/nas/CD Images/readOnly = "true"
You can now use the esxcli utility to remove the rouge NFS mount from the VMWare ESXi host's configuration
esxcli storage nfs remove -v "CD Images"
There will be no output from the command if it was successful and there is no need to restart the host.
The logs on your NFS server should no longer show the "mount request denied" errors.
- Log in to post comments