Wrong disk usage / wrong "Home disk space used"

Hello,

in VirtualMin i have set the following quotas for a virtual server:

Total server quota = 10 GB
Server administrator’s quota = 10 GB

The current (calculated by VirtualMin) usage:

Home disk space used (including sub-servers) = 7.68 GB (7.71 GB by server administrator, 620 kB by mail / FTP users)

But i can’t believe that, so i checked the real usage for that user/server:

du -h --max-depth=0 /home/name/

And the result was:

3,8G /home/name/

Aaargh !! Why is there this difference ?
It seems, that the VirtualMin usage is nearly “2 * real usage = virtualmin usage” …
Is the space calculated twice ?

Thanks,
Snoop

My VirtualMin Infos:

Virtualmin version = 4.04.gpl GPL
Operating system = Debian Linux 7
Kernel and CPU = Linux 3.2.0-4-amd64 on x86_64
Webmin version = 1.660

Howdy,

Virtualmin uses the Linux quota tools to determine usage, and then adds to that the size of your various databases.

What output do you see if you run these two commands:

quota -v VIRTUAL_SERVER_OWNER quota -g VIRTUAL_SERVER_OWNER

You can also tell your system to recalculate the quotes, in case something managed to get out of sync, by going into Limits and Validation -> Check Disk Quotas, and click “Check Now”.

-Eric

Hello Eric,

first: Thank you for your quick reply.

I already checked that quotas with “Limits and Validation -> Check Disk Quotas -> Check Now” … but the usage was unchanged.

Here is the output of your commands (i added the parameter “-s” for readable results):

user name (uid 1013):
Dateisystem Platz Quota LimitGnadenfrist Dateien Quota LimitGnadenfrist
/dev/mapper/vg0-root
7909M 11264M 11264M 104k 0 0

and

group name (gid 1009):
Dateisystem Platz Quota LimitGnadenfrist Dateien Quota LimitGnadenfrist
/dev/mapper/vg0-root
7880M 11264M 11264M 104k 0 0

Ok. You’re right. They also return that usage.
Now i’ll turn over to that command i find out, why (which files) are responsible for that result.

Thanks a lot for your help and time - as always quick, simple, short and very helpful !

Snoop