Phil Dumont
Dabbler
- Joined
- Jun 23, 2016
- Messages
- 14
Recently moved our NFS homes from a CentOS 6 box to a FreeNAS 9.10 box.
After the move, rather a lot of stuff -- firefox, chrome, svn -- is failing because attempts to grab a file lock are just hanging. Specifically, fcntl(F_SETLK). Several different client OSes, all Linux distros -- all exhibit the same problem -- a couple CentOS major releases, Ubuntu.
I'm currently working around the problem by adding nolock to the NFS mount options. But of course, that means no cross-client locking, which could lead to trouble if more than one client tries to access the same file at the same time, so I'd like to fix NFS locking if I can.
The automount options for homes are: fstype=nfs,hard,intr,rsize=8192,wsize=8192,nosuid,nolock. The nolock option, as I said above, was just now added to avoid the lock hang. When it is removed, hangs happen.
I've attached the /etc/sysconfig/nfs from the prior, CentOS 6 NFS server, but it's very boring. All comments. Which I guess means it's running with all defaults. I believe the commented-out config lines tell you what those defaults are.
If there's anything else I can provide to help debug this problem, please let me know.
After the move, rather a lot of stuff -- firefox, chrome, svn -- is failing because attempts to grab a file lock are just hanging. Specifically, fcntl(F_SETLK). Several different client OSes, all Linux distros -- all exhibit the same problem -- a couple CentOS major releases, Ubuntu.
I'm currently working around the problem by adding nolock to the NFS mount options. But of course, that means no cross-client locking, which could lead to trouble if more than one client tries to access the same file at the same time, so I'd like to fix NFS locking if I can.
The automount options for homes are: fstype=nfs,hard,intr,rsize=8192,wsize=8192,nosuid,nolock. The nolock option, as I said above, was just now added to avoid the lock hang. When it is removed, hangs happen.
I've attached the /etc/sysconfig/nfs from the prior, CentOS 6 NFS server, but it's very boring. All comments. Which I guess means it's running with all defaults. I believe the commented-out config lines tell you what those defaults are.
If there's anything else I can provide to help debug this problem, please let me know.