Hard disk quota

Discussion in 'Installation/Configuration' started by Trim, Oct 1, 2019.

  1. Trim

    Trim New Member

    Hello,
    I have created a client. After that I have added two sites (users web1 and web2) to the client with Website Harddisk Quota 600MB and 700MB respectivelly. Now If I see the Home page in the Admin page, it shows the Quota details of only the first website(web1) and shows empty values for the second website.
    I have also queried the `harddisk_quota` from `monitor_data` table from database. It only has web1 entry and web2 entry is missing. Below is the output of the query:
    ```
    Array
    (
    [user] => Array
    (
    [web1] => Array
    (
    [used] => 3352
    [soft] => 600
    [hard] => 0
    [files] => 306
    )
    )
    [group] => Array
    (
    [client1] => Array
    (
    [used] => --
    [soft] => 3352
    [hard] => 0
    )
    )
    )
    ```

    Did I miss any step? Please help.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    You have to wait, this is not updated in realtime.
     
  3. Trim

    Trim New Member

    How much time does it take?. I waited for 30 mins. Still showing the same.
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    5 minutes. Youcan check with:

    repquota -avu

    if your Linux system reports the quota correctly for the second site.
     
  5. Trim

    Trim New Member

    repquota -avu shows below. But the it is not being updated in the admin page and also in the database.

    Block grace time: 7days; Inode grace time: 7days
    Block limits File limits
    User used soft hard grace used soft hard grace
    ----------------------------------------------------------------------
    root -- 2529248 0 0 144590 0 0
    daemon -- 64 0 0 4 0 0
    man -- 1988 0 0 146 0 0
    www-data -- 72 0 0 25 0 0
    syslog -- 1928 0 0 7 0 0
    _apt -- 24 0 0 4 0 0
    lxd -- 4 0 0 1 0 0
    landscape -- 8 0 0 4 0 0
    pollinate -- 4 0 0 2 0 0
    ntp -- 12 0 0 3 0 0
    mysql -- 214248 0 0 475 0 0
    postfix -- 84 0 0 50 0 0
    opendkim -- 4 0 0 1 0 0
    clamav -- 162352 0 0 9 0 0
    postgrey -- 116 0 0 8 0 0
    debian-spamd -- 2040 0 0 29 0 0
    amavis -- 320 0 0 23 0 0
    bind -- 12 0 0 3 0 0
    vmail -- 20 0 0 6 0 0
    getmail -- 12 0 0 3 0 0
    ispapps -- 12 0 0 3 0 0
    ispconfig -- 34620 0 0 7010 0 0
    web1 -- 3352 614400 615424 306 0 0
    web2 -- 0 716800 717824 0 0 0
    #62583 -- 4 0 0 2 0 0
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Your ISPConfig version is 3.1.15? If not, update it.
     
  7. Trim

    Trim New Member

    Yes it is latest 3.1.15.(checked in /usr/local/ispconfig/interface/lib/config.inc.php file)
     
  8. i have the same issue
    but it seems the data is stale on the control panel.
    what happens if you run:
    Code:
    /usr/bin/php -q     -d disable_classes=     -d disable_functions=     -d open_basedir=    /usr/local/ispconfig/server/cron_debug.php  --cronjob=100-monitor_hd_quota.inc.php
     
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    @Rein van 't Veer: According to what you posted in the bug tracker, your issue is different.

    Running the command you mentioned can lead to wrong or duplicate results in the database as it run out of schedule, so don't expect from debug run exact results. It is made to debug code typos or similar issues to allow you to see the PHP error message on the shell and does not replace the normal scheduled runs.

    Do you have a single or multiserver setup?
     
  10. multiserver
     
  11. do you want me to open another topic?
     
  12. till

    till Super Moderator Staff Member ISPConfig Developer

    If @Trim does not run a multiserver, then yes. My guess is you run a multiserver in mirror mode and the data between the two harddisks is not fully in sync which results in different values for the two servers. run repquota -avu on both systems and compare them, I guess the different values come from there.
     
  13. well no, i run multiserver, but no mirroring.
    i did have an test mirror, maybe there is something remaining in the database?
     
  14. till

    till Super Moderator Staff Member ISPConfig Developer

    Check the web_domain table on the master, maybe you have the affected website in there twice.
     
  15. that was not the problem, but you pointed me in the right direction.

    in my monitor_data table the old server entries were still there, even after delete old servers from my multiserver environment.
    after deleting the old server_id data (compared it to the server table) everything showed with the correct data
     

Share This Page