Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
CREATING RESTORE COPY FROM COPY OF SOURCE DATA IN REPOSITORY HAVING SOURCE DATA AT DIFFERENT POINT-IN-TIMES
Document Type and Number:
WIPO Patent Application WO/2015/125030
Kind Code:
A1
Abstract:
A computer program product, system, and method for creating a restore copy (124) from a copy of source data (104) in a repository (110) having source data (104) at different point-in- times. All the source data (104) as of an initial point-in-time is copied to a repository (110). In response to completing point-in-time copies following the initial point-in-time, change information is transmitted to the repository (110) indicating changed data (120) in the source data (104) that changed between the point-in-time of the point-in-time copy and a subsequent point-in-time. For each point-in-time copy, copying changed source data comprising source data (104) indicated in the change information for the point-in-time copy as changed to the repository (110). A restore request is received to restore the source data (104) as of a restore point-in-time. The source data (104) in the repository (110) as of the restore point-in-time is copied from the repository (110) to a restore copy (124).

Inventors:
KISHI GREGORY TAD (US)
JAQUETTE GLEN ALAN (US)
Application Number:
PCT/IB2015/050225
Publication Date:
August 27, 2015
Filing Date:
January 12, 2015
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
IBM (US)
IBM UK (GB)
IBM CHINA INVEST CO LTD (CN)
International Classes:
G06F12/16
Foreign References:
US7284104B12007-10-16
CN103262043A2013-08-21
CN1740981A2006-03-01
CN102236589A2011-11-09
Attorney, Agent or Firm:
GRAHAM, Timothy (Intellectual Property LawHursley Park, Winchester Hampshire SO21 2JN, GB)
Download PDF:
Claims:
CLAIMS

1. A system for maintaining source data in a repository, comprising:

a processor; and

a computer readable storage medium including program instructions executed by the processor to perform operations, the operations comprising:

copying all the source data as of an initial point-in-time to a repository;

initiating point-in-time copies at different point-in-times of the source data following the initial point-in-time;

in response to completing each of the point-in-time copies, transmitting to the repository change information indicating changed data in the source data that changed between the point-in-time of the point-in-time copy and a subsequent point-in-time;

for each point-in-time copy, copying changed source data comprising source data indicated in the change information for the point-in-time copy as changed to the repository; receiving a restore request to restore the source data as of a restore point-in-time;

determining the source data in the repository as of the restore point-in-time; and copying the determined source data from the repository to a restore copy.

2. The system of claim 1, wherein the point-in-time copies are generated by a point-in- time copy program and wherein a repository copy program executed separately from the point-in-time copy program performs the operations of copying to the repository the change information, changed data, and the data at the subsequent point-in-time indicated in the change information as changed.

3. The system of either of the preceding claims, wherein the operations further comprising:

indicating for each point-in-time copy in the repository a repository offset for indicating an offset in the repository where the changed data for the point-in-time copy is written.

4. The system of any of the preceding claims, wherein the determining the source data as of the restore point-in-time determining source data units in the repository as of the restore time, wherein if the repository has multiple copies of a data unit for different point- in-time copies, including in the determined source data the data unit from the point-in-time copy closest to the restore time.

5. The system of any of the preceding claims, wherein copying the source data as of the initial point-in-time comprises:

creating a point-in-time copy at the initial point-in-time of the source data including change information indicating that all the source data has changed; and

transmitting to the repository the change information for the point-in-time copy at the initial point-in-time.

6. The system of claim 5, wherein the determining the source data as of the restore point-in-time to copy to the restore copy comprises:

initializing restore copy information indicating all the source data units as having not been copied to the restore copy;

for each point-in-time copy at or before the restore point-in-time, starting from the point-in-time copy closest to the restore time and considering point-in-time copies in reverse time order, performing:

determining the changed data units for the point-in-time copy that are indicated in the restore copy information as not yet copied, wherein the determined changed data units are included in the determined source data to copy;

using the repository offset for the point-in-time copy to determine a location in the repository at which the determined changed data units are stored; to the restore copy;

copying the changed data units from the determined location in the repository; and indicating in the restore copy information the determined changed data units as copied

7. The system of any of the preceding claims, wherein the operations further comprise: configuring an empty restore volume to which the data for the restore copy is copied, wherein the restore volume is available after all the data for the source data from the repository is copied to the restore volume.

8. A method for maintaining source data in a repository, the method comprising:

copying all the source data as of an initial point-in-time to a repository;

initiating point-in-time copies at different point-in-times of the source data following the initial point-in-time;

in response to completing each of the point-in-time copies, transmitting to the repository change information indicating changed data in the source data that changed between the point-in-time of the point-in-time copy and a subsequent point-in-time;

for each point-in-time copy, copying changed source data comprising source data indicated in the change information for the point-in-time copy as changed to the repository; receiving a restore request to restore the source data as of a restore point-in-time; determining the source data in the repository as of the restore point-in-time; and copying the determined source data from the repository to a restore copy

