Issue:
The NFS share display as Disconnected after the host's are rebooted.
The error message in the VMware console is:
Sysinfo error on operation returned status: I/O error. Please see the VMkernel log for detailed error information.
(which was less than helpful)
Solution:
I thought to test accessing the NFS store via my Mac via command line:
$ showmount -e 192.168.nnn.nnn
$ sudo mount -t nfs 192.168.nnn.nnn:/local /Volumes/nfs
The first command properly displayed the NFS shares on the server. Upon entering the second command, what I expected to get was a permission denied error. Instead, what I received was "Program Version Wrong". The error indicates that the NFS server is only offering NFS v2 protocols. The vs4 protocols are broken/off. OS X after verson 10.6 don't support the step-down to NFS v2.
Although the nfsd task is running and the nsf-kernel-server service can be restarted successfully, the Ubuntu log showed errors each time it started.
Turns out that weeks earlier Update Manager had automatically upgraded the nfs-kernel-server package and the nfs-common package. However, it kept the old configuration instead of using the package new one. Evidently, that is bad. I performed the following:
$ sudo apt-get update
$ sudo apt-get --reinstall install nfs-kernel-server nfs-common
Part way through the installation, I was prompted to use the package configuration (rather than default option to keep current configuration file). As the file was not /etc/exports, I chose to use the package option.
After rebooting the server (probably could have just restarted the nfs-kernel server service), I retested from my Mac and received the expected permission denied message.
In addition, the ESXi hosts could Connect successfully to the storage server, again.
When you do the /etc/exports file, make sure you that have the sync and no_root_squash options for best reliability. For much faster performance, you can choose async for much faster data transfers, but be wary of power outages, there would be lost data not written to disk. (The sync option limits speeds to about 2 kbps on Gbit network.)
$ sudo vi /etc/exports
/local/esx1 *(rw,sync,no_root_squash,no_subtree_check)
<esc> : wq
Remember to use sudo, so you don't received the operation is not permitted error, and you might need to do the reserved port flag:
$ sudo mount_nfs -o resvport 10.10.12.122:/home /Users/myuserid/tmp/
or
$ sudo mount -t nfs -o resvport 10.10.12.122:/home /Users/myuserid/tmp/
Restart Server:
$ sudo systemctl restart nfs-server
previous page
|