The DirectAdmin quota is incorrect. We allocated 30GB of disk space

Niels90

Verified User
Joined
Apr 22, 2016
Messages
28
Dear all,

We are experiencing a problem with the quota settings within DirectAdmin. We have allocated 30 GB of disk space for a reseller account, but the account can easily exceed this limit. However, the overview shows "Unlimited" under Allocated, while it should be 30 GB.

We are also experiencing the same problem with data transfer 90 GB is set for this, but "Unlimited" is also displayed here, and the limit does not appear to be enforced.

The system runs on Ubuntu.

Could you please tell us what could be the cause of this and how we can correct it?
Schermafbeelding 2025-12-14 165402-30GB.png
 
In the modify tab ("Bewerken" in your screenshot) for the reseller setting, there is a checkfield "Allow overselling". Is it activated?
 
are you sure you limited reseller as whole reseller account, not just reseller`s user-account?
 
are you sure you limited reseller as whole reseller account, not just reseller`s user-account?
no We have to manually adjust this /usr/local/directadmin/data/users/*** > reseller.allocation then the correct amount is allocated We don't think this is the intention
 
is quota working by itself? check from ssh console
When we run this in ssh,
repquota / | grep user
user -- 4 0 0 2 0 0

, we see this message:
"Your kernel probably supports the ext4 quota feature, but you are using external quota files. Please switch your filesystem to use the ext4 quota feature, as external quota files on ext4 are deprecated. We don't know if this could be the problem."?
 
I'm on Ubuntu 24.04 Pro

I have quotas enabled, file based like yourself. I can check if group and userquotas are in force here:
Bash:
root@laira ~ # mount | grep -E 'quota|usrquota|grpquota'
/dev/md2 on / type ext4 (rw,relatime,quota,usrquota,grpquota)
/dev/md7 on /home type ext4 (rw,relatime,quota,usrquota,grpquota)

Have a look in your /etc/fstab file and see if quotas are enabled. Here's what mine looks like:
Bash:
# /dev/md/7
UUID=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX               /home                   ext4    defaults,usrquota,grpquota      0 0

Also check if quotas are on? You can use sudo quotaon with the correct flags to turn it on for example quotaon -a to turn on all the quotas listed in your /etc/fstab
Bash:
root@laira ~ # quotaon -p -a
group quota on / (/dev/md2) is on
user quota on / (/dev/md2) is on
project quota on / (/dev/md2) is off
group quota on /home (/dev/md7) is on
user quota on /home (/dev/md7) is on
project quota on /home (/dev/md7) is off


When I check a user (These were created as a test with a 1GB space: res10 - Reseller , user4 - User) This tells me if the quota I allocated is correct.
Bash:
root@laira ~ # quota -u res10
Disk quotas for user res10 (uid 1012):
     Filesystem  blocks   quota   limit   grace   files   quota   limit   grace
       /dev/md7     356  1024000 1126400              37       0       0       
root@laira ~ # quota -u user4
Disk quotas for user user4 (uid 1010):
     Filesystem  blocks   quota   limit   grace   files   quota   limit   grace
       /dev/md7  835732  1048576 1153433              39       0       0
 
Back
Top