Wrong Disk Space Usage

bahramsing

Verified User
Joined
Jan 20, 2014
Messages
20
Hello
It seems directadmin has wrong algorithms to calculate disk space usage. because it calc even space used by backup files (in /home/admin/admin_backups and /home/admin/user_backups
The owner group of files located under these backup folder is the same user[name] so system calculate that file size.


-rw-r----- 1 admin username 43062821 Nov 26 03:06 user.admin.username.tar.gz
 
Last edited:
DA won't count usage, if the file is chgrp to the user.
DA uses the system quotas, and only counts the chown "user" value.
So for "admin:username", the file won't be counted against the User.

Use this to try and track down any usage you can't find:
http://help.directadmin.com/item.php?id=39

If it's nowhere, then the system quotas might be out of sync.
This isn't common, but isn't impossible.
The 2nd half of the id=39 guide covers how to recompute the quotas (will take a while).
If your quotas are in sync, running them may actually put it out of sync, as they're off while it's running, so any files added sync the quotacheck might not be noticed once it's finally turned on.
Only use the quotacheck as a last resort, if you're 100% certain it's out of sync.
I've not seen such a case in a while now, so it's less likely with newer systems.


One other thought, is that the backup data is created as the User, so if the tally is counted at the same moment the backup for that User is created, the usage could go slightly higher than it should.
You can confirm that by logging in as the User, going to:
User Level -> Site Summary / Stats / Logs -> Total Disk Usage -> click: Update

and if that brings the numbers back in check, then move the backup to run as a different time, so it doesn't overlap with the tally.

John
 
Back
Top