So I have 8.6GB of files, but the MariaDB is 21GB in size? Are my files duplicated inside the MariaDB? This seems kind of excessive.
I was in process of upgrading the cloud instance I have this running on, as it reported low space. I didn’t have that much stored in there (or so I thought), but I don’t know enough about what might be causing the MariaDB space usage to know what to do about it.
I see actually the 28088 matches the snap version? Is 27920 left over from an upgrade some time maybe?
I still question a database size of 10GB for 8.6GB of files, even if this is the case though.
I can’t help with snap but there are 2 common issues where DB could consume space
database could grow because of stale oc_filecache entries (especially if you connect big external storage sources) as described here
additionally you could have many/huge transaction logs even in small installations. for detailed explanation google for “mariadb binary log” in short you can cut the logs to specific point:
#truncate logs
PURGE BINARY LOGS TO 'mariadb-bin.000063';
PURGE BINARY LOGS BEFORE '2013-04-21';
and then limit the size of transaction logs [my.cnf]: