Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for Wayward Inodes.)
Subject: Re: Missing diskspace mystery on a Dectstion 3100
Date: 1996/05/13	[thread overview]
Message-ID: <4n8es5$h1b@nntpd.lkg.dec.com> (raw)
In-Reply-To: 4n4t2m$nsi@serra.unipi.it



In article <4n4t2m$nsi@serra.unipi.it>, ferrovia@mercurio.iet.unipi.it (Massimo Macucci) writes:

>I get an error message saying that the /usr partition is full, 
>in agreement with what I can conclude from the df command, according
>to which the /usr partion is actually 100% full. However, if I run 
>a du -s command on /usr, it turns out that there should still be many 
>tens of Mbytes available. If I reboot the system everything is fine 
>again, and the results from df are consistent with those from du -s.
>

df(1) gets its data from internal data structures used to keep track
of file systems.  The du command opens the current file or directory
(or specified file or directory).  If a file it simply prints the
amount of space used by the file.  For directories it gets the size
of the files in the directory.  And so it goes for each directory or
file it finds in the tree.

It is possible to have a file which is open and has space allocated
to it, but doesn't have a name.  The data structures used by df(1)
will be tracking the space used by the file and it will show up
there.  Since the file has no name, du(1) won't be able to find.

This is a feature used by processes that keep temporary files.  When
the process exits the file is deleted by the system because there
are no active links to it.  Rebooting the system kills the process,
and thus the space is reclaimed.  My best guess is that the offending
file is in /var/tmp (and /var is under /usr if it isn't a separate
file system), but without a name it will be hard to find.

There are programs (I've heard lsof is good) which will look at
the system's open file table and can help track down the process
that has the file open.
--
Alan Rollow				alan@nabeth.cxo.dec.com




      reply	other threads:[~1996-05-13  4:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-05-12  4:00 Missing diskspace mystery on a Dectstion 3100 Massimo Macucci
1996-05-13  4:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes. [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox