All of lore.kernel.org
 help / color / mirror / Atom feed
* Server/client mismatch over status of a mount ...
@ 2003-02-17 14:06 James Pearson
  2003-02-17 15:20 ` [autofs] " H. Peter Anvin
  0 siblings, 1 reply; 14+ messages in thread
From: James Pearson @ 2003-02-17 14:06 UTC (permalink / raw)
  To: nfs, autofs

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

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

end of thread, other threads:[~2003-02-20  3:44 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-17 14:06 Server/client mismatch over status of a mount James Pearson
2003-02-17 15:20 ` [autofs] " 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

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.