Logger has been stable since a bunch of problems were fixed around 5.0.3 or so. But lately it's been dying every *second* night.
I've made two recent changes, both on November 30:
1) Upgraded from 5.0.10 to 5.0.11
2) Added a new 500GB partition /opt/zimbra/store4 and made it the active primary message volume
The problem is obviously with the logger mysql database, but I don't know exactly what to make of it. I see nothing in conf/my.logger.cnf to explain why it seems to think I want to replicate.
Code:
# cat log/logger_mysql_error.log
081130 07:30:48 mysqld ended
Starting mysqld daemon with databases from /opt/zimbra/logger/db/data
081130 07:50:37 mysqld started
081130 7:50:37 InnoDB: Started; log sequence number 0 43655
081130 7:50:37 [Warning] Neither --relay-log nor --relay-log-index were used; so replication may break when this MySQL server acts as a slave and has his hostname changed!! Please use '--relay-log=/opt/zimbra/logger/db/mysql-relay-bin' to avoid this problem.
081130 7:50:38 [ERROR] Failed to open the relay log './mail2-relay-bin.000001' (relay_log_pos 4)
081130 7:50:38 [ERROR] Could not find target log during relay log initialization
081130 7:50:38 [ERROR] Failed to initialize the master info structure
081130 7:50:38 [Note] /opt/zimbra/logger/mysql/libexec/mysqld: ready for connections.
Version: '5.0.51a-log' socket: '/opt/zimbra/logger/db/mysql.sock' port: 7307 Source distribution
081130 7:55:19 [Note] /opt/zimbra/logger/mysql/libexec/mysqld: Normal shutdown
081130 7:55:19 InnoDB: Starting shutdown...
081130 7:55:20 InnoDB: Shutdown completed; log sequence number 0 43655
081130 7:55:20 [Note] /opt/zimbra/logger/mysql/libexec/mysqld: Shutdown complete
STOPPING server from pid file /opt/zimbra/logger/db/mysql.pid
081130 07:55:20 mysqld ended
081130 07:55:20 mysqld ended
Starting mysqld daemon with databases from /opt/zimbra/logger/db/data
081130 07:59:00 mysqld started
081130 7:59:00 InnoDB: Started; log sequence number 0 43655
081130 7:59:00 [Warning] Neither --relay-log nor --relay-log-index were used; so replication may break when this MySQL server acts as a slave and has his hostname changed!! Please use '--relay-log=/opt/zimbra/logger/db/mysql-relay-bin' to avoid this problem.
081130 7:59:00 [ERROR] Failed to open the relay log './mail2-relay-bin.000001' (relay_log_pos 4)
081130 7:59:00 [ERROR] Could not find target log during relay log initialization
081130 7:59:00 [ERROR] Failed to initialize the master info structure
081130 7:59:00 [Note] /opt/zimbra/logger/mysql/libexec/mysqld: ready for connections.
Version: '5.0.51a-log' socket: '/opt/zimbra/logger/db/mysql.sock' port: 7307 Source distribution
081205 10:45:32 [Note] /opt/zimbra/logger/mysql/libexec/mysqld: Normal shutdown
081205 10:45:34 InnoDB: Starting shutdown...
081205 10:45:35 InnoDB: Shutdown completed; log sequence number 0 43655
081205 10:45:35 [Note] /opt/zimbra/logger/mysql/libexec/mysqld: Shutdown complete
STOPPING server from pid file /opt/zimbra/logger/db/mysql.pid
081205 10:45:35 mysqld ended
081205 10:45:35 mysqld ended
Starting mysqld daemon with databases from /opt/zimbra/logger/db/data
081205 10:45:43 mysqld started
081205 10:45:43 InnoDB: Started; log sequence number 0 43655
081205 10:45:43 [Warning] Neither --relay-log nor --relay-log-index were used; so replication may break when this MySQL server acts as a slave and has his hostname changed!! Please use '--relay-log=/opt/zimbra/logger/db/mysql-relay-bin' to avoid this problem.
081205 10:45:43 [ERROR] Failed to open the relay log './mail2-relay-bin.000001' (relay_log_pos 4)
081205 10:45:43 [ERROR] Could not find target log during relay log initialization
081205 10:45:43 [ERROR] Failed to initialize the master info structure
081205 10:45:43 [Note] /opt/zimbra/logger/mysql/libexec/mysqld: ready for connections.
Version: '5.0.51a-log' socket: '/opt/zimbra/logger/db/mysql.sock' port: 7307 Source distribution
*** logswatch version 3.2.3 (pid:31083) started at Sat Dec 6 04:02:55 CST 2008
DBI connect('database=zimbra_logger;mysql_read_default_file=/opt/zimbra/conf/my.
logger.cnf;mysql_socket=/opt/zimbra/logger/db/mysql.sock','zimbra',...) failed:
Too many connections at /opt/zimbra/libexec/zmlogger line 176
Can't call method "prepare" on unblessed reference at /opt/zimbra/libexec/zmlogg
er line 57.
[zimbra@mail2 ~]$ tail -44 log/logger_myslow.log
# User@Host: zimbra[zimbra] @ localhost []
# Query_time: 0 Lock_time: 0 Rows_sent: 1 Rows_examined: 70059
select avg(available) from disk_status where server = 'mail.carleton.edu' and device = '/dev/mapper/store2p1' and time >= '2008-12-05 03:00:00' and time <= '2008-12-05 04:00:00';
# User@Host: zimbra[zimbra] @ localhost []
# Query_time: 0 Lock_time: 0 Rows_sent: 1 Rows_examined: 70059
select avg(total) from disk_status where server = 'mail.carleton.edu' and device = '/dev/mapper/store3p1' and time >= '2008-12-05 03:00:00' and time <= '2008-12-05 04:00:00';
# User@Host: zimbra[zimbra] @ localhost []
# Query_time: 0 Lock_time: 0 Rows_sent: 1 Rows_examined: 70059
select avg(available) from disk_status where server = 'mail.carleton.edu' and device = '/dev/mapper/store3p1' and time >= '2008-12-05 03:00:00' and time <= '2008-12-05 04:00:00';
# User@Host: zimbra[zimbra] @ localhost []
# Query_time: 0 Lock_time: 0 Rows_sent: 1 Rows_examined: 70059
select avg(total) from disk_status where server = 'mail.carleton.edu' and device = '/dev/mapper/store4p1' and time >= '2008-12-05 03:00:00' and time <= '2008-12-05 04:00:00';
# User@Host: zimbra[zimbra] @ localhost []
# Query_time: 0 Lock_time: 0 Rows_sent: 1 Rows_examined: 70059
select avg(available) from disk_status where server = 'mail.carleton.edu' and device = '/dev/mapper/store4p1' and time >= '2008-12-05 03:00:00' and time <= '2008-12-05 04:00:00';
# User@Host: zimbra[zimbra] @ localhost []
# Query_time: 0 Lock_time: 0 Rows_sent: 1 Rows_examined: 70059
select avg(total) from disk_status where server = 'mail.carleton.edu' and device = '/dev/md1' and time >= '2008-12-05 03:00:00' and time <= '2008-12-05 04:00:00';
# User@Host: zimbra[zimbra] @ localhost []
# Query_time: 0 Lock_time: 0 Rows_sent: 1 Rows_examined: 70059
select avg(available) from disk_status where server = 'mail.carleton.edu' and device = '/dev/md1' and time >= '2008-12-05 03:00:00' and time <= '2008-12-05 04:00:00';
# User@Host: zimbra[zimbra] @ localhost []
# Query_time: 0 Lock_time: 0 Rows_sent: 1 Rows_examined: 70059
select avg(total) from disk_status where server = 'mail.carleton.edu' and device = '/dev/md0' and time >= '2008-12-05 03:00:00' and time <= '2008-12-05 04:00:00';
# Time: 081205 4:00:13
# User@Host: zimbra[zimbra] @ localhost []
# Query_time: 1 Lock_time: 0 Rows_sent: 1 Rows_examined: 70059
select avg(available) from disk_status where server = 'mail.carleton.edu' and device = '/dev/md0' and time >= '2008-12-05 03:00:00' and time <= '2008-12-05 04:00:00';
# User@Host: zimbra[zimbra] @ localhost []
# Query_time: 0 Lock_time: 0 Rows_sent: 1 Rows_examined: 70059
select avg(total) from disk_status where server = 'mail.carleton.edu' and device = '/dev/mapper/vgLocal-lvVar' and time >= '2008-12-05 03:00:00' and time <= '2008-12-05 04:00:00';
# User@Host: zimbra[zimbra] @ localhost []
# Query_time: 0 Lock_time: 0 Rows_sent: 1 Rows_examined: 70059
select avg(available) from disk_status where server = 'mail.carleton.edu' and device = '/dev/mapper/vgLocal-lvVar' and time >= '2008-12-05 03:00:00' and time <= '2008-12-05 04:00:00';
# User@Host: zimbra[zimbra] @ localhost []
# Query_time: 0 Lock_time: 0 Rows_sent: 1 Rows_examined: 271
select period_start from disk_aggregate where period='day' order by period_start desc limit 1;
# Time: 081205 4:00:15
# User@Host: zimbra[zimbra] @ localhost []
# Query_time: 0 Lock_time: 0 Rows_sent: 0 Rows_examined: 0
delete from disk_status where time < '2008-11-04 00:00:00';
/opt/zimbra/logger/mysql/libexec/mysqld, Version: 5.0.51a-log (Source distribution). started with:
Tcp port: 7307 Unix socket: /opt/zimbra/logger/db/mysql.sock
Time Id Command Argument