From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Christopher Knorr Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: Incorrect disk utilization reported by 'df' Date: Thu, 15 Dec 2005 17:02:59 -0500 Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1134684323 23501 80.91.229.2 (15 Dec 2005 22:05:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 15 Dec 2005 22:05:23 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Thu Dec 15 23:05:22 2005 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by ciao.gmane.org with smtp (Exim 4.43) id 1En1C4-00074N-Fh for gotm-tru64-unix-managers@gmane.org; Thu, 15 Dec 2005 23:03:20 +0100 Original-Received: (qmail 14426 invoked by uid 49509); 15 Dec 2005 22:03:08 -0000 Original-Sender: tru64-unix-managers-owner@ornl.gov Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 14411 invoked by uid 49501); 15 Dec 2005 22:03:08 -0000 Original-Received: from 160.91.86.17 by sws1 (envelope-from , uid 49491) with qmail-scanner-1.25 (clamdscan: 0.83/743. spamassassin: 3.0.2. Clear:RC:0(160.91.86.17):SA:0(-2.6/5.0):. Processed in 0.374633 secs); 15 Dec 2005 22:03:08 -0000 X-Spam-Status: No, hits=-2.6 required=5.0 Original-Received: from emroute2.cind.ornl.gov (160.91.86.17) by sws1.ornl.gov with SMTP; 15 Dec 2005 22:03:08 -0000 Original-Received: from emroute2.cind.ornl.gov (localhost [127.0.0.1]) by emroute2.cind.ornl.gov (PMDF V6.2-1x9 #31038) with ESMTP id <0IRK003NZ7X7CV@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 15 Dec 2005 17:03:08 -0500 (EST) Original-Received: from VIRUSCAN-DAEMON.emroute2.cind.ornl.gov by emroute2.cind.ornl.gov (PMDF V6.2-1x9 #31038) id <0IRK00C027X11Y@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 15 Dec 2005 17:03:07 -0500 (EST) Original-Received: from gull.hopsdc.com (gull.hopsdc.com [199.227.253.10]) by emroute2.cind.ornl.gov (PMDF V6.2-1x9 #31038) with ESMTP id <0IRK0097M7X020@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 15 Dec 2005 17:03:01 -0500 (EST) Original-To: tru64-unix-managers@ornl.gov X-Envelope-from: cknorr@trapsystems.com X-MIMEOLE: Produced By Microsoft Exchange V6.5 Thread-Topic: SUMMARY: Incorrect disk utilization reported by 'df' Thread-Index: AcYBw0+xKycIr4lSSt+h8LZeyxSFmQ== Content-class: urn:content-classes:message X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on email.cind.ornl.gov X-Spam-Level: X-Qmail-Scanner-MOVED-X-Spam-Status: No, score=-1.0 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.1.0 X-MS-Has-Attach: X-MS-TNEF-Correlator: Xref: news.gmane.org gmane.os.tru64.managers:8694 Archived-At: PROBLEM: The 'df' command is showing our disks are 99+% used, but we look at the actual amount of space used (via ls -l) it shows FAR less. ANSWER: Our database application deletes files quite often. No problems were being seen with this -- the delete (ultimately a low-level UNIX delete) was returning success codes. HOWEVER, for reasons we don't know yet, the files were open at the time of the deletion. Using 'lsof' I noticed this. Once we restarted our application (which did low-level closes on the UNIX files) the 'df' output got significantly better. One other note: HP told us that, when using AdvFS, the vdf command should be used to show disk utilization, not df. I'm starting to see that this is the case. vdf seems to be reporting correctly, whereas df, although better, is not 100% accurate.