MySQL Forums
Forum List  »  Replication

Re: Is it possible to create a slave from backup w/o stopping the running database
Posted by: Rick James
Date: July 29, 2014 06:43PM

2TB before thinking about creating a slave? Tsk, tsk.

Do you have LVM set up? (Probably not.)

The Percona toolkit may have some tools that can come close to achieving the no-downtime goal. Start with their Xtrabackup.

Given that you have a cold + hot backups, the hot backups should have the master position. It seems like you could:
1. build the slave, but not yet connect it to the master
2. populate it with the cold backup
3. apply the incrementals
4. do a CHANGE MASTER to the master position given in the last incremental
5. wait for the slave to finish catching up.

(This assumes you have not purged the binlogs since the last incremental.)

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Is it possible to create a slave from backup w/o stopping the running database
920
July 29, 2014 06:43PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.