DiskQuota not working

Discussion in 'ISPConfig 3 Priority Support' started by dgeho1, Apr 26, 2014.

Thread Status:
Not open for further replies.
  1. dgeho1

    dgeho1 Member

    Running on debian 6 with the latest patch of ISPConfig3

    Despite setting quotas when I created the various websites, they are showing unlimited of unlimited.

    And now within the last couple of days I am now getting emails at 00:33 each day telling me my domain/mailbox is no longer near or over quota for all of my websites and mailboxes.
     
    Last edited: Apr 28, 2014
  2. srijan

    srijan New Member HowtoForge Supporter

    Hi

    Please paste the output of

    Br//
    Srijan
     
  3. dgeho1

    dgeho1 Member

    oot@WebServer0:~# cat /proc/user_beancounters
    cat: /proc/user_beancounters: No such file or directory
    root@WebServer0:~#
     
  4. Croydon

    Croydon ISPConfig Developer ISPConfig Developer

    Have you checked that quota is enabled on the system?
    What is in your /etc/fstab for the partition where the webs are?
    It should say something like
    Code:
    defaults,errors=remount-ro,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0
    What about
    Code:
    repquota -avug
    ?
     
  5. srijan

    srijan New Member HowtoForge Supporter

    Further Please paste the values of /etc/fstab entries & output of quotacheck -avugm

    Br//
    Srijan
     
  6. dgeho1

    dgeho1 Member

    # /etc/fstab: static file system information.
    #
    # Use 'blkid' to print the universally unique identifier for a
    # device; this may be used with UUID= as a more robust way to name devices
    # that works even if disks are added and removed. See fstab(5).
    #
    # <file system> <mount point> <type> <options> <dump> <pass>
    proc /proc proc defaults 0 0
    # / was on /dev/sda3 during installation
    UUID=dd4ed1aa-86d8-4642-9058-e16b6171429b / ext4 errors=remount-ro,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0 0 1
    # /boot was on /dev/sda2 during installation
    UUID=13eed14e-1246-4d6b-970b-44121c47a881 /boot ext4 defaults 0 2
    # /var was on /dev/sdb5 during installation
    UUID=eb0495ae-6034-446d-9532-ef5ec0dff915 /var ext4 defaults 0 2
    /dev/sda1 none swap sw 0 0
    /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0
    /var/log/ispconfig/httpd/womanscenturyclubyakima.org /var/www/clients/client3/web1/log none bind,nobootwait 0 0
    /var/log/ispconfig/httpd/asoundconnection.net /var/www/clients/client1/web9/log none bind,nobootwait 0 0
    /var/log/ispconfig/httpd/dmgenterprises.info /var/www/clients/client1/web11/log none bind,nobootwait 0 0
    /var/log/ispconfig/httpd/poplessmusic.com /var/www/clients/client1/web13/log none bind,nobootwait 0 0
    /var/log/ispconfig/httpd/valleywebsystems.com /var/www/clients/client1/web15/log none bind,nobootwait 0 0
    /var/log/ispconfig/httpd/acsyakima.com /var/www/clients/client1/web17/log none bind,nobootwait 0 0
    /var/log/ispconfig/httpd/deathalerter.com /var/www/clients/client1/web19/log none bind,nobootwait 0 0
    /var/log/ispconfig/httpd/burkeplumbingyakima.com /var/www/clients/client1/web21/log none bind,nobootwait 0 0
    /var/log/ispconfig/httpd/wyvernwebdesigns.com /var/www/clients/client1/web37/log none bind,nobootwait 0 0
    ~

    root@WebServer0:/etc# repquota -avug
    *** Report for user quotas on device /dev/disk/by-uuid/dd4ed1aa-86d8-4642-9058-e16b6171429b
    Block grace time: 7days; Inode grace time: 7days
    Block limits File limits
    User used soft hard grace used soft hard grace
    ----------------------------------------------------------------------
    root -- 1186084 0 0 53727 0 0
    daemon -- 40 0 0 1 0 0
    dgeho1 -- 384560 0 0 5714 0 0
    clamav -- 4 0 0 1 0 0
    mysql -- 0 0 0 20 0 0
    bind -- 4 0 0 1 0 0
    getmail -- 8 0 0 2 0 0
    ispconfig -- 72056 0 0 8896 0 0
    web1 -- 0 102400 103424 0 0 0
    web9 -- 0 716800 717824 0 0 0
    web11 -- 0 102400 103424 0 0 0
    web13 -- 0 204800 205824 0 0 0
    web17 -- 0 204800 205824 0 0 0
    web21 -- 0 204800 205824 0 0 0
    web37 -- 0 204800 205824 0 0 0
    #501 -- 9560 0 0 714 0 0

    Statistics:
    Total blocks: 9
    Data blocks: 1
    Entries: 16
    Used average: 16.000000

    *** Report for group quotas on device /dev/disk/by-uuid/dd4ed1aa-86d8-4642-9058-e16b6171429b
    Block grace time: 7days; Inode grace time: 7days
    Block limits File limits
    Group used soft hard grace used soft hard grace
    ----------------------------------------------------------------------
    root -- 1194920 0 0 54362 0 0
    daemon -- 44 0 0 2 0 0
    adm -- 4 0 0 1 0 0
    tty -- 20 0 0 2 0 0
    mail -- 128 0 0 6 0 0
    www-data -- 24 0 0 3 0 0
    list -- 4 0 0 1 0 0
    shadow -- 104 0 0 5 0 0
    staff -- 116 0 0 33 0 0
    crontab -- 32 0 0 1 0 0
    Debian-exim -- 4 0 0 1 0 0
    mlocate -- 32 0 0 1 0 0
    ssh -- 96 0 0 1 0 0
    dgeho1 -- 384560 0 0 5714 0 0
    ssl-cert -- 8 0 0 2 0 0
    postfix -- 40 0 0 10 0 0
    postdrop -- 32 0 0 2 0 0
    mysql -- 0 0 0 20 0 0
    dovecot -- 8 0 0 2 0 0
    messagebus -- 40 0 0 1 0 0
    bind -- 28 0 0 7 0 0
    ispconfig -- 72072 0 0 8899 0 0

    Statistics:
    Total blocks: 9
    Data blocks: 2
    Entries: 22
    Used average: 11.000000

    root@WebServer0:/etc#
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    The problem is that you activated quota for the wrong partition. The websites are in /var/www and you have a separate mountpoint fir /var, so quota has to be enabled for /var too.
     
  8. Croydon

    Croydon ISPConfig Developer ISPConfig Developer

    Okay.
    UUID=eb0495ae-6034-446d-9532-ef5ec0dff915 /var ext4 defaults 0 2
    There seems to be your problem.
    The webs are in /var/www but you have no quota enabled for that partition but only for /
     
  9. dgeho1

    dgeho1 Member

    ok, how do I fix it?
     
  10. till

    till Super Moderator Staff Member ISPConfig Developer

    Add quota to /var partition like you did it for the / partition and then turm quota on for /var
     
  11. dgeho1

    dgeho1 Member

    here is the fstab file now..

    /etc/fstab: static file system information.
    #
    # Use 'blkid' to print the universally unique identifier for a
    # device; this may be used with UUID= as a more robust way to name devices
    # that works even if disks are added and removed. See fstab(5).
    #
    # <file system> <mount point> <type> <options> <dump> <pass>
    proc /proc proc defaults 0 0
    # / was on /dev/sda3 during installation
    UUID=dd4ed1aa-86d8-4642-9058-e16b6171429b / ext4 errors=remount-ro,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0 0 1
    # /boot was on /dev/sda2 during installation
    UUID=13eed14e-1246-4d6b-970b-44121c47a881 /boot ext4 defaults 0 2
    # /var was on /dev/sdb5 during installation
    UUID=eb0495ae-6034-446d-9532-ef5ec0dff915 /var ext4 errors=remount-ro,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0 0 1
    /dev/sda1 none swap sw 0 0
    /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0
    /var/log/ispconfig/httpd/womanscenturyclubyakima.org /var/www/clients/client3/web1/log none bind,nobootwait 0 0
    /var/log/ispconfig/httpd/asoundconnection.net /var/www/clients/client1/web9/log none bind,nobootwait 0 0
    /var/log/ispconfig/httpd/dmgenterprises.info /var/www/clients/client1/web11/log none bind,nobootwait 0 0
    /var/log/ispconfig/httpd/poplessmusic.com /var/www/clients/client1/web13/log none bind,nobootwait 0 0
    /var/log/ispconfig/httpd/valleywebsystems.com /var/www/clients/client1/web15/log none bind,nobootwait 0 0
    /var/log/ispconfig/httpd/acsyakima.com /var/www/clients/client1/web17/log none bind,nobootwait 0 0
    /var/log/ispconfig/httpd/deathalerter.com /var/www/clients/client1/web19/log none bind,nobootwait 0 0
    /var/log/ispconfig/httpd/burkeplumbingyakima.com /var/www/clients/client1/web21/log none bind,nobootwait 0 0
    /var/log/ispconfig/httpd/wyvernwebdesigns.com /var/www/clients/client1/web37/log none bind,nobootwait 0 0
    ~

    how and where do I turn on quota for this dir?
     
  12. Croydon

    Croydon ISPConfig Developer ISPConfig Developer

    Try
    quotaon -avug
    Then use the resync tool in ISPConfig to rewrite quota.
     
  13. dgeho1

    dgeho1 Member

    root@WebServer0:/# quotaon -avug
    quotaon: using //aquota.group on /dev/disk/by-uuid/dd4ed1aa-86d8-4642-9058-e16b6171429b [/]: Device or resource busy
    quotaon: using //aquota.user on /dev/disk/by-uuid/dd4ed1aa-86d8-4642-9058-e16b6171429b [/]: Device or resource busy
    quotaon: cannot find /var/aquota.group on /dev/sdb5 [/var]
    quotaon: cannot find /var/aquota.user on /dev/sdb5 [/var]
     
  14. dgeho1

    dgeho1 Member

    I also found this in the syslog. Not sure if it is relavent or not

    May 1 11:50:23 WebServer0 kernel: [ 14.567203] VFS (sda3): Writes happened before quota was turned on thus quota information is probably inconsistent. Please run quotacheck(8).
    May 1 11:50:23 WebServer0 kernel: [ 14.615194] VFS (sda3): Writes happened before quota was turned on thus quota information is probably inconsistent. Please run quotacheck(8).
     
  15. till

    till Super Moderator Staff Member ISPConfig Developer

    run:

    quotaoff -avug
    mount -o remount /var
    quotacheck -avugm
    quotaon -avug
     
  16. dgeho1

    dgeho1 Member

    Here is the result:

    root@WebServer0:/home/dgeho1# quotaoff -avug
    /dev/disk/by-uuid/dd4ed1aa-86d8-4642-9058-e16b6171429b [/]: group quotas turned off
    /dev/disk/by-uuid/dd4ed1aa-86d8-4642-9058-e16b6171429b [/]: user quotas turned off
    /dev/sdb5 [/var]: group quotas turned off
    /dev/sdb5 [/var]: user quotas turned off
    root@WebServer0:/home/dgeho1# mount -o remount /var
    root@WebServer0:/home/dgeho1# quotacheck -avugm
    quotacheck: Scanning /dev/disk/by-uuid/dd4ed1aa-86d8-4642-9058-e16b6171429b [/] done
    quotacheck: Checked 5250 directories and 56299 files
    quotacheck: Scanning /dev/sdb5 [/var] done
    quotacheck: Cannot stat old user quota file: No such file or directory
    quotacheck: Cannot stat old group quota file: No such file or directory
    quotacheck: Cannot stat old user quota file: No such file or directory
    quotacheck: Cannot stat old group quota file: No such file or directory
    quotacheck: Checked 1444 directories and 29979 files
    quotacheck: Old file not found.
    quotacheck: Old file not found.
    root@WebServer0:/home/dgeho1# quotaon -avug
    /dev/disk/by-uuid/dd4ed1aa-86d8-4642-9058-e16b6171429b [/]: group quotas turned on
    /dev/disk/by-uuid/dd4ed1aa-86d8-4642-9058-e16b6171429b [/]: user quotas turned on
    /dev/sdb5 [/var]: group quotas turned on
    /dev/sdb5 [/var]: user quotas turned on
     
  17. srijan

    srijan New Member HowtoForge Supporter

    Yes it seems to be ok for quota
     
  18. dgeho1

    dgeho1 Member

    It looks like it is working only for a site that I created last night, not for any of my older sites.
     
  19. dgeho1

    dgeho1 Member

    I performed a resync, and now seems to working for all sites.

    Thanx for everyone's help
     
Thread Status:
Not open for further replies.

Share This Page