OS type and version Ubuntu Linux 20.04.4
Webmin version 1.990
Virtualmin version 6.17-3
When we installed default install of virtualmin / webmin (where did not no it would create loads and loads of binlog.000 files, so what has happened now we have set it global to expire within couple of days, but how can we get rid of clean up the binary logs which have there since server was installed around 20 days ago as at moment its using: 80GB of the storage.
Hope someone can help me out with this, as client has a big live show going on today and i would not want the site to fall over
Never seen that before and I have a default install of virtualmin. There some info on it if you google the issue. Not sure its a virtualmin issue. Did you install virtualmin using this method Automated Virtualmin Installation – Virtualmin ?
Steve
It seems likely something is misbehaving. Those files should not grow extremely rapidly in the general case.
Are you sure you don’t have some kind of abuse going on? I mean, I guess if it is a very busy site (like millions of visitors doing stuff that causes database updates) it could grow a lot. Otherwise, I assume either an exploited app or a pathologically designed app that’s writing to the database far more than is reasonable.
this is an bug I guess with all Ubuntu 20.04 instances,
all you have to do is specify in mysql conf i.e. /etc/mysql/my.cnf to not use log-bin which MySQL 8.0 uses by default for some reason.
[mysqld]
skip-log-bin
and then reset slave via mysql cli to clear current bin logs.
RESET SLAVE;
Normally binlog maintains a history of MySQL transaction for replication, if your MySQL server is not setup in replication mode, you can safely follow the instructions above.