Bug #46793 | Slave Fail with "Errno: 1594,Relay log read failure" | ||
---|---|---|---|
Submitted: | 18 Aug 2009 19:14 | Modified: | 6 Oct 2009 7:57 |
Reporter: | James Chen | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Replication | Severity: | S2 (Serious) |
Version: | v 5.1.37 | OS: | Linux (CentOS 5.0) |
Assigned to: | CPU Architecture: | Any | |
Tags: | Relay log read failure, replication, salve |
[18 Aug 2009 19:14]
James Chen
[18 Aug 2009 19:16]
James Chen
I think this may a bug ,so can you explain it ,thank you!
[19 Aug 2009 5:25]
Sveta Smirnova
Thank you for the report. Are all servers of same version 5.1.37 or version of master/slave is different? Could you also please provide configuration files from all servers?
[19 Aug 2009 14:10]
James Chen
All servers are the same version of 5.1.37. ====[ Hareware information ]============================================= [mas1] processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 15 model name : Intel(R) Xeon(R) CPU 3060 @ 2.40GHz stepping : 6 cpu MHz : 1596.000 cache size : 4096 KB MemTotal: 8182632 kB MemFree: 6639432 kB Buffers: 188288 kB Cached: 1138488 kB SwapCached: 0 kB Active: 1068516 kB Inactive: 386196 kB [slv1 & slv2 are same hardware] processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 15 model name : Intel(R) Xeon(R) CPU 3060 @ 2.40GHz stepping : 6 cpu MHz : 1596.000 cache size : 4096 KB MemTotal: 4051832 kB MemFree: 1763760 kB Buffers: 171096 kB Cached: 1947696 kB SwapCached: 0 kB Active: 1025528 kB Inactive: 1139848 kB ====[ version information ]============================================= [root@slv2 ~]#mysql -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 158 Server version: 5.1.37-log MySQL Community Server (GPL) by Remi mysql> select version(); +------------+ | version() | +------------+ | 5.1.37-log | +------------+ 1 row in set (0.00 sec) ====[ (mas1)Master Configure file ]============================================= [mysqld] datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.sock user=mysql log-bin=mysql-bin server-id=200 innodb_flush_log_at_trx_commit=1 sync_binlog=1 # Default to using old password format for compatibility with mysql 3.x # clients (those using the mysqlclient10 compatibility package). old_passwords=1 max_connections=20480 wait_timeout=450000 max_allowed_packet=100M default-character-set=utf8 init_connect="SET NAMES UTF8;" [mysqld_safe] log-error=/var/log/mysqld.log pid-file=/var/run/mysqld/mysqld.pid ====[ (slv1)Slave Configure file ]============================================= [mysqld] datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.sock user=mysql log-bin=mysql-bin server-id=201 report-host=slv1.wis.lemon.cx # Default to using old password format for compatibility with mysql 3.x # clients (those using the mysqlclient10 compatibility package). max_connections=10240 #query_buffer=8M #myisam_sort_buffer_size=4M wait_timeout=50 #key_buffer=64M max_allowed_packet=100M default-character-set=utf8 init_connect="SET NAMES UTF8;" innodb_data_file_path=ibdata1:10M:autoextend [mysqld_safe] log-error=/var/log/mysqld.log pid-file=/var/run/mysqld/mysqld.pid ====[ (slv2)Slave Configure file ]============================================= [mysqld] datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.sock user=mysql log-bin=mysql-bin server-id=202 report-host=slv2.wis.lemon.cx # Default to using old password format for compatibility with mysql 3.x # clients (those using the mysqlclient10 compatibility package). max_connections=10240 #myisam_sort_buffer_size=4M wait_timeout=50 #key_buffer=64M max_allowed_packet=100M default-character-set=utf8 init_connect="SET NAMES UTF8;" innodb_data_file_path=ibdata1:10M:autoextend [mysqld_safe] log-error=/var/log/mysqld.log pid-file=/var/run/mysqld/mysqld.pid
[20 Aug 2009 12:24]
Susanne Ebrecht
Is the binlog format ROW, STATEMENT or MIXED?
[20 Aug 2009 17:36]
James Chen
3 of server's binlog set to statement by default. Until the problem happen all the time, I changed All of the 3 Sql server set to Mixed right now. But the problem is still there.
[21 Aug 2009 4:15]
Susanne Ebrecht
How is the setup? Is it: a) Master replicates to Slave 1 and Slave 1 replicates to Slave 2 b) Master replicates to Slave 1 and Master replicates to Slave 2 Which IP and which server ID have all Master and Slaves. Is there by accident same IP or same server ID ? Could it be that wrong my.cnf is used because a) slaves run on same machine b) another software installed a my.cnf and you didn't recognise it
[21 Aug 2009 17:36]
James Chen
=======[ Replication model ]===================== Master --> Slave(slv1) Master --> Slave(slv2) =======[ IP Setting ]===================== Master (mas1) 10.88.188.200 (server-id=200) slave (slv1) 10.88.188.201 (server-id=201) slave (slv2) 10.88.188.202 (server-id=202) =======[ Server runing status ]===================== All 3 of mysql run on different servers, and also got the right my.cnf.
[8 Sep 2009 8:52]
Sveta Smirnova
Thank you for the feedback. Everything looks same. Have you checked network errors on problem slave? You can find this information in OS error files. Also, please, run mysqlbinlog on problem relay log.
[6 Oct 2009 7:57]
James Chen
Finally, I re-install again, and problems just gone. However, thank you very much.