Server is at 92% on /home. Twelve hundred accounts, none individually huge. The question is where the bytes actually went, and the answer rarely shows up in the WHM dashboard. The shortest path is du, sort, and a few find invocations.
What’s happening
cPanel servers accumulate disk usage in predictable but distributed places: customer mail folders that grew without quota, error logs that nobody rotated, untrimmed Apache access logs, backup archives left by previous operators, stranded session files. Each individually is small; together they can be 20% of the disk.
How to verify
Top-down scan, biggest first:
df -h /home
du -sh /home/* 2>/dev/null | sort -h | tail -20
du -sh /var/log 2>/dev/null
du -sh /usr/local/cpanel/logs 2>/dev/null
du -sh /backup 2>/dev/null
find / -type f -size +500M 2>/dev/null
The du -sh /home/* | sort -h | tail gives you the top 20 accounts by size. The single-file find catches huge log files and stray .tar archives that don’t belong to any cPanel account.
The fix
- Investigate the top 5 accounts. For each:
du -sh /home/<user>/* | sort -h | tail. The pattern is usuallymail(biggest), thenpublic_html(varies), then.trashor.cpanel. - Mail audit:
du -sh /home/<user>/mail/* | sort -h | tail. Mailboxes over 5 GB often have unfetched spam-quarantine accumulations. Coordinate with the customer before pruning. - Logs:
find /var/log /usr/local/cpanel/logs -size +100M. Rotate or compress, but don’t blindly delete — some logs are still tailed by monitoring. - Backups:
find /backup -type d -mtime +30. Oldcpmove-*.tar.gzarchives in/backupfrom manual migrations are pure waste once the migration is done. - Per-account cache and trash:
du -sh /home/<user>/{.cpanel,.trash,tmp}. Each can be safely cleared (see the dedicated KB articles for the specific paths). - After cleanup, run
du -sh /homeand confirm the recovery matches expectations. Rundf -himmediately after — file systems sometimes lag in updating free-space accounting.
Stack Harbor runs disk-space audits as part of regular operations under cPanel server management.