VMware

This Question is Possibly Answered

1 "correct" answer available (10 pts) 2 "helpful" answers available (6 pts)
6 Replies Last post: Jun 12, 2009 11:32 AM by rlund  

NFS mount - block size issue. I/O copy error posted: Nov 13, 2008 2:39 PM

Click to view Thomas Koetzing's profile Novice 11 posts since
Jan 27, 2005

Hi,

I mount a NFS share from Windows/Linux NFS Server fine. Copy files fails with input/output error, small files are ok.
Now I checked the mounts with "df -k <nfs-share>" and I get for both shares:
Filesystem 1K-blocks Used Available Use% Mounted on
  128000000 0 128000000 0% /vmfs

then I mounted the shares the following way, to the same NFS shares:

service portmap start
service nfs start
mount -t nfs -o rw <nfs-server>:/mnt/<nfs-share> /vmfs/volumes/HDD-ID/NFS/

Now I check this mount again with "df -k <nfs-share>" and I get:

Filesystem 1K-blocks Used Available Use% Mounted on
<nfs-server>:/mnt/<nfs-share> 243737152 0 243737152 0% /vmfs/volumes/HDD-ID/NFS


when I copy something to this mount, everything works fine and is fast!!!

1. Why mounts ESX the nfs share with those 1K blocks?
2. How can I mount nfs share manually but that they show up in the VI client?
3. What can I change so ESX always mounts with the right 1K-blocks and shows in the VI client?

Thx for any help.


Click to view mcowger's profile Virtuoso 2,014 posts since
Aug 22, 2007
You aren't mounting the share the correct way - you dont mount it from within the COS using 'mount'. You need to setup a VMKernel port, then add a datastore from the GUI with the VI Client.

--M






--Matt
Click to view mcowger's profile Virtuoso 2,014 posts since
Aug 22, 2007
Are you 100% sure, because doing a "df -k <nfs-share>" on a NFS mounted datastore that was done from the GUI wont actually work....

you would have to do a vdf -k.






--Matt
Click to view rlund's profile Enthusiast 76 posts since
Jan 22, 2008

Any update on this?


Roger Lund

My Blog:

http://rogerlunditblog.blogspot.com/

VMware Developer

SDKs, APIs, Videos, Learn and much more in the Developer community.

Learn More

Developer Sample Code

Increase your developer productivity with VMware API sample code.

Learn More

VMworld Sessions & Labs

Online access to the latest VMworld Sessions & Labs and online services.

Learn more

Purchase PSO Credits Online

Purchase credits to redeem training and consulting services online.

Buy Now

Community Hardware Software

View reported configurations or report your own.

Learn More

VMware vSphere

Come witness the next giant leap in virtualization.

Register Today

Communities