9. The method of claim 8, wherein the point-in-time copies are generated by a point-in- time copy program and wherein a repository copy program executed separately from the point-in-time copy program performs the operations of copying to the repository the change information, changed data, and the data at the subsequent point-in-time indicated in the change information as changed.

10. The method of either of claims 8 or 9, wherein the operations further comprising: indicating for each point-in-time copy in the repository a repository offset for indicating an offset in the repository where the changed data for the point-in-time copy is written.

11. The method of any of claims 8 to 10, wherein the determining the source data as of the restore point-in-time determining source data units in the repository as of the restore time, wherein if the repository has multiple copies of a data unit for different point-in-time copies, including in the determined source data the data unit from the point-in-time copy closest to the restore time.

12. The method of any of claims 8 to 11, wherein copying the source data as of the initial point-in-time comprises: creating a point-in-time copy at the initial point-in-time of the source data including change information indicating that all the source data has changed; and

transmitting to the repository the change information for the point-in-time copy at the initial point-in-time.

13. The method of claim 12, wherein the determining the source data as of the restore point-in-time to copy to the restore copy comprises:

initializing restore copy information indicating all the source data units as having not been copied to the restore copy;

for each point-in-time copy at or before the restore point-in-time, starting from the point-in-time copy closest to the restore time and considering point-in-time copies in reverse time order, performing:

determining the changed data units for the point-in-time copy that are indicated in the restore copy information as not yet copied, wherein the determined changed data units are included in the determined source data to copy;

using the repository offset for the point-in-time copy to determine a location in the repository at which the determined changed data units are stored; to the restore copy;

copying the changed data units from the determined location in the repository; and indicating in the restore copy information the determined changed data units as copied.

14. The method of any of claims 8 to 13, wherein the operations further comprise:

configuring an empty restore volume to which the data for the restore copy is copied, wherein the restore volume is available after all the data for the source data from the repository is copied to the restore volume.

15. A computer program product for maintaining source data in a repository, the computer program product comprising:

a computer readable storage medium readable by a processing circuit and storing instructions for execution by the processing circuit for performing a method according to any of claims 8 to 14.

16. A computer program stored on a computer readable medium and loadable into the internal memory of a digital computer, comprising software code portions, when said program is run on a computer, for performing the method of any of claims 8 to 14.

Description:
CREATING RESTORE COPY FROM COPY OF SOURCE DATA IN

REPOSITORY HAVING SOURCE DATA AT DIFFERENT POINT-IN-TIMES

TECHNICAL FIELD

[0001] The present invention relates to a computer program product, system, and method for creating a restore copy from a copy of source data in a repository having source data at different point-in-times.

BACKGROUND ART

[0002] In a storage environment, a storage controller may create point-in-time ("PiT") copies of a production volume using point-in-time copy techniques, such as the IBM® FlashCopy®, snapshot, etc. A point-in-time copy replicates data in a manner that appears instantaneous and allows a host to continue accessing the source volume while actual data transfers to the copy volume are deferred to a later time. The PiT copy appears

instantaneous because a "complete" response is returned to the copy operation in response to generating the relationship data structures without copying the data from the source to the target volumes. PiT copy techniques typically defer the transfer of the data in the source volume at the time the PiT copy relationship was established to the copy target volume until a write operation is requested to that data block on the source volume. Data transfers may also proceed as a background copy process with minimal impact on system performance. The PiT copy relationships that are immediately established in response to the PiT copy command include a bitmap or other data structure indicating the location of blocks in the volume at either the source volume or the copy volume. The PiT copy comprises the combination of the data in the source volume and the data to be overwritten by the updates transferred to the target volume. IBM, and FlashCopy are trademarks of International Business Machines Corporation, registered in many jurisdictions worldwide.

[0003] When an update to a block in the source volume involved in a PiT copy relationship is received, the copy of the track as of the point-in-time must be copied to a side file or the target volume before the new data for the track is written to the source volume, overwriting the point-in-time copy of the data. Creating a restore copy from a copy of source data in a repository having source data at different point-in-times is complicated. Therefore, there is a need in the art to address the aforementioned problem.

[0004] time copy and a subsequent point-in-time; for each point-in-time copy, copying changed source data comprising source data indicated in the change information for the point-in-time copy as changed to the repository; receiving a restore request to restore the source data as of a restore point-in-time; determining the source data in the repository as of the restore point-in-time; and copying the determined source data from the repository to a restore copy.

[0005] Viewed from a further aspect, the present invention provides a method for maintaining source data in a repository, the method comprising steps of: copying all the source data as of an initial point-in-time to a repository; initiating point-in-time copies at different point-in-times of the source data following the initial point-in-time; in response to completing each of the point-in-time copies, transmitting to the repository change information indicating changed data in the source data that changed between the point-in- time of the point-in-time copy and a subsequent point-in-time; for each point-in-time copy, copying changed source data comprising source data indicated in the change information for the point-in-time copy as changed to the repository; receiving a restore request to restore the source data as of a restore point-in-time; determining the source data in the repository as of the restore point-in-time; and copying the determined source data from the repository to a restore copy.

