[go: up one dir, main page]

CN106293510B - A kind of data sharing method and system towards multiple virtual storage systems - Google Patents

A kind of data sharing method and system towards multiple virtual storage systems Download PDF

Info

Publication number
CN106293510B
CN106293510B CN201610580127.4A CN201610580127A CN106293510B CN 106293510 B CN106293510 B CN 106293510B CN 201610580127 A CN201610580127 A CN 201610580127A CN 106293510 B CN106293510 B CN 106293510B
Authority
CN
China
Prior art keywords
counter
mvs
software
target
name
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.)
Active
Application number
CN201610580127.4A
Other languages
Chinese (zh)
Other versions
CN106293510A (en
Inventor
朱浩
王淑静
曹新平
冯瑶
张虎
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.)
Agricultural Bank of China
Original Assignee
Agricultural Bank of China
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 Agricultural Bank of China filed Critical Agricultural Bank of China
Priority to CN201610580127.4A priority Critical patent/CN106293510B/en
Publication of CN106293510A publication Critical patent/CN106293510A/en
Application granted granted Critical
Publication of CN106293510B publication Critical patent/CN106293510B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0629Configuration or reconfiguration of 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/0662Virtualisation aspects
    • G06F3/0664Virtualisation aspects at device level, e.g. emulation of a storage device or system
    • 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

Landscapes

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

Abstract

The present invention provides a kind of data sharing methods towards multiple virtual storage systems, comprising: deployment software names counter in the target CICS REGION determined in MVS;Size according to software name counter committed memory is that preset batch program distributes virtual memory space, and software is loaded in the virtual memory space and names counter, the initial address of the virtual memory space is converted to physical address;Physical address is sent to each CICS REGION for needing to name counter to access software, so that each needs to name software the on-line program in the CICS REGION that accesses of counter, access according to the physical address to software name counter.The present invention is shared to the CICS REGION where on-line program, is realized in the data sharing in MVS between on-line program and batch program by the physical address where software to be named to counter.

Description

