Götz Reinicke - IT Koordinator
2014-Nov-03 15:53 UTC
[CentOS] strange disk space calculation ext4 df and du
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 -- 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
Jonathan Billings
2014-Nov-03 18:54 UTC
[CentOS] strange disk space calculation ext4 df and du
On Mon, Nov 03, 2014 at 04:53:05PM +0100, G?tz Reinicke - IT Koordinator wrote:> 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?Deleted files (check out the output of 'lsof' and look for deleted files)? This happens a lot when your log rotation system rotates a log but the daemon logging to it isn't restarted or told to use the new log files. Also, you could have sparse files (read the man page for 'du' under --apparent-size) that appear to be using more space than 'du' normally reports. -- Jonathan Billings <billings at negate.org>
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?tzThe 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. Hope that helps? Rick
Peter Kjellström
2014-Nov-04 08:43 UTC
[CentOS] strange disk space calculation ext4 df and du
On Mon, 03 Nov 2014 16:53:05 +0100 G?tz Reinicke - IT Koordinator <goetz.reinicke at filmakademie.de> wrote: ...> 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 ....Next thing to check is stuff hiding under mount points. That is for example the /tmp directory on the root fs containing stuff but another fs then mounted on /tmp hiding that. /Peter
Apparently Analagous Threads
- Mysql 5.6, Centos 7 and errno: 24 - Too many open files
- Oldies but Goldies - Dovecot 1.2 and Sieve
- Mysql 5.6, Centos 7 and errno: 24 - Too many open files
- updating and wsitching repo to yum.dovecot.fi - Unknown protocol: sieve
- Mysql 5.6, Centos 7 and errno: 24 - Too many open files