[0006] Viewed from a further aspect, the present invention provides a computer program product for maintaining source data in a repository, the computer program product comprising a computer readable storage medium readable by a processing circuit and storing instructions for execution by the processing circuit for performing a method for performing the steps of the invention.

[0007] Viewed from a further aspect, the present invention provides a computer program stored on a computer readable medium and loadable into the internal memory of a digital computer, comprising software code portions, when said program is run on a computer, for performing the steps of the invention.

BRIEF DESCRIPTION OF THE DRAWINGS

[0008] The present invention will now be described, by way of example only, with reference to preferred embodiments, as illustrated in the following figures:

FIG. 1 illustrates an embodiment of a storage environment, in accordance with a preferred embodiment of the present invention;

FIG. 2 illustrates an embodiment of storage controller point-in-time copy

information, in accordance with a preferred embodiment of the present invention;

FIG. 3 illustrates an embodiment of repository point-in-time copy information, in accordance with a preferred embodiment of the present invention;

FIG. 4 illustrates an embodiment of operations to create a repository having the source data and point-in-time information of the source data at different point-in-times, in accordance with a preferred embodiment of the present invention;

FIGs. 5a, 5b, and 5c illustrate examples of states of the source data and the repository at different point-in-times, in accordance with a preferred embodiment of the present invention;

FIG. 6 illustrates an embodiment of operations to create a restore copy, in accordance with a preferred embodiment of the present invention;

FIG. 7 illustrates an embodiment of operations to determine source data to copy to the restore copy, in accordance with a preferred embodiment of the present invention; and FIG. 8 illustrates a computing environment in which the components of FIG. 1 may be implemented, in accordance with the prior art, and in which a preferred embodiment of the present invention may be implemented.

DETAILED DESCRIPTION

[0009] Described embodiments provide techniques for creating a repository to maintain a full copy of the source data and point-in-time copies of the source data to allow the source data to be restored from the repository at different point-in-times. Further, with SUMMARY

[0010] Provided are a computer program product, system, and method for creating a restore copy from a copy of source data in a repository having source data at different point-in- times. All the source data as of an initial point-in-time is copied to a repository. Point-in- time copies are initiated at different point-in-times of the source data following the initial point-in-time. In response to completing each of the point-in-time copies, transmitting to the repository change information indicating changed data in the source data that changed between the point-in-time of the point-in-time copy and a subsequent point-in-time. For each point-in-time copy, copying changed source data comprising source data indicated in the change information for the point-in-time copy as changed to the repository. A restore request is received to restore the source data as of a restore point-in-time. A determination is made of the source data in the repository as of the restore point-in-time and the determined source data is copied from the repository to a restore copy.

[0011] Viewed from a first aspect, the present invention provides a system for maintaining source data in a repository, comprising: a processor; and a computer readable storage medium including program instructions executed by the processor to perform operations, the operations comprising: copying all the source data as of an initial point-in-time to a repository; initiating point-in-time copies at different point-in-times of the source data following the initial point-in-time; in response to completing each of the point-in-time copies, transmitting to the repository change information indicating changed data in the source data that changed between the point-in-time of the point-in- described embodiments, the operations to maintain the point-in-time ("PiT") copy information in the repository and perform the restore operations may be performed by a program component separate from the storage controller logic creating the PiT copies from the source data, so that the repository is separately maintained, used, and managed from the storage controller.

[0012] FIG. 1 illustrates an embodiment of a data storage environment having a storage controller 100 managing access to a first storage 102 that includes source data 104, such as a production volume used by different host systems. A host 106 includes a repository copy manager program 108 to manage the copying of the source data 104 to a repository 110 in a second storage 112. The storage controller 100, host 106, and second storage 112 may communicate over a network 114.

[0013] The storage controller 100 includes a point-in-time ("PiT") copy manager 116 to create point-in-time copies of the source data 104, e.g., FlashCopy, snapshot, etc. When creating a PiT copy, the PiT copy manager 116 generates PiT copy information 200a on the PiT copy created as of a point-in-time. The storage controller 100 further includes an operating system 118, including the code and logic to manage Input/Output ("I/O") requests to the source data 104. The operating system 118 may configure the source data 104 in one or more volumes and data is stored in data units, such as tracks, logical block addresses (LB As), extents, etc. The PiT copy manager 116 may be a copy service supplied with the operating system 118.

