[CentOS] strange disk space calculation ext4 df and du

Tue Nov 4 08:07:07 UTC 2014
Götz Reinicke - IT Koordinator <goetz.reinicke at filmakademie.de>

Am 04.11.14 um 08:45 schrieb Rick Thomas:
> On Nov 3, 2014, at 7:53 AM, Götz Reinicke - IT Koordinator <goetz.reinicke at filmakademie.de> wrote:
> 
>> Hi,
>>
>> in one server I do have a SSD raid 1 size 219GB.
>>
>> df shows 9.4 GB free, 198GB used.
>>
>> If I do "du -sch * | sort -h -r" on /, I just have close to 3.5GB used ....
>>
>> Any hints, what's eating up the space?
>>
>> Centos 6.6, fs = ext4.
>>
>> 	regards . Götz
> 
> The ext[234] filesystems reserve a certain amount of space for use by root only.  If I remember correctly, the default if 5%, but you can tune that with tune2fs(8) or mkfs.ext4(8). The df command subtracts the reserved space when it shows the amount free.  So an empty 1GB filesystem would show as having 950 MB free.


Hi thanks, I'm aware of that, and in my case that would be as if 95% are
reserved for root. Currently I "miss" 195 +- GB ....

	Regards . Götz

-- 
Götz Reinicke
IT-Koordinator

Tel. +49 7141 969 82 420
E-Mail goetz.reinicke at filmakademie.de

Filmakademie Baden-Württemberg GmbH
Akademiehof 10
71638 Ludwigsburg
www.filmakademie.de

Eintragung Amtsgericht Stuttgart HRB 205016

Vorsitzender des Aufsichtsrats: Jürgen Walter MdL
Staatssekretär im Ministerium für Wissenschaft,
Forschung und Kunst Baden-Württemberg

Geschäftsführer: Prof. Thomas Schadt