Fixing wrong disk usage displayed

EHR

Member
Apr 18, 2012
11
4
53
cPanel Access Level
Root Administrator
Within latest few hours didn't find a fix for this issue; most of the time ends with 'open ticket' which doesn't provide a quick solution.
Disk usage check [server side, /home/$username/]
Code:
# du -sh
1.9G  .
Disk usage reported by cPanel :
Code:
Disk Space Usage 28.31 MB / 3.91 GB | MySQL Disk Space 28.23 MB
Then fixing quotas:
Code:
[~]# /scripts/fixquotas
Installing Default Quota Databases......Done
journaled quota support: kernel supports, user space tools supports (available)
.
.
[..]
Updating Quota Files......
[..]
....Done
Quotas have been enabled and updated.
Refreshing the cPanel interface, still shows 28.31 MB usage. Disabling disk quota caching (Home > Server configuration >Tweak Settings), waiting 10-15min, refreshing the page (& hard refresh) still same crap: 28.31 MB.
Is there any working solution to fix this ? Having it posted here (public) it would help more googlers instead opening a support ticket and keep info private.
--
LE: Disk space usage report from cPanel:
Code:
1,874.74 MB total disk space used.
4,000.00 MB quota limit (0.09 MB used).
WHM v 11.48.2 (3)
 

EHR

Member
Apr 18, 2012
11
4
53
cPanel Access Level
Root Administrator
@Infopro, I've already provided that info:
1,874.74 MB total disk space used. 4,000.00 MB quota limit (0.09 MB used).
If you really want the full report, here we go:
Code:
Files in home directory.

0.09 MB
Files in hidden subdirectories.

3.42 MB
etc/

0.05 MB
logs/

22.09 MB
mail/

412.74 MB
public_ftp/

0.00 MB
public_html/

1,410.63 MB
ssl/

0.02 MB
tmp/

1.83 MB
MySQL

27.53 MB
PostgreSQL

0.00 MB
Mailing Lists

0.00 MB
Email Archives

0.00 MB
* Contained in the mail directory.
1,878.40 MB total disk space used.
4,000.00 MB quota limit (0.09 MB used).
... and do you feel better now being so sarcastic ? I already have 3 requests open (which never happened in those 10yrs since using cPanel) and the fixes provided by support ticket won't help someone else facing the same issue. If someone would post the right solution, I wouldn't open this thread.
 

EHR

Member
Apr 18, 2012
11
4
53
cPanel Access Level
Root Administrator
Hey danrussell
Note that few days ago there wasn't such a problem on this server but there are only 2 things that might lead to this:
1. after a cold reboot due to CWAF modsec rule error which freezes the server and no ssh connection could be done
2. I've probably used /scripts/fixeverything by mistake while having 3 sessions on different servers and I might run the command on this server instead on other one.
/etc/fstab:
Code:
/dev/mapper/ssd-root  /  ext4  usrjquota=quota.user,jqfmt=vfsv0  1  1
UUID=dd50ad96-bfae-4e2f-9892-5c7f59b67328 /boot  ext4  defaults  1 2
/dev/mapper/ssd-swap  swap  swap  defaults  0 0
tmpfs  /dev/shm  tmpfs  defaults  0 0
devpts  /dev/pts  devpts  gid=5,mode=620  0 0
sysfs  /sys  sysfs  defaults  0 0
proc  /proc  proc  defaults  0 0
/usr/tmpDSK  /tmp  ext3  defaults,noauto  0 0
/dev/mapper/raid1-home  /home  ext4  defaults  1  2
 

EHR

Member
Apr 18, 2012
11
4
53
cPanel Access Level
Root Administrator
As from cPanel's tech recommendations quotas should be (re)enabled by editing the /etc/fstab line
Code:
/dev/mapper/raid1-home  /home  ext4  defaults  1  2
to
Code:
/dev/mapper/raid1-home /home ext4 usrjquota=quota.user,jqfmt=vfsv0 1 2
then remount
Code:
mount -oremount /home
then running the fixing quotas script
Code:
/scripts/fixquotas
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,228
463
As from cPanel's tech recommendations quotas should be (re)enabled by editing the /etc/fstab line
Hello,

Could you confirm if this resolved the issue with your disk space report in cPanel?

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,228
463
I am happy to see the issue is now resolved. Thank you for updating us with the outcome.