How to force refresh web quotas?

Discussion in 'General' started by liquid, Jun 18, 2026.

  1. liquid

    liquid Member

    Is there any way to force an update of the information that ispconfig displays in the UI for the "Website quota (Harddisk)" hdd? I still see old invalid information there even though "repquota -ua" and "quota -u web30" show the correct values.
    My system:
    • Ubuntu 24.04.4 (upgraded from 20.04->22.04->24.04)
    • ISPConfig 3.3.1p1
    • Quota enabled on ext4 by (tune2fs -O quota /dev/vdb1)
    • /var/www moved to second disk via recomended bind mount
    • Quotas enabled just only on the second disk (What I read here was that it was recommended)
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The values are updated automatically every 5 minutes by the 100-monitor_hd_quota.inc.php cron plugin.
     
  3. liquid

    liquid Member

    Thanks, the server has been running for half a day after the upgrade and quota migration and the web quota update has not been performed. Is there any way to find out why from the log?

    I just found only this way.
    Code:
    php /usr/local/ispconfig/server/cron_debug.php --cronjob=100-monitor_hd_quota.inc.php
    Called run() for class cronjob_monitor_hd_quota
    Job has schedule: */5 * * * *
    Called onPrepare() for class cronjob_monitor_hd_quota
    Called onBeforeRun() for class cronjob_monitor_hd_quota
    Jobs next run is 2026-06-18 15:45:00
    Date compare of 1781790300 and 1781790090 is -1
    18.06.2026-15:41 - DEBUG [system.inc:2551] - safe_exec cmd: which 'setquota' 2> /dev/null - return code: 0
    Called onRun() for class cronjob_monitor_hd_quota
    Called onAfterRun() for class cronjob_monitor_hd_quota
    Called onCompleted() for class cronjob_monitor_hd_quota
    finished cron debug.
    
     
  4. liquid

    liquid Member

    What is the internal logic in a situation where I have moved /var/www to a second disk, quotas are enabled only on teh second disk, and I have checked the following in the configuration:
    Include backup files into web quota.

    How is the size of the backups included in the resulting used space?
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    The filename is /usr/local/ispconfig/server/lib/classes/cron.d/100-monitor_hd_quota.inc.php. Take a look at its code if you want to know in detail which commands are run to get the quota data.
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    This option applies only when backup files are on the same drive than your websites. if they are on different drives, then they are not included as Linux quot does not span over multiple drives in general, that#s not ISPConfig specific.
     
  7. liquid

    liquid Member

    I see, thank you. It seems to me now that I overcomplicated the configuration and divided the individual directories into different performance disks. :) I guess it's time to simplify it.
     

Share This Page