How to Fix cPanel/WHM Disk Quota Issues

  Dedicated Hosting, Shared hosting, VPS Hosting, WHM

Introduction

cPanel and Web Host Manager may sometimes encounter quota-related issues where user disk usage appears incorrect. Common symptoms include accounts showing unlimited disk space, 0 MB usage, or inaccurate quota reporting.

Prerequisites

Before proceeding, ensure:

  • Root SSH access to the server
  • Basic knowledge of Linux commands
  • Backup of important data

Implementation

Step 1: Run Automatic Quota Fix

Login via SSH as root and execute:

/scripts/fixquotas

This command rebuilds and synchronizes quota files and resolves most issues.

If Issue Persists – Manual Troubleshooting

Step 2: Check Disk Usage for User

Navigate to the user’s home directory:

cd /home/username
du -hs

This helps verify actual disk usage.

Step 3: Verify User Entries

Check for duplicate or incorrect entries:

cat /etc/passwd
cat /etc/shadow

Ensure the username appears only once and is properly configured.

Step 4: Find Files Owned by User

find / -user username | more

This will list all files owned by the user across the system that may impact quota calculations.

Step 5: Check Backup Configuration

  • Uncompressed backups can inflate disk usage
  • Ensure backups are compressed in WHM backup settings

Step 6: Clean Up Unnecessary Files

  • Remove unwanted or large files identified in previous steps
  • Be cautious while deleting system files

Step 7: Rebuild Quotas Again

After cleanup, run:

/scripts/fixquotas

Notes

  • Quota issues often arise due to:
    • File ownership inconsistencies
    • Backup files
    • Corrupted quota database
  • Always verify before deleting files
  • Large logs or temporary files can also affect quotas

Conclusion

Quota issues in cPanel / Web Host Manager can usually be resolved using the /scripts/fixquotas command. For persistent issues, manual inspection of user files and system configurations is required to restore accurate disk usage reporting.

LEAVE A COMMENT