Re: du and df don't agree

2008-11-11 Thread Marian Hettwer
On Tue, 11 Nov 2008 11:55:30 +0100, Ruben de Groot <[EMAIL PROTECTED]> wrote: > On Tue, Nov 11, 2008 at 10:22:42AM +0100, Willem Jan Withagen typed: >> Ruben de Groot wrote: >> >On Mon, Nov 10, 2008 at 11:21:11PM +0700, Eugene Grosbein typed: >> >>On Mon, Nov 10, 2008 at 11:01:00AM -0500, Stephen

Discussing non BSD tools on Stable (Was: Re: du and df don't agree)

2008-11-11 Thread Willem Jan Withagen
Ruben de Groot wrote: You need lsof +aL1 /tmp to see an answer. Please don't advise people to install third party apps (lsof) where base system tools (fstat) can do the job. Why not? Because it gives the impression the base system is incomplete, which it is not, at least not in this situation

Re: du and df don't agree

2008-11-11 Thread Ruben de Groot
On Tue, Nov 11, 2008 at 10:22:42AM +0100, Willem Jan Withagen typed: > Ruben de Groot wrote: > >On Mon, Nov 10, 2008 at 11:21:11PM +0700, Eugene Grosbein typed: > >>On Mon, Nov 10, 2008 at 11:01:00AM -0500, Stephen Clark wrote: > >> > >>>Why would du show 630k used by /tmp while df show 161M used >

Re: du and df don't agree

2008-11-11 Thread Willem Jan Withagen
Ruben de Groot wrote: On Mon, Nov 10, 2008 at 11:21:11PM +0700, Eugene Grosbein typed: On Mon, Nov 10, 2008 at 11:01:00AM -0500, Stephen Clark wrote: Why would du show 630k used by /tmp while df show 161M used by /tmp? I have run fstat /tmp and can't find any files that are using the space th

Re: du and df don't agree

2008-11-11 Thread Ruben de Groot
On Mon, Nov 10, 2008 at 11:21:11PM +0700, Eugene Grosbein typed: > On Mon, Nov 10, 2008 at 11:01:00AM -0500, Stephen Clark wrote: > > > Why would du show 630k used by /tmp while df show 161M used > > by /tmp? > > > > I have run fstat /tmp and can't find any files that are using > > the space that

Re: du and df don't agree

2008-11-10 Thread Eugene Grosbein
On Mon, Nov 10, 2008 at 11:01:00AM -0500, Stephen Clark wrote: > Why would du show 630k used by /tmp while df show 161M used > by /tmp? > > I have run fstat /tmp and can't find any files that are using > the space that df is claiming as being used. You need lsof +aL1 /tmp to see an answer. Euge

Re: du and df don't agree

2008-11-10 Thread Stephen Clark
Jille Timmermans wrote: Probably some file descriptor to an unlinked file is still open. The space on disk will be freed when the last descriptor is closed. and because there is no file linked to the data, du can't see it. (iirc MySQL does this in some situaties when using temp-tables or rebuil

Re: du and df don't agree

2008-11-10 Thread Jille Timmermans
Probably some file descriptor to an unlinked file is still open. The space on disk will be freed when the last descriptor is closed. and because there is no file linked to the data, du can't see it. (iirc MySQL does this in some situaties when using temp-tables or rebuilding tables) -- Jille

Re: du and df don't agree

2008-11-10 Thread Erwan David
Le Mon 10/11/2008, Stephen Clark disait > Why would du show 630k used by /tmp while df show 161M used > by /tmp? > > > # du -sh /tmp > 630K/tmp > # df -h > Filesystem SizeUsed Avail Capacity Mounted on > /dev/ad0s1a 94M 41M 45M47%/ > devfs 1.0K1.0K

du and df don't agree

2008-11-10 Thread Stephen Clark
Why would du show 630k used by /tmp while df show 161M used by /tmp? # du -sh /tmp 630K/tmp # df -h Filesystem SizeUsed Avail Capacity Mounted on /dev/ad0s1a 94M 41M 45M47%/ devfs 1.0K1.0K 0B 100%/dev /dev/ad0s1e193M161M 17M