NFS

M A Young m.a.young at durham.ac.uk
Mon Jun 14 15:50:22 UTC 2010


On Mon, 14 Jun 2010, Richard W.M. Jones wrote:

> On Mon, Jun 14, 2010 at 09:24:51AM -0400, Ray Pittigher wrote:
>> When running a NFS server on Fedora how can I see what files are in use
>> by others over the NFS mount?
>
> In "classic" NFS this isn't really possible.  NFS is stateless, so on
> the server you can only see momentary reads and writes from files, you
> cannot see if a file is, say, opened by a client but the client is not
> reading and writing to it at that moment.
>
> Modern NFS is a little bit different.  I think NFSv4 maintains more
> state on the server, and also you've got things like file locking, so
> maybe it is possible to get more information out in those cases.
> Someone else who knows about NFSv4 will have to answer that more
> definitively though.
>
>  http://nfs.sourceforge.net/#faq_a6

File locking was available in earlier NFS versions as well, and 
/proc/locks would tell you what the locks on the server were though many 
would be local locks.

 	Michael Young


More information about the users mailing list