[0014] The storages 102 and 112 may store tracks in a Redundant Array of Independent Disks (RAID) configuration where strides of tracks are written across multiple storage devices comprising the storages 102 and 112. The storages 102 and 112 may each comprise one or more storage devices known in the art, such as interconnected storage devices, where the storage devices may comprise hard disk drives, solid state storage device (SSD) comprised of solid state electronics, such as a EEPROM (Electrically Erasable

Programmable Read-Only Memory), flash memory, flash disk, Random Access Memory (RAM) drive, storage-class memory (SCM), etc., magnetic storage disk, optical disk, tape, etc.

[0015] The network 114 may comprise a network such as one or more interconnected Local Area Networks (LAN), Storage Area Networks (SAN), Wide Area Network (WAN), peer- to-peer network, wireless network, etc.

[0016] The PiT copy manager 116 performs a PiT copy operation that replicates data in a manner that appears instantaneous and allows a process to continue accessing the source volume while actual data transfers to the copy volume are deferred to a later time. The PiT copy appears instantaneous because complete is returned to the copy operation in response to generating the relationship data structures without copying the data. [0017] The repository copy manager 108 copies the source data 104 at different point-in- times to the repository 110, including an initial copy of all the source data, and copies the PiT copy information 200 at the storage controller 100 to the repository 110 to store as repository PiT copy information 300 in the repository 110. The repository copy manager 108 uses the PiT copy information 300 to determine changed data at the source data 104 to copy to the repository 110 in the change data 120. To copy all the source data as of an initial point-in-time to the repository 110, the repository copy manager 108 may modify the change information for the initial PiT copy, or PiT bitmap, having a bit for each data unit in the source data 104 indicating whether the data has changed to generate modified initial change information 200 0 ' that indicates that each data unit in the source data 104 has changed. The repository copy manager 108 may then copy all the source data 104 indicated in the modified initial change information 200 0 ' to the changed data 120 in the repository 110 to provide a full copy of the source data 104 as of the initial point-in-time in the repository. The repository copy manager 108 may use the change information in PiT copy information 200 for PiT copies following the initial point-in-time to copy changed data at different point-in- times to the changed data 120 in the repository 110.

[0018] With described embodiments, the repository copy manager 108 maintains a separate full copy of the source data 104 and the PiT copy information 300 of the source data 104 in a separate storage 112 so that data can be restored to different point-in-times independently of the source data 104 in the first storage 102 and the PiT copy information 200a at the storage controller 100. Thus, the repository 110 by allowing for independent restore of the source data 104 provides a redundant secure backup independent of the storage controller 100 to protect from failure at the storage controller 100 or first storage 102.

[0019] In certain embodiments, the creation and management of the repository 110 is managed by a repository copy manager 108 that is separate from the storage controller 100 programs, such as the PiT copy manager 116 that creates the PiT copies.

[0020] To generate the restore copy 124, the repository copy manager 108 may utilize restore copy information 130 indicating the source data in the changed data 120 that needs to be copied to the restore copy 124. [0021] In the embodiment of FIG. 1, the repository creation and restore operations may be performed by program components, such as the repository copy manager 108 that are separate from the storage controller logic, e.g., the PiT copy manager 116 that created the PiT copies. In an alternative embodiment, the repository copy manager 108 and/or the repository 110 may be maintained on the storage controller 100.

[0022] FIG. 2 illustrates an instance of the PiT copy information 200i for PiT copy at time Ti, which may comprise information maintained for the storage controller PiT copy information 200, and may include a PiT copy identifier 202 identifying the PiT copy created by the PiT copy manager 116 at the storage controller 100; a point-in-time 204 of the PiT copy 202, which may mean that data is consistent as of that point-in-time 204; change information 206 indicating which data or tracks in the source data 104 has changed since the point-in-time 204 and while the PiT copy 202 was open, which may comprise a bitmap having a bit for each data unit (e.g., track) that is set to one of two values indicating the data or track represented by the bit has or has not been updated since the point-in-time 204; and indicate the changed PiT data 208 comprising the data at the point-in-time 204 that was changed after the point-in-time 204 while the PiT copy 202 was open and still being updated. PiT copy information may be maintained for an initial PiT copy taken at the initial time To and for subsequent PiT copies taken at subsequent point-in-times.

[0023] In one embodiment, the PiT copy may be completed or frozen at a time subsequent to the point-in-time 204, such that the changed PiT data 208 includes data changed from the point-in-time 204 until the PiT copy 202 was completed, e.g., frozen or a new PiT copy initiated, and does not include changed data after the PiT copy 202 was completed, e.g., frozen. A PiT copy 202 may be completed upon a freeze command or initiating a subsequent PiT copy at a subsequent point-in-time to the point-in-time 204. A completed PiT copy 200 may be consistent as of the point-in-time. Other techniques may be used to complete, e.g., freeze, the PiT copy.

