Incorrect disk usage numbers

SYSTEM INFORMATION
OS type and version Debian Linux 11
Usermin version 2.302
Virtualmin version 7.30.8
Theme version 24.02
Apache version 2.4.65

Hi,

I got a virtual server that shows on the homepage Disk quotas: 0% - 115Mib of 25GiB.
However, when I do a: du -sh /home/virtualserver/public_html/ it shows 10GB.
Which is logic since there are about 100K plus files on it (find /home/virtualserver/public_html/ -type f | wc -l).

What cause the numbers to fail? What do I need to check?

maybe these 100K+ files are not owned by the same virtual server user. (?)
quota works per user/group. virtualmin shows disk quota for user. if these files are owned by root (eg) , they do not count in virtual server’s quota.

Home page disk quota? What does that mean?

In Virtualmin → Logs and Reports → Disc Usage, there is Disc Usage. Are you referring to ‘Disk quota used’ on that page?

Hi @calport sorry if it was a bad description, I mean the main page when you login to webmin/virtualmin. There are multiple blocks like system information, servers status and also Disk Quotas.

@dimitrist I think you nailed it. I’ve checked, the files are owned by www-data. Probably beceause php was running in FCGI mode? All others I have on FPM by default.

I think I will do a switch to FPM and then chown and see what happens.

A few moments later: indeed it’s fixed, correct numbers again, thanks a lot!

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.