Method and system for backing up and restoring data of a node in a distributed system
First Claim
1. A computer-readable medium having computer executable instructions for performing steps for backing up and restoring a data set of a node in a distributed system, comprising:
- initiating a back up operation of an original data set, the original data set having state data indicating that the original data set is original data rather than backup data;
before making a backup copy of the original data set, changing the state data of the original data set to indicate that the original data set is backup dataafter changing the state data of the original data set, taking a snapshot of the contents of the original data set, including the state data indicating that the original data set is backup data, to generate a backup copy, the contents of the original data set including a plurality of changes each identified by a replication identification number of the node and a serial number; and
after taking the snapshot, resetting the state data of the original data set to again indicate that the original data set is original data rather than backup data.
2 Assignments
0 Petitions
Accused Products
Abstract
A method and system for backing up and restoring a data set on a node of a distributed system prevents conflicts in data replication caused by restoration from backup data. Before a node is backed up, state data of the data set of the node are set to mark the data set as “backed up.” The data set also stores a lowest serial number for uncommitted changes. A snapshot of the data set, including the state data, of the node is then taken to provide a backup copy. When the backup copy is later used to restore the data set of the node, the “backed up” value of the state data of the restored data set serves as a notification to the replication server of the node that the data set has been restored, so that the replication server will switch to a new Node ID for labeling new changes for replication to other nodes in the distributed system.
34 Citations
23 Claims
-
1. A computer-readable medium having computer executable instructions for performing steps for backing up and restoring a data set of a node in a distributed system, comprising:
-
initiating a back up operation of an original data set, the original data set having state data indicating that the original data set is original data rather than backup data; before making a backup copy of the original data set, changing the state data of the original data set to indicate that the original data set is backup data after changing the state data of the original data set, taking a snapshot of the contents of the original data set, including the state data indicating that the original data set is backup data, to generate a backup copy, the contents of the original data set including a plurality of changes each identified by a replication identification number of the node and a serial number; and after taking the snapshot, resetting the state data of the original data set to again indicate that the original data set is original data rather than backup data. - View Dependent Claims (2, 3, 4, 5, 6, 7, 22, 23)
-
-
8. A method for backing up and restoring contents of a data set of a node in a distributed system, comprising:
-
initiating a back up operation of an original data set, original the data set having state data indicating that the original data set is original data rather than backup data; before making a backup copy of the original data set, changing state data of the original data set to indicate that the original data set backup data; after changing the state data of the original data set, taking a snapshot of the contents of the original data set, including the state data indicating that the original data set is backup data, to generate a backup copy, the contents of the data set including a plurality of changes each identified by a replication identification number of the node and a serial number; and after taking the snapshot, resetting the state data of the original data set to again indicate that the original data set is original data rather than backup data. - View Dependent Claims (9, 10, 11, 12, 13, 14)
-
-
15. A computer system for acting as a node in a distributed system, the computer system comprising:
-
a data manager for maintaining a data set containing a plurality of changes each identified by a replication identification number of the node and a serial number, the original data set having state data indicating that the original data rather than backup data; a replication server for replicating changes made to the original data set to other nodes in the distributed system; a backup server for generating a backup copy of the original data set, the backup server being programmed to;
(i) cause the state data of the original data set to be set to indicate that the original data set is backup data before making a backup copy of the original data set, (ii) after changing the state data of the original data set, take a snapshot of the contents of the original data set, including the state data indicating that the data set is backup data, to generate the backup copy of original data set, and (iii) cause the state data of the original data set to be reset after taking the snapshot to again indicate that the original data set is original data rather than backup data. - View Dependent Claims (16, 17, 18, 19, 20, 21)
-
Specification