A method for enabling data set changes to be reverted to a prior point in time or state is disclosed. In one embodiment, such a method includes providing a data set comprising one or more data elements and a specified number of generations of the data elements. In certain embodiments, the data set is a partitioned data set extended (PDSE) data set, and the data elements are “members” within the PDSE data set. The method further includes tracking changes made by a job to data elements of the data set. The method further references, in a data structure (also referred to herein as a “cluster”) associated with the job, previous generations of the data elements changed by the job. In certain embodiments, the data structure is stored in the data set. A corresponding system and computer program product are also disclosed.
|
1. A method to enable data set changes to be reverted to a prior point in time or state, the method comprising:
providing a data set comprising one or more data elements and a specified number of generations of the data elements;
tracking changes made by a job to data elements of the data set;
identifying, in a job cluster stored in the data set and associated with the job, previous generations of the data elements changed by the job;
providing attributes associated with the previous generations that point back to the job cluster; and
safely reversing changes made to the data set by the job as follows:
finding, in the data set using identifying information associated with the job, the job cluster associated with the job;
reading the job cluster to determine which linked set of generations were modified by the job; and
rolling back the data elements to correspond to the linked set of generations.
11. A system to enable data set changes to be reverted to a prior point in time or state, the system comprising:
at least one processor;
at least one memory device operably coupled to the at least one processor and storing instructions for execution on the at least one processor, the instructions causing the at least one processor to:
provide a data set comprising one or more data elements and a specified number of generations of the data elements;
track changes made by a job to data elements of the data set; and
identify, in a job cluster stored in the data set and associated with the job, previous generations of the data elements changed by the job;
provide attributes associated with the previous generations that point back to the job cluster; and
safely reverse changes made to the data set by the job as follows:
find, in the data set using identifying information associated with the job, the job cluster associated with the job;
read the job cluster to determine which linked set of generations were modified by the job; and
roll back the data elements to correspond to the linked set of generations.
6. A computer program product to enable data set changes to be reverted to a prior point in time or state, the computer program product comprising a non-transitory computer-readable storage medium having computer-usable program code embodied therein, the computer-usable program code comprising:
computer-usable program code to provide a data set comprising one or more data elements and a specified number of generations of the data elements;
computer-usable program code to track changes made by a job to data elements of the data set;
computer-usable program code to identify, in a job cluster stored in the data set and associated with the job, previous generations of the data elements changed by the job;
computer-usable program code to provide attributes associated with the previous generations that point back to the job cluster; and
computer-usable program code to safely reverse changes made to the data set by the job as follows:
find, in the data set using identifying information associated with the job, the job cluster associated with the job;
read the job cluster to determine which linked set of generations were modified by the job; and
roll back the data elements to correspond to the linked set of generations.
2. The method of
3. The method of
4. The method of
5. The method of
7. The computer program product of
8. The computer program product of
9. The computer program product of
10. The computer program product of
12. The system of
13. The system of
14. The system of
|
Field of the Invention
This invention relates to systems and methods for enabling changes to a data set to be reverted to a prior point in time or state.
Background of the Invention
In the z/OS operating system, PDSE (partitioned data set extended) data sets are used to simply and efficiently organize related groups of sequential files, also referred to as “members.” Files stored as members of a PDSE data set may be processed individually or as a unit. Current versions of PDSE data sets may support multiple levels, or generations, of members. Using this feature, when a member is changed, a new member may be created and the older version of the member may be retained, up to a specified number of generations. This feature advantageously enables recent changes to a member to be reversed. This feature also allows multiple generations of a member to be retained for archival reasons. The retained generations may be structured in a first in, first out (FIFO) configuration, such that an oldest generation is discarded when the retained generation limit is reached.
Unfortunately, while PDSE data sets may enable individual members to be recovered to various points in time or states, there is no way to determine which members of a PDSE data set were affected by a particular run of a job. There is also no way to determine whether reversing changes of a single member of a PDSE data set will have adverse affects on the PDSE data set due to data dependencies or other relationships. This can limit the usefulness of the PDSE generations feature. It can also make it difficult or impossible to reverse changes made to a PDSE data set by a particular job or task, since no functionality to enable such is provided.
In view of the foregoing, systems and methods are needed to determine which members of a PDSE data set were affected by a particular task or job. Ideally, such systems and methods will increase the usefulness of PDSE generations and enable changes made to a PDSE data set by a particular job or task to be safely reversed.
The invention has been developed in response to the present state of the art and, in particular, in response to the problems and needs in the art that have not yet been fully solved by currently available systems and methods. Accordingly, the invention has been developed to provide systems and methods to dynamically modify generation depth in PDSE or similar data sets. The features and advantages of the invention will become more fully apparent from the following description and appended claims, or may be learned by practice of the invention as set forth hereinafter.
Consistent with the foregoing, a method for enabling data set changes to be reverted to a prior point in time or state is disclosed herein. In one embodiment, such a method includes providing a data set comprising one or more data elements and a specified number of generations of the data elements. In certain embodiments, the data set is a partitioned data set extended (PDSE) data set, and the data elements are “members” within the PDSE data set. The method further includes tracking changes made by a job to data elements of the data set. The method further references, in a data structure (also referred to herein as a “cluster”) associated with the job, previous generations of the data elements changed by the job. In certain embodiments, the data structure is stored in the data set. The data structure may enable the data set to be reverted to the state that it was in prior to changes by the job. A corresponding system and computer program product are also disclosed and claimed herein.
In order that the advantages of the invention will be readily understood, a more particular description of the invention briefly described above will be rendered by reference to specific embodiments illustrated in the appended drawings. Understanding that these drawings depict only typical embodiments of the invention and are not therefore to be considered limiting of its scope, the invention will be described and explained with additional specificity and detail through use of the accompanying drawings, in which:
It will be readily understood that the components of the present invention, as generally described and illustrated in the Figures herein, could be arranged and designed in a wide variety of different configurations. Thus, the following more detailed description of the embodiments of the invention, as represented in the Figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of certain examples of presently contemplated embodiments in accordance with the invention. The presently described embodiments will be best understood by reference to the drawings, wherein like parts are designated by like numerals throughout.
The present invention may be embodied as a system, method, and/or 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 may 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 system, a magnetic storage system, an optical storage system, an electromagnetic storage system, a semiconductor storage system, 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 system 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 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 a user's computer, partly on a user's computer, as a stand-alone software package, partly on a user's computer and partly on a remote computer, or entirely on a remote computer or server. In the latter scenario, a remote computer may be connected to a 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, may 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.
Referring to
A Sysplex® environment 100 may be configured to enable multiple mainframe processors of host systems 102a-c to act as a single unit and share the same data, while ensuring data integrity, enabling resource sharing, and performing workload balancing. For example, the host systems 102a-c may share data stored in one or more storage device (e.g., DASD) volumes 104a-c. A coupling facility 105 may include computer hardware and/or software that enable the host systems 102a-c to share the same data. In certain embodiments, the coupling facility 105 may include cache 112 to store information shared among the attached host systems 102a-c.
As mentioned, the host systems 102a-c may share data stored in one or more volumes 104a-c stored on one or more storage devices 106. The storage devices 106 may include single disk drives or solid state drive s, arrays of disk drives or solid state drives, or other storage devices 106 known to those of skill in the art. The volumes 104a-c may reside on a single storage device 106 or span multiple storage devices 106.
Referring to
As shown in
As was also previously explained, while PDSE data sets may enable individual members to be recovered to various points in time, there is no way to determine which members of PDSE data set were affected by a particular run of a job. There is also no current way to determine whether reversing changes of a single member of a PDSE data set will have adverse affects on the PDSE data set due to data dependencies or other relationships. This can limit the usefulness of the PDSE generations feature. It can also make it difficult or impossible to reverse changes made to a PDSE data set by a particular job or task, since no functionality to enable such is provided.
Referring to
As shown in
As shown in
Referring to
Referring to
If, at step 502, a job opens the data set 108, the method 500 creates 504 a cluster 302 associated with the job and populates 506 the cluster 302 with information related to the job, such as the information 304, 306, 308, 310, 312 discussed in association with
When a commit from a job results in a new generation being created in the PDSE data set 108, the method 500 records 506 the updates in the cluster 302, such as listing the name of the primary member 202 that had a new generation created, and providing a pointer to the member's generation that existed prior to the job. The method 500 may also add a pointer 320 from the affected generation back to the cluster 302, as was discussed in association with
When the job closes 510 the PDSE data set 108 (i.e., the job CLOSEs the connection to the PDSE data set 108), the method 500 commits the cluster 302 and other changes (member updates, etc.) to the data set 108 and records the cluster 302 and time of the final commit in the log structure 400 previously discussed. Otherwise, the cluster 302 and changes to the data set 108 are rolled back 512. The method 500 may then repeat by waiting 502 for a new job to open a data set 108 to perform reads or writes thereto.
Referring to
Although particular reference has been made herein to PDSE data sets 108, the systems and methods disclosed herein may be equally applicable to other types of data sets with similar characteristic. For example, any type of data set 108 that stores multiple data elements (e.g., members, files, etc.) as well as a number of previous generations of the data elements may beneficially utilize the systems and methods disclosed herein to more efficiently utilize storage space. Thus, the systems and methods disclosed herein are not limited to PDSE data sets 108.
The flowcharts and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer-usable media according to various embodiments of the present invention. In this regard, each block in the flowcharts or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, 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 illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, may be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Smith, Max D., Reed, David C., Reed, Thomas C., Geisler, Trevor A.
Patent | Priority | Assignee | Title |
Patent | Priority | Assignee | Title |
8315992, | Nov 26 2008 | Veritas Technologies LLC | Affinity based allocation for storage implementations employing deduplicated data stores |
20020156986, | |||
20050262097, | |||
20080144080, | |||
20080184063, | |||
20100161556, | |||
20100191705, | |||
20120005528, | |||
20130007292, | |||
20130339643, | |||
20140081916, | |||
20140201363, |
Executed on | Assignor | Assignee | Conveyance | Frame | Reel | Doc |
Aug 06 2015 | GEISLER, TREVOR A | International Business Machines Corporation | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 036381 | /0960 | |
Aug 06 2015 | REED, DAVID C | International Business Machines Corporation | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 036381 | /0960 | |
Aug 06 2015 | SMITH, MAX D | International Business Machines Corporation | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 036381 | /0960 | |
Aug 17 2015 | REED, THOMAS C | International Business Machines Corporation | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 036381 | /0960 | |
Aug 20 2015 | International Business Machines Corporation | (assignment on the face of the patent) | / |
Date | Maintenance Fee Events |
Date | Maintenance Schedule |
Jan 24 2026 | 4 years fee payment window open |
Jul 24 2026 | 6 months grace period start (w surcharge) |
Jan 24 2027 | patent expiry (for year 4) |
Jan 24 2029 | 2 years to revive unintentionally abandoned end. (for year 4) |
Jan 24 2030 | 8 years fee payment window open |
Jul 24 2030 | 6 months grace period start (w surcharge) |
Jan 24 2031 | patent expiry (for year 8) |
Jan 24 2033 | 2 years to revive unintentionally abandoned end. (for year 8) |
Jan 24 2034 | 12 years fee payment window open |
Jul 24 2034 | 6 months grace period start (w surcharge) |
Jan 24 2035 | patent expiry (for year 12) |
Jan 24 2037 | 2 years to revive unintentionally abandoned end. (for year 12) |