WHM List Accounts does not reflect the real usage of each account

Operating System & Version
CENTOS 7.8
cPanel & WHM Version
v88.0.13

HOXTIN

Member
Jul 3, 2019
5
1
3
Chile
cPanel Access Level
Root Administrator
Hello,

I've been struggling with this for some weeks and, after reading every post thread in the forum, as well as other forums, I have not been able to fix this.

Recently I moved all accounts from one server to a bigger one and, since then, WHM and cPanel accounts do not reflect the actual used space.

If I check the disk space used by an account (ie. 0account0) the WHM /system health/Show Current Disk Usage, as well as /Account Information/ List Accounts and even the cPanel account for 0account0 shows 40 MB and, only in ONE email account is using close to 15 GB.

Another account (lets name this 1account1), with no website and only used for email purposes, shows 0 MB used and, only ONE of the email accounts is using 37 GB.

Conclusion: The WHM and cPanel is only showing space used by the files within it and not adding the email usage.

I will appreciate very much all the help since I am no super expert.
 

cPAdminsMichael

Well-Known Member
Dec 19, 2016
186
67
153
Denmark
cPanel Access Level
Root Administrator
Hi,

You may want to run /scripts/fixquotas to refresh/fix your quota stats ;)
 

HOXTIN

Member
Jul 3, 2019
5
1
3
Chile
cPanel Access Level
Root Administrator
Thank you Michael. Did that and only checks and re-applies the quotas assigned to each account, after which the issue continues and actual disk usage is incorrect, only showing space used by the files and does not add the space used by email accounts.

As mentioned before, for one account:

Assigned Disk Quota: 75 GB

Email Disk Usage: 60 GB
Files Usage: 35.5 MB (public_html and public_ftp)

Current Disk Usage: 40 MB <--- as it is reflected in the WHM and the accounts cPanel

And, as showed, should be at least 60 GB

Hope you have an idea why... I am still looking around forums, blogs and more, and still nothing.
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,300
363
Houston
If you go to WHM>>Service Configuration>>Mailserver Configuration -> Include Trash in Quota what is set? Is the email disk usage primarily in the default account when you look or is it in other accounts? How are you determining what the actual disk usage is? I would suggest comparing running something like the following and comparing it to what is shown in the UI to double check the totals:

For total mail usage per account:

Code:
du -sch /home/$user/mail
For a breakdown of usage allocation for an account:

Code:
du -h --max-depth=1 /home/$user/mail
 

HOXTIN

Member
Jul 3, 2019
5
1
3
Chile
cPanel Access Level
Root Administrator
Thanks Lauren

Adapting the code, for one of the accounts, results in:
[[email protected] ~]# du -sch /hox/autobar/mail​
83G /hox/autobar/mail​
83G total​

And checking System Health // Show Current Disk Usage was showing 42 MB

I kept searching and found a post suggesting tu use: /scripts/upcp --force
That made it! and full disk usage is shown in each hosting account. Attached image corresponds to the same account verified using the code after running /scripts/upcp --force
 

Attachments

  • Like
Reactions: cPanelLauren