Strange xfs quota problem.

juhoss

New member
Joined
Jan 29, 2026
Messages
2
Hello guys!

We are deploying a new directadmin install and i discovered that the DA qui counts the sizes perfect but the xfs quotas seems strange:
This is a Fresh Debian13 install with xfs paritions. I am not using the /home dir for users, only the admin user stuff stored here.

There is three partition:
/storage/web for home directories
/storage/mail for email boxes
/storage/sql for mysql database

There is the mount:
mount | grep storage
/dev/mapper/sql_vg-sql_lv on /storage/sql type xfs (rw,relatime,attr2,inode64,logbufs=8,logbsize=32k,usrquota,prjquota)
/dev/mapper/mail_vg-mail_lv on /storage/mail type xfs (rw,relatime,attr2,inode64,logbufs=8,logbsize=32k,usrquota,prjquota)
/dev/mapper/web_vg-web_lv on /storage/web type xfs (rw,relatime,attr2,inode64,logbufs=8,logbsize=32k,usrquota,prjquota)

I set everything in da config whitch is related:

root@da1:/usr/local/directadmin# da config | egrep 'xfs|partition'
check_partitions=2
ext_quota_partitions=/storage/mail
mail_partition=/storage/mail
partition_usage_threshold=95
quota_partition=/storage/web
xfs_on_domains=1
xfs_quota=/usr/sbin/xfs_quota

The strange thing is the DA still creates user quotas on filesytem and not project quotas, so the qoutas enforced bad:


root@da1:/usr/local/directadmin# xfs_quota -x -c 'report -h' /storage/mail/
User quota on /storage/mail (/dev/mapper/mail_vg-mail_lv)
Blocks
User ID Used Soft Hard Warn/Grace
---------- ---------------------------------
root 0 0 0 00 [------]
admin 588K 0 0 00 [------]
user1 17,2M 15G 16,5G 00 [------]
user2 20,6G 1T 1,1T 00 [------]
admin2 0 0 0 00 [------]
admin3 0 0 0 00 [------]
user4 4,1G 5G 5,5G 00 [------]
user5 4K 0 0 00 [------]

Project quota on /storage/mail (/dev/mapper/mail_vg-mail_lv)
Blocks
Project ID Used Soft Hard Warn/Grace
---------- ---------------------------------
#0 24,8G 0 0 00 [------]

root@da1:/usr/local/directadmin# xfs_quota -x -c 'report -h' /storage/web/
User quota on /storage/web (/dev/mapper/web_vg-web_lv)
Blocks
User ID Used Soft Hard Warn/Grace
---------- ---------------------------------
root 0 0 0 00 [------]
user1 113,3M 15G 16,5G 00 [------]
user2 4,5M 1T 1,1T 00 [------]
admin2 132K 0 0 00 [------]
admin3 132K 0 0 00 [------]
user3 1,4M 5G 5,5G 00 [------]
user4 140K 0 0 00 [------]

Project quota on /storage/web (/dev/mapper/web_vg-web_lv)
Blocks
Project ID Used Soft Hard Warn/Grace
---------- ---------------------------------
#0 117,8M 0 0 00 [------]
user1.hu 1,6M 0 0 00 [------]

Strange that is there is one project quota, but that is calculated bad, and there is no quotas set.

I did something wrong? Maybe there is something bad with my installation? Or move to ext4, or merge everything on one partition?
 
Did you try reboot first after custombuild installed finish ?

XFS quota require the reboot for one time.
 
Back
Top