Quota is wrong for some Accounts !

Operating System & Version
CentOS 7.9
cPanel & WHM Version
94.0.2

kamranonline

Member
Sep 16, 2012
21
0
51
Newtowncenter
cPanel Access Level
Root Administrator
Hi,

I faced a problem with Quota on cPanel, There is only 500Gb SSD harddrive on a server but for some accounts Quota is more than 2Tb !
I remove /quotas.users and also disable "
Cache disk quota information
in Tweaksetting and run Initial Quota Setup many times but it's not fixed!
Removed /home/user/.cpanel/ducache

in disk usages, all of these are mention in Other Usage, so I search the whole server with this command but there isn't any files in it.

Code:
find / -path /home/virtfs -prune -o -path /home/${cpaneluser}  -prune -o -user "${cpaneluser}" -type f -ls > files_outside_homedir.txt 2>/dev/null
Also, disable virtfs but no luck

Code:
journaled quota support: kernel supports, user space tools supports (available)
UUID=0a2ccfd4-3fd4-4d6c-a445-8f24a50f9f49 (already configured quotas = 1).
UUID=8303cfe1-e7c6-4d54-99d3-df0edffa0530 (already configured quotas = 0).
UUID=6f89d3a7-98f5-4035-9e6d-208de6cdb6ee (already configured quotas = 1).
Updating Quota Files......
    Running Task: “/sbin/quotacheck --create-files --user --group --verbose --force --use-first-dquot --no-remount --format=vfsv0 /dev/sda3”.
quotacheck: Scanning /dev/sda3 [/] /-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-quotacheck: Cannot stat old user quota file //quota.user: No such file or directory. Usage will not be subtracted.
    quotacheck: Old group file name could not been determined. Usage will not be subtracted.
    quotacheck: Checked 1230157 directories and 9011276 files
    quotacheck: Old file not found.
    done
   
Completed Task: “/sbin/quotacheck --create-files --user --group --verbose --force --use-first-dquot --no-remount --format=vfsv0 /dev/sda3” in 16.753 second(s).

    Running Task: “/sbin/quotacheck --create-files --user --group --verbose --force --use-first-dquot --no-remount --format=vfsv1 /dev/sdb1”.
quotacheck: Scanning /dev/sdb1 [/sd] ||/-\quotacheck: Cannot stat old user quota file /sd/quota.user: No such file or directory. Usage will not be subtracted.
    quotacheck: Old group file name could not been determined. Usage will not be subtracted.
    quotacheck: Checked 267 directories and 6303 files
    quotacheck: Old file not found.
    done
   
Completed Task: “/sbin/quotacheck --create-files --user --group --verbose --force --use-first-dquot --no-remount --format=vfsv1 /dev/sdb1” in 1.860 second(s).
....Done
Quotas have been enabled and updated.
Reading package modiranh_MHLC-500
Resetting quota for a4040eh to 50

Code:
#
# /etc/fstab
# Created by anaconda on Sat Jan 26 18:19:08 2019
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=0a2ccfd4-3fd4-4d6c-a445-8f24a50f9f49       /       ext4    usrjquota=quota.user,jqfmt=vfsv0        1     1
UUID=8303cfe1-e7c6-4d54-99d3-df0edffa0530 /boot                   xfs     defaults        0 0
UUID=64680542-b45c-473d-9e38-f8ef2b98dfbd swap                    swap    defaults        0 0
/usr/tmpDSK             /tmp                    ext3    defaults,noauto        0 0
UUID=6f89d3a7-98f5-4035-9e6d-208de6cdb6ee       /sd     ext4    usrjquota=quota.user,jqfmt=vfsv1        0     0
 
Last edited by a moderator:

kamranonline

Member
Sep 16, 2012
21
0
51
Newtowncenter
cPanel Access Level
Root Administrator
Hey there! Could you send me the output of "/scripts/fixquotas" so I could see what that reports?

Code:
journaled quota support: kernel supports, user space tools supports (available)
UUID=0a2ccfd4-3fd4-4d6c-a445-8f24a50f9f49 (already configured quotas = 1).
UUID=8303cfe1-e7c6-4d54-99d3-df0edffa0530 (already configured quotas = 0).
UUID=6f89d3a7-98f5-4035-9e6d-208de6cdb6ee (already configured quotas = 1).
Updating Quota Files......
    Running Task: “/sbin/quotacheck --create-files --user --group --verbose --force --use-first-dquot --no-remount --format=vfsv0 /dev/sda3”.
quotacheck: Scanning /dev/sda3 [/] /-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-quotacheck: Cannot stat old user quota file //quota.user: No such file or directory. Usage will not be subtracted.
    quotacheck: Old group file name could not been determined. Usage will not be subtracted.
    quotacheck: Checked 1230157 directories and 9011276 files
    quotacheck: Old file not found.
    done
  
Completed Task: “/sbin/quotacheck --create-files --user --group --verbose --force --use-first-dquot --no-remount --format=vfsv0 /dev/sda3” in 16.753 second(s).

    Running Task: “/sbin/quotacheck --create-files --user --group --verbose --force --use-first-dquot --no-remount --format=vfsv1 /dev/sdb1”.
quotacheck: Scanning /dev/sdb1 [/sd] ||/-\quotacheck: Cannot stat old user quota file /sd/quota.user: No such file or directory. Usage will not be subtracted.
    quotacheck: Old group file name could not been determined. Usage will not be subtracted.
    quotacheck: Checked 267 directories and 6303 files
    quotacheck: Old file not found.
    done
  
Completed Task: “/sbin/quotacheck --create-files --user --group --verbose --force --use-first-dquot --no-remount --format=vfsv1 /dev/sdb1” in 1.860 second(s).
....Done
Quotas have been enabled and updated.
Reading package modiranh_MHLC-500
Resetting quota for a4040eh to 50
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
7,440
1,004
313
cPanel Access Level
Root Administrator
Thanks for that - that all actually looks normal to me at this time.

Just to confirm, is the quota *value* incorrect on the system, as in it should have a 10G quota but it says something crazy like 1000G quota, or is the disk usage just not accurate after it scans the quotas for the user?

You could also use this command to manually check the quota the operating system thinks the user should have:

Code:
quota -u username
to see if that is reporting correctly.
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
7,440
1,004
313
cPanel Access Level
Root Administrator
Thanks for that - that seems to indicate that the operating system doesn't think there should be a quota at all.

At this point it would likely be best to open a ticket with our team so we can check this on our end. If you're able to open that ticket, co uld you please post the number here so I can follow along and keep things updated on my end?
 
Thread starter Similar threads Forum Replies Date
M Miscellaneous 1