Problem with Quota

Discussion in 'Installation/Configuration' started by createch, May 19, 2010.

  1. createch

    createch ISPConfig Developer ISPConfig Developer

    Hi All,

    Recently I discovered that there is a problem with my Fedora 12 ISPConfig server (version is 2.2.35). The quota of the domains always show "0.00 K" used, such as:

    Storage space: 2049 MB
    used: 0.00k << all the domain are 0.00K !!!

    I have already
    (a) installed and enabled the quota and
    (b) added the following line by su --login -c 'visudo'
    admispconfig ALL=(root) NOPASSWD:/usr/bin/du
    (c) amended the /home/admispconfig/ispconfig/lib/config.inc.php so that the line $go_info["server"]["sudo_du_enabled"] = 1
    (d) restarted the ISPConfig service.

    Do anyone has similar experience ? Please kindly advise. Thanks a lot.

    Createch
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Please post the output of:

    which du
     
  3. createch

    createch ISPConfig Developer ISPConfig Developer

    Below is the output:

    # which du
    /usr/bin/du

    One point is that the FC12 is using ext4 (not ext3) --- will it be the cause ?? :confused:
     
    Last edited: May 19, 2010
  4. falko

    falko Super Moderator ISPConfig Developer

    What's the output of
    Code:
    getenforce
    ?
     
  5. createch

    createch ISPConfig Developer ISPConfig Developer

    The output is like this:

    #getenforce
    Disabled
     
  6. createch

    createch ISPConfig Developer ISPConfig Developer

    Thanks Till and Falko,

    In spite of repeated checking, I still cannot find out what is wrong with the server causing the statistics (quota) problem in the ISPConfig panel.

    However, I have solved the problem myself --- by the following hacking way:

    a) add a cron job to be run every 5 minutes to get the space usage of respective groups
    b) amend the check_webspace.plugin.php to show the updated space usage data of that group (domain).

    Of course this is only an interim solution but I did learn something during this process. ;) Thanks

    Regards
    Createch
     

Share This Page