[0024] FIG. 3 illustrates an embodiment of an instance of PiT copy information 300i maintained in the repository 110, that is generated from an instance of PiT copy information 200i from the storage controller 100, and includes a PiT copy identifier 302 identifying the PiT copy 202 created by the PiT copy manager 116 at the storage controller 100; a point-in- time 304 of the PiT copy 302, which may mean that data is consistent as of that point-in- time 304; change information 306 indicating which data or tracks in the source data 104 has changed since the point-in-time 304 and while the PiT copy 302 was open, which may comprise a bitmap; and a repository offset 308 indicating an offset in the changed data 120 at which the data indicated in the change information 306 for the PiT copy 302 is located. The location in the changed data 120 of a particular changed data unit for a PiT copy 302 can be determined at an offset from the repository offset 208 in the changed data 120, such as by summing the repository offset 208 with the number of the changed unit indicated in the change information 306, i.e., the th data unit, times a length of the data unit. In this way, changed data from a PiT copy 300 are written sequentially after the last written data in the change data 120 in the repository 1 10.

[0025] FIG. 4 illustrates an embodiment of operations performed by the repository copy manager 108 and the PiT copy manager 116 to copy the source data 104 to the repository 110 at different points-in-time from the PiT copies for the source data 104, such as a production volume, created by the PiT copy manager 116. Upon initiating (at block 400) repository copy operations for source data 104, the repository copy manager 108 sends (at block 402) a command to the PiT copy manager 116 to create an initial PiT copy 200 0 at an initial point-in-time, referred to herein as T 0 . The repository copy manager 108 may modify the initial change information 200 0 to generate modified initial change 200 0 ' indicating that all source data units in the source data have changed. The repository copy manager 108 may send (at block 406) to the repository 110 the modified initial change information 200 0 ', which indicates that all data units have changed and the changed PiT data 208 0 for the initial PiT copy (To) indicated in the modified initial change information 200 0 ', which indicates all the source data as changed. All the source data as of the initial point-in-time is copied to the changed data 120 in the repository 110. The PiT copy 200 0 ' from the storage controller 100 would be stored as PiT copy information 300 0 with a repository offset 308 of zero because the start of the data from the initial PiT copy T 0 is stored at the beginning of the changed data 120 in the repository 1 10. [0026] The repository copy manager 108 may send (at block 408) a command to the PiT copy manager 116 to create a subsequent PiT copy (T 1+1 ) at a subsequent point-in-time T 1+1 , which would result in PiT copy information 200 (1+1) . In one embodiment, the repository copy manager 108 may send individual commands to the PiT copy manager 116 to create PiT copies and freeze a previously created PiT copy. In an alternative embodiment, the repository copy manager 108 may send one command to the PiT copy manager 116 to instruct it to periodically create PiT copies of the source data 104, where the creation of a subsequent PiT copy freezes the previously created PiT copy. Still further, the PiT copy manager 116 at the storage controller 100 may be independently creating PiT copies without prompting from the repository copy manager 108.

[0027] Upon determining (at block 410) that the previous point-in-time copy at Ti completed, the repository copy manager 116 sends (at block 412) to the repository 110 for storage the PiT copy information 200i for the PiT copy at time Ti, including the change information 206i and the changed PiT data 208i to store in the repository PiT copy information 300i for Ti. In one embodiment, a PiT copy at point-in-time Ti may be completed upon the creation of the subsequent PiT copy at time T 1+1 . In an alternative embodiment, a PiT copy may be completed by issuing a freeze command to freeze the PiT copy so that the change information 206 stops indicating changes to the source data 104. The repository copy manager 108 creates (at bock 414) in the repository PiT copy information 300i from the received PiT copy information 200i.

