I recently discovered that I only had a very small amount of disk space left. I found that my logs were getting quite huge so I reconfigured logrotate. However, I still have some issues.
df -h I can see that I have used 13 GB and have 6 GB left.
root@host01:/# df -h Filesystem Size Used Avail Use% Mounted on rootfs 20G 13G 6.3G 67% / udev 10M 0 10M 0% /dev tmpfs 50M 156K 50M 1% /run /dev/disk/by-label/DOROOT 20G 13G 6.3G 67% / tmpfs 5.0M 0 5.0M 0% /run/lock tmpfs 100M 0 100M 0% /run/shm
However, if I go to the root
/ and do
du -h --max-depth=1 | sort -h it shows that roughly 6 GB is used.
root@host01:/# du -h --max-depth=1 | sort -h du: cannot access `./proc/8902/task/8902/fd/5': No such file or directory du: cannot access `./proc/8902/task/8902/fdinfo/5': No such file or directory du: cannot access `./proc/8902/fd/5': No such file or directory du: cannot access `./proc/8902/fdinfo/5': No such file or directory 0 ./dev 0 ./proc 0 ./sys 4.0K ./lib64 4.0K ./media 4.0K ./mnt 4.0K ./opt 4.0K ./selinux 8.0K ./tmp 12K ./srv 16K ./lost+found 104K ./root 156K ./run 5.9M ./sbin 6.9M ./bin 8.2M ./etc 15M ./boot 121M ./lib 332M ./var 851M ./usr 5.0G ./home 6.3G .
It seems odd that I should have used 13 GB and the total usage of the root shows 6,3 GB which seems a bit more reasonable. Does anyone know where the other 7 GB might be located and if I can restore any of it?