From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,4ec06d8bdb3f58e9 X-Google-Attributes: gid1164f8,public 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 Message-ID: <4n8es5$h1b@nntpd.lkg.dec.com>#1/1 X-Deja-AN: 154653758 distribution: world references: <4n4t2m$nsi@serra.unipi.it> organization: Digital Equipment Corporation keywords: Diskspace Decstation 3100 reply-to: alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for Wayward Inodes.) newsgroups: comp.sys.dec 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