#sql ibd files filling up filesystem
Posted: Mon Oct 18, 2021 5:06 am
Hi, we have a server with Nagios XI 5.5.7 running with database MariaDB version 5.5.60
Sometimes, every 3 or 4 weeks, the filesystem get filled up, and the database (and web interface) stops working, so we have to recover free space and run "repair_databases.sh" script to make it work again.
I noticed there are some files in /var/lib/mysql/nagiosxi/ with names similar to #sql-XXXX_XXXXXX.ibd and .frm, which seem to be leftover files from dbmaint procedures, and they are about 17-18 Gb in size.
There are no tables with the same names in the database, and the modification date of these files is > 1 week.
I'd like to ask you a couple of questions:
1. Is it normal that these files remain on the filesystem until it is full, or there is a way to make the application clean them automatically?
2. Is it safe to delete them manually, when we have this issue, without affecting the productivity of the platform?
Thanks
Sometimes, every 3 or 4 weeks, the filesystem get filled up, and the database (and web interface) stops working, so we have to recover free space and run "repair_databases.sh" script to make it work again.
I noticed there are some files in /var/lib/mysql/nagiosxi/ with names similar to #sql-XXXX_XXXXXX.ibd and .frm, which seem to be leftover files from dbmaint procedures, and they are about 17-18 Gb in size.
There are no tables with the same names in the database, and the modification date of these files is > 1 week.
I'd like to ask you a couple of questions:
1. Is it normal that these files remain on the filesystem until it is full, or there is a way to make the application clean them automatically?
2. Is it safe to delete them manually, when we have this issue, without affecting the productivity of the platform?
Thanks