Incorrect Disk Usage displayed in cPanel

AndyX

Well-Known Member
Sep 25, 2015
154
22
68
Los Altos, CA
cPanel Access Level
Root Administrator
The Disk Usage in cPanel is not showing the correct value. I submitted a support ticket with my web host. They were able to fix the issue by moving the following directory:

/home/username/.cpanel/datastore

to this directory:

/root/support/1234/

Why would my web host need to move this directory? Is there another way to fix the Disk Usage problem without moving the directory?
 
  • Like
Reactions: retechpro

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
16,570
2,612
363
cPanel Access Level
Root Administrator
Hey hey! Was this not showing correctly for an extended period of time, or was it after clearing some space? The cPanel interface caches many of those types of value - for example, think how much resources it would take to scan the cPanel account's disk usage each time you loaded the page. Because of that, we cache those values for a period of time, and those get updated as part of the nightly maintenance.
 

AndyX

Well-Known Member
Sep 25, 2015
154
22
68
Los Altos, CA
cPanel Access Level
Root Administrator
Yesterday when the web host moved the directory, I looked for the directory:

/home/username/.cpanel/datastore

and the directory was not there. Now I just checked again and cPanel has created the directory and files in the directory.

I assume that if we run into this issue again, all we need to do is delete the directory:

/home/username/.cpanel/datastore

then restart cPanel (not sure how they did that) and that will fix the issue.
 

quietFinn

Well-Known Member
Feb 4, 2006
2,040
551
493
Finland
cPanel Access Level
Root Administrator
This was over an extended period of time. The values was way off. For example cPanel was showing 6.14 GB when the correct value is 171.42 GB.
What was in that directory /home/username/.cpanel/datastore ?

What told you that the "correct value" is 171.42 GB ?
 

quietFinn

Well-Known Member
Feb 4, 2006
2,040
551
493
Finland
cPanel Access Level
Root Administrator
Same files as there are always there, they are created by cPanel.
Those files are typically a few hundred kilobytes, not over 150 Gigabytes.

Terminal command:

df -h
df command shows file system disk space usage.

If you want to see cPanel user's disk usage you can do:
du --max-depth=1 /home/username