df and du output different (

Colin Campbell sgcccdc at citec.qld.gov.au
Sun Aug 31 22:44:39 PDT 2003


Hi,

On Mon, 1 Sep 2003 09:46:40 +0500
áÎÄÒÅÊ ìÅÊËÁÎÄ <brian at bee-s.com> wrote:

> Hi, all !
> 
> Tomorrow i got a such curius output - see below 
> 
> su-2.05# df -h
> Filesystem    Size   Used  Avail Capacity  Mounted on
> /dev/da1s1e    14G   9.1G   4.3G    68%    /data
> 
> su-2.05# cd /data
> su-2.05# du -d1 -h
> 129M    ./template
> 1.0K    ./dim
> 1.2G    ./mail
> 616M    ./stat
> 128M    ./template4renew
> 611M    ./php
> 1.2G    ./posh
> 694M    ./news
> 394M    ./switch04
> 3.0G    ./elite
> 7.9G    .
> 
> Can you prompt me where is 9.1G-7.9G=1.2G ?

You have a file whose directory entry has been deleted but a process still has
the file open. I know you can find it with lsof. Maybe you can find it with
fstat, too.

Colin
--
Colin Campbell
Unix Support/Postmaster/Hostmaster
Citec
+61 7 3227 6334


More information about the freebsd-isp mailing list