Thinlinedata

Member
Jul 17, 2013
10
0
1
cPanel Access Level
Root Administrator
I have a 60GB disk with CentOs6, on a Godaddy VPS, running WHM and cPanel.

The disk is full, as in 100% full. How can I see what is actually using all this storage? This is causing quite alot of problems on the server, and I am not sure what is taking up all this disk space exactly.

I am doing weekly backups through the WHM interface, maybe this is why? Maybe its storing multiple instances of backup, and thus clogging the disk with alot of data?

Question is just how I can pin point exactly what is using all the disk space.

FYI. I know it is not a manual thing, since I am not really uploading anything new on the server, this has come by itself. So some process is using the disk space.

I ran the following command:
df -k

And got this output:

Filesystem 1K-blocks Used Available Use% Mounted on
/dev/vzfs 62914560 62914560 0 100% /
none 1048576 4 1048572 1% /dev

What is the /dev/vzfs folder for? And I dont really see anything odd in there...
 
Last edited:

quietFinn

Well-Known Member
Feb 4, 2006
1,222
87
178
Finland
cPanel Access Level
Root Administrator
Check the /backup directory (as root) and delete older backups.
 

Thinlinedata

Member
Jul 17, 2013
10
0
1
cPanel Access Level
Root Administrator
Where is that? I dont know the structure of Centos6 that well. Where can I prevent all this from happening. Any tutorial anywhere that shows how to keep max backup to a certain size and where the backup folder resides?

I still have not found the reason for the used space and what is actually using this space up. And the backup folder, I cant find either.
 

anupkumar

Member
May 20, 2011
10
0
51
cPanel Access Level
Root Administrator
You can check the disk space by running below command in /
du -sch *
It will show the disk space used by particular folder. If you have configured backup in /backup then it will show the disk usage of that folder. Go inside that backup folder and run the same command again. Once you got the file and folder who is eating the disk space jut delete it.

Note. Before deleting make sure you are not removing system files.

Check /etc/cpbackup.conf to know the backup configuration path.
 

Thinlinedata

Member
Jul 17, 2013
10
0
1
cPanel Access Level
Root Administrator
I found it! The best command ever is to start on top in home folder and drill down. This was a life saver:

du -h --max-depth=1

After that, ls -la does the rest.

A log file of 42GB was apparently hammering my server :)
 

federicoblank

Registered
Feb 12, 2020
1
0
1
Caracas
cPanel Access Level
Root Administrator
Hi, I´ve been having issues with disk space with go daddy as well. I´m the admin of a VPS on Godaddy, we host around 30 WP sites there. We were ok concerning disk space, however, we are moving to Bluehost, and while using the transfer tool in our new VPS in Bluehost, every time that I transfer a site to the new server, the space used on the old one increases quite a lot, even though, after deleting the cpanel account of that particular site. So it turned out to be a snowball rolling downhill which is collapsing the space on the Godaddy VPS. I have disabled the backup configuration in the WHM, but this doesn´t help. After talking to Godaddy's Customer Service for about two hours, they ended up saying they couldn´t help deleting any backup info and logs, that I had to do it through SSH. The just pointed to a folder called virtfs which is using the most space on that VPS. virtfs is at the same structure level as all the web site accounts hosted there.

Reading about the virtfs file, I found out that it is supposed to be some kind of a mounted disk, which is not supposed to use real disk space. However, in my case, it is a 90GB folder. It is also recommended not to delete anything inside because the system could get damaged. So, Godday is unable to give me any other useful information or help besides just giving me the name of that folder, but I still don´t know why it grows and how can I safely delete its contents, and how to make it stop from growing. The only way that I´ve been able to manage the situation is increasing the disk size... but we all know this is not the proper way, there must be a more cost/effective way to solve it and I´m missing it.

I am nooby on WHM/VPS administration, however, I have long experience with Cpanels, but still, can´t figure out what´s going on here, I wonder if someone has pass-through this, and maybe can point me in the right direction, in a detailed fashion, in order to solve this.

Thank you in advance!