View Full Version : User quota incorrect
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?
getUP
04-10-2011, 11:37 AM
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:
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...
fdldrainbow
04-20-2011, 12:39 AM
I also have the same problem:eek:
Sometimes files may not be under the uid of the user. Do this to find them out:
cd /home/of/username
find ./ ! -user username
DirectAdmin:
Total Disk Usage (MB) 385.9
Email Disk Usage 596.0 MB
Database Disk Usage 8.05 MB
:confused:
[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
find ./ ! -user ***
Gives only some files in ./domains/****/stats/ and ./domains/****/logs/
Its exactly right so what is the problem?
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).
Powered by vBulletin™ Version 4.0.4 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.