[0028] The repository copy manager 108 may transmit (at block 416) the source data 104 at the subsequent time (Ti + i) that has changed since the previous time to the changed data 120 in the repository 1 10 to make the full copy current as of the subsequent time T 1+1 . To perform this operation, the repository copy manager 108 may determine from the change information 206 for the previous PiT copy at Ti the data units in the source data 104 that have changed and then copy those data units from the source data 104 to the changed data 120. In this way, at the subsequent point-in-time T 1+1 when the subsequent PiT copy (Ti + i) is created, data units in the source data 104 that have changed between the previous point-in- time Ti and the subsequent point-in-time T 1+1 are copied to the changed data 120 in the repository 1 10. [0029] The repository copy manager 108 may indicate (at block 418) in the repository offset 308 the data unit offset in the changed data 120 where the changed data for the PiT copy at Ti begins in the changed data 120. If (at block 420) further point-in-time copies are to be created, then the repository copy manager 108 considers (at block 422) the current subsequent point-in-time copy at (T 1+1 ) to be the previous point-in-time copy at Ti during the next iteration of processing the next PiT copy. In this way, i is effectively incremented as the current subsequent point-in-time Ti +1 becomes the previous point-in-time and a next point-in-time becomes the new subsequent point-in-time. Control then proceeds back to block 408 to create or process a new subsequent PiT copy (Ti+ at a new subsequent point- in-time Ti + i. If (at block 420) there are no further PiT copies to process, then control ends.

[0030] With the described embodiments of FIG. 4, a repository 110 of a full copy of the source data 104 having PiT copy information for different PiT copies is created

independently of the storage controller 100 operations to create the PiT copies. In this way, the logic or operations of the repository management operations are independent of the storage controller 100 logic to create PiT copies.

[0031] FIGs. 5a, 5b, 5c illustrate an example of the operations of FIG. 4 to copy all the source data at different point-in-times to the changed data 120 and repository PiT copy information 200b. FIG. 5a shows the state at an initial time T 0 of the source data 104 0 in the source storage 102 that is copied to the changed data 120 0 in the repository 110, which may comprise all the source data 104 as of the initial time T 0 . Further, a PiT information copy 200 0 is created at the initial time T 0 which has change information 206 0 ' indicating that all the source data has changed at the storage controller 100.

[0032] FIG. 5b shows a time Ti when a second PiT copy 200i at Ti is created, which may result in the completion or freezing of the previous PiT copy 200 0 at T 0 having changed data 208 0 as of the point-in-time T 0 before changes occurring between T 0 and Ti. The repository copy manager 108 copies the changed data between T 0 and Ti, shown as units 520 and 522, to the changed data 120 1 in the repository 110 to update the changed data 120 1 to have changed data 520, 522 as of Ti, which follows the initial written data. Further, the completed, or frozen, PiT copy information 200 0 at T 0 is copied to the repository 110 to store as repository PiT copy 300 0 , which includes an offset 308 0 indicating zero because the source data for the initial PiT copy 200 0 is the first data written to the changed data 120i.

[0033] FIG. 5c shows a time T 2 when a third PiT copy 200 2 at T 2 is created, which may result in the completion or freezing of the PiT copy 200i at Ti having changed data 208i as of the point-in-time Ti before changes occurring between Ti and T 2 . The repository copy manager 108 copies the changed data between Ti and T 2 , shown as 524 and 526, to the repository 110 to update the changed data 120 2 to have data as of T 2 . Further, the completed, or frozen, PiT copy information 200i at Ti is copied to the repository 110 to store as repository PiT copy 300i, which includes a repository offset 308 1 indicating the data unit offset in the repository 120 2 at which the changed data 520 and 522 begins.

[0034] FIG. 6 illustrates an embodiment of operations performed by the repository copy manager 108 to create a restore copy 124 from the repository 110 as of a restore time (T R ), which may comprise a point-in-time of one of the repository point-in-time copies 200 b . Upon processing (at block 600) a restore request to create a restore copy 124 of the source data as of the restore time (T R ), the restore copy manager 108 configures (at block 602) an empty restore copy 124 or restore volume to which the data from the changed data 120 for the restore is copied. The repository copy manager 108 determines (at block 604) source data to copy to the restore copy 124 comprising changed data units from the changed data 120 from the initial PiT copy 200 0 , data copied as part of the initial PiT copy, and each of the point-in-time copies at or before the restore time. If multiple PiT copies 300 provide same data units for the source data, then the data units for the PiT copy closest in time to the restore time are included in the determined source data to copy. The repository copy manager 108 then initiates (at block 606) an operation to copy the determined source data to the restore copy 124. The repository copy manager 108 makes (at block 608) the restore copy 124 available in response to completing copying the determined source data to provide a complete copy of the source data as of the restore time (T R ).

[0035] FIG. 7 illustrates an embodiment of operations to determine the source data in the changed data 120 in the repository 124 to copy to the restore copy 124, such as the operation performed at block 604 in FIG. 6. Upon initiating the operation (at block 700) to determine the source data to copy from the changed data 120, the repository copy manager 108 initializes (at block 702) restore copy information 130, such as a bitmap, indicating all the source data units as having not been copied to the restore copy 124. Ti is set (at block 704) to T R . The repository copy manager 106 determines (at block 706) the changed data units 120 for the PiT copy 300i at time Ti that are indicated in the restore copy information 130 as not yet copied, e.g., have a bit value indicating not copied.

[0036] For each determined changed data unit at step 706, the repository copy manager 106 determines (at block 708) from the repository offset 308 for the PiT copy at Ti the location in the repository of the data unit (e.g., changed data unit number pus the repository offset times a data unit length). In one embodiment, the repository offset 308 may provide information for the first changed data unit of the PiT copy and the repository copy manager 108 must determine the offset for a particular data unit based on the number of the changed data unit, i.e. ,7th changed data unit indicated in the PiT copy change information 306iplus the repository offset 308i, then that sum times a data unit length. Alternatively, the repository offset 308 may indicate the offset number in the changed data 120 for each changed data unit for PiT copies following the initial PiT copy at T 0 .

[0037] For instance, in an embodiment, where the repository offset 308i comprises an offset at which the changed data for the PiT copy at Ti begins in the changed data 120, the determined location may comprise the changed data unit number, comprising the number in the order in which the data unit was written for the PiT copy at Ti, plus the repository offset 308i for the PiT copy at Ti, with this sum multiplied by the data unit length. For instance, if the data unit is the third data unit for the PiT copy at Ti written to the changed data 120 and the data unit number offset at which the changed data for the PiT copy at Ti begins in the change data 120 is 100, and the data unit length is 16 bytes, then the location for the data unit in the changed data 120 comprises the sum of three times 100 multiplied by 16, e.g., (3+100)xl6, which equals 4800 th byte in the changed data 120.

[0038] The determined changed data units from the PiT copy 300i, whose location in the changed data 120 is determined at block 708, are copied (at block 710) to the restore copy 124 from the determined locations and the copied data units are indicated (at block 712) in the restore copy information 130 as copied. If (at block 714) Ti equals To , then all PiT copies 300 at or before the restore time (T R ) have been considered, and control ends.

Otherwise, if Ti does not equal T 0 , then Ti is set (at block 716) to Tu to proceed back to block 706 to consider the next PiT copy 300i_ 1 immediately preceding the last considered PiT copy 300i. With the operations of FIG. 7, changed data units are determined from the PiT copies from the PiT copy closest to the restore time in reverse temporal order. In this way, if multiple PiT copies provide changed data for the same source data unit, then the changed data that is copied comes from the PiT copy providing changed data for that data unit that is closest in time to the restore time T R so that the restore copy 124 is provided with changed data 120 from the repository 110 as of the restore time T R .

[0039] In the embodiment of FIG. 7, the changed data units are copied for a PiT copy being considered before the next PiT copy is considered. In an alternative embodiment, all the source data units to copy from the different PiT copies may be determined before copying the changed data to the restore copy 124.

[0040] Described embodiments provide techniques to create a repository having all source data units as of an initial time, including source data units that have changed between PiT copies taken of the source data 104 since an initial time. The repository further maintains PiT copy information of the PiT copies created of the source data 104. With described embodiments, a restore copy volume may be created as of a restore time from the changed data in the repository using the PiT copy information in the repository to determine the changed data as of the restore time by considering the PiT copy information for PiT copies at or before the restore time.

[0041] The present invention may be a system, a method, and/or a computer program product. The computer program product may include a computer readable storage medium (or media) having computer readable program instructions thereon for causing a processor to carry out aspects of the present invention.

[0042] The computer readable storage medium can be a tangible device that can retain and store instructions for use by an instruction execution device. The computer readable storage medium may be, for example, but is not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a

semiconductor storage device, or any suitable combination of the foregoing. A non- exhaustive list of more specific examples of the computer readable storage medium includes the following: a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), a static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanically encoded device such as punch-cards or raised structures in a groove having instructions recorded thereon, and any suitable combination of the foregoing. A computer readable storage medium, as used herein, is not to be construed as being transitory signals per se, such as radio waves or other freely propagating electromagnetic waves,

