Systems Quotas are size 0

wattie

Verified User
Joined
May 31, 2008
Messages
1,040
Location
Bulgaria
Directadmin is showing wrong disk quotas since I updated to FreeBSD 11.3. There is an error message in the control panel:

Code:
Systems Quotas are size 0. See this guide to fix it.
I did run the recommended commands:

Code:
/usr/sbin/quotaoff -a; /sbin/quotacheck -aug; /usr/sbin/quotaon -a;
echo "action=tally&value=all" >> /usr/local/directadmin/data/task.queue
And when I check the quota for specific user it is showing fine:

Code:
root@srv2:/ # quota -v cphpvb
Disk quotas for user cphpvb (uid 1271):
Filesystem        usage    quota   limit   grace  files   quota  limit   grace
/               5548264  20480000 22528000          94837       0      0
* assuming 5548264 is actually 5.5G - this is a correct reading, because:

Code:
root@srv2:/ # du -h /home/cphpvb
...
5.9G    /home/cphpvb
Here is what DirectAdmin is showing:

diskusage.png

See that the Disk Usage at the top is correct while at the bottom it is not. Clicking on "Details" is where I get "Systems Quotas are size 0. See this guide to fix it."
 

wattie

Verified User
Joined
May 31, 2008
Messages
1,040
Location
Bulgaria
It looks like the repquota utility is listing only the root user - not all of them. I don't know why...

Code:
root@srv2:~ # /usr/local/directadmin/directadmin c | grep quota_partition
quota_partition=/
ext_quota_partitions=
root@srv2:~ # /usr/local/directadmin/directadmin c | grep use_xfs_quota
use_xfs_quota=0
[B]root@srv2:~ # repquota `/usr/local/directadmin/directadmin c | grep quota_partition= | cut -d= -f2`
                                           Block  limits                    File  limits
User                                  used   soft   hard  grace     used    soft    hard  grace
root                             -- 18872756      0      0      -   846873       0       0      -[/B]
 

wattie

Verified User
Joined
May 31, 2008
Messages
1,040
Location
Bulgaria
My clue is that this is related to the quota_partition being the root one (/). Every tutorial on the net is suggesting to add the quota to "/home" partition (which I do not have since for simplicity I added just one / partition + swap). I am unaware for an easy fix without repartitioning everything.
 
Top