US10409733B2 - Determining space to release in a target volume to which tracks from a source volume are mirrored - Google Patents

Determining space to release in a target volume to which tracks from a source volume are mirrored Download PDF

Info

Publication number
US10409733B2
US10409733B2 US15/840,363 US201715840363A US10409733B2 US 10409733 B2 US10409733 B2 US 10409733B2 US 201715840363 A US201715840363 A US 201715840363A US 10409733 B2 US10409733 B2 US 10409733B2
Authority
US
United States
Prior art keywords
tracks
volume
target volume
consistency group
copy
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related, expires
Application number
US15/840,363
Other versions
US20190179771A1 (en
Inventor
Matthew J. Ward
Joshua J. Crawford
Gregory E. McBride
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
International Business Machines Corp
Original Assignee
International Business Machines Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by International Business Machines Corp filed Critical International Business Machines Corp
Priority to US15/840,363 priority Critical patent/US10409733B2/en
Assigned to INTERNATIONAL BUSINESS MACHINES CORPORATION reassignment INTERNATIONAL BUSINESS MACHINES CORPORATION ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: CRAWFORD, JOSHUA J., MCBRIDE, GREGORY E., WARD, MATTHEW J.
Priority to US16/430,765 priority patent/US11188479B2/en
Publication of US20190179771A1 publication Critical patent/US20190179771A1/en
Application granted granted Critical
Publication of US10409733B2 publication Critical patent/US10409733B2/en
Expired - Fee Related legal-status Critical Current
Adjusted expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0614Improving the reliability of storage systems
    • G06F3/0619Improving the reliability of storage systems in relation to data integrity, e.g. data losses, bit errors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/08Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
    • G06F12/12Replacement control
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/16Error detection or correction of the data by redundancy in hardware
    • G06F11/20Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements
    • G06F11/2053Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where persistent mass storage functionality or persistent mass storage control functionality is redundant
    • G06F11/2056Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where persistent mass storage functionality or persistent mass storage control functionality is redundant by mirroring
    • G06F11/2064Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where persistent mass storage functionality or persistent mass storage control functionality is redundant by mirroring while ensuring consistency
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/16Error detection or correction of the data by redundancy in hardware
    • G06F11/20Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements
    • G06F11/2053Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where persistent mass storage functionality or persistent mass storage control functionality is redundant
    • G06F11/2056Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where persistent mass storage functionality or persistent mass storage control functionality is redundant by mirroring
    • G06F11/2071Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where persistent mass storage functionality or persistent mass storage control functionality is redundant by mirroring using a plurality of controllers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0608Saving storage space on storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0646Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
    • G06F3/065Replication mechanisms
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0662Virtualisation aspects
    • G06F3/0665Virtualisation aspects at area level, e.g. provisioning of virtual or logical volumes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/067Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0683Plurality of storage devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2212/00Indexing scheme relating to accessing, addressing or allocation within memory systems or architectures
    • G06F2212/10Providing a specific technical effect
    • G06F2212/1032Reliability improvement, data loss prevention, degraded operation etc
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2212/00Indexing scheme relating to accessing, addressing or allocation within memory systems or architectures
    • G06F2212/10Providing a specific technical effect
    • G06F2212/1041Resource optimization
    • G06F2212/1044Space efficiency improvement

Definitions

  • the present invention relates to a computer program product, system, and method for determining space to release in a target volume to which tracks from a source volume are mirrored.
  • Storage volumes may be “thin provisioned”, meaning that extents of storage space are assigned to the volume but not allocated until needed. Additional extents may be allocated to the volume on an extent boundary at a time when an allocated extent is first written. Extents that are allocated but not being used for a “thin provisioned” volume may be released, i.e., unallocated, and available to assign to other thin provisioned volumes.
  • the data in a thin provisioned volume may be subject to a mirror copy operation, such as an asynchronous copy operation to a secondary volume.
  • Data may be copied in consistency groups to provide the mirroring of changed data consistent as of a consistency group time.
  • Data in the consistency group may comprise data that has been updated in the primary volume prior to a time of a next consistency group.
  • Described embodiments provide improved technological solutions to optimize computer technology related to determine space to release for tracks a consistency group in-progress of being formed.
  • a computer program product, system, and method for determining space to release in a target volume to which tracks from a source volume are mirrored A copy of a source volume table for the source volume providing a state of the tracks in the source volume for a consistency group is received. Tracks received from the source volume are written to the target volume to form the consistency group of tracks in the source volume at the target volume. A determination is made of tracks available to release from the copy of the source volume table and space allocated to the determined tracks is replaced. A point-in-time copy is created of the target volume for the consistency group. Complete is returned to forming the consistency group in response to releasing the space and creating the point-in-time copy.
  • FIG. 1 illustrates an embodiment of a storage environment.
  • FIG. 2 a illustrates an embodiment of components in a source server in a storage environment of FIG. 1 from which tracks are mirrored to a target server.
  • FIG. 2 b illustrates an embodiment of components in a target server in a storage environment of FIG. 1 to which tracks are mirrored.
  • FIG. 3 illustrates an embodiment of source mirror copy relationship information.
  • FIG. 4 illustrates an embodiment of target mirror copy relationship information.
  • FIG. 5 illustrates an embodiment of point-in-time copy information.
  • FIG. 6 illustrates an embodiment of operations to form a consistency group on a target volume.
  • FIG. 7 illustrates an embodiment of operations to process a message that all the tracks for the consistency group being formed have been sent.
  • FIG. 8 illustrates an embodiment of operations to process tracks for a new consistency group.
  • FIG. 9 illustrates a computing environment in which the components of FIG. 1 may be implemented.
  • Described embodiments provide improvements and optimizations to the computer technology for releasing space at a target volume of a consistency group being formed as part of forming a consistency group in a mirror copying environment.
  • a determination is made of space for tracks in the target volume to release based on available space indicated in a source volume table for the source volume as of the time the consistency group was formed.
  • a point-in-time copy of the target volume is created at the target server.
  • Complete is returned to the source server for the consistency group in response to releasing the space and creating the point-in-time copy.
  • the source server may start forming the next consistency group upon receiving the completion message from the target server.
  • the target server automatically determines to release space while forming the consistency group to automatically release space at the target volume to be available for use in other thin provisioned target volumes. Since the target server has the current information on the state of the consistency group in the source volume table, the target server may more efficiently determine the space to release for a consistency group than a host system or operator at the host system.
  • FIG. 1 illustrates an embodiment of a data storage environment having at least two storage systems 100 1 and 100 2 , each including storage servers 200 1 and 200 2 , respectively, managing access to volumes 104 k and 104 2 configured in storages 106 1 and 106 2 .
  • Host systems (not shown) may perform read and write operations with respect to the first storage system 100 1 over a storage network 110 .
  • a source storage 106 k may comprise a primary production volume to which hosts direct read and write request.
  • the source server 200 1 may mirror tracks in the source volumes 104 1 to the target storage system 100 2 to maintain data in consistency groups at the target server 200 2 .
  • a track may comprise any data unit type, such as a track, logical block, extent, page, etc.
  • the target server 200 2 may create a point-in-time copy 108 of the target volume 104 2 for the consistency group. There may be multiple point-in-time copies at different consistency group times for a target volume 104 2 .
  • storage system may refer to a storage server 200 1 , 200 2 and/or the storage 106 1 , 106 2 managed by the server.
  • the storages 106 1 , 106 2 may comprise different types or classes of storage devices, such as magnetic hard disk drives, solid state storage device (SSD) comprised of solid state electronics, EEPROM (Electrically Erasable Programmable Read-Only Memory), flash memory, flash disk, Random Access Memory (RAM) drive, storage-class memory (SCM), etc., Phase Change Memory (PCM), resistive random access memory (RRAM), spin transfer torque memory (STM-RAM), conductive bridging RAM (CBRAM), magnetic hard disk drive, optical disk, tape, etc.
  • SSD solid state storage device
  • EEPROM Electrical Erasable Programmable Read-Only Memory
  • flash memory flash memory
  • RAM Random Access Memory
  • SCM storage-class memory
  • PCM Phase Change Memory
  • RRAM resistive random access memory
  • STM-RAM spin transfer torque memory
  • CBRAM conductive bridging RAM
  • the volumes 104 1 , 104 2 may further be configured from an array of devices, such as Just a Bunch of Disks (JBOD), Direct Access Storage Device (DASD), Redundant Array of Independent Disks (RAID) array, virtualization device, etc.
  • the storages 106 1 , 106 2 may comprise heterogeneous storage devices from different vendors and different types of storage devices, such as a first type of storage devices, e.g., hard disk drives, that have a slower data transfer rate than a second type of storage devices, e.g., SSDs.
  • the storage network 110 used by the storage systems 100 1 and 100 2 to mirror data may comprise a storage 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.
  • LAN Local Area Networks
  • SAN Storage Area Networks
  • WAN Wide Area Network
  • peer-to-peer network wireless network, etc.
  • a volume 104 1 , 104 2 may comprise any logical or physical allocation of data, such as a logical volume, logical unit number (LUN), logical device, logical disk, etc.
  • the volumes 104 1 , 104 2 may comprise thin provisioned volumes, meaning that tracks are only allocated in the storage 106 1 , 106 2 for a volume when needed to store data.
  • the space release operations described herein release space in the volumes 104 1 , 104 2 to be available for allocation to other thin provisioned volumes.
  • FIG. 2 a shows components of the source server 200 1 , as including a processor 202 1 and a memory 204 1 including programs executed by the processor 202 1 as well as a cache 206 1 to cache read and write data for the source storage 106 1 .
  • the cache 206 1 may also store data being transferred between the servers 200 1 , 200 2 as part of mirror copy relationships.
  • the memory 204 1 includes an operating system 208 1 , which forms volumes 104 1 and maintains volume tables 210 1 , such as a volume table of contents (VTOC), file allocation table, etc., providing information on the tracks or extents of tracks allocated to the volume 104 1 and free space in the volume, as well as other metadata.
  • the cache 206 1 may store a volume table copy 210 C comprising a copy of a volume table 210 as of a consistency group time to maintain a state of a volume 104 1 for a consistency group.
  • VTOC volume table of contents
  • the operating system 208 1 may manage volumes 104 1 as thin provisioned volumes and allocate space to the provisioned but unallocated space and a space release task 214 1 may issue commands to the device adaptors 216 1 to release space allocated to a thin provisioned volume 104 1 to make available to assign to other volumes 104 j .
  • the memory 204 1 includes a source copy manager 212 1 to create and manage mirror relationships 300 to mirror data in volumes 104 1 in the source storage system 100 1 to a target volume 104 2 in the target storage system 100 2 as part of consistency groups.
  • the operating system 208 1 may further spawn one or more space release tasks 214 1 to process the volume table copy 210 C to determine space to release for tracks in a volume 104 1 .
  • the server 200 1 includes one or more device adaptors 216 1 to communicate with devices in the source storage 106 1 and one or more network adaptors 218 1 to communicate with the network 110 and manage the transfer of data on the network 110 .
  • FIG. 2 b shows components of the target server 200 2 as including a processor 202 2 and a memory 204 2 including programs executed by the processor 202 2 as well as a cache 206 2 to cache read and write data for the target volume 104 2 .
  • the cache 206 2 may also store data being transferred between the servers 200 1 , 200 2 as part of mirror copy relationships.
  • the memory 204 2 includes an operating system 208 2 , which forms volumes 104 2 and maintains volume tables 210 2 , such as a volume table of contents (VTOC), file allocation table, etc., providing information on the tracks or extents of tracks allocated to the volume 104 2 and free space in the volume, as well as other metadata.
  • VTOC volume table of contents
  • the operating system 208 2 may manage volumes 104 2 as thin provisioned volumes and allocate space to the provisioned but unallocated space and a space release task 214 2 may issue commands to the device adaptors 216 to release space allocated to a thin provisioned volume 104 i to make available to assign to other volumes 104 j .
  • the memory 204 2 includes a target copy manager 212 2 to create and manage target mirror relationships 400 to mirror data in volumes 104 1 in the source storage system 100 1 to the target volume 104 2 in the target storage system 100 2 as part of consistency groups.
  • the target mirror copy relationship information 400 provides information on source volume 104 1 tracks copied to store at the target volume 104 2 of a source-target volume pair.
  • the target copy manager 212 2 further maintains point-in-time (“PiT”) copy relationship information 500 having information on a point-in-time copy of a target volume 104 2 that may be created after forming a consistency group at the target volume 104 2 .
  • PiT point-in-time
  • the operating system 208 2 may further spawn one or more space release tasks 214 2 to generate a space release list 215 indicating tracks in the target volume 104 2 available for space release as indicated by a source volume table 218 sent from the source server 200 1 indicating a state of the tracks in the source volume 104 1 as of a consistency group time when the consistency group being formed. There may be multiple source volume tables 218 for multiple source-volume pairs in the consistency group being formed.
  • the server 200 2 includes one or more device adaptors 216 2 to communicate with devices in the target storage 106 2 and one or more network adaptors 218 2 to communicate with the network 110 and manage the transfer of data on the network 110 .
  • FIG. 3 illustrates an embodiment of an instance of a source mirror copy relationship 300 i maintained at the source server 200 1 , which may include a mirror copy identifier 302 identifying the mirror copy created by a source copy manager 212 1 ; a source volume 304 , such as all or part of a source volume 104 1 , from which data is copied; a target volume 306 , such as all or part of a target volume 104 2 , to which data is copied from the source volume 304 ; an out-of-synch data structure 308 , such as a bitmap, indicating tracks or other data units in the source volume 304 that have been written, i.e., updated or changed, and need to be copied to the target volume 306 ; change recording data structure 310 , such as a change recording bitmap, indicating source 304 tracks that have been updated or changed to be included in the next consistency group to form; a volume table copy 312 comprising a copy of a volume table 210 at the source sever 200 1 ,
  • the change recording data structure 310 indicating data written, i.e., updated, while copying written data for the current consistency group being formed, is merged with the out-of-synch data structure 308 , which does not indicate tracks to copy after the current consistency group is completed.
  • the change recording data structure 310 is cleared to record new updates for a next consistency group while the data indicated as changed in the out-of-synch data structure 308 is being copied to the target volume 306 to form the current consistency group.
  • FIG. 4 illustrates an embodiment of an instance of a target mirror copy relationship 400 i maintained at the target server 400 2 , which may include a mirror copy identifier 402 identifying the mirror copy created by a source copy manager 412 1 ; a source volume 404 , such as all or part of a source volume 104 1 , from which data is copied; and a target volume 406 , such as all or part of a target volume 104 2 , to which data is copied from the source volume 404 .
  • FIG. 5 illustrates an embodiment of point-in-time (“PiT”) copy relationship information 500 for a point-in-time copy created of the target volume 104 2 when the source server 200 1 has completed copying all the data indicated in the out-of-synch data structure 308 for the current consistency group being formed.
  • the source server 200 1 may send a point-in-time copy command to create the point-in-time copy 108 , 500 after copying all the tracks for the consistency group.
  • Point-in-time copy information 500 may include a PiT copy identifier 502 identifying the PiT copy 108 created by the target copy manager 212 2 ; a point-in-time 504 of the PiT copy 500 , such that data is consistent as of that point-in-time 504 ; PiT source volume 506 , e.g., target volume 104 2 , from which data is copied; PiT target volume 508 , e.g., point-in-time copy 108 , to which the PiT source volume data is copied; and change information 510 indicating data or tracks in the PiT source volume 506 , e.g., target volume 104 2 , that needs to be copied to the PiT target volume 508 , e.g., 108 , such as tracks that have changed since the point-in-time 504 and while the PiT copy 502 was open.
  • PiT source volume 506 e.g., target volume 104 2
  • change information 510 indicating data or tracks in the PiT source
  • the change information 510 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 504 .
  • the source 506 and target 508 data may comprise a volume, a subset of a volume or other unit of data. When the bit indicates the track has been updated, than that track needs to be copied to the point-in-time copy 108 .
  • the mirror copies 300 , 400 and point-in-time copies 500 may be implemented with copy technology known in the art, such as IBM® FlashCopy®, IBM® Metro Mirror®, IBM® Global Mirror®, and mirror and snapshot technology provided from other vendors.
  • IBM® FlashCopy® IBM® Metro Mirror®
  • IBM® Global Mirror® IBM® Global Mirror
  • mirror and snapshot technology provided from other vendors.
  • IBM, FlashCopy, Metro Mirror, and Global Mirror are registered trademarks or common law marks throughout the world.
  • a point-in-time copy 500 replicates data in a manner that appears instantaneous, and any actual data transfers to the copy volume are deferred to a later time when the data in the target volume 104 2 in the point-in-time copy 108 is subject to a write following the creation of the point-in-time copy.
  • the point-in-time copy appears instantaneous because complete is returned to the copy operation in response to generating the data structures 500 without copying the data.
  • Point-in-time copy techniques typically defer the transfer of the data in the target volume 104 2 at the time the point-in-time copy relationship 500 was established to the point-in-time copy 108 until a write operation is requested to that data block on the target volume 104 2 following the point-in-time 504 .
  • FIG. 6 illustrates an embodiment of operations performed by the target copy manager 212 2 to form a consistency group as of a consistency group time at a target volume 104 2 at the target storage 106 2 and release space during the operations to form the consistency group.
  • the target copy manager 212 2 Upon initiating (at block 600 ) an operation to form a consistency group at the target volume 104 2 , the target copy manager 212 2 receives (at block 602 ) a source volume table 218 comprising a copy of the source volume table 210 1 for the source volume 104 1 as of a consistency group time.
  • the source copy manager 212 1 may send the source volume table 218 before copying the source volume 104 1 tracks to the target server 200 2 for the consistency group, to allow the target copy manager 212 2 to immediately begin releasing space.
  • the target copy manager 212 2 receives (at block 604 ) tracks from the source server 200 1 for the source volume 104 1 and writes the received tracks to the target volume 104 2 of a target mirror copy relationship 400 i for the consistency group.
  • the target copy manager 212 2 may spawn (at block 606 ) a space release task 214 2 to determine tracks in the target volume 104 2 from the source volume table 218 of tracks available to release at the source volume 104 1 to release while the target server 200 2 receives tracks from the source volume 104 1 for a consistency group.
  • the target space release task 214 2 determines (at block 608 ) whether there are any tracks determined to be available to release, according to the source volume table 218 , indicated, in the point-in-time change information 510 of the point-in-time copy information 500 , as needing to be copied to the point-in-time copy of the target volume 108 for the previous consistency group. If so, the target copy manager 212 2 or space release task 214 2 copies (at block 610 ) tracks from the target volume 104 2 (PiT source volume 504 ) to the PiT copy 108 of the target volume (PiT target volume 508 ) that are available to release and indicated in the change information 510 to the PiT target volume 508 .
  • the target copy manager 212 2 copies to the point-in-time copy 108 any data for tracks as of the previous consistency group time in the target volume 104 2 that were written during the current consistency group, so that the point-in-time copy 108 receives the data for the previous consistency group before being updated during the current consistency group. In this way, if there is a failure, the data for the previous consistency group is stored in the point-in-time copy 108 .
  • the space release task 214 2 may form (at block 612 ) a space release list 215 indicating tracks for space release and construct (at block 614 ) space release commands for the tracks in the space release list 410 to send to the device adaptor 216 to execute to release space in the target volume 406 .
  • FIG. 7 illustrates an embodiment of operations performed by the target copy manager 212 2 to process a message from the source server 200 1 that the consistency group being formed is completed, which may comprise a create point-in-time copy command.
  • the target copy manager 212 2 Upon receiving (at block 700 ) a message from the source server 200 1 indicating that all tracks from the consistency group indicated in the out-of-synch data structure 308 at the source sever 200 1 have been copied to the target server 200 2 , such as may be indicated with a point-in-time copy establish command, the target copy manager 212 2 clears and removes (at block 702 ) the current point-in-time copy information 500 and point-in-time copy 108 and creates (at block 704 ) a new point-in-time copy 108 , 500 of the target volume 104 2 having all the tracks for the consistency group just completed, as indicated by the point-in-time copy establish command.
  • the target copy manager 212 2 may return (at block 706 ) complete to the source server
  • space for tracks in the target volume 104 2 may be released while copying the tracks from the source volume to the target volume for the consistency group being formed by using the source volume table, transmitted to the target server as part of formation of the consistency group, to determine tracks to release in the target volume. Consistency group complete is returned upon releasing the tracks from the target volume 104 2 and completing the point-in-time copy created of the just completed target volume 104 2 . Further, with described embodiments, the space release occurs automatically at the target server 200 2 using the most relevant and current information for the target volume 104 2 maintained at the target server 200 2 , including the source volume table 218 and point-in-time copy information 500 .
  • the space release operations for the target volume 104 2 are performed at the target server 200 2 while forming a consistency group at the target volume 104 2 .
  • FIG. 8 illustrates an embodiment of operations performed by the target copy manager 212 2 or space release task 214 2 to release space for multiple target volumes 104 2 in multiple source-target volume pairs identified in multiple mirror copy relationships 400 1 . . . 400 n to maintain data in the target volumes 406 1 . . . 406 n consistent as of the same consistency group time across source-target volume pairs.
  • the source volumes 404 1 . . . 404 n and the target volumes 406 1 . . . 406 n in a consistency group may be stored in different source storage systems 100 1 and different target storage systems 100 2 , respectively, or the multiple source and target volume pairs may be stored in the same source storage system 100 1 and target storage system 100 2 .
  • the target copy manager 212 2 Upon the target copy manager 212 2 processing (at block 800 ) tracks from the source server for multiple source volumes mirrored to multiple target volumes for a new consistency group, the target copy manager 212 2 performs (at block 802 ), for each of the target source-target volume pair mirror relationships 400 at one target server or across target servers, operations 606 - 614 in FIG. 6 to release space for the selected source-target volume pair.
  • space may be released for all the source-target volume pairs without delaying the completion of the consistency group because for all the source-target volume pairs the space release is performed while receiving the source volume tracks for the consistency group.
  • the space release operations will either be completed or close to completing, such that space release operations do not delay the implementation of recovery point objectives (RPOs) to form consistency groups.
  • Described embodiments provide optimizations to the computer technology for determining when to release space allocated to tracks in a target volume of a mirror copy relationships by determining space to release during the mirroring of the tracks in the source volume, and releasing space indicated in a volume table.
  • i and n are used to denote a variable number of instances of an element, which may represent the same or different values, and may represent the same or different value when used with different or the same elements in different described instances.
  • 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.
  • 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.
  • RAM random access memory
  • ROM read-only memory
  • EPROM or Flash memory erasable programmable read-only memory
  • SRAM static random access memory
  • CD-ROM compact disc read-only memory
  • DVD digital versatile disk
  • memory stick a floppy disk
  • a mechanically encoded device such as punch-cards or raised structures in a groove having instructions recorded thereon
  • a computer readable storage medium 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.
  • 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.
  • 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.
  • 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).
  • 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.
  • 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.
  • 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.
  • 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).
  • the functions noted in the block may occur out of the order noted in the figures.
  • 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.
  • Computer system/server 902 may be described in the general context of computer system executable instructions, such as program modules, being executed by a computer system.
  • 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 902 may be practiced in distributed cloud computing environments where tasks are performed by remote processing devices that are linked through a communications network.
  • program modules may be located in both local and remote computer system storage media including memory storage devices.
  • the computer system/server 902 is shown in the form of a general-purpose computing device.
  • the components of computer system/server 902 may include, but are not limited to, one or more processors or processing units 904 , a system memory 906 , and a bus 908 that couples various system components including system memory 906 to processor 904 .
  • Bus 908 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.
  • 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.
  • ISA Industry Standard Architecture
  • MCA Micro Channel Architecture
  • EISA Enhanced ISA
  • VESA Video Electronics Standards Association
  • PCI Peripheral Component Interconnects
  • Computer system/server 902 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by computer system/server 902 , and it includes both volatile and non-volatile media, removable and non-removable media.
  • System memory 906 can include computer system readable media in the form of volatile memory, such as random access memory (RAM) 910 and/or cache memory 912 .
  • Computer system/server 902 may further include other removable/non-removable, volatile/non-volatile computer system storage media.
  • storage system 913 can be provided for reading from and writing to a non-removable, non-volatile magnetic media (not shown and typically called a “hard drive”).
  • a magnetic disk drive for reading from and writing to a removable, non-volatile magnetic disk (e.g., a “floppy disk”)
  • 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
  • each can be connected to bus 908 by one or more data media interfaces.
  • memory 906 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.
  • Program/utility 914 having a set (at least one) of program modules 916 , may be stored in memory 906 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 902 may be implemented as program modules 916 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 902 , where if they are implemented in multiple computer systems 902 , then the computer systems may communicate over a network.
  • Computer system/server 902 may also communicate with one or more external devices 918 such as a keyboard, a pointing device, a display 920 , etc.; one or more devices that enable a user to interact with computer system/server 902 ; and/or any devices (e.g., network card, modem, etc.) that enable computer system/server 902 to communicate with one or more other computing devices. Such communication can occur via Input/Output (I/O) interfaces 922 . Still yet, computer system/server 902 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 924 .
  • LAN local area network
  • WAN wide area network
  • public network e.g., the Internet
  • network adapter 924 communicates with the other components of computer system/server 902 via bus 908 .
  • bus 908 It should be understood that although not shown, other hardware and/or software components could be used in conjunction with computer system/server 902 . 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.
  • an embodiment means “one or more (but not all) embodiments of the present invention(s)” unless expressly specified otherwise.
  • Devices that are in communication with each other need not be in continuous communication with each other, unless expressly specified otherwise.
  • devices that are in communication with each other may communicate directly or indirectly through one or more intermediaries.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computer Security & Cryptography (AREA)
  • Quality & Reliability (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

Provided are a computer program product, system, and method for determining space to release in a target volume to which tracks from a source volume are mirrored. A copy of a source volume table for the source volume providing a state of the tracks in the source volume for a consistency group is received. Tracks received from the source volume are written to the target volume to form the consistency group of tracks in the source volume at the target volume. A determination is made of tracks available to release from the copy of the source volume table and space allocated to the determined tracks is replaced. A point-in-time copy is created of the target volume for the consistency group. Complete is returned to forming the consistency group in response to releasing the space and creating the point-in-time copy.

Description

BACKGROUND OF THE INVENTION 1. Field of the Invention
The present invention relates to a computer program product, system, and method for determining space to release in a target volume to which tracks from a source volume are mirrored.
2. Description of the Related Art
Storage volumes may be “thin provisioned”, meaning that extents of storage space are assigned to the volume but not allocated until needed. Additional extents may be allocated to the volume on an extent boundary at a time when an allocated extent is first written. Extents that are allocated but not being used for a “thin provisioned” volume may be released, i.e., unallocated, and available to assign to other thin provisioned volumes.
The data in a thin provisioned volume may be subject to a mirror copy operation, such as an asynchronous copy operation to a secondary volume. Data may be copied in consistency groups to provide the mirroring of changed data consistent as of a consistency group time. Data in the consistency group may comprise data that has been updated in the primary volume prior to a time of a next consistency group.
In current systems, if a space release command is received to release tracks within a consistency group being mirrored to a secondary volume, then the consistency group copy is cancelled to allow the space release command to complete. A new consistency group may be formed to cause the copying of all data prior to the previous consistency group formed.
Described embodiments provide improved technological solutions to optimize computer technology related to determine space to release for tracks a consistency group in-progress of being formed.
SUMMARY
Provided are a computer program product, system, and method for determining space to release in a target volume to which tracks from a source volume are mirrored. A copy of a source volume table for the source volume providing a state of the tracks in the source volume for a consistency group is received. Tracks received from the source volume are written to the target volume to form the consistency group of tracks in the source volume at the target volume. A determination is made of tracks available to release from the copy of the source volume table and space allocated to the determined tracks is replaced. A point-in-time copy is created of the target volume for the consistency group. Complete is returned to forming the consistency group in response to releasing the space and creating the point-in-time copy.
BRIEF DESCRIPTION OF THE DRAWINGS
FIG. 1 illustrates an embodiment of a storage environment.
FIG. 2a illustrates an embodiment of components in a source server in a storage environment of FIG. 1 from which tracks are mirrored to a target server.
FIG. 2b illustrates an embodiment of components in a target server in a storage environment of FIG. 1 to which tracks are mirrored.
FIG. 3 illustrates an embodiment of source mirror copy relationship information.
FIG. 4 illustrates an embodiment of target mirror copy relationship information.
FIG. 5 illustrates an embodiment of point-in-time copy information.
FIG. 6 illustrates an embodiment of operations to form a consistency group on a target volume.
FIG. 7 illustrates an embodiment of operations to process a message that all the tracks for the consistency group being formed have been sent.
FIG. 8 illustrates an embodiment of operations to process tracks for a new consistency group.
FIG. 9 illustrates a computing environment in which the components of FIG. 1 may be implemented.
DETAILED DESCRIPTION
In current art, if a space release command is received to release space that is within a consistency group in progress of being formed as part of mirroring data to a target storage system, then the consistency group is canceled to allow the space release command to proceed. Described embodiments provide improvements and optimizations to the computer technology for releasing space at a target volume of a consistency group being formed as part of forming a consistency group in a mirror copying environment. With the described embodiments, when forming a consistency group of tracks in a source volume to copy to a target volume, a determination is made of space for tracks in the target volume to release based on available space indicated in a source volume table for the source volume as of the time the consistency group was formed. After completing the consistency group, a point-in-time copy of the target volume is created at the target server. Complete is returned to the source server for the consistency group in response to releasing the space and creating the point-in-time copy. The source server may start forming the next consistency group upon receiving the completion message from the target server.
With the described embodiments, the target server automatically determines to release space while forming the consistency group to automatically release space at the target volume to be available for use in other thin provisioned target volumes. Since the target server has the current information on the state of the consistency group in the source volume table, the target server may more efficiently determine the space to release for a consistency group than a host system or operator at the host system.
FIG. 1 illustrates an embodiment of a data storage environment having at least two storage systems 100 1 and 100 2, each including storage servers 200 1 and 200 2, respectively, managing access to volumes 104 k and 104 2 configured in storages 106 1 and 106 2. Host systems (not shown) may perform read and write operations with respect to the first storage system 100 1 over a storage network 110. A source storage 106 k may comprise a primary production volume to which hosts direct read and write request. The source server 200 1 may mirror tracks in the source volumes 104 1 to the target storage system 100 2 to maintain data in consistency groups at the target server 200 2. A track may comprise any data unit type, such as a track, logical block, extent, page, etc.
When formation of the tracks for a consistency group is completed in the target volume 104 2, the target server 200 2 may create a point-in-time copy 108 of the target volume 104 2 for the consistency group. There may be multiple point-in-time copies at different consistency group times for a target volume 104 2.
The term “storage system” as used herein may refer to a storage server 200 1, 200 2 and/or the storage 106 1, 106 2 managed by the server.
The storages 106 1, 106 2 may comprise different types or classes of storage devices, such as magnetic hard disk drives, solid state storage device (SSD) comprised of solid state electronics, EEPROM (Electrically Erasable Programmable Read-Only Memory), flash memory, flash disk, Random Access Memory (RAM) drive, storage-class memory (SCM), etc., Phase Change Memory (PCM), resistive random access memory (RRAM), spin transfer torque memory (STM-RAM), conductive bridging RAM (CBRAM), magnetic hard disk drive, optical disk, tape, etc. The volumes 104 1, 104 2 may further be configured from an array of devices, such as Just a Bunch of Disks (JBOD), Direct Access Storage Device (DASD), Redundant Array of Independent Disks (RAID) array, virtualization device, etc. Further, the storages 106 1, 106 2 may comprise heterogeneous storage devices from different vendors and different types of storage devices, such as a first type of storage devices, e.g., hard disk drives, that have a slower data transfer rate than a second type of storage devices, e.g., SSDs.
The storage network 110 used by the storage systems 100 1 and 100 2 to mirror data may comprise a storage 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.
A volume 104 1, 104 2 may comprise any logical or physical allocation of data, such as a logical volume, logical unit number (LUN), logical device, logical disk, etc. The volumes 104 1, 104 2 may comprise thin provisioned volumes, meaning that tracks are only allocated in the storage 106 1, 106 2 for a volume when needed to store data. The space release operations described herein release space in the volumes 104 1, 104 2 to be available for allocation to other thin provisioned volumes.
FIG. 2a shows components of the source server 200 1, as including a processor 202 1 and a memory 204 1 including programs executed by the processor 202 1 as well as a cache 206 1 to cache read and write data for the source storage 106 1. The cache 206 1 may also store data being transferred between the servers 200 1, 200 2 as part of mirror copy relationships. The memory 204 1 includes an operating system 208 1, which forms volumes 104 1 and maintains volume tables 210 1, such as a volume table of contents (VTOC), file allocation table, etc., providing information on the tracks or extents of tracks allocated to the volume 104 1 and free space in the volume, as well as other metadata. The cache 206 1 may store a volume table copy 210 C comprising a copy of a volume table 210 as of a consistency group time to maintain a state of a volume 104 1 for a consistency group.
The operating system 208 1 may manage volumes 104 1 as thin provisioned volumes and allocate space to the provisioned but unallocated space and a space release task 214 1 may issue commands to the device adaptors 216 1 to release space allocated to a thin provisioned volume 104 1 to make available to assign to other volumes 104 j.
The memory 204 1 includes a source copy manager 212 1 to create and manage mirror relationships 300 to mirror data in volumes 104 1 in the source storage system 100 1 to a target volume 104 2 in the target storage system 100 2 as part of consistency groups. The operating system 208 1 may further spawn one or more space release tasks 214 1 to process the volume table copy 210 C to determine space to release for tracks in a volume 104 1.
The server 200 1 includes one or more device adaptors 216 1 to communicate with devices in the source storage 106 1 and one or more network adaptors 218 1 to communicate with the network 110 and manage the transfer of data on the network 110.
FIG. 2b shows components of the target server 200 2 as including a processor 202 2 and a memory 204 2 including programs executed by the processor 202 2 as well as a cache 206 2 to cache read and write data for the target volume 104 2. The cache 206 2 may also store data being transferred between the servers 200 1, 200 2 as part of mirror copy relationships. The memory 204 2 includes an operating system 208 2, which forms volumes 104 2 and maintains volume tables 210 2, such as a volume table of contents (VTOC), file allocation table, etc., providing information on the tracks or extents of tracks allocated to the volume 104 2 and free space in the volume, as well as other metadata.
The operating system 208 2 may manage volumes 104 2 as thin provisioned volumes and allocate space to the provisioned but unallocated space and a space release task 214 2 may issue commands to the device adaptors 216 to release space allocated to a thin provisioned volume 104 i to make available to assign to other volumes 104 j.
The memory 204 2 includes a target copy manager 212 2 to create and manage target mirror relationships 400 to mirror data in volumes 104 1 in the source storage system 100 1 to the target volume 104 2 in the target storage system 100 2 as part of consistency groups. The target mirror copy relationship information 400 provides information on source volume 104 1 tracks copied to store at the target volume 104 2 of a source-target volume pair. The target copy manager 212 2 further maintains point-in-time (“PiT”) copy relationship information 500 having information on a point-in-time copy of a target volume 104 2 that may be created after forming a consistency group at the target volume 104 2.
The operating system 208 2 may further spawn one or more space release tasks 214 2 to generate a space release list 215 indicating tracks in the target volume 104 2 available for space release as indicated by a source volume table 218 sent from the source server 200 1 indicating a state of the tracks in the source volume 104 1 as of a consistency group time when the consistency group being formed. There may be multiple source volume tables 218 for multiple source-volume pairs in the consistency group being formed.
The server 200 2 includes one or more device adaptors 216 2 to communicate with devices in the target storage 106 2 and one or more network adaptors 218 2 to communicate with the network 110 and manage the transfer of data on the network 110.
FIG. 3 illustrates an embodiment of an instance of a source mirror copy relationship 300 i maintained at the source server 200 1, which may include a mirror copy identifier 302 identifying the mirror copy created by a source copy manager 212 1; a source volume 304, such as all or part of a source volume 104 1, from which data is copied; a target volume 306, such as all or part of a target volume 104 2, to which data is copied from the source volume 304; an out-of-synch data structure 308, such as a bitmap, indicating tracks or other data units in the source volume 304 that have been written, i.e., updated or changed, and need to be copied to the target volume 306; change recording data structure 310, such as a change recording bitmap, indicating source 304 tracks that have been updated or changed to be included in the next consistency group to form; a volume table copy 312 comprising a copy of a volume table 210 at the source sever 200 1, which may be stored in the cache 206 1 at the source sever 200 1, having a state of the tracks in the source volume 304 as of a consistency group time; and a space release list 314 indicating tracks in the source volume 304 to release.
To create a new consistency group, the change recording data structure 310, indicating data written, i.e., updated, while copying written data for the current consistency group being formed, is merged with the out-of-synch data structure 308, which does not indicate tracks to copy after the current consistency group is completed. After the merging, the change recording data structure 310 is cleared to record new updates for a next consistency group while the data indicated as changed in the out-of-synch data structure 308 is being copied to the target volume 306 to form the current consistency group.
FIG. 4 illustrates an embodiment of an instance of a target mirror copy relationship 400 i maintained at the target server 400 2, which may include a mirror copy identifier 402 identifying the mirror copy created by a source copy manager 412 1; a source volume 404, such as all or part of a source volume 104 1, from which data is copied; and a target volume 406, such as all or part of a target volume 104 2, to which data is copied from the source volume 404.
FIG. 5 illustrates an embodiment of point-in-time (“PiT”) copy relationship information 500 for a point-in-time copy created of the target volume 104 2 when the source server 200 1 has completed copying all the data indicated in the out-of-synch data structure 308 for the current consistency group being formed. The source server 200 1 may send a point-in-time copy command to create the point-in- time copy 108, 500 after copying all the tracks for the consistency group. Point-in-time copy information 500 may include a PiT copy identifier 502 identifying the PiT copy 108 created by the target copy manager 212 2; a point-in-time 504 of the PiT copy 500, such that data is consistent as of that point-in-time 504; PiT source volume 506, e.g., target volume 104 2, from which data is copied; PiT target volume 508, e.g., point-in-time copy 108, to which the PiT source volume data is copied; and change information 510 indicating data or tracks in the PiT source volume 506, e.g., target volume 104 2, that needs to be copied to the PiT target volume 508, e.g., 108, such as tracks that have changed since the point-in-time 504 and while the PiT copy 502 was open. The change information 510 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 504. The source 506 and target 508 data may comprise a volume, a subset of a volume or other unit of data. When the bit indicates the track has been updated, than that track needs to be copied to the point-in-time copy 108.
The mirror copies 300, 400 and point-in-time copies 500 may be implemented with copy technology known in the art, such as IBM® FlashCopy®, IBM® Metro Mirror®, IBM® Global Mirror®, and mirror and snapshot technology provided from other vendors. (IBM, FlashCopy, Metro Mirror, and Global Mirror are registered trademarks or common law marks throughout the world.
A point-in-time copy 500 replicates data in a manner that appears instantaneous, and any actual data transfers to the copy volume are deferred to a later time when the data in the target volume 104 2 in the point-in-time copy 108 is subject to a write following the creation of the point-in-time copy. The point-in-time copy appears instantaneous because complete is returned to the copy operation in response to generating the data structures 500 without copying the data. Point-in-time copy techniques typically defer the transfer of the data in the target volume 104 2 at the time the point-in-time copy relationship 500 was established to the point-in-time copy 108 until a write operation is requested to that data block on the target volume 104 2 following the point-in-time 504.
FIG. 6 illustrates an embodiment of operations performed by the target copy manager 212 2 to form a consistency group as of a consistency group time at a target volume 104 2 at the target storage 106 2 and release space during the operations to form the consistency group. Upon initiating (at block 600) an operation to form a consistency group at the target volume 104 2, the target copy manager 212 2 receives (at block 602) a source volume table 218 comprising a copy of the source volume table 210 1 for the source volume 104 1 as of a consistency group time. The source copy manager 212 1 may send the source volume table 218 before copying the source volume 104 1 tracks to the target server 200 2 for the consistency group, to allow the target copy manager 212 2 to immediately begin releasing space. The target copy manager 212 2 receives (at block 604) tracks from the source server 200 1 for the source volume 104 1 and writes the received tracks to the target volume 104 2 of a target mirror copy relationship 400 i for the consistency group. The target copy manager 212 2 may spawn (at block 606) a space release task 214 2 to determine tracks in the target volume 104 2 from the source volume table 218 of tracks available to release at the source volume 104 1 to release while the target server 200 2 receives tracks from the source volume 104 1 for a consistency group.
The target space release task 214 2 determines (at block 608) whether there are any tracks determined to be available to release, according to the source volume table 218, indicated, in the point-in-time change information 510 of the point-in-time copy information 500, as needing to be copied to the point-in-time copy of the target volume 108 for the previous consistency group. If so, the target copy manager 212 2 or space release task 214 2 copies (at block 610) tracks from the target volume 104 2 (PiT source volume 504) to the PiT copy 108 of the target volume (PiT target volume 508) that are available to release and indicated in the change information 510 to the PiT target volume 508. In this way, before releasing space for a track in the target volume 104 2, the target copy manager 212 2 copies to the point-in-time copy 108 any data for tracks as of the previous consistency group time in the target volume 104 2 that were written during the current consistency group, so that the point-in-time copy 108 receives the data for the previous consistency group before being updated during the current consistency group. In this way, if there is a failure, the data for the previous consistency group is stored in the point-in-time copy 108.
If the change information 510 does not indicate a track available to release has data to copy to the point-in-time copy 108 (from the no branch of block 608) or after copying that need to be copied (from block 610), the space release task 214 2 may form (at block 612) a space release list 215 indicating tracks for space release and construct (at block 614) space release commands for the tracks in the space release list 410 to send to the device adaptor 216 to execute to release space in the target volume 406.
FIG. 7 illustrates an embodiment of operations performed by the target copy manager 212 2 to process a message from the source server 200 1 that the consistency group being formed is completed, which may comprise a create point-in-time copy command. Upon receiving (at block 700) a message from the source server 200 1 indicating that all tracks from the consistency group indicated in the out-of-synch data structure 308 at the source sever 200 1 have been copied to the target server 200 2, such as may be indicated with a point-in-time copy establish command, the target copy manager 212 2 clears and removes (at block 702) the current point-in-time copy information 500 and point-in-time copy 108 and creates (at block 704) a new point-in- time copy 108, 500 of the target volume 104 2 having all the tracks for the consistency group just completed, as indicated by the point-in-time copy establish command. The target copy manager 212 2 may return (at block 706) complete to the source server 200 1 forming the consistency group in response to completing releasing space indicated in the volume table 210 as available to release and creating the point-in-time copy 108.
With the embodiment of FIG. 6, space for tracks in the target volume 104 2 may be released while copying the tracks from the source volume to the target volume for the consistency group being formed by using the source volume table, transmitted to the target server as part of formation of the consistency group, to determine tracks to release in the target volume. Consistency group complete is returned upon releasing the tracks from the target volume 104 2 and completing the point-in-time copy created of the just completed target volume 104 2. Further, with described embodiments, the space release occurs automatically at the target server 200 2 using the most relevant and current information for the target volume 104 2 maintained at the target server 200 2, including the source volume table 218 and point-in-time copy information 500.
With the embodiment of operations in FIGS. 6 and 7, the space release operations for the target volume 104 2 are performed at the target server 200 2 while forming a consistency group at the target volume 104 2. This allows the space release operations, which can take significant time, to occur while the tracks for the consistency group are being received to at the target volume 104 2 allow the space release operations to complete during formation of the consistency group so as to avoid delays in responding complete to the source server command to create the point-in-time copy, because complete is not returned until the space is released.
FIG. 8 illustrates an embodiment of operations performed by the target copy manager 212 2 or space release task 214 2 to release space for multiple target volumes 104 2 in multiple source-target volume pairs identified in multiple mirror copy relationships 400 1 . . . 400 n to maintain data in the target volumes 406 1 . . . 406 n consistent as of the same consistency group time across source-target volume pairs. The source volumes 404 1 . . . 404 n and the target volumes 406 1 . . . 406 n in a consistency group may be stored in different source storage systems 100 1 and different target storage systems 100 2, respectively, or the multiple source and target volume pairs may be stored in the same source storage system 100 1 and target storage system 100 2. Upon the target copy manager 212 2 processing (at block 800) tracks from the source server for multiple source volumes mirrored to multiple target volumes for a new consistency group, the target copy manager 212 2 performs (at block 802), for each of the target source-target volume pair mirror relationships 400 at one target server or across target servers, operations 606-614 in FIG. 6 to release space for the selected source-target volume pair.
With the embodiments of FIG. 8, when there are multiple source-target volume pair mirror relationships 400 1 . . . 400 n, space may be released for all the source-target volume pairs without delaying the completion of the consistency group because for all the source-target volume pairs the space release is performed while receiving the source volume tracks for the consistency group. In this way, by the time all the source tracks have been sent for a consistency group, the space release operations will either be completed or close to completing, such that space release operations do not delay the implementation of recovery point objectives (RPOs) to form consistency groups.
Described embodiments provide optimizations to the computer technology for determining when to release space allocated to tracks in a target volume of a mirror copy relationships by determining space to release during the mirroring of the tracks in the source volume, and releasing space indicated in a volume table.
The reference characters used herein, such as i and n, are used to denote a variable number of instances of an element, which may represent the same or different values, and may represent the same or different value when used with different or the same elements in different described instances.
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.
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.
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.
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.
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.
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.
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.
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.
The computational components of FIG. 1, including the servers 200 1, 200 2 may be implemented in one or more computer systems, such as the computer system 902 shown in FIG. 9. Computer system/server 902 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 902 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.
As shown in FIG. 9, the computer system/server 902 is shown in the form of a general-purpose computing device. The components of computer system/server 902 may include, but are not limited to, one or more processors or processing units 904, a system memory 906, and a bus 908 that couples various system components including system memory 906 to processor 904. Bus 908 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.
Computer system/server 902 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by computer system/server 902, and it includes both volatile and non-volatile media, removable and non-removable media.
System memory 906 can include computer system readable media in the form of volatile memory, such as random access memory (RAM) 910 and/or cache memory 912. Computer system/server 902 may further include other removable/non-removable, volatile/non-volatile computer system storage media. By way of example only, storage system 913 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 908 by one or more data media interfaces. As will be further depicted and described below, memory 906 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.
Program/utility 914, having a set (at least one) of program modules 916, may be stored in memory 906 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 902 may be implemented as program modules 916 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 902, where if they are implemented in multiple computer systems 902, then the computer systems may communicate over a network.
Computer system/server 902 may also communicate with one or more external devices 918 such as a keyboard, a pointing device, a display 920, etc.; one or more devices that enable a user to interact with computer system/server 902; and/or any devices (e.g., network card, modem, etc.) that enable computer system/server 902 to communicate with one or more other computing devices. Such communication can occur via Input/Output (I/O) interfaces 922. Still yet, computer system/server 902 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 924. As depicted, network adapter 924 communicates with the other components of computer system/server 902 via bus 908. It should be understood that although not shown, other hardware and/or software components could be used in conjunction with computer system/server 902. 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.
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.
The terms “including”, “comprising”, “having” and variations thereof mean “including but not limited to”, unless expressly specified otherwise.
The enumerated listing of items does not imply that any or all of the items are mutually exclusive, unless expressly specified otherwise.
The terms “a”, “an” and “the” mean “one or more”, unless expressly specified otherwise.
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.
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.
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.
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 spirit and scope of the invention, the invention resides in the claims herein after appended.

Claims (23)

What is claimed is:
1. A computer program product for releasing space in a target volume to which data is copied from a source volume, wherein the computer program product comprises a computer readable storage medium having program instructions executable by a processor to cause operations, the operations comprising:
receiving a copy of a source volume table for the source volume providing a state of tracks in the source volume for a consistency group of the tracks;
writing tracks received from the source volume to the target volume to form the consistency group of tracks in the source volume at the target volume;
determining tracks available to release from the copy of the source volume table;
releasing space allocated to the determined tracks;
creating a point-in-time copy of the target volume for the consistency group; and
returning complete to forming the consistency group in response to releasing the space and creating the point-in-time copy.
2. The computer program product of claim 1, wherein the copy of the source volume table is received before receiving tracks from the source volume to write to the target volume.
3. The computer program product of claim 1, wherein the determining tracks available to release and the releasing space are performed while receiving tracks from the source volume to write to the target volume.
4. The computer program product of claim 3, wherein the releasing the space comprises:
forming a space release list indicating the determined tracks;
constructing space release commands for the tracks in the space release list; and
sending the space release commands to a device adaptor to execute against the target volume to release the space while receiving tracks from the source volume to write to the target volume.
5. The computer program product of claim 1, wherein the consistency group comprises a current consistency group, wherein there is a point-in-time copy of the target volume for a previous consistency group, preceding the current consistency group, and a point-in-time copy data structure indicating tracks in the target volume to copy to the point-in-time copy of the target volume to make consistent as of a time of the previous consistency group, wherein the operations further comprise:
determining tracks available to release, according to the copy of the source volume table, indicated in the point-in-time copy data structure to copy to the point-in-time copy of the target volume; and
copying the determined tracks from the target volume, indicated in the point-in-time copy data structure to copy for the previous consistency group, to the point-in-time copy of the target volume for the previous consistency group, wherein the space is released for the determined tracks to copy to the point-in-time copy of the target volume in response to copying the tracks to the point-in-time copy of the target volume for the previous consistency group.
6. The computer program product of claim 1, wherein the operations further comprise:
receiving a message indicating that all tracks from the consistency group have been copied to the target volume, wherein the creating the point-in-time copy is performed in response to receiving the message.
7. The computer program product of claim 6, wherein the received message comprises a command to create the point-in-time copy at the target volume.
8. The computer program product of claim 1, wherein there are a plurality of source-target volume pairs for which tracks from source volumes are copied to target volumes for the consistency group, wherein the operations of writing the tracks to the target volume, the determining tracks available to release, releasing the space, creating the point-in-time copy, the creating the point-in-time copy, and the returning complete to forming the consistency group are performed for each of the plurality of source-target volume pairs in the consistency group, and wherein a next consistency group is initiated at the source volume in response to receiving the returning complete for the plurality of source-target volume pairs.
9. The computer program product of claim 1, wherein the target volume comprises a thin provisioned volume, and wherein the space is released from the target volume to make available to other volumes configured in a target storage in which the target volume is configured.
10. A system for releasing space in a target volume to which data is copied from a source volume, comprising:
a processor; and
a computer readable storage medium having program instructions executable by the processor to cause operations, the operations comprising:
receiving a copy of a source volume table for the source volume providing a state of tracks in the source volume for a consistency group of the tracks;
writing tracks received from the source volume to the target volume to form the consistency group of tracks in the source volume at the target volume;
determining tracks available to release from the copy of the source volume table;
releasing space allocated to the determined tracks;
creating a point-in-time copy of the target volume for the consistency group; and
returning complete to forming the consistency group in response to releasing the space and creating the point-in-time copy.
11. The system of claim 10, wherein the copy of the source volume table is received before receiving tracks from the source volume to write to the target volume.
12. The system of claim 10, wherein the determining tracks available to release and the releasing space are performed while receiving tracks from the source volume to write to the target volume.
13. The system of claim 10, wherein the consistency group comprises a current consistency group, wherein there is a point-in-time copy of the target volume for a previous consistency group, preceding the current consistency group, and a point-in-time copy data structure indicating tracks in the target volume to copy to the point-in-time copy of the target volume to make consistent as of a time of the previous consistency group, wherein the operations further comprise:
determining tracks available to release, according to the copy of the source volume table, indicated in the point-in-time copy data structure to copy to the point-in-time copy of the target volume; and
copying the determined tracks from the target volume, indicated in the point-in-time copy data structure to copy for the previous consistency group, to the point-in-time copy of the target volume for the previous consistency group, wherein the space is released for the determined tracks to copy to the point-in-time copy of the target volume in response to copying the tracks to the point-in-time copy of the target volume for the previous consistency group.
14. The system of claim 10, wherein the operations further comprise:
receiving a message indicating that all tracks from the consistency group have been copied to the target volume, wherein the creating the point-in-time copy is performed in response to receiving the message.
15. The system of claim 14, wherein the received message comprises a command to create the point-in-time copy at the target volume.
16. The system of claim 10, wherein there are a plurality of source-target volume pairs for which tracks from source volumes are copied to target volumes for the consistency group, wherein the operations of writing the tracks to the target volume, the determining tracks available to release, releasing the space, creating the point-in-time copy, the creating the point-in-time copy, and the returning complete to forming the consistency group are performed for each of the plurality of source-target volume pairs in the consistency group, and wherein a next consistency group is initiated at the source volume in response to receiving the returning complete for the plurality of source-target volume pairs.
17. A method for releasing space in a target volume to which data is copied from a source volume, comprising:
receiving a copy of a source volume table for the source volume providing a state of tracks in the source volume for a consistency group of the tracks;
writing tracks received from the source volume to the target volume to form the consistency group of tracks in the source volume at the target volume;
determining tracks available to release from the copy of the source volume table;
releasing space allocated to the determined tracks;
creating a point-in-time copy of the target volume for the consistency group; and
returning complete to forming the consistency group in response to releasing the space and creating the point-in-time copy.
18. The method of claim 17, wherein the copy of the source volume table is received before receiving tracks from the source volume to write to the target volume.
19. The method of claim 17, wherein the determining tracks available to release and the releasing space are performed while receiving tracks from the source volume to write to the target volume.
20. The method of claim 17, wherein the consistency group comprises a current consistency group, wherein there is a point-in-time copy of the target volume for a previous consistency group, preceding the current consistency group, and a point-in-time copy data structure indicating tracks in the target volume to copy to the point-in-time copy of the target volume to make consistent as of a time of the previous consistency group, further comprising:
determining tracks available to release, according to the copy of the source volume table, indicated in the point-in-time copy data structure to copy to the point-in-time copy of the target volume; and
copying the determined tracks from the target volume, indicated in the point-in-time copy data structure to copy for the previous consistency group, to the point-in-time copy of the target volume for the previous consistency group, wherein the space is released for the determined tracks to copy to the point-in-time copy of the target volume in response to copying the tracks to the point-in-time copy of the target volume for the previous consistency group.
21. The method of claim 17, further comprising:
receiving a message indicating that all tracks from the consistency group have been copied to the target volume, wherein the creating the point-in-time copy is performed in response to receiving the message.
22. The method of claim 21, wherein the received message comprises a command to create the point-in-time copy at the target volume.
23. The method of claim 17, wherein there are a plurality of source-target volume pairs for which tracks from source volumes are copied to target volumes for the consistency group, wherein the writing the tracks to the target volume, the determining tracks available to release, releasing the space, creating the point-in-time copy, the creating the point-in-time copy, and the returning complete to forming the consistency group are performed for each of the plurality of source-target volume pairs in the consistency group, and wherein a next consistency group is initiated at the source volume in response to receiving the returning complete for the plurality of source-target volume pairs.
US15/840,363 2017-12-13 2017-12-13 Determining space to release in a target volume to which tracks from a source volume are mirrored Expired - Fee Related US10409733B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
US15/840,363 US10409733B2 (en) 2017-12-13 2017-12-13 Determining space to release in a target volume to which tracks from a source volume are mirrored
US16/430,765 US11188479B2 (en) 2017-12-13 2019-06-04 Determining space to release in a target volume to which tracks from a source volume are mirrored

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
US15/840,363 US10409733B2 (en) 2017-12-13 2017-12-13 Determining space to release in a target volume to which tracks from a source volume are mirrored

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US16/430,765 Continuation US11188479B2 (en) 2017-12-13 2019-06-04 Determining space to release in a target volume to which tracks from a source volume are mirrored

Publications (2)

Publication Number Publication Date
US20190179771A1 US20190179771A1 (en) 2019-06-13
US10409733B2 true US10409733B2 (en) 2019-09-10

Family

ID=66696855

Family Applications (2)

Application Number Title Priority Date Filing Date
US15/840,363 Expired - Fee Related US10409733B2 (en) 2017-12-13 2017-12-13 Determining space to release in a target volume to which tracks from a source volume are mirrored
US16/430,765 Active 2038-04-22 US11188479B2 (en) 2017-12-13 2019-06-04 Determining space to release in a target volume to which tracks from a source volume are mirrored

Family Applications After (1)

Application Number Title Priority Date Filing Date
US16/430,765 Active 2038-04-22 US11188479B2 (en) 2017-12-13 2019-06-04 Determining space to release in a target volume to which tracks from a source volume are mirrored

Country Status (1)

Country Link
US (2) US10409733B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11099751B2 (en) 2017-12-13 2021-08-24 International Business Machines Corporation Determining tracks to release in a source volume being copied to a target volume
US11175827B2 (en) 2017-12-13 2021-11-16 International Business Machines Corporation Determining tracks to release in a target volume mirrored from a source volume
US11188479B2 (en) 2017-12-13 2021-11-30 International Business Machines Corporation Determining space to release in a target volume to which tracks from a source volume are mirrored

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11397539B2 (en) * 2020-11-30 2022-07-26 EMC IP Holding Company LLC Distributed backup using local access
US12039168B2 (en) * 2022-10-14 2024-07-16 Dell Products, L.P. Multiple version write pending support in shared global memory

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140006853A1 (en) * 2012-06-27 2014-01-02 International Business Machines Corporation Recovering a volume table and data sets from a corrupted volume
US8959305B1 (en) 2012-06-29 2015-02-17 Emc Corporation Space reclamation with virtually provisioned devices
US20150261453A1 (en) 2014-03-11 2015-09-17 International Business Machines Corporation Grouping of tracks for copy source to target destage on global mirror secondary
US20160320988A1 (en) * 2015-05-03 2016-11-03 International Business Machines Corporation Coordinated space reclamation in space-efficient flashcopy volumes
US20170206020A1 (en) 2016-01-18 2017-07-20 International Business Machines Corporation Space reclamation in asynchronously mirrored space-efficient secondary volumes
US20170206158A1 (en) 2016-01-18 2017-07-20 International Business Machines Corporation Space reclamation in space-efficient secondary volumes

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9063883B2 (en) 2011-09-26 2015-06-23 International Business Machines Corporation Management of point-in-time copy relationship for extent space efficient volumes
US9665477B2 (en) 2013-02-01 2017-05-30 International Business Machines Corporation Allocating additional requested storage space for a data set in a first managed space in a second managed space
US10402107B2 (en) 2017-12-13 2019-09-03 International Business Machines Corporation Determining tracks to release in a source volume being copied to a target volume
US10394455B2 (en) 2017-12-13 2019-08-27 International Business Machines Corporation Determining tracks to release in a target volume mirrored from a source volume
US10409733B2 (en) 2017-12-13 2019-09-10 International Business Machines Corporation Determining space to release in a target volume to which tracks from a source volume are mirrored

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140006853A1 (en) * 2012-06-27 2014-01-02 International Business Machines Corporation Recovering a volume table and data sets from a corrupted volume
US8959305B1 (en) 2012-06-29 2015-02-17 Emc Corporation Space reclamation with virtually provisioned devices
US20150261453A1 (en) 2014-03-11 2015-09-17 International Business Machines Corporation Grouping of tracks for copy source to target destage on global mirror secondary
US20160320988A1 (en) * 2015-05-03 2016-11-03 International Business Machines Corporation Coordinated space reclamation in space-efficient flashcopy volumes
US20170206020A1 (en) 2016-01-18 2017-07-20 International Business Machines Corporation Space reclamation in asynchronously mirrored space-efficient secondary volumes
US20170206158A1 (en) 2016-01-18 2017-07-20 International Business Machines Corporation Space reclamation in space-efficient secondary volumes

Non-Patent Citations (13)

* Cited by examiner, † Cited by third party
Title
B. Dufrasne, et al., "IBM DS8880 Thin Provisioning", International Business Machines Corp., Redpaper, Document No. REDP-5343-00, Aug. 2016, pp. 80.
C. Burger, et al., "Accelerate with IBM Storage: DS8880/DS8880F Thin Provisioning", IBM Washington Systems Center-Storage; 2017, pp. 89.
C. Burger, et al., "Accelerate with IBM Storage: DS8880/DS8880F Thin Provisioning", IBM Washington Systems Center—Storage; 2017, pp. 89.
List of IBM Patents or Patent Applications Treated as Related, dated Dec. 13, 2017, pp. 2.
List of IBM Patents or Patent Applications Treated as Related, Jun. 4, 2019, pp. 2.
Notice of Allowance dated Mar. 29, 2019, pp. 13, for U.S. Appl. No. 15/840,349, (18.771).
Notice of Allowance dated Mar. 29, 2019, pp. 13, for U.S. Appl. No. 15/840,375, (18.773).
U.S. Appl. No. 15/604,420, filed May 24, 2017, (18.707).
U.S. Appl. No. 15/840,349, filed Dec. 13, 2017, (18.771).
U.S. Appl. No. 15/840,375, filed Dec. 13, 2017, (18.773).
U.S. Appl. No. 16/430,747, filed Jun. 4, 2019.
U.S. Appl. No. 16/430,765, filed Jun. 4, 2019.
U.S. Appl. No. 16/430,777, filed Jun. 4, 2019.

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11099751B2 (en) 2017-12-13 2021-08-24 International Business Machines Corporation Determining tracks to release in a source volume being copied to a target volume
US11175827B2 (en) 2017-12-13 2021-11-16 International Business Machines Corporation Determining tracks to release in a target volume mirrored from a source volume
US11188479B2 (en) 2017-12-13 2021-11-30 International Business Machines Corporation Determining space to release in a target volume to which tracks from a source volume are mirrored

Also Published As

Publication number Publication date
US20190286576A1 (en) 2019-09-19
US20190179771A1 (en) 2019-06-13
US11188479B2 (en) 2021-11-30

Similar Documents

Publication Publication Date Title
US10156989B2 (en) Preallocating storage space for an application operation in a space efficient volume
US11188479B2 (en) Determining space to release in a target volume to which tracks from a source volume are mirrored
US10168906B2 (en) Preallocating storage space for an application operation in a space efficient volume
US11182373B2 (en) Updating change information for current copy relationships when establishing a new copy relationship having overlapping data with the current copy relationships
US11073989B2 (en) Using mirror indicators to indicate whether to mirror tracks in a data set in a primary volume mirrored to a secondary volume
US10678661B2 (en) Processing a recall request for data migrated from a primary storage system having data mirrored to a secondary storage system
US11099751B2 (en) Determining tracks to release in a source volume being copied to a target volume
US11175827B2 (en) Determining tracks to release in a target volume mirrored from a source volume
US10545690B2 (en) Using a cascade flag to process a copy relationship having a backward cascade copy relationship
US10606506B2 (en) Releasing space allocated to a space efficient target storage in a copy relationship with a source storage
US10168925B2 (en) Generating point-in-time copy commands for extents of data
US11164599B2 (en) Indicating tracks as erased without deleting data for the tracks
US11256716B2 (en) Verifying mirroring of source data units to target data units
US10705765B2 (en) Managing point-in-time copies for extents of data
US11093178B2 (en) Using a space release data structure to indicate tracks to release for a space release command to release space of tracks

Legal Events

Date Code Title Description
AS Assignment

Owner name: INTERNATIONAL BUSINESS MACHINES CORPORATION, NEW Y

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:WARD, MATTHEW J.;CRAWFORD, JOSHUA J.;MCBRIDE, GREGORY E.;REEL/FRAME:044387/0240

Effective date: 20171212

FEPP Fee payment procedure

Free format text: ENTITY STATUS SET TO UNDISCOUNTED (ORIGINAL EVENT CODE: BIG.); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY

STPP Information on status: patent application and granting procedure in general

Free format text: AWAITING TC RESP., ISSUE FEE NOT PAID

STPP Information on status: patent application and granting procedure in general

Free format text: NOTICE OF ALLOWANCE MAILED -- APPLICATION RECEIVED IN OFFICE OF PUBLICATIONS

STPP Information on status: patent application and granting procedure in general

Free format text: PUBLICATIONS -- ISSUE FEE PAYMENT VERIFIED

STCF Information on status: patent grant

Free format text: PATENTED CASE

FEPP Fee payment procedure

Free format text: MAINTENANCE FEE REMINDER MAILED (ORIGINAL EVENT CODE: REM.); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY

LAPS Lapse for failure to pay maintenance fees

Free format text: PATENT EXPIRED FOR FAILURE TO PAY MAINTENANCE FEES (ORIGINAL EVENT CODE: EXP.); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY

STCH Information on status: patent discontinuation

Free format text: PATENT EXPIRED DUE TO NONPAYMENT OF MAINTENANCE FEES UNDER 37 CFR 1.362

FP Lapsed due to failure to pay maintenance fee

Effective date: 20230910