huge difference between du and df - no open file descriptors
Nils Effenberger
effenberger at work.de
Thu Jul 31 09:29:29 UTC 2014
On Wed, 30 Jul 2014 17:32:24 +0200
Nils Effenberger <effenberger at work.de> wrote:
> Then I tried to create another (big) file which lead to the
> following:
>
>
> root at zhoernchen:~ # dd if=/dev/zero of=/root/test bs=1024
> count=3500000
>
> /: write failed, filesystem is full
> dd: /root/test: No space left on device
> 38849+0 records in
> 38848+0 records out
> 39780352 bytes transferred in 0.422187 secs (94224517 bytes/sec)
> root at zhoernchen:~ # df -h
> Filesystem Size Used Avail Capacity Mounted on
> /dev/mirror/root 4.8G 4.8G -395M 109% /
> devfs 1.0K 1.0K 0B 100% /dev
> root at zhoernchen:~ # rm test
> root at zhoernchen:~ # df -h
> Filesystem Size Used Avail Capacity Mounted on
> /dev/mirror/root 4.8G 4.8G -395M 109% /
> devfs 1.0K 1.0K 0B 100% /dev
>
> (Note that I deleted the 'test' file without effect.)
>
> du(1) still shows 2.2G:
>
> root at zhoernchen:~ # du -shx /
> 2.2G /
>
> When I now try to create files I get ENOSPC :(
>
After running fsck over the mirror, which salvaged a few things df(1)
was showing the right values again but the issue remained:
UFS doesn't release disk space after I delete files.
--
Nils Effenberger
Junior UNIX-Administration
n at work Internet Informationssysteme GmbH Wandalenweg 5, 20097 Hamburg,
http://www.work.de E-Mail: effenberger at work.de, Tel: +49 40 2388090 -
Fax: +49 40 23880929
HR B 61 668 - Amtsgericht Hamburg, Geschaeftsfuehrer: Jan Diegelmann
More information about the freebsd-questions
mailing list