Quotas and ISPC

Discussion in 'ISPConfig 3 Priority Support' started by francoisPE, Aug 16, 2021.

  1. francoisPE

    francoisPE Active Member HowtoForge Supporter

    Hello,
    I run ISPC 3.2.5 on ubuntu20.04
    I read several thread regarding quota and I want to be sure I fully understand.

    Client quotas
    - when I set quota for a client under clients>limits, ie web limit, mail limits and db limits, it impacts all websites, mails, db for that client.
    This means that if, for one client, I sum all websites used spaces it will never goes above his quota. idem respectively for mail, db... Am I correct ?
    - I can add on top of this client quota, some dedicated quotas for a specific website, mailbox, db. Am I correct ?

    QuotaViz
    - it is not possible to vizualise total used space per client. It is only possible to see it per website, db, mailbox in dashboard or website menu. Am I correct ? As it is not visible, it explains my first question.

    thank you for your help
     
    Last edited: Aug 16, 2021
  2. Jesse Norell

    Jesse Norell Well-Known Member Staff Member Howtoforge Staff

    A client's quotas are an allocation limit, so you can't say, allocate 5G web quota to each of 3 sites if the client has a 10G limit.
     
  3. francoisPE

    francoisPE Active Member HowtoForge Supporter

    Understood (that's logic !)
    Do you confirm I can't vizualize usage against quota per client (only per mail, website and db) ?
     
  4. Jesse Norell

    Jesse Norell Well-Known Member Staff Member Howtoforge Staff

    Each client has an 'Account Limits' list in the dashboard which shows 'Assigned mailbox quota', 'Assigned web quota' and 'Assigned database quota', that shows allocated amount vs limit; I don't see anything which shows that total usage for all websites, all mailboxes, or all databases for a client offhand.
     
  5. francoisPE

    francoisPE Active Member HowtoForge Supporter

    Right
    It confirms what I understand.
    As quota for client are not directly visible (no sum in dashboard) it is not obvious to be sure it exists !

    I have another question regarding quota for client
    I have a server with 2 filesystems ext4
    one ssd, mount on /
    one hdd, mount on /hdd

    in /hdd, I mountbind /private directory of my websites. (see below fstab)

    I want to set quota on both.
    is it working with /etc/fstab ?
    Code:
    UUID=ffd..............      /               ext4    errors=remount-ro,usrjquota=quota.user,grpjquota=quota.group,jqfmt=vfsv0     0       0
    UUID=243............        /hdd           ext4    defaults,usrjquota=quota.user,grpjquota=quota.group,jqfmt=vfsv0,noatime        0       0
    /hdd/clientx/weby/private /var/www/clients/clientx/weby/private none bind,nobootwait,_netdev 0 0
    
    I read somewhere that if I put quota=5Gb, I will have 5Gb for / and 5Gb for /hdd

    How will it work for a client ?
    If I put 5Gb for client1, ISPC will add usage in / and /hdd ? Usage will be counted twice ?

    thank you for your help
     
  6. Jesse Norell

    Jesse Norell Well-Known Member Staff Member Howtoforge Staff

    I don't have any systems setup like that, what does 'repquota -a' show? My guess is it either sets the same quota (eg. 5g in your example) on all filesystems with quota set, or it only sets it in the filesystem holding the web root, but I don't know which.
     
  7. atle

    atle Member HowtoForge Supporter

    Do `repquota -au`and if a web user is shown several times, usage and limits are added to each other.
    Se `/usr/local/ispconfig/server/lib/classes/cron.d/100-monitor_hd_quota.inc.php`
     
  8. francoisPE

    francoisPE Active Member HowtoForge Supporter

    Very nice !
    Thanks a lot.
    I would propose to add a dataViz of client quota (summary per client for total mails and total websites) in dashboard !
     

Share This Page