electromagnetic waves propagating through a waveguide or other transmission media (e.g., light pulses passing through a fiber-optic cable), or electrical signals transmitted through a wire.

[0043] Computer readable program instructions described herein can be downloaded to respective computing/processing devices from a computer readable storage medium or to an external computer or external storage device via a network, for example, the Internet, a local area network, a wide area network and/or a wireless network. The network may comprise copper transmission cables, optical transmission fibers, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. A network adapter card or network interface in each computing/processing device receives computer readable program instructions from the network and forwards the computer readable program instructions for storage in a computer readable storage medium within the respective computing/processing device.

[0044] Computer readable program instructions for carrying out operations of the present invention may be assembler instructions, instruction-set-architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, state-setting data, or either source code or object code written in any combination of one or more programming languages, including an object oriented programming language such as Java®, Smalltalk, C++ or the like, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet Service Provider). In some embodiments, electronic circuitry including, for example, programmable logic circuitry, field-programmable gate arrays (FPGA), or programmable logic arrays (PLA) may execute the computer readable program instructions by utilizing state information of the computer readable program instructions to personalize the electronic circuitry, in order to perform aspects of the present invention. Java and all Java-based trademarks and logos are trademarks or registered trademarks of Oracle and/or its affiliates.

[0045] Aspects of the present invention are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer readable program instructions.

[0046] These computer readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer readable program instructions may also be stored in a computer readable storage medium that can direct a computer, a programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer readable storage medium having instructions stored therein comprises an article of manufacture including instructions which implement aspects of the function/act specified in the flowchart and/or block diagram block or blocks.

[0047] The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable apparatus or other device to produce a computer implemented process, such that the instructions which execute on the computer, other programmable apparatus, or other device implement the

functions/acts specified in the flowchart and/or block diagram block or blocks.

[0048] The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts or carry out combinations of special purpose hardware and computer instructions.

