Solved

unable to write to NFS datastore

Posted on 2013-06-03
5
3,318 Views
Last Modified: 2013-06-04
Hi,

I have just cteated NFS datastores in vCenter 4.1.  The datastores point to volumes on my Netapp filer runing Ontap 8.1.2

The problem I am having is that I am unable to write to the datastore.  I did not tick the read only option when mounting the datastore.  

When I try and create a VM on the datastore I get the following error:

"unable to access file [test] New Virtual Machine"

"test" is the name of my datastore.  "New Virtual Machine" is the default name of the new VM i'm trying to create.

I have also tried uploading files to the "test" datastore.  When trying to upload very small files I get "Error: No Permission" and when trying to upload larger file i get "I/O error occurred"

I have read that this problem could be caused by not setting the no route squash option so I added the  "anon=0" parameter to the /etc/exports file on my filer but this didn't fix the problem.

I have previously been able to create a volume on my filer and mount it NFS to my ESX hosts through vCenter and write to it successfully.  The only thing that has changed is that I have now enabled CIFS and registered the filer in my Domain.

Regards
0
Comment
Question by:carbonbase
  • 2
  • 2
5 Comments
 
LVL 22

Expert Comment

by:Haresh Nikumbh
ID: 39215780
check if you have read-write access enabled for root on the Datastore

http://communities.vmware.com/thread/409930?start=0&tstart=0
0
 

Author Comment

by:carbonbase
ID: 39216134
thanks takecoffe,

I added the "root=" option as detailed in the link you sent me but i'm still unable to write to the datastore.  Here is the contents of my /etc/exports file:

#Auto-generated by setup Thu Jul 12 06:43:56 GMT 2007
/vol/vol0       -sec=sys,rw,nosuid
/vol/vol0_new   -sec=sys,rw,nosuid
/vol/test       -sec=sys,rw,root=10.17.7.140,anon=0
0
 
LVL 42

Accepted Solution

by:
paulsolov earned 300 total points
ID: 39218323
two things that you need.

1.  Make sure your vmkernel port has read/write and root access to the volume

If you have the Netapp VSC installed you and under provisioning you have the correct resources mapped out you can create the datastore directly from vCenter and it will assign the correct permissinos to the datastore as well as assign the datastore to all host (if you're doing under the cluster level)
0
 

Author Closing Comment

by:carbonbase
ID: 39218518
Thank you paulsolov.  Creating the datastore via VSC worked.  I checked the /etc/exports file after I created the new datastore through vSC and the entry for the new datastore was formatted in this way:

/vol/vsc_Datastore      -rw=10.17.7.140,root=10.17.7.140,nosuid

So it seems both the "-rw" option and the "root" options both need to explicitly point to the storage IP of the host.  

I modified the entry in the /etc/exports file for the datastore I was unable to write to and I can now write to it as well.

I'm not sure why creating the datastore through vCenter now no longer sets the right options as it has done previously.  

On your point 1, is there something specific I should check to make sure that the vmkernel port has read/write and root access to the volume beyond checking the /etc/exports file on the Netapp filer?
0
 
LVL 42

Expert Comment

by:paulsolov
ID: 39218554
exports should work ok but if creating in VSC and you don't have resources correct it may create it on an incorrect interfaces.
0

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

AWS Glacier is Amazons cheapest storage option and is their answer to a ‘Cold’ storage service.  Customers primarily use this service for archival purposes and storage of infrastructure backups.  Its unlimited storage potential and low storage cost …
When we purchase storage, we typically are advertised storage of 500GB, 1TB, 2TB and so on. However, when you actually install it into your computer, your 500GB HDD will actually show up as 465GB. Why? It has to do with the way people and computers…
This video teaches viewers how to encrypt an external drive that requires a password to read and edit the drive. All tasks are done in Disk Utility. Plug in the external drive you wish to encrypt: Make sure all previous data on the drive has been …
This tutorial will walk an individual through the process of installing the necessary services and then configuring a Windows Server 2012 system as an iSCSI target. To install the necessary roles, go to Server Manager, and select Add Roles and Featu…

816 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now