The present invention relates to a computer program product, system, and method for using mirror indicators to indicate whether to mirror tracks in a data set in a primary volume mirrored to a secondary volume.
In certain computing environments, multiple host systems may configure data sets in volumes configured in a storage system, such as interconnected storage devices, e.g., a Direct Access Storage Device (DASD), Redundant Array of Independent Disks (RAID), Just a Bunch of Disks (JBOD), etc. Data sets are comprised of extents, which may comprise any grouping of tracks and data storage units. The Z/OS® operating system from International Business Machines Corporation (“IBM”) has a Volume Table of Contents (VTOC) to provide information on data sets of extents configured in the volume, where the VTOC indicates the location of tracks, extents, and data sets for a volume in storage.
Disaster recovery systems typically address two types of failures, a sudden catastrophic failure at a single point in time or data loss over a period of time. In the second type of gradual disaster, updates to volumes may be lost. To assist in recovery of data updates, a copy of data may be provided at a remote location. Such dual or shadow copies are typically made as the application system is writing new data to a primary storage device. Different copy technologies may be used for maintaining remote copies of data at a secondary site, such as International Business Machine Corporation's (“IBM”) Extended Remote Copy (XRC), Coupled XRC (CXRC), Global Copy, and Global Mirror Copy. In data mirroring systems, data is maintained in volume pairs. A volume pair is comprised of a volume in a primary storage device and a corresponding volume in a secondary storage device that includes an identical copy of the data maintained in the primary volume. Primary and secondary control units, also known as storage controllers or enterprise storage servers, may be used to control access to the primary and secondary storage devices. In peer-to-peer remote copy operations (PPRC), multiple primary control units may have source/target pairs, i.e., volume pairs, included in consistency groups so that data copied to target volumes by the different primary control units maintains data consistency.
When establishing a mirror copy relationship, the administrator may set up copy relationship between volumes in a session that may be grouped according to Logical Subsystem (LSS), where there may be multiple LSSs, each grouping multiple volumes, and where the LSSs are assigned to one session. Data consistency may be maintained among the mirror copy operations between the volumes in the LSSs assigned to a session.
There is a need in the art for improved techniques for controlling data mirroring operations.
Provided are a computer program product, system, and method for using mirror indicators to indicate whether to mirror tracks in a data set in a primary volume mirrored to a secondary volume. A table includes a mirror indicator for each of a plurality of tracks in at least one data set in the primary volume indicating whether a track is to be mirrored to the secondary volume. In response to a write command of write data for one of the tracks in the primary volume, creating a record set in a cache for the primary volume including write data for the track to transfer to the secondary volume in response to the mirror indicator for the track indicating that the track is to be mirrored. The write data in the record set is transferred from the cache to the secondary volume.
Data mirror products are designed to copy full volumes from a primary to a secondary site. However, the customer may not want to copy certain data sets or tracks within a data set, and copying a full volume would move non-essential data sets prior to initiating the data mirror. Described embodiments allow a user to specify data sets and tracks in a data set to mirror in a user data set mirror list that is used to generate a reference table to indicate which data sets and tracks in a primary volume are mirrored, so that only those indicated data sets and tracks are mirrored. A data set mover at the secondary site may use the reference table to determine which tracks or record sets in the primary controller cache to copy to the secondary volume in the mirror copy relationship. This allows the user to specify with fine grain control data sets and tracks within a data set to include in the mirror copy.
The controllers 100a, 100b manage access to data sets 114a, 114b configured in the primary 102a and secondary 102b volumes, respectively. A data set 114a, 114b comprises a collection of data intended to be stored in a same logical allocation of data, such as data from a single application, user, enterprise, etc. A data set 114a, 114b may be comprised of separate files or records, or comprise a single file or record. Each record or file in the data set may be comprised of extents of data. The data sets 114a, 114b may comprise indexed data sets that are indexed according to a primary key that is used to locate records in the data set 114a, 114b or unindexed.
The primary 106a and secondary 106b sites may be at remote or proximate geographical locations, such as in a same building, same city, same state, same country, different countries, or any other regional, national, nautical, or planetary boundaries, etc.
The primary 100a and secondary 100b controllers each include a system memory 116a, 116b including an operating system 118a, 118b having a volume manager 120a, 120b to manage the storage of data sets 114a, 114b in the volumes 102a, 102b. The operating system 118a, 118b may comprise an operating such as the IBM z/OS® operating system or other operating systems. (IBM and z/OS are trademarks of IBM worldwide).
Each volume 102a, 102b includes a volume table 200a, 200b having information on the volume 104 to which it pertains, including a mapping of tracks and extents of tracks to data sets 102. The volume table 200a, 200b may be stored in the volume 102a, 102b, such as in the first few records of the volume, i.e., starting at the first track in the volume 104. In IBM z/OS operating system implementations, the volume table 200a, 200b may comprise a volume table of contents (VTOC). The volume tables 200a, 200b may comprise contiguous space data set having contiguous tracks or physical addresses in the storages 104a, 104b. In alternative embodiments, the volume table 200a, 200b may comprise a file allocation table stored separately from the volume 102a, 102b.
The controllers 100a, 100b may maintain copies of the volume tables 200a, 200b to use to manage the data sets 114a, 114b in the volumes 200a′, 200b′ in their respective memory 116a, 116b. In z/OS implementations, the volume table 200a, 200b, e.g., VTOC, may include information on locations of data sets 114a, 114b in the volumes 102a, 102b, such as a mapping of extents in the data set to storage locations in the volume. In alternative embodiments, the volume tables 200a, 200b may comprise other types of file allocation data structures that provide a mapping of data to storage locations, either logical and/or physical storage locations. In this way, the volume table 200a, 200b provides a mapping of tracks or extents to data sets 1114a, 114b in the volumes 102a, 102b. In further embodiments, the volume tables 200a, 200b may include a volume name (VOLSER) and data set records indicating data sets having extents configured in the volume 104. Each data set record in a volume table may have information for each data set 102 in a volume 104, including the one or more extents assigned to the data set 102. The data sets 114a, 114b may be variable size data sets or fixed sized data sets.
The operating systems 118a, 118b further include an Input/Output supervisor 122a, 122b comprising a driver to manage the disk caching and access operations for the volumes 102a, 102b configured in the primary 104a and secondary 104b storages, respectively. Further the I/O supervisor 122a may manage the storage of record sets 400 in a cache 124a to cache data for the primary volumes 102a. The secondary controller 100b has a cache 124b to cache data for the secondary volumes 102b. The operating system 118a, 118b may further include a copy manager 126a, 126b to manage mirror copy operations between the primary 100a and secondary 100b controllers. The system data mover 108 would further have information on mirror copy relationships 128 established between the primary volumes 102a and secondary volumes 102b, which may be created by the copy manager 126a. The I/O supervisor 122a creates record sets 400 in the cache 124b for track data to mirror to the secondary volume 102b.
The volume manager 120a may further generate a reference table 300 to provide fine grain control on which tracks in data sets 114a are to be mirrored to the secondary volume 102b to allow for only a subset of tracks in the data sets 114a to be mirrored to the secondary volume 102b. The reference table 300 may be stored at contiguous physical locations in the primary storage 104a with respect to the volume table 200a in the primary volume 102a, such as an extension of the volume table 200a. A copy of the reference table 300′ may be maintained in the memory 116a.
The copy manager 126a or other component may receive a data set mirror list 130 from a user indicating for a primary volume 102a in a mirror copy relationship 128 the data sets 114a and tracks within data sets to include in the mirror copy. The reference table 300 is generated based on the data set mirror list 130 from a user or administrator to indicate the data sets or tracks that are to be mirrored to the secondary volume 102b.
The storages 104a, 104b may comprise one or more storage devices known in the art, such as a solid state storage device (SSD) comprised of solid state electronics, NAND storage cells, EEPROM (Electrically Erasable Programmable Read-Only Memory), flash memory, flash disk, Random Access Memory (RAM) drive, storage-class memory (SCM), Phase Change Memory (PCM), resistive random access memory (RRAM), spin transfer torque memory (STM-RAM), conductive bridging RAM (CBRAM), Non-Volatile Dual In-line Memory Module (NVDIMM), Static Random Access Memory (SRAM), magnetic hard disk drive, optical disk, tape, etc. The storage devices may further be configured into 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 104a, 104b may comprise heterogeneous storage devices from different vendors or from the same vendor.
The memory 116a, 116b may comprise suitable volatile or non-volatile memory devices for a system or main memory, including those memory class devices described above with respect to the storages 104a, 104b.
The primary controller 100a, secondary controller 100b, and system data mover 108 may communicate over a network 132, such as a Local Area Network (LAN), Storage Area Network (SAN), Wide Area Network (WAN), peer-to-peer network, wireless network, etc. Alternatively, the connection 114 may comprise bus interfaces, such as a Peripheral Component Interconnect (PCI) bus or serial interface.
When creating a reference table for a mirror copy that will perform an initial full copy of the primary volume 102a, the data set name 310 and mirror indicators 312 for all the tracks may be set to indicate copying to cause the system data mover 108 to perform a full copy of the entire primary volume 102a to the secondary volume 102b.
In certain embodiments, the user specified data set mirror list 130 may indicate to mirror tracks including metadata and configuration information for a volume, including the volume table 200a, reference table 300, and other configuration information for a volume 102a. This ensures mirror copy protection of critical system files and information.
If (at block 904) there are no tracks in the reference table 300 having the mirror indicator 312 indicating to mirror data or if (at block 908) there are no record sets 400i to copy, i.e., having the copied flag 410 indicating already copied, then control ends without reading and mirroring data.
With the described embodiments, the system data mover 108 only mirrors the record sets 400 in the cache 124a that are indicated to be mirrored in the mirror indicator 312 of the reference table entry 300i for the track being considered. Tracks or record sets that are not indicated to be mirrored are then left in the cache 124a and not mirrored. This allows for fine-grain control of the tracks of a primary volume 102a in a mirror copy relationship 128 that will be subject to mirroring, so that only those tracks of a data set 114a are specified to be mirrored are mirrored, and tracks in a data set 114a in a volume 102a to mirror that have not been specified to mirror will not be mirrored to store in the secondary storage 104b.
With the embodiment of
In
The reference characters used herein, such as i and n used herein 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
As shown in
Computer system/server 1202 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by computer system/server 1202, and it includes both volatile and non-volatile media, removable and non-removable media.
System memory 1206 can include computer system readable media in the form of volatile memory, such as random access memory (RAM) 1210 and/or cache memory 1212. Computer system/server 1202 may further include other removable/non-removable, volatile/non-volatile computer system storage media. By way of example only, storage system 1213 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 1208 by one or more data media interfaces. As will be further depicted and described below, memory 1206 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 1214, having a set (at least one) of program modules 1216, may be stored in memory 1206 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 1202 may be implemented as program modules 1216 which generally carry out the functions and/or methodologies of embodiments of the invention as described herein. The systems of
Computer system/server 1202 may also communicate with one or more external devices 1218 such as a keyboard, a pointing device, a display 1220, etc.; one or more devices that enable a user to interact with computer system/server 1202; and/or any devices (e.g., network card, modem, etc.) that enable computer system/server 1202 to communicate with one or more other computing devices. Such communication can occur via Input/Output (I/O) interfaces 1222. Still yet, computer system/server 1202 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 1224. As depicted, network adapter 1224 communicates with the other components of computer system/server 1202 via bus 1208. It should be understood that although not shown, other hardware and/or software components could be used in conjunction with computer system/server 1202. 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.
Number | Date | Country | |
---|---|---|---|
Parent | 15641041 | Jul 2017 | US |
Child | 16436915 | US | |
Parent | 15276484 | Sep 2016 | US |
Child | 15641041 | US |