Discussion:
NFS lockd problem
(too old to reply)
Giulio Ferro
2010-03-26 10:08:26 UTC
Permalink
Outset:
1 NFS server (with lockd)
2 NFS client (with lockd)

The clients serve several jails with apache, whose data (www) resides on
the server

From time to time everything seem to freeze. Then, after one minute or
so, the system
works again as nothing had happened.

In these occasions I get this in the logs on the client madchines:
Mar 26 10:29:38 virt1 kernel: nfs server
192.168.40.121:/data/mount_servers/wwwsec/www: lockd not responding

followed shortly after by:

Mar 26 10:29:38 virt1 kernel: nfs server
192.168.40.121:/data/mount_servers/wwwsec/www: lockd is alive again


On the server I only get this:
Mar 26 10:29:31 data1 kernel: NLM: failed to contact remote rpcbind,
stat = 5, port = 28416

I don't think it's a network problem, since all connections are local
and high speed (1Gb/s)

I must admit that, with the other nfs problem I reported weeks ago, this
kind of freebsd system seems
less than stable to me, and this is very disappointing...

Anyway I'd appreciate any pointer on this issue...
Chuck Swiger
2010-03-27 18:50:17 UTC
Permalink
Post by Giulio Ferro
1 NFS server (with lockd)
2 NFS client (with lockd)
The clients serve several jails with apache, whose data (www) resides on the server
If you need file locking to work reliably, you pretty much have to give up on using NFS + rpc.lockd and run against a local UFS filesystem.

Regards,
--
-Chuck
Ronald Klop
2010-03-28 10:19:59 UTC
Permalink
Post by Chuck Swiger
Post by Giulio Ferro
1 NFS server (with lockd)
2 NFS client (with lockd)
The clients serve several jails with apache, whose data (www) resides on the server
If you need file locking to work reliably, you pretty much have to give
up on using NFS + rpc.lockd and run against a local UFS filesystem.
I don't have this experience. I use NFS locking between FreeBSD, Linux,
NetApp and SUN stuff. Older versions of FreeBSD had some troubles, but
more recent ones work very well.

Ronald.

Ronald Klop
2010-03-28 10:24:23 UTC
Permalink
Post by Giulio Ferro
1 NFS server (with lockd)
2 NFS client (with lockd)
The clients serve several jails with apache, whose data (www) resides on
the server
From time to time everything seem to freeze. Then, after one minute or
so, the system
works again as nothing had happened.
Mar 26 10:29:38 virt1 kernel: nfs server
192.168.40.121:/data/mount_servers/wwwsec/www: lockd not responding
Mar 26 10:29:38 virt1 kernel: nfs server
192.168.40.121:/data/mount_servers/wwwsec/www: lockd is alive again
Mar 26 10:29:31 data1 kernel: NLM: failed to contact remote rpcbind,
stat = 5, port = 28416
I don't think it's a network problem, since all connections are local
and high speed (1Gb/s)
I must admit that, with the other nfs problem I reported weeks ago, this
kind of freebsd system seems
less than stable to me, and this is very disappointing...
Anyway I'd appreciate any pointer on this issue...
I'm no NFS expert, so I don't know if I can help, but regularly people
want to know your FreeBSD version(s), your used NFS version, if you are
running NFS over TCP or UDP. Does it help to switch between UDP/TCP?

Ronald.
Loading...