I recommend checking what is reported by the file system disk quotas; this is a potential source for disk quota discrepancies. When comparing disk usage and quota information, please also consider and take into account the disk space used by databases (as displayed in cPanel) as well as disk usage from all other file systems that have quota support enabled.
The following command should output file system disk quota information that is used by cPanel and the output can be compared to the displayed disk usage; in this example simply replace "$username" with the applicable cPanel login username:
Code:
# /usr/bin/quota -v $username
The following commands should report file system disk quota information that is used by WebHost Manager (WHM); the disk space used and quota limits from each command should closely match if not exactly:
Code:
# /usr/sbin/repquota -auv
# cat /var/cpanel/repquota.cache
# /scripts/dumpstor /var/cpanel/repquota.datastore
The following command may be used to determine if databases are included in disk usage calculations performed by cPanel and WHM:
Code:
# grep disk_usage_include_sqldbs /var/cpanel/cpanel.config