From owner-freebsd-questions Thu Sep 3 10:08:25 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA15879 for freebsd-questions-outgoing; Thu, 3 Sep 1998 10:08:25 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from terra.Sarnoff.COM (terra.sarnoff.com [130.33.11.203]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id KAA15869; Thu, 3 Sep 1998 10:08:20 -0700 (PDT) (envelope-from rminnich@Sarnoff.COM) Received: (from rminnich@localhost) by terra.Sarnoff.COM (8.6.12/8.6.12) id NAA20344; Thu, 3 Sep 1998 13:05:46 -0400 Date: Thu, 3 Sep 1998 13:05:45 -0400 (EDT) From: "Ron G. Minnich" X-Sender: rminnich@terra To: Jay cc: questions@FreeBSD.ORG, hackers@FreeBSD.ORG Subject: Re: .nfs files, what causes them and why do they hang around? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG The infamous .nfs files. An artifact of stateless servers: you can't do a remove over nfs, since it is impossible to ever know that a file is not used, since there is no server state that could tell you such a thing. In fact you're not really safe removing .nfsxxxx files unless they're pretty old, since again you can't know that there is not some client out there that may not have accessed it for a few days, but may still be paging code from it at some point (think: /usr/local/bin/whatever). So check in the nfs client-side code for the silly rename that redirects the unlink operations to renaming a file to .nfsxxxxx, so that it is not found the next time it is looked up. There you can see how it works. Sometimes you see funny things like people removing .nfs files from a client, which of course results in different .nfsxxxx files. You have to remove these clunkers via (typically) cron jobs on the server. Lock files would certainly create these. run NFS over tcp if you possibly can. ron Ron Minnich |"Using Windows NT, which is known to have some rminnich@sarnoff.com | failure modes, on a warship is similar to hoping (609)-734-3120 | that luck will be in our favor"- A. Digiorgio ftp://ftp.sarnoff.com/pub/mnfs/www/docs/cluster.html To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message