NFS V4 locking (266 Views)
Reply
Valued Contributor
David Nixon
Posts: 147
Registered: ‎10-28-1997
Message 1 of 3 (266 Views)

NFS V4 locking

  Have been testing some NFS version 4 exports from a RHEL 4.8 server

and its quckly become apparent that there are issues with locking.

 

  Basically the fcntl(2) and lockf(2) system call interfaces don't work.

On an V4 mount these calls always fail with errno ENOLCK - no

locks available.

 

 Contrary to what is stated by its man page, flock(2)  does work over

NFS V3  or V4, at least from version FC13 and Scientific Linux clients.

 

Can anyone shed any light on the basic issue?  I am wondering

if I need some Kernel update or other.. Currently running 2.6.18-164

Acclaimed Contributor
Dennis Handly
Posts: 25,303
Registered: ‎03-06-2006
Message 2 of 3 (259 Views)

Re: NFS V4 locking

Do you have to have a demon running on the server like HP-UX?

Valued Contributor
David Nixon
Posts: 147
Registered: ‎10-28-1997
Message 3 of 3 (256 Views)

Re: NFS V4 locking

Yes the rpc.nfsd demons are still there under NFS Version 4 .

 

Anyway, I have tried V4 locking on a RHEL5 test server

and that all works as expected..

 

 Someone related to me  on the Red Hat forums that

they had had to revert to NFS V3 under RHEL4.

 

 So I guess it is some sort of kernel issue, that

will,likely, never be resolved by now.

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.