I had 100% of disk use on
/dev/xvda1
Which is the system partition, so I decided to mount
/var/lib
On another partition
/dev/xvdf
since docker files under /var/lib were eating much space.
I have always 100% of the root partition used.
udev 2.0G 12K 2.0G 1% /dev
tmpfs 396M 336K 395M 1% /run
/dev/xvda1 99G 99G 0 100% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
none 5.0M 0 5.0M 0% /run/lock
none 2.0G 0 2.0G 0% /run/shm
none 100M 0 100M 0% /run/user
/dev/xvdf 296G 765M 280G 1% /var/lib
and
lsof | grep deleted
shows nothing
And this is the output of du -sh
52M /admin
9.6M /bin
25M /boot
12K /dev
5.9M /etc
11M /home
0 /initrd.img
61M /lib
4.0K /lib64
16K /lost+found
4.0K /media
4.0K /mnt
4.0K /opt
du: cannot access '/proc/3945/task/3945/fd/4': No such file or directory
du: cannot access '/proc/3945/task/3945/fdinfo/4': No such file or directory
du: cannot access '/proc/3945/fd/4': No such file or directory
du: cannot access '/proc/3945/fdinfo/4': No such file or directory
0 /proc
15M /root
336K /run
9.4M /sbin
4.0K /srv
0 /status
0 /sys
8.5M /tmp
1016M /usr
877M /var
0 /vmlinuz
The inode usage:
Filesystem Inodes IUsed IFree IUse% Mounted on
udev 504621 397 504224 1% /dev
tmpfs 505859 315 505544 1% /run
/dev/xvda1 6553600 684402 5869198 11% /
none 505859 10 505849 1% /sys/fs/cgroup
none 505859 1 505858 1% /run/lock
none 505859 1 505858 1% /run/shm
none 505859 1 505858 1% /run/user
/dev/xvdf 19660800 202 19660598 1% /var/lib
Do you see any solution ?
/var/lib
to/dev/xvdf
before you mounted it in that place (or cleaned the/dev/lib
directory)? If not then these files are 'hidden' behind/dev/xvdf
when you mounted it to/dev/lib
. This can explain the missing disk usage. – Marco May 19 '16 at 08:47