Adding the VMKernel IP to the root permissions -- NFS
Verfasst: 26.11.2011, 16:14
Hallo Zusammen,
letzter Versuch mit NFS Datastore.
NFS share auf einer QNAP NAS lässt sich verbinden, durchsuchen abe rnicht schreiben.
Nach weiterer recherche habe ich folgendes gefunden.
Wie realisiere ich das geschilderte?
Adding the VMKernel IP to the root permissions, mounting with no_root_squash
-----------------------------------
After much digging and experimentation, I did resolve the problem. Here’s what you have to check:
1. The VMKernel IP must be in the root hosts permissions on the NFS export. I put in the IP of the ESX server along with the VMKernel IP.
2. The NFS export must be mounted with the no_root_squash option. By default, the root user with UID 0 is not given access to an NFS volume, mounting the export with no_root_squash allows the root user access. The VMkernal must be able to access the NFS volume with UID 0.
I first set up the exports and permissions settings in the GUI, then went to the CLI to add the mount options.
command: server_mount server_2 -option rw,uncached,sync,no_root_squash <sharename> /<sharename>
3. From within the ESX Console/Virtual Center, the Firewall settings should be updated to add the NFS Client. Go to ‘Configuration’ | ‘Security Profile’ | ‘Properties’ | Click the NFS Client checkbox.
4. One other important item to note when adding NFS mounted datastores is the default limit of 8 in ESX. You can increase the limit by going to ’Configuration’ | ‘Advanced Settings’ | ‘NFS’ in the left column | Scroll to ‘NFS.MaxVolumes’ on the left, increase the number up to 64. If you try to add a new datastore above the NFS.MaxVolumes limit, you will get the same error in red at the top of this post.
That’s it. Adding the VMKernel IP to the root permissions, mounting with no_root_squash, and adding the NFS Client to ESX resolved the problem.
---------------------------------------------------------
letzter Versuch mit NFS Datastore.
NFS share auf einer QNAP NAS lässt sich verbinden, durchsuchen abe rnicht schreiben.
Nach weiterer recherche habe ich folgendes gefunden.
Wie realisiere ich das geschilderte?
Adding the VMKernel IP to the root permissions, mounting with no_root_squash
-----------------------------------
After much digging and experimentation, I did resolve the problem. Here’s what you have to check:
1. The VMKernel IP must be in the root hosts permissions on the NFS export. I put in the IP of the ESX server along with the VMKernel IP.
2. The NFS export must be mounted with the no_root_squash option. By default, the root user with UID 0 is not given access to an NFS volume, mounting the export with no_root_squash allows the root user access. The VMkernal must be able to access the NFS volume with UID 0.
I first set up the exports and permissions settings in the GUI, then went to the CLI to add the mount options.
command: server_mount server_2 -option rw,uncached,sync,no_root_squash <sharename> /<sharename>
3. From within the ESX Console/Virtual Center, the Firewall settings should be updated to add the NFS Client. Go to ‘Configuration’ | ‘Security Profile’ | ‘Properties’ | Click the NFS Client checkbox.
4. One other important item to note when adding NFS mounted datastores is the default limit of 8 in ESX. You can increase the limit by going to ’Configuration’ | ‘Advanced Settings’ | ‘NFS’ in the left column | Scroll to ‘NFS.MaxVolumes’ on the left, increase the number up to 64. If you try to add a new datastore above the NFS.MaxVolumes limit, you will get the same error in red at the top of this post.
That’s it. Adding the VMKernel IP to the root permissions, mounting with no_root_squash, and adding the NFS Client to ESX resolved the problem.
---------------------------------------------------------