From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Brewer, Edward" Newsgroups: gmane.os.tru64.managers Subject: Summary: ADVFS Dilema Date: Wed, 13 Nov 2002 15:32:05 -0500 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <7B386924C5CAD0428322085D0F0F766F0163B745@ODEXC4.od.nih.gov> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Trace: main.gmane.org 1037219488 17780 80.91.224.249 (13 Nov 2002 20:31:28 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 13 Nov 2002 20:31:28 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.20.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 18C4AS-0004bL-00 for ; Wed, 13 Nov 2002 21:31:20 +0100 Original-Received: (qmail 3590 invoked by uid 5); 13 Nov 2002 20:32:50 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 3541 invoked by uid 49493); 13 Nov 2002 20:32:49 -0000 Original-Received: from BREWERE@OD.NIH.GOV by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.51. spamassassin: 2.50-cvs. Clear:SA:0(-2.5/5.0):. Processed in 0.519905 secs); 13 Nov 2002 20:32:49 -0000 Original-Received: from unknown (HELO emroute3.ornl.gov) (160.91.4.110) by 0 with SMTP; 13 Nov 2002 20:32:49 -0000 Original-Received: from emroute3.ornl.gov (localhost [127.0.0.1]) by emroute3.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H5J002MM7QLFC@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 13 Nov 2002 15:32:49 -0500 (EST) Original-Received: from ims.hub.nih.gov (nihhubims.hub.nih.gov [128.231.90.111]) by emroute3.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H5J0046T7Q8T6@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 13 Nov 2002 15:32:36 -0500 (EST) Original-Received: by ims.hub.nih.gov with Internet Mail Service (5.5.2656.59) id ; Wed, 13 Nov 2002 15:31:16 -0500 Content-return: allowed Original-To: "'Tru64-Unix-Managers \(E-mail\)" X-Mailer: Internet Mail Service (5.5.2656.59) Xref: main.gmane.org gmane.os.tru64.managers:2421 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:2421 Admins, I got a couple of responses that echoed a common theme, that something deleted an open file and the discrepency occured in df and du from this. Our problem was that we couldn't find an open file in lsof or fuser for anything growing in /usr/local filesystem. This was troubling. Here are the responses that I got. From: Doulgas Brown We have seen this numerous times on our boxes. Always a sqlplus process that doesn't die or is contolled by oracle. Generally use oracle to stop the process or shutdown oracle. The df - du commands report different amounts because of the still running process. From: Bruce Sean Email responses FWIW, is it possible that the process never updated EOF because it was in some sort of hard disk write loop? You wouldn't see anything in the file with tail because it would use the EOF on disk. I actually have no clue, just the question. Bruce, I am confused by your question. Are you wondering if the process just failed to close the file after an EOF and was just sending everthing to that file?? Lee Brewer Bruce. Let's see, I was thinking that the process, while it was running, was writing madly to disk, BUT not updating EOF, wherever EOF is stored. Meanwhile, AdvFS was looking at free space table somewhere else. You kill the process and the file is gone along with all the "temporary" sectors it has taken up. Again, I have no real idea about this, just the thought. >From Pat O'Brien Yes, the errant sqlplus process creates a dot.somename file in the directory that the user was in when launching said process without executing a proper nohup out command. As to why the tools don't work, we have not figured that out yet. Our tools broke after upgrading to 5.1 from 4.0f, though we also upgraded the tool several time to no avail. the tools do work for most rudimentary things, but during time of crisis like those you describe they don't do far. From: Daniel Norris I've seen this before on other platforms (for this particular problem, I don't think platform is an issue). Basically, the inode is not actually changing the free space recorded in the filesystem's superblock until it is actually released. In your case (and the other cases I've had to debug), a user process still had an fopen on some file, but the file was deleted. So, "du" didn't show the space being used, but "df" showed that you had tons of space in use. When the process is killed or exits, the fopen is cleaned up (probably in the kernel somewhere) and the superblock is updated to show the appropriate amount of free space. I'm not a filesystem expert, so I doubt that my explanation is absolutely correct, but it is how I understand the situation. I've seen similar behavior on Solaris (ufs and vxfs), HPUX (vxfs and hfs) and Linux (ext2fs). I think that this is just the "way it works" and there's nothing much you did or can do to keep it from occurring again. Good luck!