[0049] The computational components of FIG. 1, including the storage controller 100 and host 106, may be implemented in one or more computer systems, such as the computer system 802 shown in FIG. 8. Computer system/server 802 may be described in the general context of computer system executable instructions, such as program modules, being executed by a computer system. Generally, program modules may include routines, programs, objects, components, logic, data structures, and so on that perform particular tasks or implement particular abstract data types. Computer system/server 802 may be practiced in distributed cloud computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed cloud computing environment, program modules may be located in both local and remote computer system storage media including memory storage devices.

[0050] As shown in Fig. 8, the computer system/server 802 is shown in the form of a general-purpose computing device. The components of computer system/server 802 may include, but are not limited to, one or more processors or processing units 804, a system memory 806, and a bus 808 that couples various system components including system memory 806 to processor 804. Bus 808 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MCA) bus, Enhanced ISA (EISA) bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnects (PCI) bus.

[0051] Computer system/server 802 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by computer system/server 802, and it includes both volatile and non-volatile media, removable and nonremovable media.

[0052] System memory 806 can include computer system readable media in the form of volatile memory, such as random access memory (RAM) 810 and/or cache memory 812. Computer system/server 802 may further include other removable/non-removable, volatile/non-volatile computer system storage media. By way of example only, storage system 813 can be provided for reading from and writing to a non-removable, non- volatile magnetic media (not shown and typically called a "hard drive"). Although not shown, a magnetic disk drive for reading from and writing to a removable, non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable, non-volatile optical disk such as a CD-ROM, DVD-ROM or other optical media can be provided. In such instances, each can be connected to bus 808 by one or more data media interfaces. As will be further depicted and described below, memory 806 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.

[0053] Program/utility 814, having a set (at least one) of program modules 816, may be stored in memory 806 by way of example, and not limitation, as well as an operating system, one or more application programs, other program modules, and program data. Each of the operating system, one or more application programs, other program modules, and program data or some combination thereof, may include an implementation of a networking environment. The components of the computer 802 may be implemented as program modules 816 which generally carry out the functions and/or methodologies of embodiments of the invention as described herein. The systems of FIG. 1 may be implemented in one or more computer systems 802, where if they are implemented in multiple computer systems 802, then the computer systems may communicate over a network.

[0054] Computer system/server 802 may also communicate with one or more external devices 818 such as a keyboard, a pointing device, a display 820, etc.; one or more devices that enable a user to interact with computer system/server 802; and/or any devices (e.g., network card, modem, etc.) that enable computer system/server 802 to communicate with one or more other computing devices. Such communication can occur via Input/Output (I/O) interfaces 822. Still yet, computer system/server 802 can communicate with one or more networks such as a local area network (LAN), a general wide area network (WAN), and/or a public network (e.g., the Internet) via network adapter 824. As depicted, network adapter 824 communicates with the other components of computer system/server 802 via bus 808. It should be understood that although not shown, other hardware and/or software components could be used in conjunction with computer system/server 802. Examples, include, but are not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data archival storage systems, etc.

[0055] The terms "an embodiment", "embodiment", "embodiments", "the embodiment", "the embodiments", "one or more embodiments", "some embodiments", and "one embodiment" mean "one or more (but not all) embodiments of the present invention(s)" unless expressly specified otherwise. [0056] The terms "including", "comprising", "having" and variations thereof mean

"including but not limited to", unless expressly specified otherwise.

[0057] The enumerated listing of items does not imply that any or all of the items are mutually exclusive, unless expressly specified otherwise.

[0058] The terms "a", "an" and "the" mean "one or more", unless expressly specified otherwise.

[0059] Devices that are in communication with each other need not be in continuous communication with each other, unless expressly specified otherwise. In addition, devices that are in communication with each other may communicate directly or indirectly through one or more intermediaries.

[0060] A description of an embodiment with several components in communication with each other does not imply that all such components are required. On the contrary a variety of optional components are described to illustrate the wide variety of possible embodiments of the present invention.

[0061] When a single device or article is described herein, it will be readily apparent that more than one device/article (whether or not they cooperate) may be used in place of a single device/article. Similarly, where more than one device or article is described herein (whether or not they cooperate), it will be readily apparent that a single device/article may be used in place of the more than one device or article or a different number of devices/articles may be used instead of the shown number of devices or programs. The functionality and/or the features of a device may be alternatively embodied by one or more other devices which are not explicitly described as having such functionality/features. Thus, other embodiments of the present invention need not include the device itself.

[0062] The foregoing description of various embodiments of the invention has been presented for the purposes of illustration and description. It is not intended to be exhaustive or to limit the invention to the precise form disclosed. Many modifications and variations are possible in light of the above teaching. It is intended that the scope of the invention be limited not by this detailed description, but rather by the claims appended hereto. The above specification, examples and data provide a complete description of the manufacture and use of the composition of the invention. Since many embodiments of the invention can be made without departing from the scope of the invention, the invention resides in the claims herein after appended.