Snapshot replication copies from a source volume to a destination volume using the function of ETERNUS Disk storage system.
The ordinary snapshot replication using OPC performs the following two types of processing:
When a copy is created, the snapshot processing (OPC) from the source volume to the replica volume is executed with swsrpmake (Replication creation command).
swsrpmake (Replication creation command) flushes the file system buffer of the source volume.
This process determines the scope of original data (for details, refer to "Appendix C Pre-processing and Post-processing of Replication"). Refer to steps (1). and (2). in the figure below.
If the user wants to recreate a replica, only swsrpmake (Replication creation command) is required. If the previous snapshot processing is in progress, it is stopped and a new snapshot process is started.
Snapshot replication is completed when the replication creation command is issued. During snapshot processing performed internally by the ETERNUS Disk storage system, if there is an attempt to access an area where copying is not yet complete at the replication destination, priority is given to copying the accessed area and, after it is copied, access is permitted ((a) in the figure).
If there is an attempt to update the replication source data, the pre-update data at the replication source is first copied to the replication destination, and then the replication source data is updated ((b) in the figure).
These operations make it seem that creation of the replica is completed almost instantly.
The following types of snapshot replication are available, depending on the used Advanced Copy functions:
Ordinary snapshot replication
Ordinary snapshot replication copies all the data at a certain point in time (logical copy) to the copy destination disk area.
Point
The copy destination disk must be the same size or larger than the copy source disk.
The copying time is the time taken to copy all the data.
QuickOPC type replication
The initial replication copies all the data at a certain point in time (logical copy) to the copy destination disk area.
Subsequent replications copy only the data that has been updated since the previous replication.
This enables large reductions in the time taken for physical copying.
Point
The copy destination disk must be the same size or larger than the copy source disk.
The copying time for subsequent replications is the time taken to copy the differential data.
Hardware using the QuickOPC function records the updates made to the copy source or destination after the completion of OPC logical copying. The status in which the hardware records and displays updates is referred to as "tracking status".
Note
The QuickOPC function cannot be used for replicating SDX objects in the units of logical volumes.
SnapOPC type replication
SnapOPC is a function that enables only data that has been updated in the copy source disk after a certain point in time (a logical copy) to be copied to the destination disk.
Point
The copy destination disk can be smaller than the copy source disk.
The copy time is the time needed to copy data that has been updated.
Information
The SnapOPC copy destination disk is called "Snap Data Volume".
In some ways, SnapOPC is superior to conventional OPC, since copy times are shorter and copy destination volumes can have a smaller capacity. However, there are problems in terms of access performance and the reliability of copy data, as explained in the following:
Since the data copy from the source to the destination occurs inside SnapOPC, the access performance of the copy source is sometimes reduced, as well as the access performance of the copy destination.
Copy data is made up of two parts: the "copy source" and "updated part of the copy source". Therefore, a hardware fault with the copy source can cause copy data to be lost.
Additionally, performing a restoration is equivalent to losing the "copy source" data, and so even if there are multiple "updated parts of the copy source", these become invalid from the point when the restoration is performed.
These points suggest that SnapOPC should be used in temporary areas for tape backups, for systems where access performance is not an important consideration.
SnapOPC+ type replication
When data is changed, the SnapOPC+ function copies only the original data of the changed data set, and saves it in snap generation units.
The following figure shows the processing flow of the SnapOPC+ function.
Logical copy is performed from the copy source to the copy destination.
After the logical copy, a SnapOPC+ session is set between the copy source and the copy destination.
After the SnapOPC+ session is set, only the original data of the changed data at the copy source is copied to the copy destination (copy-on-write processing).
When the next copy destination volume is created, the copy-on-write processing is stopped.
Then, a SnapOPC+ session is set between the copy source volume and the new copy destination volume, and copy-on-write processing is performed.
Each time a copy destination volume is created, a snap generation number is assigned to that volume.
(Snap generation numbers are assigned in sequence from 1, starting with the oldest.)
Since SnapOPC+ copy-on-write processing is performed only between the copy source volume and the latest copy destination volume, there is no effect on access performance to the copy source volume even when the number of copy destination volumes increases.
In addition, space at the copy destination volume is required only for the amount of original data (for data updated immediately prior) and for hardware management. Thus, use of SnapOPC+ enables the saved data area to be kept to the minimum area required.
Snapshot replication that uses SnapOPC+ is called "SnapOPC+ replication".
Point
It is recommended to set the Snap Data Pool using the ETERNUS Web GUI when using SnapOPC+.
For details, refer to "7.1.1.2 Snap Data Volume and Snap Data Pool".
The following figure shows use of SnapOPC+ to perform 1:N replication operations between a copy source volume (1) and multiple snap generations (N).
Due to the mechanism and features of SnapOPC+, it is assumed that it will be used as a backup to enable recovery from minor errors, such as operator mistakes and software errors. In order to be prepared for hardware errors, Fujitsu recommends that SnapOPC+ be used in conjunction with the copying of all data by means of OPC/QuickOPC/EC/REC.
The following table lists the functional differences between SnapOPC and SnapOPC+.
Function | SnapOPC | SnapOPC+ |
---|---|---|
Copy method | Copy-on-write method | Copy-on-write method |
Copy time | Instant | Instant |
Copy destination volume type | Snap Data Volume | Snap Data Volume |
1:N operation | Available | Available (recommended): Access performance to the copy source volume is better than with SnapOPC. Also, compared with SnapOPC, less physical space is required at the copy destination volume. |
Snap generation numbers | No | Yes |
Restoration using the replication function | Yes | Yes (*1) |
Usefulness |
|
|
*1: Only available when using ETERNUS Disk storage system that supports restoration using replication.
Snap Data Volume
The Snap OPC/SnapOPC+ copy destination volume is called "Snap Data Volume". Regarding this copy destination volume (Snap Data Volume), the capacity that can be seen in the host is called "logical capacity", and the capacity that has been physically configured is called "physical capacity".
The setting for logical capacity is equal to or greater than for the copy source capacity.
Physical capacity has control information (a conversion table) for managing backup data, as well as capacity for the storage of backup data. The capacity for this control information is 0.1% that of logical capacity.
Note
When there is insufficient Snap Data Volume capacity, it is not possible to access source volume (Snap Data Volume).
When there is insufficient capacity, refer to "11.4.2.3 Troubleshooting when a lack of free space has occurred in the Snap Data Volume or Snap Data Pool".
Snap Data Pool
In ETERNUS Disk storage system, it is possible to set a Snap Data Pool, which is part of the Snap Data Volume group functionality.
When there is insufficient Snap Data Volume capacity and a Snap Data Pool is set, some area is added from the Snap Data Pool automatically.
Note
When there is insufficient Snap Data Pool capacity, it is not possible to access the copy destination (Snap Data Volume).
When there is insufficient capacity, refer to "11.4.2.3 Troubleshooting when a lack of free space has occurred in the Snap Data Volume or Snap Data Pool".