Quota combined for multiple drives/devices

Discussion in 'Installation/Configuration' started by luckyluk3, Aug 20, 2019.

  1. luckyluk3

    luckyluk3 New Member


    My server has 2 disks, 1 main disk 20gb and 1 attached disk 10gb.
    UUID=2565154a-3e96-405c-a57e-cb18ac871655 /               ext4    discard,errors=remount ro,usrjquota=quota.user,grpjquota=quota.group,jqfmt=vfsv0 0       1
    /dev/disk/by-id/scsi-0HC_Volume_2641471 /mnt/volume-nbg1-1 ext4 discard,nofail,defaults,usrjquota=quota.user,grpjquota=quota.group,jqfmt=vfsv0 0 0
    One of my websites I moved to the other drive let's call that drive B. When I moved the website from the main drive to drive B I noticed that the website disk quota showed only a few kilobytes. After some searching I decided to add these mount options to drive B.

    After this edit and remounting the drive the correct size showed up on the ispconfig panel. But the soft- and hard limit doubled for this particular website. After running `repquota -avu` I found out the quota is set per drive. So when I enter a limit of 2000MB Harddisk Quota in the panel that quota is per drive/device. That explains why the soft- and hard limit doubled.

    Is it possible to make a global limit. So for example web15 has a global Harddisk Quota of 2000MB. Or maybe a solution so it doesn't get doubled like it does now?

    [​IMG] [​IMG]
  2. major7

    major7 New Member

    I have the same Issue with Hetzner Cloud Volumes and asked it at their GitLab Project (git-ispconfig-org/ispconfig/ispconfig3/issues/5438).

    The easiest way would be to move every Directory for that user/web (in /var/vmail and /var/www/clientX) to the Volume (so that not a single file remains on the Main Disk with the clientX:webY but due to permissions (i think the /web folders are set to immutable) thats not possible - or is it possible without breaking things (many entries in /etc/fstab) - i don't know.

    Now the only workarounds are
    • change the calculation in /server/lib/classes/cron.d/100-monitor_hd_quota.inc.php as i described at GitLab (don't know side effects)
    • as Marius mentions "have to disable the quota for the second partition" -> makes no sense to me? How is then the right calculation done?
    • as Marius mentions "patch the ISPConfig plugin for setting the quota to use setquota with a limit of 1 (nearly no available space) for the second partition." -> makes also no sense for me
    Did you find a solution in the meantime?
  3. till

    till Super Moderator Staff Member ISPConfig Developer

  4. till

    till Super Moderator Staff Member ISPConfig Developer

    It makes a lot of sense as quota is only needed for the /var/www tree and this is always in one partition.

Share This Page