Re: Point in time recovery with MySQL Cluster
Hello Mitchell,
The process is as follows:
1) backup database using START BACKUP
2) at some later point, before the restore make a backup of mysql.ndb_binlog_index table and binlogs. (perhaps hourly)
3) (failure/error occurs)
4) clear the ndbd nodes (--initial)
5) remove or truncate mysql.ndb_binlog_index
6) execute ndb_restore of all data (this populates the ndb_apply_status table)
7) restore the ndb_binlog_index table from mysql dump and binlog files from backup if necessary
8) Find current applied epoch : SELECT @LASTEPOCH:=MAX(epoch) FROM mysql.ndb_apply_status;
9) Find corresponding binlog position : SELECT Position, @FIRSTFILE:=File FROM mysql.ndb_binlog_index WHERE epoch > @LASTEPOCH ORDER BY epoch ASC LIMIT 1;
10) replay the binlog events using mysqlbinlog from the given file and position up to the point of the failure.
Subject
Views
Written By
Posted
5222
July 18, 2009 12:07PM
Re: Point in time recovery with MySQL Cluster
3279
September 04, 2009 02:00PM
2247
November 15, 2009 08:27PM
1636
November 16, 2009 04:04PM
1681
November 16, 2009 05:46PM
1772
November 17, 2009 08:29AM
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.