RE: Replication recovery

2009-10-07 Thread Gavin Towey
[mailto:bcantw...@firescope.com] Sent: Wednesday, October 07, 2009 11:12 AM To: Gavin Towey Cc: mysql@lists.mysql.com Subject: Re: Replication recovery When only one machine dies I do send the new master position info to the still running slave, and yes, it does the trick. My main challenge is when A

Re: Replication recovery

2009-10-07 Thread Bryan Cantwell
When only one machine dies I do send the new master position info to the still running slave, and yes, it does the trick. My main challenge is when A dies and is dead for 24 hours and then B dies too. Now A is already out of synch with B and now B has a new log position... Doesnt this make A now

RE: Replication recovery

2009-10-07 Thread Gavin Towey
In the case that one machine has a power failure, then starts a new binlog, you just have to set the slave to start replicating from the beginning of that binlog. That's easy to detect and repair with a daemon script. Even if both machines die, it'll be a similar scenario. Regards, Gavin Towe

RE: Replication recovery on restart

2009-07-31 Thread Gavin Towey
...@firescope.com] Sent: Friday, July 31, 2009 12:51 PM To: mysql@lists.mysql.com Subject: RE: Replication recovery on restart Yes I am trying to simulate total failure. In this test case I am using 2 Virtual Machines and I just kill one and then when it comes back I have the challenge described

RE: Replication recovery on restart

2009-07-31 Thread Cantwell, Bryan
- From: Gavin Towey [mailto:gto...@ffn.com] Sent: Friday, July 31, 2009 1:21 PM To: Cantwell, Bryan; mysql@lists.mysql.com Subject: RE: Replication recovery on restart Bryan, How are you restarting mysql? In the case a master crashes, it's definitely common for the slave to miss the fact tha

RE: Replication recovery on restart

2009-07-31 Thread Gavin Towey
ssage- From: Cantwell, Bryan [mailto:bcantw...@firescope.com] Sent: Friday, July 31, 2009 10:08 AM To: mysql@lists.mysql.com Subject: RE: Replication recovery on restart Before I simulate a total server failure, master1 is using binary file msyql-bin1 position 2231467 and it's slave mas

RE: Replication recovery on restart

2009-07-31 Thread Cantwell, Bryan
ssage- From: Gavin Towey [mailto:gto...@ffn.com] Sent: Thursday, July 30, 2009 5:08 PM To: Cantwell, Bryan; mysql@lists.mysql.com Subject: RE: Replication recovery on restart Hi Bryan, Please define "out of whack." Tell us exactly what you're doing when you restart, and what the

RE: Replication recovery on restart

2009-07-30 Thread Gavin Towey
Hi Bryan, Please define "out of whack." Tell us exactly what you're doing when you restart, and what the replication state is before and after, and where the updates are coming from. Regards, Gavin Towey -Original Message- From: Cantwell, Bryan [mailto:bcantw...@firescope.com] Sent: T