Disk usage - By database is zero after changing datadir

OS type and version CentOS 7.9
Virtualmin version 7.3

Recently, we changed our database datadir to another location and noticed that the numbers under each virtual server’s Administration Options > Disk Usage > By database is showing zero bytes.

The new database datadir is working as we can see updates and inserts data in the new datadir. I ran the below command and it does report the correct size.


It seems somehow Virtualmin is not calculating or recognizing the correct data size for DB after changing datadir. A reboot doesn’t seem to help too. Is there a way to recalculate the DB usage?

I looked through old threads about using Limits and Validations > Check Disk Quotas but I don’t see that option.

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