VMware Communities > VMTN > VMware Infrastructure™ > VI: ESX 3.5 > Discussions

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
Reply

NFS mount - block size issue. I/O copy error

Nov 13, 2008 2:39 PM

Click to view Thomas Koetzing's profile Novice Thomas Koetzing 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.


Reply Re: NFS mount - block size issue. I/O copy error Nov 13, 2008 2:41 PM
Click to view mcowger's profile Virtuoso mcowger 1,785 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
Reply Re: NFS mount - block size issue. I/O copy error Nov 13, 2008 2:44 PM
in response to: mcowger
Click to view Thomas Koetzing's profile Novice Thomas Koetzing 11 posts since
Jan 27, 2005

Thx for the quick answer.

You need to setup a VMKernel port, then add a datastore from the GUI with the VI Client.
That is exactly what I did and then I get the mounts as described before. Only if I map them manually it works.

Thomas

Reply Re: NFS mount - block size issue. I/O copy error Nov 13, 2008 2:53 PM
in response to: Thomas Koetzing
Click to view mcowger's profile Virtuoso mcowger 1,785 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
Reply Re: NFS mount - block size issue. I/O copy error Nov 13, 2008 3:01 PM
in response to: mcowger
Click to view Thomas Koetzing's profile Novice Thomas Koetzing 11 posts since
Jan 27, 2005

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....
Yes I'am. As you wrote I created the VMKernel/Port and changed the Security Profile. After the I could mount NFS shares throug VI Client fine
but then I got the I/O copy errors etc.

I looked through the forums and found the "manuall" way of mounting and that works great but dosen't show up in the VI Client.

Nevertheless with "vdf -k" I get the same result as with "df -k" but still I can only say I have problems with the NFS mount through the VI Client
but not manually. So what can I do to make it work with the VI Client, or what's the problem?

Thomas

Reply Re: NFS mount - block size issue. I/O copy error Nov 14, 2008 7:41 AM
in response to: Thomas Koetzing
Click to view Thomas Koetzing's profile Novice Thomas Koetzing 11 posts since
Jan 27, 2005
...just to add, if I copy something to the NFS share mounted by the VI Client, then the max size of
a file will be 128000000 (same as the 1k block size).
For me it looks like the NFS share is not mounted the right way.

Btw. moving files from the NFS share to the ESX Server is working fine.

Thomas

Reply Re: NFS mount - block size issue. I/O copy error Jun 12, 2009 11:32 AM
in response to: Thomas Koetzing
Click to view rlund's profile Enthusiast rlund 71 posts since
Jan 22, 2008

Any update on this?


Roger Lund

My Blog:

http://rogerlunditblog.blogspot.com/

Actions