A kind of data sharing method and system towards multiple virtual storage systems
Technical field
The present invention relates to computer field more particularly to a kind of data sharing method towards multiple virtual storage systems and it is System.
Background technique
Naming counter structure (Named Counter, NC) is to be defined on coupling under parallel system (SYSPlex) environment Close the list structure (List that name counter pond (NC pool) is inner in equipment (Counter Facility, CF) Structrue).In banking system, NC is stored for public information of overall importance, is supplied to each MVS (Multiple Virtual Storage, more virtual memories) under on-line program and batch program access.
Realize on-line program and batch program be to the NC premise accessed Data Share System is established in system, that is, Data sharing in realization system between on-line program and batch program, however, the host system realized based on SYSPlex mechanism In, host resource is cut into multiple LPAR (Physical Partitioning, logical partition), and each LPAR is that logic is only Vertical, and LPAR is managed using MVS, on-line program and batch program operate in each MVS, in the prior art can not Realize the data sharing of the on-line program and batch program in the host system for operating in and realizing based on SYSPlex mechanism.
Summary of the invention
In view of this, this method solves the invention proposes a kind of data sharing method towards multiple virtual storage systems In the prior art, the on-line program and batch journey in the host system for operating in and realizing based on SYSPlex mechanism be cannot achieve The data sharing of sequence.
The invention discloses following technical solutions:
The invention discloses a kind of data sharing method towards multiple virtual storage systems, the method is applied mostly virtual In storage system MVS, the MVS is deployed in host system, and each MVS includes multiple Customer Information Control System regions CICS REGION, the virtual memory space that each CICS REGION is occupied are mutually indepedent;The described method includes:
A target CICS REGION is determined in the multiple CICS REGION, in the target CICS REGION Middle deployment software names counter;The structure of the software name counter includes: the spy for storing description counter function Levy area;For being increased counting unit in counter, being stored, deleted and the name region of batch operation, wherein the title Area includes multiple titles, and each title includes at least one counting unit;For carrying out depositing for data storage using counting unit Storage area;With the lock section for being encrypted to software name counter;
It is preset batch program PGM points in the MVS according to the size of software name counter committed memory With virtual memory space;
Load software name counter in the virtual memory space of the PGM, and by the virtual memory of the PGM The initial address in space is converted to physical address;
The physical address is sent to each CICS REGION for needing to name counter to access software, So that it is described each need to name software the on-line program in the CICS REGION that accesses of counter, according to described in Physical address accesses to software name counter.
The above-mentioned method applied in MVS, it is preferred that described that a target is determined in the multiple CICS REGION CICS REGION, deployment software names counter in the target CICS REGION, comprising:
A CICS REGION is randomly choosed in the MVS, and the CICS REGION is determined as target CICS REGION;
The software being set as needed in the target CICS REGION names the size of memory shared by counter, is The software name counter distribution virtual memory space that need to be arranged;
Software name counter is deployed in the virtual memory space.
The above-mentioned method applied in MVS, it is preferred that described the physical address is sent to each to need to software The name CICS REGION that accesses of counter so that it is described each need to name counter to access software On-line program in CICS REGION accesses to software name counter according to the physical address, comprising:
The corresponding virtual memory of CICS REGION that each needs to name counter to access software described in obtaining The address in space;
The corresponding virtual memory of CICS REGION that each needs to name counter to access software according to described in The physical address is sent to each CICS for needing to name counter to access software by the address in space REGION, so that the on-line program of each CICS REGION for needing to name counter to access software, foundation The physical address accesses to software name counter.
The above-mentioned method applied in MVS, it is preferred that further include:
Obtain the backup file of data in the software name counter;
The data in software name counter are monitored using bitmap file bitmap;
When monitored results indicate that the data in the software name counter change, names and count according to the software The variation of data, modifies to the data in the backup file in number device.
The invention also discloses a kind of data sharing method towards multiple virtual storage systems, the method is applied to MVS Group includes multiple MVS in the group, is physically-isolated between any two MVS, wherein being provided in each MVS more A CICS REGION, and a target CICS REGION is determined in the multiple CICS REGION, in the target CICS Deployment software names counter in REGION, and the structure of the software name counter includes: for storing description counter function The characteristic area of energy;For being increased counting unit in counter, being stored, deleted and the name region of batch operation, wherein institute Stating name region includes multiple titles, and each title includes at least one counting unit;It is deposited for carrying out data using counting unit The memory block of storage;With the lock section for being encrypted to the software counter;The described method includes:
Target MVS is determined in the multiple MVS, and determines the name in the target MVS for shared counting unit Claim, wherein the title of the counting unit is present in the name region of the software name counter;
The counting unit in the MVS of data sharing will be carried out with the target MVS, be used for altogether with the target MVS The counting unit enjoyed is arranged to identical title, and shared MVS will be expressed as with the target MVS MVS for carrying out data sharing;
According to the title of identical counting unit, the target MVS and the shared MVS are established into connection;
The physical address for obtaining software name counter in the target MVS, so that the on-line program in the shared MVS Physical address according to software name counter in the target MVS carries out the software name counter in the target MVS Access.
The above-mentioned method applied in MVS group, it is preferred that described to obtain software name counter in the target MVS Physical address, comprising:
Transfer the on-line program in the target CICS REGION run in the target MVS;
Obtain the physical address of the software name counter in the target MVS saved in the target CICS REGION.
The above-mentioned method applied in MVS group, it is preferred that further include:
Obtain the backup file of data in the software name counter;
The data in software name counter are monitored using bitmap file bitmap;
When monitored results indicate that the data in the software name counter change, names and count according to the software The variation of data, modifies to the data in the backup file in number device.
We are bright to additionally provide a kind of data-sharing systems towards multiple virtual storage systems, and the system is applied mostly empty In quasi- storage system MVS, the MVS is deployed in host system, and each MVS includes multiple customer information controls system Unite region CICS REGION, and the virtual memory space that each CICS REGION is occupied is mutually indepedent;The system comprises:
Deployment unit, for determining a target CICS REGION in the multiple CICS REGION, in the mesh It marks deployment software in CICS REGION and names counter;The structure of the software name counter includes: by storing based on description The characteristic area of number device function;For being increased counting unit in counter, being stored, deleted and the name region of batch operation, Wherein the name region includes multiple titles, and each title includes multiple counting units;For carrying out data using counting unit The memory block of storage;With the lock section for being encrypted to software name counter;
Allocation unit is preset in the MVS for the size according to software name counter committed memory Batch program PGM distributes virtual memory space;
Converting unit, for loading the software name counter in the virtual memory space of the PGM, and will be described The initial address of the virtual memory space of PGM is converted to physical address;
Transmission unit needs to name counter to access software for the physical address to be sent to each CICS REGION so that it is described each need to name software the online journey in the CICS REGION that accesses of counter Sequence accesses to software name counter according to the physical address.
The above-mentioned system applied in MVS, it is preferred that further include:
First acquisition unit, for obtaining the backup file of data in the software name counter;
Monitoring unit, for being monitored using bitmap file bitmap to the data in software name counter;
Unit is modified, when the data for being indicated in the software name counter when monitored results change, foundation The variation of data, modifies to the data in the backup file in the software name counter.
The present invention also provides a kind of data-sharing systems towards multiple virtual storage systems, the system is applied to MVS Group includes multiple MVS in the group, is physically-isolated between any two MVS, wherein being provided in each MVS more A CICS REGION, and a target CICS REGION is determined in the multiple CICS REGION, in the target CICS Deployment software names counter in REGION, and the structure of the software name counter includes: for storing description counter function The characteristic area of energy;For being increased counting unit in counter, being stored, deleted and the name region of batch operation, wherein institute Stating name region includes multiple titles, and each title includes multiple counting units;For carrying out data storage using counting unit Memory block;With the lock section for being encrypted to the software counter;Include:
Determination unit is used to determine target MVS in the multiple MVS, and be used to share in the determining target MVS The title of counting unit, wherein the title of the counting unit is present in the name region of the software name counter;
Setting unit, for the counting unit in the MVS of data sharing will to be carried out with the target MVS, with the mesh It is arranged to identical title for shared counting unit in mark MVS, the MVS of data sharing will be carried out with the target MVS It is expressed as shared MVS;
Connection unit establishes the target MVS and the shared MVS for the title according to identical counting unit Connection;
Second acquisition unit, for obtaining the physical address of software name counter in the target MVS, so that described total The on-line program enjoyed in MVS names the physical address of counter to soft in the target MVS according to software in the target MVS Part name counter accesses.
The present invention provides a kind of data sharing methods towards multiple virtual storage systems, comprising: determines only in MVS Deployment software names counter in a target CICS REGION one by one;It is according to the size of memory shared by software name counter Preset batch program PGM distributes virtual memory space, and loads software in the virtual memory space and name counter, will The initial address of the virtual memory space of PGM is converted to physical address;Physical address is sent to each to need to order software The CICS REGION that name counter accesses, so that each needs the CICS to access to software name counter On-line program in REGION accesses to software name counter according to the physical address.The present invention pass through by Software names the physical address where counter, shares to the CICS REGION where on-line program, realizes inline in MVS Data sharing between machine program and batch program, solve cannot achieve in the prior art operates in based on SYSPlex mechanism The data sharing of on-line program and batch program in the host system of realization.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The embodiment of invention for those of ordinary skill in the art without creative efforts, can also basis The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of flow chart of the data sharing method embodiment 1 towards multiple virtual storage systems of the application;
Fig. 2 is a kind of another method flow diagram of data sharing method towards multiple virtual storage systems of the application;
Fig. 3 is a kind of flow chart of the data sharing method embodiment 2 towards multiple virtual storage systems of the application;
Fig. 4 is a kind of structural schematic diagram of the data-sharing systems embodiment 1 towards multiple virtual storage systems of the application;
Fig. 5 is a kind of structural schematic diagram of the data-sharing systems embodiment 2 towards multiple virtual storage systems of the application;
Fig. 6 is a kind of structural schematic diagram of the data-sharing systems embodiment 3 towards multiple virtual storage systems of the application;
Fig. 7 is the main machine structure schematic diagram of SYSPlex system;
A kind of schematic diagram that the data sharing method data towards multiple virtual storage systems are synchronous of the position Fig. 8 the application.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
It is a kind of flow chart of the data sharing method embodiment 1 towards multiple virtual storage systems of the application with reference to Fig. 1, The method is applied in multiple virtual storage systems MVS, and the MVS is deployed in host system, and each MVS includes multiple Customer Information Control System region CICS REGION, the virtual memory space that each CICS REGION is occupied are mutually indepedent;
Wherein the SYSPlex system where MVS main machine structure as shown in figure 8, be between MVS it is physically-isolated, each It include a TOR (Transction of region, transaction area) and multiple AOR (Application of in independent MVS Region, application region), they are CICS REGION, and in banking system, on-line program operates in CICS REGION In, batch program is run directly in MVS, and MVS occupies certain host CPU, memory source, and is assigned them to therein CICS REGION and batch mode operation program, wherein each CICS REGION, batch program be it is logically independent, that is, enjoy It with virtual memory space independent, directly cannot mutually access, but physical memory is not isolated.
The described method includes:
Step S101: a target CICS REGION is determined in the multiple CICS REGION, in the target Deployment software names counter in CICS REGION;The structure of the software name counter includes: to count for storing description The characteristic area of device function;For being increased counting unit in counter, being stored, deleted and the name region of batch operation, Described in name region include multiple titles, each title includes multiple counting units;It is deposited for carrying out data using counting unit The memory block of storage;With the lock section for being encrypted to software name counter;
In the present invention, a kind of software name counter is devised, it is by characteristic area, name which, which names the structure of counter, Area, counter memory block, lock section is claimed to constitute.Wherein, characteristic area is for storing description counter feature, global lock table handling etc. Feature (as shown in table 1 below).Name region is to be distributed, stored in the form of character string+significance bit, deleted, increasing counter, title Each name in area can correspond to multiple counters.The need that count block increases in real time in order to meet counter, field expands It asks, uses such as flowering structure:
Assuming that there are n titles, and at most there is m counter in title, therefore, Cij(0 < i < n, 0≤j < m) generation The independent counting unit of table, each occupancy 4 bytes, i.e. minimum calculation unit.When the data length of record occurs to overflow or needs When merging, CijCan and Cij+1Multiple bytes are merged into, the C of new counter is formedij.In count block, Ci0Not as meter Number device uses, it is used to represent the total bytes coding that the counter under current name occupies, and wherein xik (1≤k≤m), represents CiThe corresponding byte number of lower k counter, it is preferential to read in calculating process, i.e., are as follows:
Ci(xi0+xi1+...xi (k-1))/4~Ci(xi0+xi1+...xik)/4;
Locking minimum unit in section is a byte, and the number of lock is up to n*m, then lock collection is combined into { L0,L1,..., Ln*(m-1), then counter CijCorresponding lock unit is Li*j, as routine access counter Cij, first to Li*jCarry out locking behaviour Make, then modifies CijData, release is to L after operationi*jLock.
1 feature field of table
In the present invention, in multiple CICS REGION in MVS, one is randomly selected, and is a unique CICS REGION perhaps specifies a CICS REGION for the only one CICS REGION of selection by operator or specifies Only one CICS REGION be expressed as target CICS REGION, in target CICS REGION deployment software name meter Number device.Before disposing NC, to be ordered according to the size for the software name occupied memory of counter that need to be disposed for software Name counter distributes virtual memory space.
Step S102: being preset batch in the MVS according to the size of software name counter committed memory Program PGM distributes virtual memory space;
In the present invention, operation has multiple batch programs in MVS, randomly selects one of batch program and is expressed as PGM, PGM names the size of counter committed memory according to software, by Memory Allocation, applies for one section of effective memory headroom, starting Address is ADDR.The memory headroom with CICS REGION be logically it is independent, operate in online in CICS REGION Program cannot directly access to memory headroom.
Step S103: loading software name counter in the virtual memory space of the PGM, and by the PGM The initial address of virtual memory space be converted to physical address;
In the present invention, the software name counter is loaded in the virtual memory space for PGM application, and loading Cheng Hou, batch program PGM enter suspended state, guarantee to apply for that the memory headroom is not released, are then based on mmap function, obtain The corresponding unique physical address PADDR in virtual memory space address of PGM operation.
Step S104: the physical address is sent to each CICS for needing to name counter to access software REGION so that it is described each need to name software the on-line program in the CICS REGION that accesses of counter, according to It accesses according to the physical address to software name counter.
In the present invention, batch program PGM obtains each CICS for needing to access to software name counter Virtual memory space address where REGION sends the physical address according to the virtual memory space of CICS REGION It is online in CICS REGION, the CICS REGION to access to each needs to software name counter Program is addressed software name counter according to the physical address, names counter when finding the software After physical address, access to software name counter.
In the present invention, the concrete methods of realizing of step S104 are as follows:
Batch program calls an online journey using EXCI (External CICS interface, Chinese name) mode Sequence, then by CICS routine call EXEC (executing interface function), and the CICS program is deployed in for shared CICS On REGION, in calling process, PADDR is sent to CICS by batch program Intrusion Detection based on host COMMAREA (transaction public domain) REGION。
When CICS REGION receives PADDR, CICS LOAD (Customer Information Control System downloading) order, load are utilized The dummy routine of one at least four byte of occupancy, as follows.After load, program code sector address is obtained, is based on byte The value of PADDR is covered 4 bytes of head of the code segment by code bytecode technology.
Such as the dummy routine of load are as follows:
In the present invention, it is loaded with dummy routine in CICS REGION, and by four words of the head of the physical address where dummy routine After section is by the value covering of PADDR, the on-line program in CICS REGION is operated in, is operated in CICS REGION by access Dummy routine, can by PADDR access software name counter where physical address.
In the present invention, when batch program receives the request of data update, data are directly directly modified in MVS;
In the present invention, when on-line program receives data inquiry request, according to the shared physical address to described Software name counter accesses, and realizes the inquiry of data.
The present invention provides a kind of method of data sharing towards multiple virtual storage systems, this method is applied in MVS, By distributing virtual memory space to operate in the batch program in MVS, and by software name counter be loaded into this it is virtual in It deposits in space, the method mapped by virtual address, software is named to the initial address of the virtual memory space where counter Unique physical address is converted to, and the physical address where software name counter is shared into CICS REGION, is operated in On-line program in CICS REGION names counter to access software by shared physical address, solves existing It cannot achieve the data of the on-line program and batch program in the host system for operating in and realizing based on SYSPlex mechanism in technology It is shared, realize the data sharing of the on-line program and batch program inside MVS.
In the present invention, the method that the other batch programs operated in MVS access to software name counter includes:
The identification code idcode of 64 bytes is written in the beginning address location of ADDR;
Other batch programs in the same MVS are run on based on the virtual memory space address locating for itself with PGM, to Low address space traversal, until recognizing idcode, after recognizing idcode, directly to the software name counter into Row access.
It further include that for the on-line program and batch program in CICS REGION in reading and writing of files, format is not in the present invention Unanimously, therefore, in the present invention, the required VSAM file write when data backup is carried out, is to utilize batch program format in MVS It writes out.
In the present invention, further includes: MVS uses page structure and carries out memory address management, i.e. physical address translations are virtual Page index and leaf offset are become after memory address.
It is a kind of another method flow diagram of data sharing method towards multiple virtual storage systems of the application, institute with reference to Fig. 2 The method of stating includes:
Step S201: the backup file of data in the software name counter is obtained;
Step S202: the data in software name counter are monitored using bitmap file bitmap;
Step S203: when monitored results indicate that the data in the software name counter change, according to described in Software names the variation of data in counter, modifies to the data in the backup file.
It is the backup and Restoration Mechanism that data are established based on bitmap in the present invention, concrete implementation method includes:
In order to save memory space, each in bitmap corresponds to every 4 bytes of shared region, it is assumed that counter structure The byte number in committed memory space is N, then shared N/4 32 data.This N/4 data is each mapped to N/4 in bitmap A position occupies N/32 byte in i.e. bitmap.Bitmap is divided to the data of N/128 int type, constitutes set { b1, b2,...,bn};Wherein bi(i >=1&i≤N/128), has corresponded to the variation of 128 bytes in counter structure.
Monitoring programme circulation reads bitmap data, judges data variation, and according to data variation, software is named in counter Synchronizing information backup in backup file, realize the data in the backup file to software name counter data Modification.
Monitoring programme, which can be portion, in the present invention can also be more parts, if more parts, every part for for tracking software life The different sections of name counter.
It, be to above-mentioned lock section when the data in software name counter need to modify in the present invention It locks, after modifying data, it is also necessary to after synchronous vacations flag bit, can just be unlocked.
In the present invention, by naming the data in counter to be monitored software using bitmap, realize to software The backup file of data in counter is named to carry out real time modifying.
It is a kind of flow chart of the data sharing method embodiment 2 towards multiple virtual storage systems of the application with reference to Fig. 3, The method is applied to MVS group, includes multiple MVS in the group, is physically-isolated between any two MVS, wherein It is provided with multiple CICS REGION in each MVS, and determines a target CICS in the multiple CICS REGION REGION, deployment software names counter, the structure packet of the software name counter in the target CICS REGION It includes: for storing the characteristic area of description counter function;For being increased counting unit in counter, stored, deleted and The name region of batch operation, wherein the name region includes multiple titles, each title includes at least one counting unit;For The memory block of data storage is carried out using counting unit;With the lock section for being encrypted to the software counter;It is described Method includes:
Step S301: determining target MVS in the multiple MVS, and determines in the target MVS for shared counting The title of unit, wherein the title of the counting unit is present in the name region of the software name counter;
In the present invention, the premise for establishing data sharing between different MVS is that have identical counter in different MVS Title determines target MVS first in multiple MVS, and determines the title in MVS for shared counting unit, wherein counting The title of unit is present in the name region of the software name counter.
Step S302: the counting unit in the MVS of data sharing will be carried out with the target MVS, with the target MVS In for shared counting unit be arranged to identical title, will be expressed as with the target MVS MVS for carrying out data sharing Shared MVS;
In the present invention, in MVS group, it will be expressed as shared MVS with the target MVS MVS for carrying out data sharing, will share Title in counting unit and target MVS in MVS for shared counting unit is arranged to identical title.
Step S303: according to the title of identical counting unit, the target MVS and the shared MVS are established into connection;
In the present invention, MVS can establish connection under the premise of with same count unit title.According to identical meter The target MVS and the shared MVS are established connection by the title of counting unit.
Step S304: the physical address of software name counter in the target MVS is obtained, so that in the shared MVS On-line program according in the target MVS software name counter physical address in the target MVS software name Counter accesses.
In the present invention, if shared MVS wants the software in access target MVS to name counter, obtain soft in the target MVS Part names the physical address of counter, so that the on-line program in the shared MVS is according to the physical address, to the target Software name counter in MVS accesses.
In the present invention, with reference to Fig. 8, realize that the synchronous concrete methods of realizing of the data between different MVS includes:
Step 1:AOR1, AOR2 distinguishes in MVS1, MVS2 for shared CICS REGION, it is assumed that includes one in AOR1 The counter of a entitled NAME, need to establish in AOR2 one be all NAME title counter.
Step 2:: on the host computer system, establishing the connected relation of AOR1 and AOR2, allows to mutually access;
On-line program in step 3:AOR2 calls the linker in AOR1 by way of LINK, using in host The NAME that relative program transmitting needs to access.
On-line program reads the NAME after transmitting in step 4:AOR1, reads the physical address of counter structure, realizes number According to update and reading.
Step 5: if AOR2 is the batch program in MVS2, on-line program P1 in AOR2, P1 tissue being called by EXCI The operation of Data duplication step 3.
In the present invention, by establishing identical counter title in different MVS, physically-isolated difference MVS is realized Between data sharing, the problem of solving in the prior art, can not achieve data sharing between physically-isolated MVS.
In the present invention, the number in a kind of data sharing method embodiment 2 towards multiple virtual storage systems between MVS is realized It is to realize the data sharing of on-line program and batch program in MVS according to shared premise, in the present invention, realizes the connection in MVS The method of data sharing between machine program and batch program can be the method mentioned in embodiment 1, be also possible to other The method that can be realized the data sharing between the on-line program and batch program in MVS.
It, be to soft on the basis of a kind of data sharing method embodiment 2 towards multiple virtual storage systems in the present invention Data in part name counter back up and modify in real time to backup, the method for realization method corresponding with Fig. 2 Step is consistent, just repeats no more herein.
The method provided with a kind of data sharing method embodiment 1 towards multiple virtual storage systems that above-mentioned application provides It is corresponding, referring to FIG. 4, present invention also provides a kind of data-sharing systems embodiment 1 towards multiple virtual storage systems Structural schematic diagram, in the present embodiment, the system are applied in multiple virtual storage systems MVS, and the MVS is deployed in host system In, and each MVS includes multiple Customer Information Control System region CICS REGION, and each CICS REGION is occupied Virtual memory space it is mutually indepedent;The system includes:
Deployment unit 401, for determining a target CICS REGION in the multiple CICS REGION, described Deployment software names counter in target CICS REGION;The structure of the software name counter includes: for storing description The characteristic area of counter function;For being increased counting unit in counter, being stored, deleted and the title of batch operation Area, wherein the name region includes multiple titles, each title includes multiple counting units;For being counted using counting unit According to the memory block of storage;With the lock section for being encrypted to software name counter;
Allocation unit 402 is pre- in the MVS for the size according to software name counter committed memory If batch program PGM distribute virtual memory space;
Converting unit 403, for loading the software name counter in the virtual memory space of the PGM, and will The initial address of the virtual memory space of the PGM is converted to physical address;
Transmission unit 404 needs to name counter to visit software for the physical address to be sent to each The CICS REGION asked so that it is described each need to name software in the connection in the CICS REGION that accesses of counter Machine program accesses to software name counter according to the physical address.
In the present invention, using system above, solve cannot achieve in the prior art is operated in based on SYSPlex mechanism reality The data sharing of on-line program and batch program in existing host system realizes batch program and on-line program in MVS Data sharing.
On the basis of fig. 4, a kind of data-sharing systems embodiment 2 towards multiple virtual storage systems provided by the present application Structural schematic diagram, as shown in Figure 5:, the system further include:
First acquisition unit 405, for obtaining the backup file of data in the software name counter;
Monitoring unit 406, for being supervised using bitmap file bitmap to the data in software name counter Control;
Unit 407 is modified, when the data for being indicated in the software name counter when monitored results change, according to According to the variation of data in software name counter, modify to the data in the backup file.
In the present invention, the data in software name counter are monitored by using bitmap, are realized pair Software names the real time modifying of data in counter.
With a kind of above-mentioned side that the data sharing method embodiment 3 towards multiple virtual storage systems provides provided by the present application Method is corresponding, referring to FIG. 6, present invention also provides a kind of data-sharing systems embodiment 3 towards multiple virtual storage systems Structural schematic diagram, it includes multiple MVS in the group that in the present embodiment, the system, which is applied to MVS group, any two It is physically-isolated between a MVS, wherein being provided with multiple CICS REGION in each MVS, and in the multiple CICS A target CICS REGION is determined in REGION, deployment software names counter, institute in the target CICS REGION The structure for stating software name counter includes: for storing the characteristic area for describing counter function;For to being counted in counter Unit is increased, stored, deleted and the name region of batch operation, wherein the name region includes multiple titles, each title Including multiple counting units;For carrying out the memory block of data storage using counting unit;With for the software counter The lock section encrypted;Include:
Determination unit 501 for determining target MVS in the multiple MVS, and determines in the target MVS for altogether The title for the counting unit enjoyed, wherein the title of the counting unit is present in the name region of the software name counter;
Setting unit 502, it is and described for the counting unit in the MVS of data sharing will to be carried out with the target MVS It is arranged to identical title for shared counting unit in target MVS, data sharing will be carried out with the target MVS MVS is expressed as shared MVS;
Connection unit 503 builds the target MVS and the shared MVS for the title according to identical counting unit Vertical connection;
Second acquisition unit 504, for obtaining the physical address of software name counter in the target MVS, so that institute The on-line program stated in shared MVS names the physical address of counter in the target MVS according to software in the target MVS Software name counter access.
In the present invention, by the way that the title of identical counting unit is arranged in different MVS, and in the name of same count unit Under the premise of title, connection will be established between different MVS, realize the data of on-line program and batch program between different MVS It is shared.
It should be noted that all the embodiments in this specification are described in a progressive manner, each embodiment weight Point explanation is the difference from other embodiments, and the same or similar parts between the embodiments can be referred to each other.
The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one The widest scope of cause.

Claims (10)

1. a kind of data sharing method towards multiple virtual storage systems, which is characterized in that the method, which is applied, is mostly virtually depositing In storage system MVS, the MVS is deployed in host system, and each MVS includes multiple Customer Information Control System regions CICS REGION, the virtual memory space that each CICS REGION is occupied are mutually indepedent;The described method includes:
A target CICS REGION is determined in the multiple CICS REGION, in the middle part of the target CICS REGION It affixes one's name to software and names counter;The structure of the software name counter includes: the characteristic area for storing description counter function; For being increased counting unit in counter, being stored, deleted and the name region of batch operation, wherein the name region includes Multiple titles, each title include at least one counting unit;For carrying out the memory block of data storage using counting unit;With Lock section for being encrypted to software name counter;
It is that preset batch program PGM distribution is empty in the MVS according to the size of software name counter committed memory Quasi- memory headroom;
Load software name counter in the virtual memory space of the PGM, and by the virtual memory space of the PGM Initial address be converted to physical address;
The physical address is sent to each CICS REGION for needing to name counter to access software, so that It is described each need to name software the on-line program in the CICS REGION that accesses of counter, according to the physics Address accesses to software name counter.
2. the method according to claim 1, wherein described determine one in the multiple CICS REGION Target CICS REGION, deployment software names counter in the target CICS REGION, comprising:
A CICS REGION is randomly choosed in the MVS, and the CICS REGION is determined as target CICS REGION;
The size of memory shared by the software name counter being set as needed in the target CICS REGION, is described The software name counter distribution virtual memory space that need to be arranged;
Software name counter is deployed in the virtual memory space.
3. the method according to claim 1, wherein described be sent to each needs pair for the physical address The software name CICS REGION that accesses of counter so that it is described each need to name counter to visit software The on-line program in CICS REGION asked accesses to software name counter according to the physical address, wraps It includes:
The corresponding virtual memory space of CICS REGION that each needs to name counter to access software described in obtaining Address;
The corresponding virtual memory space of CICS REGION that each needs to name counter to access software according to described in Address, the physical address is sent to each and needs to name CICS REGION for accessing of counter to software, with The on-line program for making each CICS REGION for needing to name counter to access software, according to the physics Address accesses to software name counter.
4. the method according to claim 1, wherein further include:
Obtain the backup file of data in the software name counter;
The data in software name counter are monitored using bitmap file bitmap;
When monitored results indicate that the data in the software name counter change, counter is named according to the software The variation of middle data modifies to the data in the backup file.
5. a kind of data sharing method towards multiple virtual storage systems, which is characterized in that the method is applied to mostly virtually deposit Storage system MVS group includes multiple MVS in the group, is physically-isolated between any two MVS, wherein in each MVS Multiple CICS REGION are provided with, and determine a target CICS REGION in the multiple CICS REGION, described Deployment software names counter in target CICS REGION, and the structure of the software name counter includes: for storing description The characteristic area of counter function;For being increased counting unit in counter, being stored, deleted and the title of batch operation Area, wherein the name region includes multiple titles, each title includes at least one counting unit;For using counting unit into The memory block of row data storage;With the lock section for being encrypted to software name counter;The described method includes:
Target MVS is determined in the multiple MVS, and determines the title in the target MVS for shared counting unit, Described in the title of counting unit be present in the name region of software name counter;
The counting unit in the MVS of data sharing will be carried out with the target MVS, in the target MVS for shared Counting unit is arranged to identical title, and shared MVS will be expressed as with the target MVS MVS for carrying out data sharing;
According to the title of identical counting unit, the target MVS and the shared MVS are established into connection;
The physical address for obtaining software name counter in the target MVS, so that the on-line program foundation in the shared MVS The physical address of software name counter accesses to the software name counter in the target MVS in the target MVS.
6. according to the method described in claim 5, it is characterized in that, described obtain software name counter in the target MVS Physical address, comprising:
Transfer the on-line program in the target CICS REGION run in the target MVS;
Obtain the physical address of the software name counter in the target MVS saved in the target CICS REGION.
7. according to the method described in claim 5, it is characterized by further comprising:
Obtain the backup file of data in the software name counter;
The data in software name counter are monitored using bitmap file bitmap;
When monitored results indicate that the data in the software name counter change, counter is named according to the software The variation of middle data modifies to the data in the backup file.
8. a kind of data-sharing systems towards multiple virtual storage systems, which is characterized in that the system, which is applied, is mostly virtually depositing In storage system MVS, the MVS is deployed in host system, and each MVS includes multiple Customer Information Control System areas Domain CICS REGION, the virtual memory space that each CICS REGION is occupied are mutually indepedent;The system comprises:
Deployment unit, for determining a target CICS REGION in the multiple CICS REGION, in the target Deployment software names counter in CICS REGION;The structure of the software name counter includes: to count for storing description The characteristic area of device function;For being increased counting unit in counter, being stored, deleted and the name region of batch operation, Described in name region include multiple titles, each title includes multiple counting units;It is deposited for carrying out data using counting unit The memory block of storage;With the lock section for being encrypted to software name counter;
Allocation unit is preset batch in the MVS for the size according to software name counter committed memory Program PGM distributes virtual memory space;
Converting unit, for loading software name counter in the virtual memory space of the PGM, and by the PGM The initial address of virtual memory space be converted to physical address;
Transmission unit, for the physical address to be sent to each CICS for needing to name counter to access software REGION so that it is described each need to name software the on-line program in the CICS REGION that accesses of counter, according to It accesses according to the physical address to software name counter.
9. system according to claim 8, which is characterized in that further include:
First acquisition unit, for obtaining the backup file of data in the software name counter;
Monitoring unit, for being monitored using bitmap file bitmap to the data in software name counter;
Unit is modified, when the data for being indicated in the software name counter when monitored results change, according to described in Software names the variation of data in counter, modifies to the data in the backup file.
10. a kind of data-sharing systems towards multiple virtual storage systems, which is characterized in that the system is applied to mostly virtually deposit Storage system MVS group includes multiple MVS in the group, is physically-isolated between any two MVS, wherein in each MVS Multiple CICS REGION are provided with, and determine a target CICS REGION in the multiple CICS REGION, described Deployment software names counter in target CICS REGION, and the structure of the software name counter includes: for storing description The characteristic area of counter function;For being increased counting unit in counter, being stored, deleted and the title of batch operation Area, wherein the name region includes multiple titles, each title includes multiple counting units;For being counted using counting unit According to the memory block of storage;With the lock section for being encrypted to software name counter;Include:
Determination unit for determining target MVS in the multiple MVS, and determines in the target MVS for shared counting The title of unit, wherein the title of the counting unit is present in the name region of the software name counter;
Setting unit, for the counting unit in the MVS of data sharing will to be carried out with the target MVS, with the target MVS In for shared counting unit be arranged to identical title, will be expressed as with the target MVS MVS for carrying out data sharing Shared MVS;
The target MVS and the shared MVS are established connection for the title according to identical counting unit by connection unit;
Second acquisition unit, for obtaining the physical address of software name counter in the target MVS, so that described shared On-line program in MVS names the physical address of counter to the software in the target MVS according to software in the target MVS Name counter accesses.
CN201610580127.4A 2016-07-21 2016-07-21 A kind of data sharing method and system towards multiple virtual storage systems Active CN106293510B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610580127.4A CN106293510B (en) 2016-07-21 2016-07-21 A kind of data sharing method and system towards multiple virtual storage systems

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610580127.4A CN106293510B (en) 2016-07-21 2016-07-21 A kind of data sharing method and system towards multiple virtual storage systems

Publications (2)

Publication Number Publication Date
CN106293510A CN106293510A (en) 2017-01-04
CN106293510B true CN106293510B (en) 2019-06-18

Family

ID=57651983

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610580127.4A Active CN106293510B (en) 2016-07-21 2016-07-21 A kind of data sharing method and system towards multiple virtual storage systems

Country Status (1)

Country Link
CN (1) CN106293510B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11880350B2 (en) 2021-06-08 2024-01-23 International Business Machines Corporation Identifying resource lock ownership across a clustered computing environment

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110032529B (en) * 2018-01-11 2021-11-09 武汉斗鱼网络科技有限公司 Memory management method and related device
CN112597201A (en) * 2020-12-25 2021-04-02 中国农业银行股份有限公司 Element counting method, device, readable medium and equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6006263A (en) * 1998-01-20 1999-12-21 Compuware Corporation System and method to expedite the transfer of data within a network system
CN102084354A (en) * 2008-04-05 2011-06-01 社会传播公司 Shared virtual area communication environment based apparatus and methods
CN104077362A (en) * 2014-06-09 2014-10-01 中国建设银行股份有限公司 Online mass data processing system and method
CN104537563A (en) * 2015-01-05 2015-04-22 中国农业银行股份有限公司 Limit data processing method and server

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6006263A (en) * 1998-01-20 1999-12-21 Compuware Corporation System and method to expedite the transfer of data within a network system
CN102084354A (en) * 2008-04-05 2011-06-01 社会传播公司 Shared virtual area communication environment based apparatus and methods
CN104077362A (en) * 2014-06-09 2014-10-01 中国建设银行股份有限公司 Online mass data processing system and method
CN104537563A (en) * 2015-01-05 2015-04-22 中国农业银行股份有限公司 Limit data processing method and server

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11880350B2 (en) 2021-06-08 2024-01-23 International Business Machines Corporation Identifying resource lock ownership across a clustered computing environment

Also Published As

Publication number Publication date
CN106293510A (en) 2017-01-04

Similar Documents

Publication Publication Date Title
Zhou et al. Carbink:{Fault-Tolerant} far memory
US10657101B2 (en) Techniques for implementing hybrid flash/HDD-based virtual disk files
US11068395B2 (en) Cached volumes at storage gateways
US20210263658A1 (en) Data system with flush views
TW412692B (en) Parallel file system and method with a metadata node
US10521135B2 (en) Data system with data flush mechanism
US9182927B2 (en) Techniques for implementing hybrid flash/HDD-based virtual disk files
US9268651B1 (en) Efficient recovery of storage gateway cached volumes
US8069191B2 (en) Method, an apparatus and a system for managing a snapshot storage pool
US9274956B1 (en) Intelligent cache eviction at storage gateways
US9559889B1 (en) Cache population optimization for storage gateways
US9280300B2 (en) Techniques for dynamically relocating virtual disk file blocks between flash storage and HDD-based storage
US20210019063A1 (en) Utilizing data views to optimize secure data access in a storage system
US12013818B2 (en) Hybrid model of fine-grained locking and data partitioning
CN106326229B (en) File storage method and device of embedded system
KR20080033276A (en) Secure storage management system and method
CN106293510B (en) A kind of data sharing method and system towards multiple virtual storage systems
CN109656886B (en) Key value pair-based file system implementation method, device, equipment and storage medium
JP2018513454A (en) Efficient performance of insert and point query operations in the column store
CN115712500A (en) Memory release method, memory recovery method, memory release device, memory recovery device, computer equipment and storage medium
US10387384B1 (en) Method and system for semantic metadata compression in a two-tier storage system using copy-on-write
WO2006130768A2 (en) Transactional file system with client partitioning
US7424574B1 (en) Method and apparatus for dynamic striping
CN106874458A (en) A kind of Bloom filter building method of the multi-layered database based on layering distribution
US7533225B1 (en) Method and apparatus for enabling adaptive endianness

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant