homes on NFS: Failed to lock: No locks available

Chuck Vose vosechu at gmail.com
Mon Feb 7 23:19:47 UTC 2005


> I run warty with nis-users. The nis-user
> have there homes on (auto-mounted) nfs
> devices. Everything works fine but everytime
> I try to start a gnome application (e.g. gedit)
> I get the following warning multiple times:
> 
> ** (gedit:10308): WARNING **: Failed to lock:  No locks available
> 
> The application starts correct after 4-5 seconds.
> 
> Since I get the warning message only for nis-users
> with nfs-homes I assume that gnome tries
> to lock some files/data on my nfs-dir
> 
> Does anybody know how to fix this problem?

I have to admit that I don't know the solution but I might be able to
point you in a direction. My understanding is that nfs has incredibly
poor locking so you might try upgrading to the new version of nfs (4 I
think) which is supposed to have remedied this problem.

The other suggestion would be to try a different protocol like SMB
which provides proper locking and some security.

I hope these help a little,
-Chuck




More information about the ubuntu-users mailing list