VMware Cloud Community
Thomas_Koetzing
Contributor
Contributor

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

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.

Thomas -- http://www.Thomaskoetzing.de Home of the SBC FAQ
Reply
0 Kudos
6 Replies
mcowger
Immortal
Immortal

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

--Matt VCDX #52 blog.cowger.us
Reply
0 Kudos
Thomas_Koetzing
Contributor
Contributor

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

Thomas -- http://www.Thomaskoetzing.de Home of the SBC FAQ
Reply
0 Kudos
mcowger
Immortal
Immortal

Are you 100% sure, because doing a "df -k --Matt

--Matt VCDX #52 blog.cowger.us
Reply
0 Kudos
Thomas_Koetzing
Contributor
Contributor

>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

Thomas -- http://www.Thomaskoetzing.de Home of the SBC FAQ
Reply
0 Kudos
Thomas_Koetzing
Contributor
Contributor

...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

Thomas -- http://www.Thomaskoetzing.de Home of the SBC FAQ
Reply
0 Kudos
rlund
Enthusiast
Enthusiast

Any update on this?

Roger Lund

My Blog:

Roger Lund Minnesota VMUG leader Blogger VMware and IT Evangelist My Blog: http://itblog.rogerlund.net & http://www.vbrainstorm.com
Reply
0 Kudos