Hello.
I am working with the MySQL 5.0.37-patch and try to configure the
mirror binlogs, but i can`t
At the my.cnf this is my parameters:
# Replication Master Server (default)
# binary logging is required for replication
server-id=1
log-bin = /DATABASE/mysql/data/mtest01lnx-bin-log
log-slave-updates
log-bin-index = /DATABASE/mysql/data/mtest01lnx-bin-log.index
relay-log=/DATABASE/mysql/data/mtest01lnx-relay
relay-log-info-file = /DATABASE/mysql/data/mtest01lnx-relay
relay-log-index = /DATABASE/mysql/data/mtest01lnx-relay.index
auto_increment_increment=10
auto_increment_offset=1
master-host = 10.90.40.61
master-user = repl
master-password = xxxxx
# Opciones de los patches de google
rpl_semi_sync_enabled = 1
rpl_semi_sync_slave_enabled = 1
rpl_mirror_binlog_enabled = 1
#rpl_mirror_binlog_no_replicate
sync-mirror-binlog = 1
sync-binlog = 1
server-id=2
log-bin = /DATABASE/mysql/data/mtest02lnx-bin-log
log-slave-updates
log-bin-index = /DATABASE/mysql/data/mtest02lnx-bin-log.index
relay-log=/DATABASE/mysql/data/mtest02lnx-relay
relay-log-info-file = /DATABASE/mysql/data/mtest02lnx-relay
relay-log-index = /DATABASE/mysql/data/mtest02lnx-relay.index
auto_increment_increment=10
auto_increment_offset=2
master-host = 10.90.40.60
master-user = repl
master-password = xxxxx
# Opciones de los patches de google
rpl_semi_sync_enabled = 1
rpl_semi_sync_slave_enabled = 1
rpl_mirror_binlog_enabled = 1
#rpl_mirror_binlog_no_replicate
sync-mirror-binlog = 1
sync-binlog = 1
But when the replication process begin, at the error.log i can see:
080811 19:00:29 [Note] Start semi-sync binlog_dump to slave_server(2),
pos(mtest01lnx-bin-log.000001, 98)
080811 19:00:29 [ERROR] Re-serving an already served binlog file.
080811 19:00:29 [ERROR] End binlog_dump in error: 2
and at the second server:
080811 19:00:29 [Note] Slave I/O thread: Failed reading log event,
reconnecting to retry, log 'mtest01lnx-bin-log.000001' position 98
080811 19:00:29 [Note] Slave: connected to master
'
re...@10.90.40.60:3306',replication resumed in log 'mtest01lnx-bin-log.
000001' at position 98
080811 19:00:30 [ERROR] Error reading packet from server: Error on
close of 'UNOPENED' (Errcode: 9) ( server_errno=4)
Can anyone say my if the config is correct ?
Regards