mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Problem: nfsd producing stales when restarting too fast
@ 2004-08-03 10:33 Frank Steiner
  2004-08-03 10:38 ` Neil Brown
  0 siblings, 1 reply; 3+ messages in thread
From: Frank Steiner @ 2004-08-03 10:33 UTC (permalink / raw)
  To: linux-kernel

Hi,

there seems to be a problem with the kernel nfsd on 2.6.7
when restarting the server too fast. I'm running 2.6.7
on both NFS server and client.

I've mounted two test volumes, both with
-orw,nfsvers=3,rsize=8192,wsize=8192,hard,intr,nolock
Using soft or hard and udp or tcp does not make any difference.

On the client that mounts the volumes (subdirs udp and tcp)
I run loops like "while true; do date >> udp/bla; done"

Restarting the nfsserver with "/etc/init.d/nfsserver restart"
(sometimes a few times, somtimes on the first try) ends up with
both loops echoing "bash: udp/bla: Stale NFS file handle"
forever.
But when I shutdown the nfsserver, wait 5 seconds and
bring it up again, this never happens. And it does even
bring back the loops to normal behaviour when they
were stuck on stale fs before.

Ok, it seems that you just need to insert a sleep statement
in the init script, but I guess this is not the desired
behaviour of the nfs daemon.

Btw, it's not a problem with the init script, I can also
produce this behaviour manually by
/usr/sbin/exportfs -au
killall -9 nfsd
killall -9 /usr/sbin/rpc.mountd
[sleep 5]
/usr/sbin/exportfs -r
/usr/sbin/rpc.nfsd
/usr/sbin/rpc.mountd

Without the sleep, everything stales. With the sleep, it works
fine.

cu,
Frank

-- 
Dipl.-Inform. Frank Steiner   Web:  http://www.bio.ifi.lmu.de/~steiner/
Lehrstuhl f. Bioinformatik    Mail: http://www.bio.ifi.lmu.de/~steiner/m/
LMU, Amalienstr. 17           Phone: +49 89 2180-4049
80333 Muenchen, Germany       Fax:   +49 89 2180-99-4049
* Rekursion kann man erst verstehen, wenn man Rekursion verstanden hat. *

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

end of thread, other threads:[~2004-08-03 10:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-03 10:33 Problem: nfsd producing stales when restarting too fast Frank Steiner
2004-08-03 10:38 ` Neil Brown
2004-08-03 10:48   ` Frank Steiner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®