All of lore.kernel.org
 help / color / mirror / Atom feed
* [Fwd: Re: NFS problems across reboot]
@ 2002-04-08  0:50 Al Borchers
  2002-04-08  2:44 ` Neil Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Al Borchers @ 2002-04-08  0:50 UTC (permalink / raw)
  To: nfs

Neil --

> From: Neil Brown <neilb@cse.unsw.edu.au>
> My guess is that "exportfs -a" is being run *After* rpc.nfsd.
> It must must run *before* for correct operation.

I did not know this.  Can you explain why?

Our situation -- We run a proprietary file system that holds
the exported directories, but it does not start up until _after_
nfs is started.  On a reboot, we run "exportfs -a" again after
our file system is up, so the clients that held mounts before the
reboot don't get stale file handle errors.  (The first run of
exportfs, before rpc.nfsd, did not find the exported directories
since the file system they are on was not up yet.)

Will this be a problem?  Should we delay starting nfs until _after_
our file system is up?

We are still having some problems with stale file handles on reboot,
even after the second exportfs, but it only happens occasionally.
Sometimes it goes away after a minute or two, sometimes not.

We are running 2.4.17 on both clients and servers.

Thanks for any info on this, 
-- Al

_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Fwd: Re: NFS problems across reboot]
  2002-04-08  0:50 [Fwd: Re: NFS problems across reboot] Al Borchers
@ 2002-04-08  2:44 ` Neil Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Neil Brown @ 2002-04-08  2:44 UTC (permalink / raw)
  To: Al Borchers; +Cc: nfs

On Sunday April 7, ABorchers@tricord.com wrote:
> Neil --
> 
> > From: Neil Brown <neilb@cse.unsw.edu.au>
> > My guess is that "exportfs -a" is being run *After* rpc.nfsd.
> > It must must run *before* for correct operation.
> 
> I did not know this.  Can you explain why?

If a NFS request arrives after nfsd is started, and before exportfs is
run, the server will return "ESTALE".  The client will think that it's
filehandle is stale and will fail all future accesses.  Even if it
only failed this one access, it would still be a problem.

So you could not start the nfsd until all exported filesystems have
been mounted and exported.

This will not always manifest as a real problem: it depends on how
hard the clients are hitting the server and how small the window is
between starting nfsd and exporting the filesystems, but it certainly
can be a problem.


> 
> Our situation -- We run a proprietary file system that holds
> the exported directories, but it does not start up until _after_
> nfs is started.  On a reboot, we run "exportfs -a" again after
> our file system is up, so the clients that held mounts before the
> reboot don't get stale file handle errors.  (The first run of
> exportfs, before rpc.nfsd, did not find the exported directories
> since the file system they are on was not up yet.)
> 
> Will this be a problem?  Should we delay starting nfs until _after_
> our file system is up?

It would be best if you did.

NeilBrown

_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-04-08  2:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-08  0:50 [Fwd: Re: NFS problems across reboot] Al Borchers
2002-04-08  2:44 ` Neil Brown

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.