* NFS server caches client mount permissions?
@ 2014-07-01 13:03 Rik Theys
2014-07-02 2:20 ` NeilBrown
0 siblings, 1 reply; 3+ messages in thread
From: Rik Theys @ 2014-07-01 13:03 UTC (permalink / raw)
To: linux-nfs
Hi,
We use NFS4 to export data to other clients. The exports file has the
directories exported to netgroups, for example:
/export @nfs(rw,async,no_subtree_check,fsid=0)
/export/data1 @nfs(rw,async,no_subtree_check)
/export/data2 @nfs(rw,async,no_subtree_check)
If we forget to add a new client to the netgroup, the server rejects the
mount from the client (as it should). But when we then add the client to
the netgroup it can take up to 15 minutes for the server to accept the
new client.
Using 'getent netgroup nfs' on the server immediately shows the new
entry of the client.
Running exportfs -rv to reload the exports also doesn't help.
Does nfsd cache mount access (rejections) somewhere? How can I
flush/tune this cache? Preferably without restarting the NFS server as
that causes a 90s interruption due to the grace period.
Regards,
Rik
--
Rik Theys
System Engineer
KU Leuven - Dept. Elektrotechniek (ESAT)
Kasteelpark Arenberg 10 bus 2440 - B-3001 Leuven-Heverlee
+32(0)16/32.11.07
----------------------------------------------------------------
<<Any errors in spelling, tact or fact are transmission errors>>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: NFS server caches client mount permissions?
2014-07-01 13:03 NFS server caches client mount permissions? Rik Theys
@ 2014-07-02 2:20 ` NeilBrown
2014-07-02 6:58 ` Rik Theys
0 siblings, 1 reply; 3+ messages in thread
From: NeilBrown @ 2014-07-02 2:20 UTC (permalink / raw)
To: Rik Theys; +Cc: linux-nfs
[-- Attachment #1: Type: text/plain, Size: 1108 bytes --]
On Tue, 01 Jul 2014 15:03:41 +0200 Rik Theys <Rik.Theys@esat.kuleuven.be>
wrote:
> Hi,
>
> We use NFS4 to export data to other clients. The exports file has the
> directories exported to netgroups, for example:
>
> /export @nfs(rw,async,no_subtree_check,fsid=0)
> /export/data1 @nfs(rw,async,no_subtree_check)
> /export/data2 @nfs(rw,async,no_subtree_check)
>
> If we forget to add a new client to the netgroup, the server rejects the
> mount from the client (as it should). But when we then add the client to
> the netgroup it can take up to 15 minutes for the server to accept the
> new client.
>
> Using 'getent netgroup nfs' on the server immediately shows the new
> entry of the client.
>
> Running exportfs -rv to reload the exports also doesn't help.
>
> Does nfsd cache mount access (rejections) somewhere? How can I
> flush/tune this cache? Preferably without restarting the NFS server as
> that causes a 90s interruption due to the grace period.
Does
exportfs -f
help? It flushes the cache (which is normally updated ever 15 minutes).
NeilBrown
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: NFS server caches client mount permissions?
2014-07-02 2:20 ` NeilBrown
@ 2014-07-02 6:58 ` Rik Theys
0 siblings, 0 replies; 3+ messages in thread
From: Rik Theys @ 2014-07-02 6:58 UTC (permalink / raw)
To: NeilBrown; +Cc: linux-nfs
Hi Neil,
On 07/02/2014 04:20 AM, NeilBrown wrote:
> On Tue, 01 Jul 2014 15:03:41 +0200 Rik Theys <Rik.Theys@esat.kuleuven.be>
> wrote:
>
>> Hi,
>>
>> We use NFS4 to export data to other clients. The exports file has the
>> directories exported to netgroups, for example:
>>
>> /export @nfs(rw,async,no_subtree_check,fsid=0)
>> /export/data1 @nfs(rw,async,no_subtree_check)
>> /export/data2 @nfs(rw,async,no_subtree_check)
>>
>> If we forget to add a new client to the netgroup, the server rejects the
>> mount from the client (as it should). But when we then add the client to
>> the netgroup it can take up to 15 minutes for the server to accept the
>> new client.
>>
>> Using 'getent netgroup nfs' on the server immediately shows the new
>> entry of the client.
>>
>> Running exportfs -rv to reload the exports also doesn't help.
>>
>> Does nfsd cache mount access (rejections) somewhere? How can I
>> flush/tune this cache? Preferably without restarting the NFS server as
>> that causes a 90s interruption due to the grace period.
>
> Does
> exportfs -f
>
> help? It flushes the cache (which is normally updated ever 15 minutes).
In the meantime I've discovered the /proc/net/rpc/auth.unix.ip directory
and learned that flushing the file fixes it.
I see now that's what exportfs -f does. Thanks! I'll use that command
from now on instead of the script I created to flush the
/proc/net/rpc/auth.unix.ip/content file.
Regards,
Rik
--
Rik Theys
System Engineer
KU Leuven - Dept. Elektrotechniek (ESAT)
Kasteelpark Arenberg 10 bus 2440 - B-3001 Leuven-Heverlee
+32(0)16/32.11.07
----------------------------------------------------------------
<<Any errors in spelling, tact or fact are transmission errors>>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-07-02 6:58 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-01 13:03 NFS server caches client mount permissions? Rik Theys
2014-07-02 2:20 ` NeilBrown
2014-07-02 6:58 ` Rik Theys
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.