website quotas displayed as NaN

Discussion in 'Installation/Configuration' started by Aleeekoi, Jan 13, 2021.

Tags:
  1. Aleeekoi

    Aleeekoi New Member

    Hello,
    I have some sites configured without a disk quota and some with it.
    In the dashboard I can see that the used space is not displayed for every active site.

    I'm using ISPConfig 3.2.2 on Ubuntu 20.4.1

    Looking in my /etc/fstab but it seem correct to me, here it is:
    Code:
    LABEL=cloudimg-rootfs   /        ext4   defaults,usrjquota=quota.user,grpjquota=quota.group,jqfmt=vfsv0 0 0
    LABEL=UEFI      /boot/efi       vfat    defaults        0 0
    /var/log/ispconfig/httpd/***.net /var/www/clients/client0/web2/log    none    bind,nofail    0 0
    /var/log/ispconfig/httpd/***.it /var/www/clients/client1/web7/log    none    bind,nofail    0 0
    /swapfile none swap sw 0 0
    /var/log/ispconfig/httpd/***.it /var/www/clients/client1/web8/log    none    bind,nofail    0 0
    /var/log/ispconfig/httpd/***.net /var/www/clients/client0/web9/log    none    bind,nofail    0 0
    /var/log/ispconfig/httpd/***.net /var/www/clients/client0/web14/log    none    bind,nofail    0 0
    /var/log/ispconfig/httpd/***.net /var/www/clients/client0/web16/log    none    bind,nofail    0 0
    /var/log/ispconfig/httpd/***.net /var/www/clients/client0/web17/log    none    bind,nofail    0 0
    /var/log/ispconfig/httpd/***.com /var/www/clients/client2/web18/log    none    bind,nofail    0 0
    
    This is the repquota -avug report:
    Code:
    *** Report for user quotas on device /dev/vda1
    Block grace time: 7days; Inode grace time: 7days
                            Block limits                File limits
    User            used    soft    hard  grace    used  soft  hard  grace
    ----------------------------------------------------------------------
    root      -- 2227900       0       0         103054     0     0
    daemon    --      68       0       0              4     0     0
    man       --    1876       0       0            141     0     0
    www-data  --      24       0       0              6     0     0
    [...]
    web14     --       0 2048000 2049024              0     0     0
    web18     --       0  204800  205824              0     0     0
    [...]
    
    Statistics:
    Total blocks: 10
    Data blocks: 2
    Entries: 23
    Used average: 11.500000
    
    What could be the problem?
    Thank you
     
    Last edited: Jan 13, 2021
  2. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    What's the output of
    Code:
    mount -o remount /
    quotacheck -avugm
    quotaon -avug
     
  3. Aleeekoi

    Aleeekoi New Member

    Hello,
    the remount command is a secure operation? (I'm on a production server)
    Thank you
     
  4. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Yes.
     
  5. Aleeekoi

    Aleeekoi New Member

    OK, here it is:
    Code:
    [email protected]:~# mount -o remount /
    [email protected]:~# quotacheck -avugm
    quotacheck: Scanning /dev/vda1 [/] done
    quotacheck: Checked 41992 directories and 212517 files
    [email protected]:~# quotaon -avug
    quotaon: using //quota.group on /dev/vda1 [/]: No such process
    quotaon: Quota format not supported in kernel.
    quotaon: using //quota.user on /dev/vda1 [/]: No such process
    quotaon: Quota format not supported in kernel.
    [email protected]:~#
    
    I think kernel is missing some packages, I think a solution is trying to install them with
    Code:
    apt-get -y install quota quotatool
    Its' ok?
     
    Last edited: Jan 14, 2021
  6. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

  7. Aleeekoi

    Aleeekoi New Member

  8. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

  9. Aleeekoi

    Aleeekoi New Member

    Ok, it's started to working.
    I followed the steps in the link you have shared.
    All packages were already installed, the only missing thing was
    Code:
    echo quota_v1 >> /etc/modules
    echo quota_v2 >> /etc/modules
    after reboot quotas start to work.
    Code:
    [email protected]:~# repquota -avug
    *** Report for user quotas on device /dev/vda1
    Block grace time: 7days; Inode grace time: 7days
                            Block limits                File limits
    User            used    soft    hard  grace    used  soft  hard  grace
    ----------------------------------------------------------------------
    root      -- 8749588       0       0         209122     0     0
    daemon    --      68       0       0              4     0     0
    man       --    1960       0       0            145     0     0
    www-data  --     520       0       0            522     0     0
    [...]
    web2      --   11204       0       0            281     0     0
    web7      --  182216       0       0          23242     0     0
    web8      --   51780       0       0           1891     0     0
    web9      --    1404       0       0            117     0     0
    web14     --  226960 2048000 2049024          11893     0     0
    web16     --    4780       0       0            196     0     0
    web17     --   47844       0       0           7031     0     0
    web18     --    3460  204800  205824            112     0     0
    [...]
    
    Thank you for the support
     
    Last edited: Jan 14, 2021
  10. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Glad to hear.
     

Share This Page