Traffic Quota

Discussion in 'General' started by alexillsley, May 4, 2007.

  1. alexillsley

    alexillsley New Member

    When the traffic quota is exceeded does it just change ther permissions of there files or does it do anything else? Does it stop email or FTP accounts?
     
    Last edited: Nov 15, 2010
  2. payne

    payne New Member

    I have same question. Also ftp quota not working,i can upload bigger file than the quota is set.

    [​IMG]


    Some info:

    Code:
    serveris:~# ls -lach /var/www/web10/web/
    total 11M
    drwxrwxr-x 3 web10_lol web10 4.0K 2007-06-03 23:42 .
    drwxr-xr-x 9 web10_lol web10 4.0K 2007-06-03 23:42 ..
    -rw-rw-r-- 1 web10_lol web10  10M 2007-06-03 23:42 10MB.bin
    drwxrwxr-x 2 web10_lol web10 4.0K 2007-06-03 23:42 error
    -rw-rw-r-- 1 web10_lol web10 1.2K 2007-06-03 23:42 index.html
    
    Code:
    serveris:~# repquota -avug|grep web10
    web10_anonftp --       0       0       0              0     0     0
    web10_lol --       0       0       0              0     0     0
    web10     --       0    5120    6144              0     0     0
    web10_anonftp --       0       0       0              0     0     0
    
     
    Last edited: Jun 3, 2007
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    1) Traffic quota chenges the permissions of the files.

    2) @payne: Please check your /etc/fstab file, if you enabled quota and make sure that you activated it as described in the perfect setup guides.
     
  4. payne

    payne New Member

    Here is my fstab file:

    Code:
    # /etc/fstab: static file system information.
    #
    # <file system> <mount point>   <type>  <options>       <dump>  <pass>
    proc            /proc           proc    defaults        0       0
    /dev/hda1       /               ext3    defaults,errors=remount-ro,usrquota,grpquota 0       1
    /dev/hda2       none            swap    sw              0       0
    /dev/hdc        /media/cdrom0   udf,iso9660 user,noauto     0       0
    /dev/fd0        /media/floppy0  auto    rw,user,noauto  0       0
    
    yes,i activated it with
    Code:
    touch /quota.user /quota.group
    chmod 600 /quota.*
    mount -o remount /
    quotacheck -avugm
    quotaon -avug
    
     
    Last edited: Jun 4, 2007
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    What is the quota of the user web10_lol that is shown in the interface. I mean the quota in the users settings, not the web settings.
     
  6. payne

    payne New Member

    If i right understood you,in User & Email section, WebSpace MB is set to: -1. I tried to set 2mb,but nothing changes.I still can upload via ftp bigger file than the quota is set.
     
    Last edited: Jun 4, 2007
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    You must wait up to a few minutes until the quota is applied. Also check with:

    repquota -avug|grep web10

    if the user web10_lol has now a quota limit.
     
  8. payne

    payne New Member

    Code:
    serveris:~# repquota -avug|grep web10
    web10_lol --       0    2048    3072              0     0     0
    web10     --       0    2048    3072              0     0     0
    
    I still can upload bigger file :confused:

    Code:
    serveris:~# ls -lach /var/www/web10/web/
    total 14M
    drwxrwxr-x 3 web10_lol web10 4.0K 2007-06-04 16:18 .
    drwxr-xr-x 8 web10_lol web10 4.0K 2007-06-04 14:44 ..
    -rw-rw-r-- 1 web10_lol web10  10M 2007-06-04 16:20 10MB.bin
    drwxrwxr-x 2 web10_lol web10 4.0K 2007-06-04 14:44 error
    -rw-rw-r-- 1 web10_lol web10 1.2K 2007-06-04 14:44 index.html
    -rw-rw-r-- 1 web10_lol web10 3.7M 2007-06-04 15:58 phpxedit_41.exe
    
     
    Last edited: Jun 4, 2007
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    The user web10_lol has still no quota limit set as you can see in the repquota output. Do you have any errors in the ispconfig log /home/admispconfig/ispconfig/ispconfig.log

    Are you really sure that you have set a limit in the website and in the user settings that is not "-1" as now your website and user quota is not set.
     
  10. payne

    payne New Member

    I can't see any errors with quota settings in ispconfig logs. I checked limit settings,it's really not -1.
    What should i see in
    Code:
    repquota -avug|grep web10
    report when quota is set?
    I'll try to reinstall quota.Maybe it will help.
     
    Last edited: Jun 4, 2007
  11. payne

    payne New Member

    When reinstalled quota,i think it's working .Now I can't upload via ftp bigger file.
    And repquota -avug|grep web16 report is

    Code:
    serveris:~# repquota -avug|grep web16
    web16     --    2048    2048    3072             27     0     0
    
     
  12. falko

    falko Super Moderator Howtoforge Staff

    You shouldn't be able to upload anything at all because quota is full (2048 of 2048).
     

Share This Page