Skip to main content

Force recalculating cPanel accounts disk quotas?

Comments

5 comments

  • cPanelLauren
    Hi @Benjamin D. It sounds like the issue isn't that cPanel is not supporting this but that the kernel you're using doesn't support filesystem quotas. This is something that you need to work with your provider on. I'd attempt initializing them first with the following: /scripts/initquotas
    And if that doesn't resolve the issue I'd suggest going back and working with your provider to obtain a solution that does support filesystem quotas. Thanks!
    0
  • Benjamin D.
    @cPanelLauren It used to work before a WHM upgrade asked for reboot, which I did and then the server never came back up by itself, stuck on the loading process, that's when the data center suggested we make it boot from the network kernel, which works for everything except quotas. Can you answer the question why when you go in an account's cPanel > "Disk Usage" page, it shows the used quota perfectly fine there? But not anywhere else in cPanel nor WHM? I ran the command you specified. Do I have to wait until tomorrow morning to see if it works or not? Because immediately after running the command, it still shows 2MB, 10MB, 6MB... all which is wrong and super low values compared to the reality.
    0
  • cPanelMichael
    Hello @Benjamin D., Can you open a
    0
  • Benjamin D.
    It won't be necessary as I managed to resolve the issue 2 days ago. Here's what I did. I hope it helps anybody else in the future: nano /etc/fstab It contained these entries (plus other irrelevant entries) : # /dev/md2 / ext4 errors=remount-ro,usrjquota=quota.user,jqfmt=vfsv0 0 1 /dev/md3 /home ext4 defaults 1 2 So I moved ",usrjquota=quota.user,jqfmt=vfsv0" options from / to /home since / is read only (network boot) and /home is writeable and always has plenty of free space available anyway. Here's what it now looks like. # /dev/md2 / ext4 errors=remount-ro 0 1 /dev/md3 /home ext4 defaults,usrjquota=quota.user,jqfmt=vfsv0 1 2 I then rebooted. Now all quotas display properly in WHM and cPanel for every account. Back to normal.
    0
  • maxgdias
    It won't be necessary as I managed to resolve the issue 2 days ago. Here's what I did. I hope it helps anybody else in the future: nano /etc/fstab It contained these entries (plus other irrelevant entries) : # /dev/md2 / ext4 errors=remount-ro,usrjquota=quota.user,jqfmt=vfsv0 0 1 /dev/md3 /home ext4 defaults 1 2 So I moved ",usrjquota=quota.user,jqfmt=vfsv0" options from / to /home since / is read only (network boot) and /home is writeable and always has plenty of free space available anyway. Here's what it now looks like. # /dev/md2 / ext4 errors=remount-ro 0 1 /dev/md3 /home ext4 defaults,usrjquota=quota.user,jqfmt=vfsv0 1 2 I then rebooted. Now all quotas display properly in WHM and cPanel for every account. Back to normal.

    Hi, Benjamin. Thanks for information. I do your steps and after run: /scripts/fixquotas Its working for me. But.... after run /scripts/fixquotas my /etc/fstab was changed to ---- /dev/md2 / ext4 errors=remount-ro,usrjquota=quota.user,jqfmt=vfsv0 0 1 ---- ---- journaled quota support: kernel supports, user space tools supports (available) checking out /home/_backup_WHM /dev/md1 (enabling journaled quotas) The system will disable quotas on /home in order to prevent performance degradation. UUID=c6f3fb0f-9309-407a-b338-2c1692936e3d (removing journaled quotas) Updating Quota Files...... Running Task: "/sbin/quotacheck --create-files --user --group --verbose --force --use-first-dquot --no-remount --format=vfsv1 /dev/md1". quotacheck: Scanning /dev/md1 [/] 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 62230 directories and 468336 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/md1" in 1.444 second(s). Running Task: "/sbin/quotacheck --create-files --user --group --verbose --force --use-first-dquot --no-remount --format=vfsv0 /dev/md127". quotacheck: Scanning /dev/md127 [/home] quotacheck: Old group file name could not been determined. Usage will not be subtracted. quotacheck: Checked 398299 directories and 5433716 files done Completed Task: "/sbin/quotacheck --create-files --user --group --verbose --force --use-first-dquot --no-remount --format=vfsv0 /dev/md127" in 50.605 second(s). ....Done Quotas have been enabled and updated. --- I restart server again and usage disk was ok. This is normal? Any idea?
    0

Please sign in to leave a comment.