I have a small VPS that I use as a development server, it's running Centos and Cpanel.
The problem I'm having is that I'm quickly running out of disk space but I can't seem to figure out where it's all going. I've ran the du -sh * command to see which folders are taking up space on the server but the numbers being returned don't add up to the amount of disk space that's being used.
root@server [/home]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/xvda1 38G 34G 1.9G 95% /
tmpfs 497M 0 497M 0% /dev/shm
/usr/tmpDSK 4.0G 139M 3.7G 4% /tmp
du -sh * on the root
du -sh on the /home folder (which also contains a virtfs folder)
By my calculations the following folders are taking up most of the space....
/usr = 8.3GB
/var = 4.1GB
/home = 6.5GB (I'm not counting the virtfs folder as I believe this is just a link to other folders)
That adds up to around 19GB, so why does the OS say I'm using more than that?