Disk usage shows wrong sums

kristian

Verified User
Joined
Nov 4, 2005
Messages
490
Location
Norway
Hi,

I've been looking at some old posts on this issue, but none of them seem to apply to my situation.

The server is running DA with dovecot and maildirs.

The domain/user in question has currently no email-accounts set up (except from the systemaccount).

Now, what surprises me, is all the various disk-usage values I can see the varioues places.

quota -v pedagog shows:

Code:
Disk quotas for user pedagog (uid 1269): 
     Filesystem  blocks   quota   limit   grace   files   quota   limit   grace
      /dev/sda9  501356  512000  512000           16715       0       0

So he uses 501MB from what I can tell. repquota for /home returns the same value (501356). I also just checked any files belonging to the user 'apache', and it sums up to around 30MB.

Now, when I log into the DA controlpanel as admin, and search for this user, I see the following in the column for "Disk Usage": 1053.4 / 500.

When I click on the user, to see his details for the account, the row for "Total Disk Usage (MB)" says he has a current usage of 380.1MB.

If I log in as this user, the numbers still show 380.1MB in user level. (The usage-bar above shows something similar to maybe 5% usage, but I suppose this might be a separate issue.)

Running a 'du -sh' in the users home-directory gives me 526MB, of which ~30MB is owned by apache as I mentioned earlier.

So I'm a little confused here, how much is he actually using, and what causes parts of DA to calculate this all wrong? There are no other files on the server owned by his userid except for the ones in his home-directory.

Thanks for any help.

Edit: Typo.
 
Last edited:
A little update - I increased this customers maximum diskspace from 500MB to 1000MB, and suddenly the column for diskspace that showed 1053.4MB now shows 380.1MB instead.
 
Another update - it seems the differences in reported usage is due to lack of synchronization or updates. The customer told me he was in fact using ~1GB at a certain time, but he later deleted alot of stuff, and got down to around 380MB (according to DA).

Right now, DA is reporting 563.3MB used, quota -v reports 528164 blocks, and du -sh in his home-dir reports 553MB.

Can someone help me make sense of all this? :)
 
Back
Top