a month ago
Hello,
I received the following alert:
“Volume of MySQL is 81% full in production”
However, after checking the database, I noticed a significant mismatch between the reported volume usage and the actual database size.
Here are the details:
The SQL dump of the database is approximately 10 MB
The total size of all tables and indexes (from
information_schema.tables) is around 18–20 MBinnodb_file_per_tableis ONlog_binis OFF
Despite this, the MySQL volume is reported as almost full (around 80% usage, ~400 MB).
This suggests that the space is not used by application data, but likely by:
InnoDB redo/undo logs
historical file growth
internal MySQL or filesystem overhead within the volume
Could you please help clarify:
What exactly is consuming the space in the MySQL volume?
Whether there is a recommended way to reclaim unused space without recreating the service
If recreating the MySQL service is the only way to reset the volume size in this case
At the moment the database itself is very small, so growing the volume does not seem justified unless strictly necessary.
Thank you for your support.
Best regards,
Gianpiero Zorzi
1 Replies
a month ago
This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.
Status changed to Open Railway • about 2 months ago
a month ago
The disk usage is most likely consumed by InnoDB redo/undo logs (pre-allocated files) or the System Tablespace (ibdata1), which grows but never shrinks automatically. The cleanest and most effective solution is to dump the data and recreate the MySQL volume/service. As there is no command to shrink ibdata1 in place.