I have Ubuntu machine, version 14.04 running on AWS (EC2). Yesterday, my disk space run out of space. Running with user root
df -h
Bring this result:
Filesystem Size Used Avail Use% Mounted on
/dev/xvda1 148G 142G 106M 100% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
udev 3.7G 8.0K 3.7G 1% /dev
tmpfs 748M 332K 748M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 3.7G 0 3.7G 0% /run/shm
none 100M 0 100M 0% /run/user
overflow 1.0M 32K 992K 4% /tmp
But running this command:
du -ch /
Gave this result:
....
1.5G /
1.5G total
Reboot gave save results. This morning, when I came back to the office AND NO ONE TOUCH THE MACHINE (and there is no batch tasks or processes that write and / or delete files), I run again the commands. I got:
Filesystem Size Used Avail Use% Mounted on
/dev/xvda1 148G 1.6G 140G 2% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
udev 3.7G 8.0K 3.7G 1% /dev
tmpfs 748M 332K 748M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 3.7G 0 3.7G 0% /run/shm
none 100M 0 100M 0% /run/user
overflow 1.0M 32K 992K 4% /tmp
Which make much more sense.
Anyone has explanation why this happened? and why after a night space was free?
Please note that I saw the used disk space grow steadily. And it is the third time it happens.