*BSD News Article 82470


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!esmeralda.access.net.au!news.netspace.net.au!news.mira.net.au!inquo!news.uoregon.edu!news.u.washington.edu!root
From: "Steven G. Kargl" <kargl@troutmask.apl.washington.edu>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: When df disagrees with du
Date: Thu, 07 Nov 1996 17:45:40 -0800
Organization: Applied Physics Lab
Lines: 33
Message-ID: <328290C4.41C67EA6@troutmask.apl.washington.edu>
References: <E0Ho83.Ex9@news2.new-york.net> <2579@847379155> <55tm62$2j7@newsbr.eunet.fr>
NNTP-Posting-Host: troutmask.apl.washington.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 3.0Gold (X11; I; FreeBSD 2.2-CURRENT i386)
To: Frederic MARAND <Frederic.Marand@osinet.fr>

Frederic MARAND wrote:
> 
> "Kenneth Chiu" <chiuk@cs.indiana.edu> wrote:
> 
> >In article <E0Ho83.Ex9@news2.new-york.net>, Louis Epstein <le@put.com> wrote:
> >>I've had the df on one of my 2.1R servers tell me that /var is 107% full,
> >>deleted some large files there,done du and gotten a figure for blocks used
> >>in var,done df again(over periods of hours) and still been told(despite
> >>checking the directories again,no new growth) that over twice that much
> >>space is in use and that it's still 107% full.
> 
> >Hmm...is it possible that a process is unlinking a still open temp file?
> Usually, du sums up the file sizes in the subtree, whereas df uses the
> inode count. This means du represents your data volume and df
> represents your used disk space, which is normally larger than the
> data volume.
> 
> Of course, having 107% occupancy means there is a bug somewhere.

No, there is not a bug.  When you create a partition, you normal have
a certain amount of reserved space (5 to 10%).  Thus, 100% occupancy
means that the normally available space is full while the additional
7% is related to the use of the reserved space.

man newfs

see the -m option.

-- 
Steve

finger kargl@troutmask.apl.washington.edu
http://troutmask.apl.washington.edu/~kargl/sgk.html