Incorrect Disk Usage displayed in cPanel
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?
-
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. 0 -
Hi Rex, 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. 0 -
Weird - since the work has already been performed, which is the correct method to get that updated, we won't have any data on the "why" behind why it was behind. 0 -
since the work has already been performed, which is the correct method
So if I understand correctly, the correct fix is to move the directory as my web host has done?0 -
Yes, clearing the old data is the proper way to get cPanel to update the cached data in the UI. 0 -
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. 0 -
You would need root access to the server to restart cPanel, but all that is necessary to is access the interface and those files will be regenerated. 0 -
You would need root access to the server to restart cPanel
I do have root access. What is the command to restart cPanel?but all that is necessary to is access the interface and those files will be regenerated
That makes sense.0 -
/scripts/restartsrv_cpsrvd 0 -
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 ?0 -
What was in that directory /home/username/.cpanel/datastore ?
Same files as there are always there, they are created by cPanel.What told you that the "correct value" is 171.42 GB ?
Terminal command: df -h0 -
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/username0 -
Those files are typically a few hundred kilobytes, not over 150 Gigabytes.
The Disk Usage issue is resolved by deleting the file in the /home/username/.cpanel/datastore directory.If you want to see cPanel user's disk usage you can do
An even better command is: du -sh /home/username0
Please sign in to leave a comment.
Comments
13 comments