Client / Web / FTP quota and taffic question

Discussion in 'General' started by leiw, Sep 18, 2014.

  1. leiw

    leiw Member

    Hello,

    I don't understand those quota concept:

    Client have Web Quota / Traffic Quota

    Website have Harddisk Quota Client / Traffic Quota

    FTP have Filequota

    If I configured Client to limit Web Quota and Traffic Quota, I need configure Website Harddisk Quota Client and Traffic Quota ? how about FTP filequota too ?

    Thanks
     
  2. srijan

    srijan New Member HowtoForge Supporter

  3. leiw

    leiw Member

    Hello,

    Thanks for your link.

    Web / FTP / Mail quota is independent, but the post not descript Client quota setup will Inheritance or not.

    Thanks
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    FTP quotas dont have to be set as they are a sub quota of the website quota. so a FTP client can never exceed the website quota.
     
  5. leiw

    leiw Member

    OK

    I just tried in Client setup Web quota to 50MB, Website Harddisk Quota to -1, I can upload over 50MB file to FTP, why ?
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Because you set web quota to -1. A client wont be able to do that, but as admin you are able to override client quotas and thats what you did by disabling quota for this web, similar to the root user on linux.
     
  7. leiw

    leiw Member

    Do you mean harddisk quota -1 ?

    I just want quota user 50MB for Web, how to do that ?

    Thanks
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    Go to the website settings, enter 50 into the quota field and press save.
     
  9. leiw

    leiw Member

    I just set Web > Harddisk quota to 50MB, but I still can upload over 50MB data to FTP > Web directory.
     
  10. till

    till Super Moderator Staff Member ISPConfig Developer

    the the Linux quota system of your server is not working. Check with:

    repquota -avug
     
  11. leiw

    leiw Member

  12. leiw

    leiw Member

    Here is /etc/fstab, no quota setup, right?

    LABEL=cloudimg-rootfs / ext4 defaults,discard 0 0
    /var/log/ispconfig/httpd/trenddir.com /var/www/clients/client1/web1/log none bind,nobootwait,_netdev 0 0
     
  13. till

    till Super Moderator Staff Member ISPConfig Developer

    Yes, there is no quota installed as it is described in the installation instructions (perfect server guides).
     
  14. leiw

    leiw Member

    Hi Till,

    Do you know below message? I'm using EC2 Virtual Server:

    quotaon -avug
    quotaon: using //quota.group on /dev/xvda1 [/]: No such process
    quotaon: Quota format not supported in kernel.
    quotaon: using //quota.user on /dev/xvda1 [/]: No such process
    quotaon: Quota format not supported in kernel.

    I have search internet that someone said need to install linux-image-extra-virtual, then I installed it, after that I run modprobe quota_v1 have following error:

    modprobe: FATAL: Module quota_v1 not found.

    ------------------

    The solution

    On Oneiric and Precise install linux-image-extra-virtual package. On old versions the modules should be already patched into kernel (just update your system).

    After that run modprobe quota_v2 and modprobe quota_v1 in order to get ready to run quotas. Also remember to put the modules on /etc/modules.

    Run your quotaon command as usual.
     
  15. leiw

    leiw Member

    Fixed it, because I forgot load new kernel image ...

    Now I have another issue when quotaon ...

    root@ip-172-31-28-141:/home/ubuntu# quotaon -avug
    quotaon: using //quota.group on /dev/disk/by-uuid/e83287fe-9393-422e-a057-bf85ad785a3b [/]: Device or resource busy
    quotaon: using //quota.user on /dev/disk/by-uuid/e83287fe-9393-422e-a057-bf85ad785a3b [/]: Device or resource busy

    Any idea ?
     
  16. leiw

    leiw Member

    OK, the quota successfully on, but I still can upload over the limit to FTP..
     
  17. leiw

    leiw Member

    OK now, just tested the quota is working, thanks !
     

Share This Page