Skip to content

Disk quotas on cPanel — user space and inode caps

How user space quotas and inode quotas work on cPanel, why the inode side matters even when there is free GB, and how to set both sensibly.

A cPanel account with a 10 GB quota that fails to write at 4 GB of usage is almost always hitting an inode cap, not a space cap. Inodes are the cheap defense against accounts that build up millions of cache files, sessions, or maildir messages and slow the whole filesystem. Most operators set space quotas and never touch inodes, then are surprised when ext4 starts complaining.

What’s happening

Linux quotas on ext4/XFS track two numbers per user: blocks (space) and files (inodes). cPanel sets blocks via the package or per-account quota in WHM. Inode quotas are configured separately in WHM > Tweak Settings (“inode count” enable) and per package. CloudLinux LVE adds a third dimension (IOPS / CPU), but the inode side of the cPanel quota remains the floor.

How to verify

Look at the current state:

quota -u <user>
repquota -a | sort -k 3 -n | tail
du -s --inodes /home/<user> 2>/dev/null
find /home/<user> -type f | wc -l

repquota -a gives both space and inode rows for every user. A user at 95% of inode soft and 40% of space is the canary case — they will fail writes long before they exhaust their disk allocation. The find -type f | wc -l count should roughly match the inode usage in quota -u.

The fix

  1. In WHM > Packages, set a sane inode limit per tier. A small WordPress site is ~25,000 inodes; a busy WordPress site with WooCommerce and aggressive caching is ~100,000; a large mail-heavy reseller account can be 250,000+. Start generous, tighten quarterly.
  2. Apply to existing accounts: whmapi1 modify_account user=<user> max_emailacct_quota=... and the equivalent for inodes via package adjustment. quota -u <user> after the change.
  3. Educate the end user — quotas without warnings produce angry tickets. cPanel sends quota warnings at 80%; confirm the threshold in WHM > Tweak Settings.
  4. Watch for cache directories that legitimately grow: WordPress object cache, Magento var/, npm caches in dev accounts. Exclude these from inode panic but include them in space quota.
  5. When an account exceeds inodes legitimately, do not just raise the cap. Investigate whether the application has runaway sessions or untrimmed logs first; raising blindly delays the next conversation by one quarter.

Stack Harbor reviews quota policies on every server we onboard for cPanel/WHM management.