SOLVED How to find total disk space ?

thanasis

Well-Known Member
Nov 24, 2017
73
4
8
Greece
cPanel Access Level
Root Administrator
Hello,
i have a VPS with 1600 GB disk space.

I see at Home »Account Information »List Accounts, i have total 56.61 GB Disk Used

Also i run:

Code:
[[email protected] /]# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda2       1.2T  110G 1012G  10% /
devtmpfs         25G     0   25G   0% /dev
tmpfs            25G  4.0K   25G   1% /dev/shm
tmpfs            25G   73M   25G   1% /run
tmpfs            25G     0   25G   0% /sys/fs/cgroup
/dev/sda1       969M  251M  652M  28% /boot
tmpfs           4.9G     0  4.9G   0% /run/user/0
Code:
[[email protected] /]# du -h --exclude /proc --max-depth=1 /
204M    /opt
41M     /etc
112K    /tmp
4.0K    /srv
4.0K    /mnt
41G     /backup
9.9G    /usr
0       /sys
300G    /home
249M    /boot
73M     /run
16K     /lost+found
4.9G    /var
4.0K    /dev
4.0K    /media
12M     /root
356G    /
i can't understand the above numbers.... I have 56.61 GB and didn't see this number above...

How to find total disk space (centos + whm/cpanel + mywebsite (with emails + sql)
 

ES - George

Well-Known Member
PartnerNOC
Jun 12, 2011
179
25
68
UK
cPanel Access Level
DataCenter Provider
Twitter
The 56 GB you're seeing in WHM is for your cPanel accounts only.

It doesn't include the 41GB in the /backup directory, or other files in /home that are not part of a cPanel account. It might be you have cpmove (backups) files in your /home directory, for example.

I suggest entering your /home directory, and running something like du -sch * to give you a breakdown of your usage.
 

thanasis

Well-Known Member
Nov 24, 2017
73
4
8
Greece
cPanel Access Level
Root Administrator
If i want to change hosting packet, can i go to one with 256 GB hard disk ? I want this hard disk space contains cpanel/whm and my websites (files, DBs, emails)
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,252
313
Houston
If i want to change hosting packet, can i go to one with 256 GB hard disk ? I want this hard disk space contains cpanel/whm and my websites (files, DBs, emails)
Based on what you're using I wouldn't looks like based on cPanel + Sites + DB you're using almost double that.
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,252
313
Houston

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,252
313
Houston
Hello @thanasis

Can you give me an example? Does list accounts show more? In most cases the reason list accounts would be more is the inclusion of files owned by that user in locations other than home such as MySQL databases.
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,252
313
Houston
Hello @thanasis

Do you have quotas enabled on the server? You can ensure that they're enabled by running
Code:
/scripts/initquotas
This won't report properly without quotas enabled and functioning.
 

thanasis

Well-Known Member
Nov 24, 2017
73
4
8
Greece
cPanel Access Level
Root Administrator
At /home with this command du -sch * , i have 897G total; 789G is virtfs
I read that virtfs files are from Jailed Shell.
If i disable the Jailed Shell, shall this size of the /virtfs will be decreased ?
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,252
313
Houston
Hi @thanasis

VirtFS doesn't actually use any disk space though I do understand why it would be confusing.
At this point feel free to open a ticket using the link in my signature as it may be easier to explain the discrepancies you're seeing with access to the server. Once open please reply with the Ticket ID here so that we can update this thread with the resolution once the ticket is resolved.


Thanks!
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,252
313
Houston
Hi @thanasis

Thanks for updating the thread with the ticket ID it looks like the issue has been resolved, the analyst found that the space discrepancy was due to backups being stored in /home which will cause quotas to not report properly and there was a large amount of space dedicated to some older log files which explained some of the usage you were seeing.

Thanks!
 
  • Like
Reactions: thanasis