Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Nov 2008 16:03:16 +0000
From:      Erwan David <erwan@rail.eu.org>
To:        freebsd-stable@freebsd.org
Subject:   Re: du and df don't agree
Message-ID:  <20081110160315.GH9074@rail.eu.org>
In-Reply-To: <49185ABC.6080004@earthlink.net>
References:  <49185ABC.6080004@earthlink.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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     Size    Used   Avail Capacity  Mounted on
> /dev/ad0s1a     94M     41M     45M    47%    /
> devfs          1.0K    1.0K      0B   100%    /dev
> /dev/ad0s1e    193M    161M     17M    91%    /tmp
> ... remaining fs info removed
>
> # uname -a
> FreeBSD 6.1-STABLE FreeBSD 6.1-STABLE
>
> I have run fstat /tmp and can't find any files that are using
> the space that df is claiming as being used.

Because this space is used by removed, but open files.
Try lsof +L1 to see them.

-- 
Erwan



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081110160315.GH9074>