OK - at the risk of answering my own question, how does this sound:
- Start the replicator on the master - this will start to fill up the history table.
- Bring down slave, make a copy, and record details from master.info on where replication has got to.
- Find the seqno on the master which corresponds to the position in master.info: eg, if position is 693:
| Code: |
select * from history where eventid like '%693%';
|
will cut down the number of rows to review.
- Create a new slave, removing the native replication config (master.info, any binlogs, and relay binlogs, relay.info).
- Do a mysqldump of the tungsten database, without any data, and import that into a new tungsten database on the slave.
- Create a row in the trep_commit_seqno table, with the seqno found in stage 3.
- Start the replicator on the new slave.
This should start replication from the right point. Any new slaves can now be provisioned from the existing slave.
I've managed to get this working in my test environment, but does this sound good to those with more experience with this. Any pitfalls I might need to know about?
Thanks
Chris