ISPConfig Hard Quota plugin

Discussion in 'Tips/Tricks/Mods' started by apple22, Oct 10, 2014.

  1. apple22

    apple22 New Member

    Hello

    I'm using ISPConfig 3.0.4.4 but there is no hard quota settings for the users. The quota what can be set on the panel is soft quota.

    Disk quotas for user web3 (uid 5002):
    Filesystem blocks quota limit grace files quota limit grace
    /dev/sda 329864* 307200 308224 6days 7554 0 0

    I wonder if anybody made a mod for ISPConfig to have additional hardquota fields there as well. This means all the current existing users using softquota values. I would like to define hardquotas for them as well.

    Thanks
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    ISPConfig sets hard quota. run:

    repquota -avu

    to see it.

    example output from a ispconfig server:

    Code:
    root@server1:~# repquota -avu
    *** Report for user quotas on device /dev/mapper/server1-root
    Block grace time: 7days; Inode grace time: 7days
                            Block limits                File limits
    User            used    soft    hard  grace    used  soft  hard  grace
    ----------------------------------------------------------------------
    root      -- 2027476       0       0          90781     0     0
    daemon    --      60       0       0              4     0     0
    man       --    2020       0       0            150     0     0
    www-data  --      40       0       0             10     0     0
    list      --      60       0       0             13     0     0
    libuuid   --      24       0       0              2     0     0
    syslog    --     712       0       0             10     0     0
    landscape --       4       0       0              2     0     0
    administrator --      24       0       0              7     0     0
    ntp       --       8       0       0              2     0     0
    mysql     --   31720       0       0            365     0     0
    postfix   --      96       0       0             54     0     0
    clamav    --  189368       0       0              9     0     0
    amavis    --    1072       0       0             17     0     0
    bind      --      12       0       0              3     0     0
    vmail     --      20       0       0              5     0     0
    getmail   --      12       0       0              3     0     0
    ispapps   --      12       0       0              3     0     0
    ispconfig --   62996       0       0           8824     0     0
    web1      --      92   51200   52224             22     0     0
    
    Statistics:
    Total blocks: 9
    Data blocks: 1
    Entries: 20
    Used average: 20.000000
     
  3. apple22

    apple22 New Member

    Quota problem

    Hello

    Indeed you are correct, by just issuing quota <user> the columns were not obvious. I also noticed that when I update the quota value for a specific user it takes 10-20 seconds or more before it's actually updated (shows up on repquota). Why is that?

    What's strange for me that yesterday an user managed to overstep his quota with a lot (350mb, uploaded 1.8GB files) then complained that he have a problem with uploading which is obviously because of the quota.

    He used BackWPup.

    If a hardquota value is set how could this happen?

    "Hard limits are an absolute limit. When you set this limit a user absolutely can not go beyond that limit. Soft limits, on the other hand, allows the user the exceed that limit with a grace period."
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Upadtes are applied once evers 60 seconds.

    I dont know.you might have to ask the maintainer of the quota functionality of the filesystem that you used on your server. ISPconfig is just setting quota with the standard linux quota tools, if the filesystem on your server does not apply or respect the quota correctly while it is shown with repquota, then thats beyond the scope of ispconfig.
     

Share This Page