From: Frank Steiner <fsteiner-mail@bio.ifi.lmu.de>
To: linux-kernel@vger.kernel.org
Subject: Problem: nfsd producing stales when restarting too fast
Date: Tue, 03 Aug 2004 12:33:03 +0200 [thread overview]
Message-ID: <410F69DF.7050602@bio.ifi.lmu.de> (raw)
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. *
next reply other threads:[~2004-08-03 10:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-03 10:33 Frank Steiner [this message]
2004-08-03 10:38 ` Neil Brown
2004-08-03 10:48 ` Frank Steiner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=410F69DF.7050602@bio.ifi.lmu.de \
--to=fsteiner-mail@bio.ifi.lmu.de \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®