VMware Cloud Community
PramodKhalate
Enthusiast
Enthusiast

Unable to create VM in NFS Based Datastore.

Hello,

We have ESX 4.1 & VC 4.1..i have added 2 NFS based Datastore & 1 VMFS based Datastore, i 'm able to create VM in VMFS based datastore. But not able to create VM in both NFS based datastore getting below error and after browsing NFS Datastore two (.vmfs & .vmsd) files created less than 1KB. Both NFS Datastore is not selected Read only.

Please help.

If you find this or any other answer useful please consider awarding points by marking the answer correct or helpful
Reply
0 Kudos
7 Replies
vmroyale
Immortal
Immortal

Note: Discussion successfully moved from VMware vCenter Operations Manager to VMware vCenter™ Server

What NFS storage are you using and what options did you specify in your exports?

Brian Atkinson | vExpert | VMTN Moderator | Author of "VCP5-DCV VMware Certified Professional-Data Center Virtualization on vSphere 5.5 Study Guide: VCP-550" | @vmroyale | http://vmroyale.com
Reply
0 Kudos
PramodKhalate
Enthusiast
Enthusiast

Thanks vmroyale,

We are using NetApp Storage and storage guys just gave me below Qtree path 10.95.78.1:/vol/prod/prod_NFSD93 and i was successfully added NFS datastore in VC.

ec=sys,rw=10.25.81.41,10.25.81.42,10.25.81.43,10.25.81.44,10.25.81.45,nosuid

If you find this or any other answer useful please consider awarding points by marking the answer correct or helpful
Reply
0 Kudos
Rubeck
Virtuoso
Virtuoso

Hi..

To me it seems that root= is missing from the export statement.. Im not sure that rw= only will do it.

But check this with the storage guys...

/Rubeck

vGuy
Expert
Expert

check if you have read-write access enabled for root on the Datastore and no_root_squash option set (NetApp equivalent anon=0) in the /etc/exports file?

also do you see any errors in the vmkernel and hostd logs?

Message was edited by: vGuy

Reply
0 Kudos
BharatR
Hot Shot
Hot Shot

Hi,

When mounting a NFS datastore, it mounts but is not accessible.

For more information, see the NetApp whitepapers TR-3428: NetApp and VMware Virtual Infrastructure 3 Storage Best  Practices and TR-3749: NetApp and VMware vSphere Storage Best Practices

To check the qtree permissions, run this command from the CLI on NetApp:

qtree status

The output appears similar to this:

Volume   Tree     Style Oplocks   Status
-------- --------  ----- -------- ---------
vol0               unix  enabled  normal
ProdLuns      unix  enabled   normal
ProdRDM1     unix  enabled  normal
<server> ntfs enabled   normal

To change the qtree permission using the NetApp GUI:

  1. Click Volumes > Qtrees > Manage.
  2. Select the volume and change the permission from NTFS to UNIX.
Best regards, BharatR--VCP4-Certification #: 79230, If you find this information useful, please award points for "correct" or "helpful".
Reply
0 Kudos
GreatWhiteTec
VMware Employee
VMware Employee

Sounds like an export permission issue. By default NetApp will give RW access to  All Systems, but you need root-access permissions for the host (VMkernel IP). For example you have a prod network and a storage network, your prod IP for the host is 10.10.0.20 and Storage IP is 10.16.0.20 with GW of 10.16.0.1. In this case you need to add 10.16.0.20 to your export with root-access permissions.

It looks like you already have RW, hence being able to mount the NFS datastore, but it is read-only because you don't have root-access.

PramodKhalate
Enthusiast
Enthusiast

Thanks a lot guys..

Storage guys given permission to root-access permissions for the host (VMkernel IP). Now issue gots resloved..

If you find this or any other answer useful please consider awarding points by marking the answer correct or helpful
Reply
0 Kudos