From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: =?iso-8859-1?Q?=22B=FCtow=2C_Michael=22?= Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: Temporarily vanishing diskspace Date: Wed, 08 Oct 2003 12:44:20 +0200 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1065610334 29913 80.91.224.253 (8 Oct 2003 10:52:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 8 Oct 2003 10:52:14 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Wed Oct 08 12:52:12 2003 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by deer.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 1A7BvQ-0004oj-00 for ; Wed, 08 Oct 2003 12:52:12 +0200 Original-Received: (qmail 5933 invoked by uid 5); 8 Oct 2003 10:52:00 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 5853 invoked by uid 49493); 8 Oct 2003 10:52:00 -0000 Original-Received: from michael.buetow@comsoft.de by sws1 by uid 49491 with qmail-scanner-1.16 (iscan: v3.1/v5.600-1011/622/49252. clamscan: 20030605. spamassassin: 2.55. Clear:SA:0(-2.6/5.0):. Processed in 0.927664 secs); 08 Oct 2003 10:52:00 -0000 Original-Received: from unknown (HELO emroute3.ornl.gov) (160.91.4.110) by 0 with SMTP; 8 Oct 2003 10:51:59 -0000 Original-Received: from emroute3.ornl.gov (localhost [127.0.0.1]) by emroute3.ornl.gov (PMDF V6.2-X17 #30669) with ESMTP id <0HMF00HB1Q6MRC@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 08 Oct 2003 06:51:58 -0400 (EDT) Original-Received: from cspop.comsoft.de (csdc.comsoft.de [212.86.205.70]) by emroute3.ornl.gov (PMDF V6.2-X17 #30669) with SMTP id <0HMF00JGYQ61MX@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 08 Oct 2003 06:51:44 -0400 (EDT) Original-To: tru64-unix-managers@ornl.gov X-MIMEOLE: Produced By Microsoft Exchange V6.0.6249.0 Thread-Topic: Temporarily vanishing diskspace Thread-Index: AcOMxxKZpa1eAp1NTgOLGQNeimaOIAAvfINA content-class: urn:content-classes:message X-MS-Has-Attach: X-MS-TNEF-Correlator: Xref: main.gmane.org gmane.os.tru64.managers:5524 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:5524 Many thanks to Selden E. Ball, Dr Thomas Blinn, Jim Belonis=20 and Alan Rollow for making things clear: The "vanishing space" was most likely consumed by a program=20 creating a large temporary file (on my system /tmp is a link=20 to /usr/users/tmp , so that would fit the symptoms). Using the lsof(8) program I would have been able to find out=20 the culprit process if I had not gone to single user mode,=20 thereby killing the guilty process and closing its file(s).=20 Now I have to wait until the problem reappears to find out which process causes it. I append the lucid explanation given by Alan: du(1) can only count the space used by files that have names. A common technique for creating a temporary file is to open the file, remove the name, and then use it normally. When the file is closed, it will be deleted by the kernel, so the creating program doesn't need to worry about it. Your missing space has all the fingerprints of a large temporary file. Such files tend to end up in /tmp or /var/tmp, but a user knowing the file is going to be big, could have set TMPDIR to be space on his home directory (which he might expect to have more, if not enough in this case, space). When you shut down to single user, the process stopped and the file was deleted, freeing the space. Track down a copy of lsof, and have that available if it happens again. It should be able to show open files, and the processes that own them. Hopefully, it will show files that don't have names and their sizes, which will offer a good clue. [Note: lsof(8) is not installed per default with Tru64 Unix, but I=20 think it is delivered with the Freeware or Software Products=20 Library CD-ROMs. ] Regards, Michael --------------------------------- The original question was: Hi managers, I have freshly installed a Tru64 4.0F box, with patchkit 7. It was left running overnight to find the next morning that the /usr/users filesystem (a 5GB UFS partition) was full. Indeed 'df -k' showed capacity at 101% .=20 The messages log contained a disk full message and a lot of=20 "message repeated" messages with huge repetition counts. I logged in and did a 'du -sk' on /usr/users, and it showed me that approx 1.6GB was used - around 33 %). Into single user, and forced a fsck of the partition. All clean. Rebooted to multiuser - now 'df -k' shows a more "correct" figure of = about 36% usage. The machine has been running since and the problem has not recurred, but = I have never experienced this before. I've seen others in this group have problems, but they all seem to have = been on AdvFS. Any ideas what could cause this? Kind regards, Michael B=FCtow