Error on ESX / ESXi 3.5x or 4.0x Host Adding NSF Storage

Mindwatering Incorporated

Author: Tripp W Black

Created: 01/14/2010 at 10:44 PM

 

Category:
VMWare
Storage - NFS

Issue:
You are adding a NSF share/storage to your VMware environment. When you complete the wizard, you get the error:
"Error during the configuration of the host: Cannot open volume; /vmfs/volumes/.....".

Solution:
This is a permissions issue.

If it is only on one ESXi or ESX server, then you mostly like have a client group issue on the NFS storage box.
Go to the list of allowed clients and add the IP address of the ESX server denied.
(/etc/exports on NFS server)
example:
$ sudo vi /etc/exports
/local/myshare 192.168.99.99(rw,sync,no_subtree_check,no_root_squash)
or
/local/myshare 192.168.99.0/24(rw,async,no_wdelay,nohide,no_subtree_check,no_root_squash)
<esc><:wq>
$ sudo exportfs -a
$ sudo service nfs-kernel-server restart


If all of your servers are getting this error than you have a global issue. Check the following:
1. Share permissions
When you setup a share in Windows, you have to setup its permissions afterwards. The default is read access. You can either allow anonymous access (and hopefully use the client access restriction list), or you can allow a root login with read-write. I did the latter.
In Linux you also need to check the NSF share's folder permissions for the user and the group to make sure it has access. If you are using the root login, there isn't usually a problem in Linux as root always has access.

2. Folder permissions
In Windows, it is possible that the folder permission within the folder you shared are not correct. I saw this a couple times when I restore a back-up to Windows NFS share (copying from DVD or SATA drive) to then move to my Openfiler system. Give either Everyone read-write access or the account that is mapped to root.

Note:
If reinstallation is desired. Do the following:
$ sudo apt-get update
$ sudo apt-get --reinstall install nfs-kernel-server nfs-common

Update the ufw rules:
$ sudo ufw allow from 192.168.99.0/24 to any port nfs
$ sudo ufw allow from 192.168.199.0/24 to any port nfs

Ubuntu 20: Uses port 111 (RPC), and some other high number ports, as well.


Verify:
$ sudo ufw status




previous page

×