Huge mysql.log file
Posted: Wed Oct 19, 2011 3:04 pm
Hello all! First, I must admit that I don't know much about MySQL (sorry in advanced) but have used MS SQL in the past (so all is not lost) and have dabled in Linux in the past (built out Gentoo from source WAAAAY back in college).
Here is the back storry:
We are having some odd issues. Our virtual Nagios XI instance has been, shall we say, cranky. From dropped packets (haven't been able to figure that one out) to high CPU to full disk, we seem to be chasing our tails. Recently we ran out of disk space and implemented the steps identified in the forums to expand the VMDK. No issues there. HOWEVER, the /var/log/mysql.log file has gained water weight and is consuming 16.3/27 GB of my available disk (I've already updated log rotation to compress logs).
Now, I've tried to see if there is a MySQL tool to complress the logs, but I haven't been able to even administer the MySQL instance since I don't have usr/pw (I didn't do the initial setup and we don't have the info logged anywhere). Tail produces some odd errors (see below). Nagios it's self (including DB access) appears to be working without any issues.
[root@noc log]# tail mysqld.log
111019 14:59:18 [ERROR] /usr/libexec/mysqld: Table './nagios/nagios_timedeventqueue' is marked as crashed and last (automatic?) repair failed
111019 14:59:18 [ERROR] /usr/libexec/mysqld: Table './nagios/nagios_timedeventqueue' is marked as crashed and last (automatic?) repair failed
111019 14:59:18 [ERROR] /usr/libexec/mysqld: Table './nagios/nagios_timedeventqueue' is marked as crashed and last (automatic?) repair failed
111019 14:59:18 [ERROR] /usr/libexec/mysqld: Table './nagios/nagios_timedeventqueue' is marked as crashed and last (automatic?) repair failed
111019 14:59:18 [ERROR] /usr/libexec/mysqld: Table './nagios/nagios_timedeventqueue' is marked as crashed and last (automatic?) repair failed
111019 14:59:18 [ERROR] /usr/libexec/mysqld: Table './nagios/nagios_timedeventqueue' is marked as crashed and last (automatic?) repair failed
111019 14:59:18 [ERROR] /usr/libexec/mysqld: Table './nagios/nagios_timedeventqueue' is marked as crashed and last (automatic?) repair failed
111019 14:59:18 [ERROR] /usr/libexec/mysqld: Table './nagios/nagios_timedeventqueue' is marked as crashed and last (automatic?) repair failed
111019 14:59:18 [ERROR] /usr/libexec/mysqld: Table './nagios/nagios_timedeventqueue' is marked as crashed and last (automatic?) repair failed
111019 14:59:18 [ERROR] /usr/libexec/mysqld: Table './nagios/nagios_timedeventqueue' is marked as crashed and last (automatic?) repair failed
So what can I do? Am I missing something obvious?
Any help is MUCH appreciated!
EDIT: the file name is mysqld.log and not mysql.log
Here is the back storry:
We are having some odd issues. Our virtual Nagios XI instance has been, shall we say, cranky. From dropped packets (haven't been able to figure that one out) to high CPU to full disk, we seem to be chasing our tails. Recently we ran out of disk space and implemented the steps identified in the forums to expand the VMDK. No issues there. HOWEVER, the /var/log/mysql.log file has gained water weight and is consuming 16.3/27 GB of my available disk (I've already updated log rotation to compress logs).
Now, I've tried to see if there is a MySQL tool to complress the logs, but I haven't been able to even administer the MySQL instance since I don't have usr/pw (I didn't do the initial setup and we don't have the info logged anywhere). Tail produces some odd errors (see below). Nagios it's self (including DB access) appears to be working without any issues.
[root@noc log]# tail mysqld.log
111019 14:59:18 [ERROR] /usr/libexec/mysqld: Table './nagios/nagios_timedeventqueue' is marked as crashed and last (automatic?) repair failed
111019 14:59:18 [ERROR] /usr/libexec/mysqld: Table './nagios/nagios_timedeventqueue' is marked as crashed and last (automatic?) repair failed
111019 14:59:18 [ERROR] /usr/libexec/mysqld: Table './nagios/nagios_timedeventqueue' is marked as crashed and last (automatic?) repair failed
111019 14:59:18 [ERROR] /usr/libexec/mysqld: Table './nagios/nagios_timedeventqueue' is marked as crashed and last (automatic?) repair failed
111019 14:59:18 [ERROR] /usr/libexec/mysqld: Table './nagios/nagios_timedeventqueue' is marked as crashed and last (automatic?) repair failed
111019 14:59:18 [ERROR] /usr/libexec/mysqld: Table './nagios/nagios_timedeventqueue' is marked as crashed and last (automatic?) repair failed
111019 14:59:18 [ERROR] /usr/libexec/mysqld: Table './nagios/nagios_timedeventqueue' is marked as crashed and last (automatic?) repair failed
111019 14:59:18 [ERROR] /usr/libexec/mysqld: Table './nagios/nagios_timedeventqueue' is marked as crashed and last (automatic?) repair failed
111019 14:59:18 [ERROR] /usr/libexec/mysqld: Table './nagios/nagios_timedeventqueue' is marked as crashed and last (automatic?) repair failed
111019 14:59:18 [ERROR] /usr/libexec/mysqld: Table './nagios/nagios_timedeventqueue' is marked as crashed and last (automatic?) repair failed
So what can I do? Am I missing something obvious?
Any help is MUCH appreciated!
EDIT: the file name is mysqld.log and not mysql.log