Is there a way to replicate master/slave without disturbing master for dump like mysqldump or cold copy of data files? I'm ok to bring down the instance only once for master to enable log-bin. But there is no feasibility for dump or even cold copy. As I have 400G of data and 1min down time only.
Asked
Active
Viewed 1,194 times
1 Answers
1
I would recommend Percona's Xtrabackup for this, especially since you mentioned all of your tables are InnoDB. From the page:
Percona XtraBackup is designed to make backups a seamless procedure without disrupting the performance of the server in a production environment.
The tool will allow you to take a backup without locking innodb tables. It will do a lock to copy any MyISAM tables (such as the tables mysql in the mysql database) but those shouldn't take long.
I cannot tell you how long it will take on 400GB database, but it should do it without downtime.
Derek Downey
- 23,568
- 11
- 79
- 104