Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* Missing diskspace mystery on a Dectstion 3100
@ 1996-05-12  4:00 Massimo Macucci
  1996-05-13  4:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
  0 siblings, 1 reply; 2+ messages in thread
From: Massimo Macucci @ 1996-05-12  4:00 UTC (permalink / raw)



On a DECstation 3100 which is running an http server, I often have 
a diskspace problem that seems to be totally mysterious, at least
for me. 
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.
After a week or so, I am back in the same situation and another reboot 
is needed...
Here is the current situation:

# df
Filesystem       Total    kbytes   kbytes   %     
node             kbytes   used     free     used  Mounted on
/dev/rz0a          15823    9658    4583    68%   /
/dev/rz0g         945798  787861   63358    93%   /usr
/dev/rz1c        1001852  691534  280263    71%   /bussolo
pimac2:/pimac2c   628406  375319  190247    66%   /pimac2c
pimac2:/treno     303582  264660   23743    92%   /treno
pimac:/usr/users  194550  163817   11278    94%   /pimac
venere:/users    1943709 1726798   22540    99%   /venere

# cd /   
# du -s usr
752517  usr

Notice that 787861 - 752517 = 35344 kbytes are unaccounted for. 
In a few days this number will grow up to about 100 Mbytes and 
I will have to reboot.

Does anybody have any hint ?

                                           Thanks
                                           Massimo Macucci





^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Missing diskspace mystery on a Dectstion 3100
  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.
  0 siblings, 0 replies; 2+ messages in thread
From: Alan Rollow - Dr. File System's Home for Wayward Inodes. @ 1996-05-13  4:00 UTC (permalink / raw)




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




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1996-05-13  4:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox