Suddenly all the available disk space on /
has disappeared.
If I make room in the disk (by deleting ~50GB of stuff, for example), after a few minutes I am back to 0 available disk space (according to df
).
Clearly, some process is eating up disk space at a rapid rate, but I can't figure out what it is.
One thing is certain, though: whatever it is, it must be creating many small files, because there are no files bigger than 10GB on the disk, and all the ones bigger than 1GB are much older than today.
How can I find what's eating up disk space?
FWIW, only df
sees the problem, not du
.
For example, below I show several "snapshots" from du
and df
taken 60s. apart. (I did this after I had made some room in the disk.) Notice how du
's output remains steady (at 495G
), but df
shows a steadily shrinking amount of available space. (I've followed the recommendation given here. IOW, /mnt/root
is pointing to /
.)
# while true; do du -sh /mnt/root && df -h /mnt/root; sleep 60; done
495G /mnt/root
Filesystem Size Used Avail Use% Mounted on
/dev/sdb1 880G 824G 12G 99% /mnt/root
495G /mnt/root
Filesystem Size Used Avail Use% Mounted on
/dev/sdb1 880G 825G 11G 99% /mnt/root
495G /mnt/root
Filesystem Size Used Avail Use% Mounted on
/dev/sdb1 880G 827G 8.9G 99% /mnt/root
495G /mnt/root
Filesystem Size Used Avail Use% Mounted on
/dev/sdb1 880G 827G 8.1G 100% /mnt/root
495G /mnt/root
Filesystem Size Used Avail Use% Mounted on
/dev/sdb1 880G 828G 7.5G 100% /mnt/root
du
does not register it. The /var size, if syslog is the culprit, wont register it too. – Rui F Ribeiro May 22 '17 at 19:20du
's output, nor in the size of /var. – kjo May 22 '17 at 19:27sudo lsof -nP | grep '(deleted)'
– Rui F Ribeiro May 22 '17 at 19:29COMMAND
in most of the lines isserver
. Aserver
process also shows up iniotop
. I'll investigate further... Thanks! – kjo May 22 '17 at 19:37df
anddu
show 487G (out of 880G). If you post your comment as an answer, I'll accept it. – kjo May 22 '17 at 19:47