| | 5 | |
| | 6 | = 20110801/1505 = |
| | 7 | |
| | 8 | ippdb03 crashed often during the last weekend. SHOW SLAVE STATUS\G showed this error message: |
| | 9 | {{{ |
| | 10 | *************************** 1. row *************************** |
| | 11 | Slave_IO_State: Waiting for master to send event |
| | 12 | Master_Host: ippdb01.ifa.hawaii.edu |
| | 13 | Master_User: repl_gpc1 |
| | 14 | Master_Port: 3306 |
| | 15 | Connect_Retry: 60 |
| | 16 | Master_Log_File: mysqld-bin.020270 |
| | 17 | Read_Master_Log_Pos: 962746384 |
| | 18 | Relay_Log_File: mysqld-relay-bin.000005 |
| | 19 | Relay_Log_Pos: 24123883 |
| | 20 | Relay_Master_Log_File: mysqld-bin.020269 |
| | 21 | Slave_IO_Running: Yes |
| | 22 | Slave_SQL_Running: No |
| | 23 | Replicate_Do_DB: gpc1,czardb,ippadmin,isp |
| | 24 | Replicate_Ignore_DB: |
| | 25 | Replicate_Do_Table: |
| | 26 | Replicate_Ignore_Table: |
| | 27 | Replicate_Wild_Do_Table: |
| | 28 | Replicate_Wild_Ignore_Table: |
| | 29 | Last_Errno: 0 |
| | 30 | Last_Error: Could not parse relay log event entry. The possible reasons are: the master's binary log is corrupted (you can check this by running 'mysqlbinlog' on the binary log), the slave's relay log is corrupted (you can check this by running 'mysqlbinlog' on the relay log), a network problem, or a bug in the master's or slave's MySQL code. If you want to check the master's binary log or slave's relay log, you will be able to know their names by issuing 'SHOW SLAVE STATUS' on this slave. |
| | 31 | Skip_Counter: 1 |
| | 32 | Exec_Master_Log_Pos: 24123745 |
| | 33 | Relay_Log_Space: 2036505138 |
| | 34 | Until_Condition: None |
| | 35 | Until_Log_File: |
| | 36 | Until_Log_Pos: 0 |
| | 37 | Master_SSL_Allowed: No |
| | 38 | Master_SSL_CA_File: |
| | 39 | Master_SSL_CA_Path: |
| | 40 | Master_SSL_Cert: |
| | 41 | Master_SSL_Cipher: |
| | 42 | Master_SSL_Key: |
| | 43 | Seconds_Behind_Master: NULL |
| | 44 | }}} |
| | 45 | |
| | 46 | I googled a bit and found that whic fixed the problem: http://www.mysqlperformanceblog.com/2008/08/02/troubleshooting-relay-log-corruption-in-mysql/ |
| | 47 | |
| | 48 | Precisely I did: {{{change master to master_log_file='mysqld-bin.020269',master_log_pos=24123745;}}} |
| | 49 | |
| | 50 | The problem seems to have been fixed |
| | 51 | |