Wrong usage of limit

inomi13

Verified User
Joined
Jan 7, 2022
Messages
176
I noticed that one of my user has wrong disk usage. I set limit 50GB and currently disk usage is 35GB, however directadmin shows usage on 51GB.

When I login via user and refresh usage or change limit quota of this account then da shows correct value but next day da shows a one more time wrong usage.

I checked the limit settings and disk usage by logging in via SSH. This an issue only one account.

du -sh home/username
35G /home/username

quota -u username
Filesystem blocks quota limit grace files quota limit grace
/dev/vda4 36323080 52428800 57671680 52515 0 0
 
Last edited:
it counts all data that owned by user on all partitions where quota monitored (maybe you have extracted backup of this user files in admin account), + it counts database usage, so check DB size too.
 
it counts all data that owned by user on all partitions where quota monitored (maybe you have extracted backup of this user files in admin account), + it counts database usage, so check DB size too.
First of all what I did, was check all files in system which have owner that user.

I noticed one correlation, every single day backup of user accounts start at 12:00 midnight and tally cron function runs at the same time so probably here is an issue. I changed start backup to 12:30 AM and we will see tomorrow.
 
you can edit quota for user, from DA, like modify just any digit, save, revert - it will run quota update for this exact account immediately.
 
I know and I changed quota for user from DA and then disk usage shows correct value. As I told, an issue with wrong disk usage shows next day.
 
I noticed that one of my user has wrong disk usage. I set limit 50GB and currently disk usage is 35GB, however directadmin shows usage on 51GB.

When I login via user and refresh usage or change limit quota of this account then da shows correct value but next day da shows a one more time wrong usage.

I checked the limit settings and disk usage by logging in via SSH. This an issue only one account.
Depending on how you backup, a 35gb account can add a damn lot to those 35gb, for a little while. Well, 35gb might not be 'a little while'. If da calculates when the backup hasn't finished yet, it might see a lot more data in use. I guess... not sure if that's the case tho.
 
Back
Top