Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

xcopy fails on NFS

254 views
Skip to first unread message

Johan

unread,
Mar 3, 2009, 2:16:51 AM3/3/09
to
Hi,

I am working on Workbench 2.6. This is my configuration,

Server A (NFS server)
target B (mounts the NFS server)

When i tried xcopy (in target B) to copy a folder in the server to
another location in the server, it fails halfway stating that it
cannot read the input file or cannot write to the destination.

I have checked and all files are valid. Why is the xcopy not able to
finish copying all files?? I also notice that this problem only occurs
for a large number of files. If i tried copying a folder that have
only limited no of files, it works.
(Note that i do not have files >2GB).

Is there some kind of limitation to NFS such that it cannot handle
multiple files transfer, or can only handle file transfer till its
buffer is full?? I even tried writing my own directory traversing
function to replace xcopy but gives the same result.
Thanks!

leonid.r...@gmail.com

unread,
Apr 19, 2009, 7:47:23 PM4/19/09
to
I suspect this has to do with the NFS Handle cache.

NFS does not easily map to a FAT based file system, so an intermediate
cache must be used to store handle codes and their corresponding FAT
file names. NFS also does not have a close() operation, so the NFS
server
does not really know when a handle can be disposed of, so it would
need to
discard handle entires based on the time they have not been used.
With "Xcopy" you will use up a lot of handles very quickly overflowing
the handle store by not giving it a chance to delete unused handles.

If you had some really big files in the file set, the problem may have
not happened.

0 new messages