Re: why do i get "Stale NFS file handle" for hours?

From: Mike Jagdis
Date: Sun Sep 05 2004 - 11:23:00 EST




Tim Connors wrote:
I will update one directory with rsync from one host,

You mean rsync to the server and change files directly on the fs rather than through an NFS client?

and then try, a
little later on, to operate on that directory from another host. Every
now and then, from a single host only, a few files in that tree will
get stale filehandles - an ls of that directory will mostly be fine
apart from those files. They will also be fine from any other machine.

Yeah, that's what happens... Clients that had the file open are liable to get ESTALE. Stale file handles stick around until unmount. As long as they're around automount will consider the mount busy and not expire it (but you can unmount manually or killall -USR1 automountd).

Mike

--
Mike Jagdis Web: http://www.eris-associates.co.uk
Eris Associates Limited Tel: +44 7780 608 368
Reading, England Fax: +44 118 926 6974
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/