I have an AWS linux instance with a root drive of 32GB.
I have an EBS mount of 20GB
On my root I ran out of space, so I cleared out some files. However my root drive is still full. I can't find out why because when I look at sizes of the directories using
ncdu they show the drive should have a lot of space.
I get the following results
Filesystem 1K-blocks Used Available Use% Mounted on /dev/xvda1 32894812 31946092 848472 98% / devtmpfs 2017224 60 2017164 1% /dev tmpfs 2025364 0 2025364 0% /dev/shm /dev/xvdh 20511356 4459276 15003504 23% /mnt/ebs
My /dev/xvda1 is still full
After some research I installed a great tool ncdu to display disk space and the results are:
ncdu 1.10 ~ Use the arrow keys to navigate, press ? for help --- / ------------------------------------- 4.2GiB [##########] /mnt 1.5GiB [### ] /var 1.2GiB [## ] /usr 684.9MiB [# ] /opt 464.3MiB [# ] /home 141.7MiB [ ] /lib 53.5MiB [ ] /boot 21.2MiB [ ] /lib64 10.8MiB [ ] /sbin 8.1MiB [ ] /bin 7.1MiB [ ] /etc 2.7MiB [ ] /tmp 60.0KiB [ ] /dev 48.0KiB [ ] /root e 16.0KiB [ ] /lost+found e 4.0KiB [ ] /srv e 4.0KiB [ ] /selinux e 4.0KiB [ ] /media e 4.0KiB [ ] /local . 0.0 B [ ] /proc 0.0 B [ ] /sys 0.0 B [ ] .autofsck
du -h my total is
So why would my disk be 95% full when it clearly has a lot of space. Am I missing something to do with the mounts and is there any other tool I can run to find out why it is 95% full?