2004-12-03 17:52:06

by Pierre Ossman

[permalink] [raw]
Subject: NFSv4 needs restart (permission denied)

Whenever I reboot my file server one of my clients has trouble accessing
the exports. I just get permission denied. However, when I restart nfsd
it works fine. The other clients have no problems mounting.

The server is a FC2 machine running 2.6.9-1.6_FC2.
The problem client is a FC3 machine running 2.6.9.
The working clients are both FC2 machines running 2.6.9-1.6_FC2.

Any ideas on what can be wrong or how I can find out what the problem
is? The server does not say anything during these mount requests.

Rgds
Pierre



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs


2004-12-03 18:52:39

by Dan Stromberg

[permalink] [raw]
Subject: Re: NFSv4 needs restart (permission denied)

On Fri, 2004-12-03 at 18:52 +0100, Pierre Ossman wrote:
> Whenever I reboot my file server one of my clients has trouble accessing
> the exports. I just get permission denied. However, when I restart nfsd
> it works fine. The other clients have no problems mounting.
>
> The server is a FC2 machine running 2.6.9-1.6_FC2.
> The problem client is a FC3 machine running 2.6.9.
> The working clients are both FC2 machines running 2.6.9-1.6_FC2.
>
> Any ideas on what can be wrong or how I can find out what the problem
> is? The server does not say anything during these mount requests.
>
> Rgds
> Pierre

We've had much the same problem with linux NFS servers, but not with
NFSv4 - it was either NFSv3 or v2.

These are my notes on the subject:

The difficulty is that we have to exportfs -auv; exportfs -av to get
mounting (both static and auto) to work. It gives "permission denied"
when trying to do a static mount. getfh() was failing too, according to
an strace of rpc.mountd.

Jed has an RHEL 3 server having trouble with an FC1 host.

Jed also has an RHEL 3 server having trouble with a Redhat 9 host.

>
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://productguide.itmanagersjournal.com/
> _______________________________________________
> NFS maillist - [email protected]
> https://lists.sourceforge.net/lists/listinfo/nfs
>


Attachments:
signature.asc (189.00 B)
This is a digitally signed message part

2004-12-06 15:18:30

by J. Bruce Fields

[permalink] [raw]
Subject: Re: NFSv4 needs restart (permission denied)

On Fri, Dec 03, 2004 at 06:52:00PM +0100, Pierre Ossman wrote:
> Whenever I reboot my file server one of my clients has trouble accessing
> the exports. I just get permission denied. However, when I restart nfsd
> it works fine. The other clients have no problems mounting.

NFSv4's server reboot recovery isn't really working yet--a Linux client
should be able to survive a non-Linux server reboot, but if a Linux
server reboots the clients its client will probably be lost. The
missing piece is some code to store state about connected clients in
stable storage, which we're working on right now.

--b.


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

2004-12-06 18:24:00

by Pierre Ossman

[permalink] [raw]
Subject: Re: NFSv4 needs restart (permission denied)

J. Bruce Fields wrote:

>On Fri, Dec 03, 2004 at 06:52:00PM +0100, Pierre Ossman wrote:
>
>
>>Whenever I reboot my file server one of my clients has trouble accessing
>>the exports. I just get permission denied. However, when I restart nfsd
>>it works fine. The other clients have no problems mounting.
>>
>>
>
>NFSv4's server reboot recovery isn't really working yet--a Linux client
>should be able to survive a non-Linux server reboot, but if a Linux
>server reboots the clients its client will probably be lost. The
>missing piece is some code to store state about connected clients in
>stable storage, which we're working on right now.
>
>
>
The problems isn't clients reconnecting, it's new mounts after the
server has rebooted.



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs