User quota incorrect

Ruud

Verified User
Joined
Apr 10, 2011
Messages
7
Hi all,

The disk usage of one of my users is incorrect.
The user uses about 640 MB (check with command du -bcha), but DirectAdmin says 276 MB. When I download the all files, I also consume around 640 MB on my local disk.

For all other users, the disk usage is correct.

I use DirectAdmin 1.38.1 on CentOS on a VPS.

Somebody has an solution for this problem?
 
I presume the quota has been recently updated, right?

You can check which files are owned by the user with the following commands:

[root@server]# id username
uid=510(username) gid=510(username) groups=510(username)
[root@server]# find / -uid 510 | less

quota -v username will show you the disk usage DA would show as well. There might be files written as Apache to your server if suPHP or mod_ruid are not used for instance.
 
I have a large amount of files (images etc) outside the public_html folder, I checked if those files are included in the find command, which I can answer positive. It seems that all files are included here.

The quota -v command gives:
Code:
Disk quotas for user *** (uid 520):
     Filesystem  blocks   quota   limit   grace   files   quota   limit   grace
     /dev/simfs  227336  768000  844800            2441       0       0
Which is my 768 MB?! It is somewhere out there.... :rolleyes:
After updating (manually) the disk usage via DirectAdmin, I still see the 279 MB...
 
The 768 is your quota not how much your using. You are only using 227mb.
 
The 768 is your quota not how much your using. You are only using 227mb.

Oh sorry, misread that indeed. That seems to be consistent with what getUP says (That that is the same as DirectAdmin uses). Although, the used data on disk is around 650 MB.
 
Also did the same find trick on userid with the userid of "apache". No results, thus no files are of user apache...
 
Sometimes files may not be under the uid of the user. Do this to find them out:

cd /home/of/username
find ./ ! -user username
 
Last edited:
DirectAdmin:
Code:
Total Disk Usage (MB) 	385.9
Email Disk Usage	596.0 MB	
Database Disk Usage	8.05 MB

:confused:

Code:
[root@server home]# quota -v ***
Disk quotas for user *** (uid 520):
     Filesystem  blocks   quota   limit   grace   files   quota   limit   grace
     /dev/simfs  386912  1024000 1126400            3751       0       0

Code:
find ./ ! -user ***
Gives only some files in ./domains/****/stats/ and ./domains/****/logs/
 
Very late update.

Seems if those files are outside the home/[user]/ directory?

I cannot find the total filesize indicated bij the quota command.
A find on the userid/name does only point to files inside the /home/[user] directory...

So: There should be an amount of files owned by the user somewhere, but I cannot find them (and thus not delete them).
 
Back
Top