From: James Pearson <james-p@moving-picture.com>
To: nfs@lists.sourceforge.net, autofs@linux.kernel.org
Subject: Server/client mismatch over status of a mount ...
Date: Mon, 17 Feb 2003 14:06:09 +0000 [thread overview]
Message-ID: <3E50EC51.6022D3A7@moving-picture.com> (raw)
We've had a number of cases recently whereby NFS servers think a client
has umounted a disk, but the client still has the disk mounted.
i.e. the client's entry in the server's /var/lib/nfs/rmtab has been
removed.
The clients mount the NFS disks using autofs
This doesn't cause a problem in normal use (processes running on the
client can access the mounted file system OK) - but if the server
reboots, processes on the client get 'permission denied' when accessing
the mounted file system from the server (not surprising, as the server
has no record on the mount).
The problem _seems_ to occur with processes on the client that are in a
defunct state, and may have been so for days (or weeks) e.g. here is the
edited logs from a client and server:
client:
messages.4:Jan 20 13:00:04 client automount[505]: attempting to mount
entry /export/server1
messages.4:Jan 20 13:09:55 client automount[2416]: expired
/export/server1
messages.4:Jan 20 13:21:48 client automount[505]: attempting to mount
entry /export/server1
server:
messages.4:Jan 20 13:00:04 server rpc.mountd: authenticated mount
request from client:641 for /disk1 (/disk1)
messages.4:Jan 20 13:09:55 server rpc.mountd: authenticated unmount
request from client:898 for /disk1 (/disk1)
messages.4:Jan 20 13:21:48 server rpc.mountd: authenticated mount
request from client:709 for /disk1 (/disk1)
messages.4:Jan 20 14:09:40 server rpc.mountd: authenticated unmount
request from client:912 for /disk1 (/disk1)
As you can see, rpc.mountd on the server has recorded an unmount request
at 14:09:40, but there is no corresponding automount 'expired' message
on the client for this file system ... the file system is still mounted
on the client (and usable) - however, if the server were to reboot, then
the client would no longer be able to access the file system.
If I kill the parent process of the defunct process, autofs will not
umount the mount, but I can manually umount the file system and then
access it again as normal.
I'm using a 2.4.18 based kernels on the client and server. The server is
using nfs-utils 0.3.3 and the client autofs 4.0.0pre10
Could there be a case where automount tells the server it's umounting a
mount, but then finds it can't actually do the umount?
James Pearson
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
NFS maillist - NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs
next reply other threads:[~2003-02-17 14:06 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-17 14:06 James Pearson [this message]
2003-02-17 15:20 ` [autofs] Server/client mismatch over status of a mount H. Peter Anvin
2003-02-17 15:50 ` Trond Myklebust
2003-02-17 15:57 ` James Pearson
2003-02-17 16:16 ` Trond Myklebust
2003-02-17 17:49 ` James Pearson
2003-02-18 16:57 ` James Pearson
2003-02-19 9:56 ` H. Peter Anvin
2003-02-19 10:16 ` Trond Myklebust
2003-02-19 13:58 ` Ion Badulescu
2003-02-19 18:16 ` H. Peter Anvin
2003-02-20 3:20 ` Jeremy Fitzhardinge
2003-02-20 3:26 ` Ion Badulescu
2003-02-20 3:43 ` Jeremy Fitzhardinge
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=3E50EC51.6022D3A7@moving-picture.com \
--to=james-p@moving-picture.com \
--cc=autofs@linux.kernel.org \
--cc=nfs@lists.sourceforge.net \
/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 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.