If I have two directories on an nfs server, between which I would like to copy a large amount of data (in several thousand files, rather than one large block), is there any way to optimize this to be a "local" copy on the server? Does NFS do this automatically, and if not, is there an option to enable it to do so, or is there some inevitable hit on the client? sshing into the nfs server is not an option, sadly - the nfs mount is the only access I have to it.
+3
A:
No, NFS doesn't do this, unfortunately. There is no provision in the protocol for the source of the copy to know anything about the destination or vice versa.
Without ssh or similar access, you can't do anything other than drag every byte across the network to the client, and send it back across the network to the server, a block at a time.
You might get some speed-up if you can use tar or dd or some other command where you can modify the block size. But I wouldn't bet on it.
Paul Tomblin
2009-02-10 02:23:19
that's a shame :( thanks for the answer, though - i googled for ages but couldn't find anything definite on this.
Martin DeMello
2009-02-10 02:32:09