Skip to contentSkip to conversation

Turning off delegations in NFSv4 server?

DISCUSSION Jeff Garzik 4 participants 6 messages Jan 10, 2008 – Mar 5, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Besides hacking the code, is there an easy way to turn off NFSv4 delegations in the kernel v4 server?

I'd like to observe behavior of the Linux v4 client when delegations are not available.

Thanks,

Jeff

#1 lore raw
Quoted 5 lines · Jeff Garzik

Besides hacking the code, is there an easy way to turn off NFSv4 delegations in the kernel v4 server?

I'd like to observe behavior of the Linux v4 client when delegations are not available.

The easiest thing is probably just to turn off leases:

echo 0 >/proc/sys/fs/leases-enable

--b.

#2 lore raw
Quoted 9 lines · On Jan 10 2008 J. Bruce Fields wrote:
Quoted 5 lines · Jeff Garzik

Besides hacking the code, is there an easy way to turn off NFSv4 delegations in the kernel v4 server?

I'd like to observe behavior of the Linux v4 client when delegations are not available.

The easiest thing is probably just to turn off leases:
echo 0 >/proc/sys/fs/leases-enable

I found this from two years ago, and am wondering
- is this still the easiest thing to do?
- is this on server, client or both?
- will it break anything else?

We have a CentOS 5.4 NFS3/NFS4/samba server with about 300 clients on its subnet, and another 100-200 on another subnet, which under high load has started kernel-panicking (sometimes in nfsd4_cb_recall).

I want to disable delegations to see if that cures our symptoms--but I worry that turning leases off might cause other problems.

For now I'll probably do it anyway, given that status quo isn't stable :(

Matt
_______________________________________________
NFSv4 mailing list
[email protected]
http://linux-nfs.org/cgi-bin/mailman/listinfo/nfsv4

#3 lore raw
Quoted 11 lines · Matt Bernstein
Quoted 9 lines · On Jan 10 2008 J. Bruce Fields wrote:
Quoted 5 lines · Jeff Garzik

Besides hacking the code, is there an easy way to turn off NFSv4 delegations in the kernel v4 server?

I'd like to observe behavior of the Linux v4 client when delegations are not available.

The easiest thing is probably just to turn off leases:
echo 0 >/proc/sys/fs/leases-enable

Quoted 8 lines

I found this from two years ago, and am wondering
- is this still the easiest thing to do?
- is this on server, client or both?
- will it break anything else?

We have a CentOS 5.4 NFS3/NFS4/samba server with about 300 clients on its subnet, and another 100-200 on another subnet, which under high load has started kernel-panicking (sometimes in nfsd4_cb_recall).

Have you filed a bug with the backtraces?

Quoted 2 lines

I want to disable delegations to see if that cures our symptoms--but I worry that turning leases off might cause other problems.

No, it shouldn't cause problems, at least for NFSv4 clients. (Samba may be more reliant on leases, especially if Samba and NFSv4 clients are acting on the same files at the same time--but I don't know.)

--b.

Quoted 4 lines

For now I'll probably do it anyway, given that status quo isn't stable :(

Matt

_______________________________________________
NFSv4 mailing list
[email protected]
http://linux-nfs.org/cgi-bin/mailman/listinfo/nfsv4

#4 lore raw
Quoted 10 lines · On Mar 4 J. Bruce Fields wrote:
Quoted 9 lines · Matt Bernstein
Quoted 2 lines · On Jan 10 2008 J. Bruce Fields wrote:

The easiest thing is probably just to turn off leases:
echo 0 >/proc/sys/fs/leases-enable

I found this from two years ago, and am wondering
- is this still the easiest thing to do?
- is this on server, client or both?
- will it break anything else?

Quoted 5 lines
Quoted 3 lines

We have a CentOS 5.4 NFS3/NFS4/samba server with about 300 clients on its subnet, and another 100-200 on another subnet, which under high load has started kernel-panicking (sometimes in nfsd4_cb_recall).

Have you filed a bug with the backtraces?

Duly nudged. I've posted the most recent one to <http://bugs.centos.org/view.php?id=4229>.

Quoted 6 lines
Quoted 2 lines

I want to disable delegations to see if that cures our symptoms--but I worry that turning leases off might cause other problems.

No, it shouldn't cause problems, at least for NFSv4 clients. (Samba may be more reliant on leases, especially if Samba and NFSv4 clients are acting on the same files at the same time--but I don't know.)

Thanks; no-one's grumbled just yet.

Matt

#5 lore raw
Quoted 11 lines · Matt Bernstein
Quoted 10 lines · On Mar 4 J. Bruce Fields wrote:
Quoted 9 lines · Matt Bernstein
Quoted 2 lines · On Jan 10 2008 J. Bruce Fields wrote:

The easiest thing is probably just to turn off leases:
echo 0 >/proc/sys/fs/leases-enable

I found this from two years ago, and am wondering
- is this still the easiest thing to do?
- is this on server, client or both?
- will it break anything else?

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

We have a CentOS 5.4 NFS3/NFS4/samba server with about 300 clients on its subnet, and another 100-200 on another subnet, which under high load has started kernel-panicking (sometimes in nfsd4_cb_recall).

Have you filed a bug with the backtraces?

Duly nudged. I've posted the most recent one to
<http://bugs.centos.org/view.php?id=4229>.

OK, thanks. Unfortunately that code has changed quite a bit since 2.6.18. I don't recall this specific bug, but I wouldn't be suprised if it's something we've since fixed. Looking through 'gitk v2.6.18.. fs/nfsd/nfs4callback.c fs/nfsd/nfs4state.c' for delegation/callback fixes might be one approach.

--b.

Quoted 11 lines
Quoted 7 lines
Quoted 3 lines

I want to disable delegations to see if that cures our symptoms--but I worry that turning leases off might cause other problems.

No, it shouldn't cause problems, at least for NFSv4 clients. (Samba may be more reliant on leases, especially if Samba and NFSv4 clients are acting on the same files at the same time--but I don't know.)

Thanks; no-one's grumbled just yet.

Matt