URGENT: Database can't recover
Posted: Thu Apr 06, 2017 3:10 pm
We're seeing a bunch of these in the MySQL log:
170406 11:45:39 [ERROR] /usr/libexec/mysqld: Incorrect key file for table './nagios/nagios_customvariablestatus.MYI'; try to repair it
but when I try to repair the offloaded database, I get this:
We did an upgrade from 5.2.9 to 5.4.2 yesterday and things seemed to be working well until a couple of hours ago.
170406 11:45:39 [ERROR] /usr/libexec/mysqld: Incorrect key file for table './nagios/nagios_customvariablestatus.MYI'; try to repair it
but when I try to repair the offloaded database, I get this:
Code: Select all
[email protected] (Linux) $ mysqlcheck -f -r -u root -pShoeFoot2 --databases nagios nagiosql -h db1.nagios.vsp.com
nagios.nagios_acknowledgements
error : Can't create new tempfile: './nagios/nagios_acknowledgements.TMD'
error : 30 when updating keyfile
status : Operation failed
nagios.nagios_commands
error : Can't create new tempfile: './nagios/nagios_commands.TMD'
error : 30 when updating keyfile
status : Operation failed