Bobcares

WHM Disk Usage Incorrect – How to fix

by | Nov 7, 2023

Learn how to deal with incorrect disk usage in WHM. Our cPanel Support team is here to help you with your questions and concerns.

WHM Disk Usage Incorrect – How to fix

If you have been running into the following error, you have come to the right place:

Disk Usage Incorrect

This issue occurs when the disk quota file gets corrupted on the server.

WHM Disk Usage Incorrect – How to fix

So, we have to fix the quota file by running this command while logged into the server as root:

/scripts/fixquotas –force

If the issue is not completely resolved, we will see errors like this:

Resetting quota for AB to 500 M
edquota: Quota write failed (id 32230): Invalid argument
Resetting quota for XY to 500 M
edquota: Quota write failed (id 32010): Invalid argument

In this scenario, we can reboot the server to solve the error.

shutdown -r now

One of our customers faced the WHM disk usage issue even though their WHM and cPanel displayed the incorrect amount of disk usage for one cpanel user. In this case, our Experts suggest investigating the user’s disk usage via the shell.

We can use the du command to find the exact size of user directories:

du -shc /home/user/*

Remember to replace “user” with the system username.

Furthermore, we can check if the user owns any other files outside their home directory with this command:

find / -mount -wholename /home -prune -o -wholename /usr/share/cagefs-skeleton -prune -o -user useraccount -exec stat -c '%s %n' {} \; >> ~/user-files.out

The results of this command will be saved at /root/user-files.out

[Need assistance with a different issue? Our team is available 24/7.]

Conclusion

In brief, our Support Experts demonstrated how to deal with incorrect disk usage in WHM.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.