CN110008227A - A kind of consistency group reliability verification method and relevant apparatus - Google Patents

A kind of consistency group reliability verification method and relevant apparatus Download PDF

Info

Publication number
CN110008227A
CN110008227A CN201910290946.9A CN201910290946A CN110008227A CN 110008227 A CN110008227 A CN 110008227A CN 201910290946 A CN201910290946 A CN 201910290946A CN 110008227 A CN110008227 A CN 110008227A
Authority
CN
China
Prior art keywords
data
consistency group
snapshot
lun
write
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.)
Granted
Application number
CN201910290946.9A
Other languages
Chinese (zh)
Other versions
CN110008227B (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.)
Suzhou Wave Intelligent Technology Co Ltd
Original Assignee
Suzhou Wave Intelligent Technology Co Ltd
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 Suzhou Wave Intelligent Technology Co Ltd filed Critical Suzhou Wave Intelligent Technology Co Ltd
Priority to CN201910290946.9A priority Critical patent/CN110008227B/en
Publication of CN110008227A publication Critical patent/CN110008227A/en
Application granted granted Critical
Publication of CN110008227B publication Critical patent/CN110008227B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2308Concurrency control
    • G06F16/2315Optimistic concurrency control
    • G06F16/2322Optimistic concurrency control using timestamps
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2365Ensuring data consistency and integrity

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a kind of consistency group snapshot reliability verification methods, data can be written by automatically writing data thread each LUN into consistency group, and the write-in of every data record and corresponding timestamp are saved in default file, obtain the consistency group snapshot created, determine the corresponding object time stamp of consistency group snapshot, and the record of all written data before the timestamp is determined in default file, judge whether it is identical as consistency group snapshot, so that it is determined that whether the reliability of consistency group snapshot is verified.Therefore, it can accurately verify whether consistency group snapshot has reliability by the timestamp of default file and consistency group snapshot.Further, since adding data automatically by thread in verification process, the efficiency of verification process is also ensured.Present invention also provides consistency group snapshot reliability demonstration system, device and computer readable storage medium is merely able in one, above-mentioned technical effect equally may be implemented.

Description

A kind of consistency group reliability verification method and relevant apparatus
Technical field
The present invention relates to consistency group technologies, more specifically to consistency group reliability verification method, system, dress It sets and computer readable storage medium.
Background technique
In large and medium-sized database application, the files such as data, log, modification record are stored in the related of storage system In different LUN (volume), lack the data of one of LUN, will lead to the data failure in other LUN, therefore all in order to guarantee The efficiency of the safety of data and data storage, it will usually one group of complete data are split as more parts and be added to different volumes In, therefore, all volumes for saving same data can serve as consistency group, when creating consistency group snapshot, in order to guarantee The data mode of each volume is consistent, and needs to create snapshot simultaneously for each volume in consistency group, thus by all snapshots Group is consistency group.
If the snapshot creation time in the same consistency group has difference, it is possible to will cause the number of the snapshot of each volume It is inconsistent according to state, when restoring data using consistency group snapshot, it just will appear mistake.Therefore, in order to avoid consistency group Data mode is inconsistent in snapshot, particularly important to the reliability detection of consistency group snapshot.
Therefore, consistency group snapshot reliability how is verified, is those skilled in the art's problem to be solved.
Summary of the invention
The purpose of the present invention is to provide consistency group reliability verification method, system, device and computer-readable storages Medium, to verify consistency group snapshot reliability.
To achieve the above object, the embodiment of the invention provides following technical solutions:
A kind of consistency group snapshot reliability verification method, comprising:
Determine that the LUN of predetermined number is consistency group;
Calling automatically writes data thread and data is written into each LUN, and records the write-in record of every data With timestamp into default file;
Obtain that be written into each LUN be consistency group snapshot that the consistency group creates in data procedures;
It determines the corresponding object time stamp of the consistency group snapshot, and judges the object time described in the default file Whether all write-ins record before stamp is consistent with the consistency group snapshot;
If so, the consistency group snapshot is verified.
Wherein, the calling automatically writes data thread and data is written into each LUN, comprising:
The concurrent thread of the predetermined number is created, the corresponding LUN of one of them described concurrent thread;
Data concomitantly are written into each LUN using each concurrent thread.
Wherein, the corresponding tables of data of each LUN, then the calling automatically writes data thread to each institute It states and data is written in LUN, comprising:
Sentence is inserted into using the data for automatically writing the preset data amount that data thread constructs corresponding each tables of data;
The data of corresponding each tables of data are utilized to be inserted into sentence to each institute using the data thread that automatically writes State tables of data insertion data.
Wherein, described obtain has been the consistent of the consistency group creation in write-in data procedures into each LUN Property group snapshot, comprising:
Obtaining to be written in data procedures into each LUN has utilized VSS snapshot management platform for the consistency group The consistency group snapshot of creation.
Wherein, described obtain has been the consistent of the consistency group creation in write-in data procedures into each LUN Property group snapshot, comprising:
Obtain into each LUN has been that multiple timestamps that the consistency group creates are corresponding in write-in data procedures Consistency group snapshot;
The then corresponding object time stamp of the determination consistency group snapshot, and judge mesh described in the default file Whether all write-ins record before marking timestamp is consistent with the consistency group snapshot, comprising:
It determines the corresponding object time stamp of each consistency group snapshot, successively judges each mesh in the default file All write-ins before marking timestamp record whether consistency group snapshot corresponding with current goal timestamp is consistent.
To achieve the above object, present invention also provides a kind of consistency group snapshot reliability demonstration systems, comprising:
Consistency group determining module, for determining that the LUN of predetermined number is consistency group;
Data write. module automatically writes data thread for calling and data is written into each LUN, and records every The write-in record and timestamp of data are into default file;
Snapshot obtains module, has been the consistency group wound in write-in data procedures into each LUN for obtaining The consistency group snapshot built;
Authentication module for determining the corresponding object time stamp of the consistency group snapshot, and judges the default file Described in the object time stamp before all write-ins record it is whether consistent with the consistency group snapshot;If so, described consistent Property group snapshot is verified.
Wherein, the Data write. module, comprising:
Thread creation unit, for creating the concurrent thread of the predetermined number, one of them described concurrent thread is corresponding One LUN;
Data write unit, for data concomitantly to be written into each LUN using each concurrent thread;
First recording unit, the write-in record and timestamp for recording every data are into default file.
Wherein, each LUN corresponds to a tables of data, then the Data write. module, comprising:
It is inserted into sentence structural unit, for automatically writing presetting for the corresponding each tables of data of data thread construction described in utilizing The data of data volume are inserted into sentence;
Data interpolating unit, for automatically writing data thread described in utilizing using the data of corresponding each tables of data It is inserted into sentence and is inserted into data to each tables of data;
Second recording unit, the write-in record and timestamp for recording every data are into default file.
To achieve the above object, present invention also provides a kind of consistency group snapshot device for verifying reliabilities, comprising:
Memory, for storing computer program;
Processor is realized when for executing the computer program such as the consistency group snapshot reliability verification method Step.
To achieve the above object, described computer-readable to deposit present invention also provides a kind of computer readable storage medium It is stored with computer program on storage media, is realized when the computer program is executed by processor as the consistency group snapshot can The step of by property verification method.
By above scheme it is found that a kind of consistency group snapshot reliability verification method provided in an embodiment of the present invention, packet It includes: determining that the LUN of predetermined number is consistency group;Calling automatically writes data thread and data is written into each LUN, and The write-in record and timestamp for recording every data are into default file;It obtains and is written in data procedures into each LUN It has been the consistency group snapshot of the consistency group creation;It determines the corresponding object time stamp of the consistency group snapshot, and sentences Break the object time described in the default file stamp before all write-ins record it is whether consistent with the consistency group snapshot;If It is that then the consistency group snapshot is verified.
It can be seen that a kind of consistency group snapshot reliability verification method provided by the present application, it can be by automatically writing Data are written in data thread each LUN into consistency group, and the write-in of every data record and corresponding timestamp are saved Into default file, the consistency group snapshot created is obtained, determines the corresponding object time stamp of consistency group snapshot, and pre- If in file determine the timestamp before all written data record, judge whether it is identical as consistency group snapshot, from And determine whether the reliability of consistency group snapshot is verified.Therefore, pass through the time of default file and consistency group snapshot Stamp can accurately verify whether consistency group snapshot has reliability.Further, since being added automatically in verification process by thread Addend evidence also ensures the efficiency of verification process.Present invention also provides be merely able to consistency group snapshot reliability demonstration in one Above-mentioned technical effect equally may be implemented in system, device and computer readable storage medium.
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 Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of consistency group reliability verification method flow chart disclosed by the embodiments of the present invention;
Fig. 2 is a kind of specific consistency group reliability verification method flow chart disclosed by the embodiments of the present invention;
Fig. 3 is a kind of consistency group reliability demonstration system structure diagram disclosed by the embodiments of the present invention;
Fig. 4 is a kind of consistency group device for verifying reliability structural schematic diagram disclosed by the embodiments of the present invention.
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.
The embodiment of the invention discloses consistency group reliability verification method, system, device and computer-readable storage mediums Matter, to verify consistency group snapshot reliability.
Referring to Fig. 1, consistency group reliability verification method provided in an embodiment of the present invention is specifically included:
S101 determines that the LUN of predetermined number is consistency group.
Specifically, it is first determined consistency group, includes the LUN of predetermined number in consistency group, and consistency group needs same When create snapshot multiple LUN, in relation to consistency group it is specific introduce may refer to the prior art, in this programme no longer go to live in the household of one's in-laws on getting married It states.
S102, calling automatically writes data thread and data is written into each LUN, and records the write-in of every data Record and timestamp are into default file.
In the present solution, more convenient in order to make to test preparation, creation automatically writes data in this programme Data can be written using the thread in thread from each LUN in trend consistency group, and after each data is written, all The result and timestamp for recording every data write-in are into default file.
Saved in default file each LUN every write-in data and corresponding timestamp, and since record sequence is It is carried out according to the sequence of write-in data, so the every write-in data saved in default file are all suitable according to the time of write-in Sequence records from the front to the back, and therefore, default file can be used for subsequent consistency and reliably verify.Specific verification operation is in following steps Suddenly it is introduced, details are not described herein again.
S103, obtains that be written into each LUN be consistency group that the consistency group creates in data procedures Snapshot.
During data are written into each LUN, consistency group snapshot creates tool can timing creation one or more A consistency group snapshot.The snapshot of each volume simultaneously, all snapshot groups are together in consistency group snapshot, that is, consistency group Consistency group snapshot.Since current consistency group snapshot mechanism does not ensure that the snapshot of each LUN of creation completely simultaneously, Therefore it also needs to carry out reliability demonstration to consistency group snapshot results in this programme.
It should be noted that in order to improve the accuracy of verification result, in the present solution, available multiple consistency groups Snapshot, specifically, obtaining, to be written into each LUN be multiple timestamps that the consistency group creates in data procedures Corresponding consistency group snapshot.
S104 determines the corresponding object time stamp of the consistency group snapshot, and judges mesh described in the default file Whether all write-ins record before marking timestamp is consistent with the consistency group snapshot.
It should be noted that the reliability demonstration of consistency group snapshot is exactly to verify whether snapshot data is that all LUN exist All data of the corresponding timestamp of snapshot, in other words, whether verifying snapshot data is all LUN in the snapshot corresponding time All data being written into before stamp.
In the present solution, the corresponding object time stamp of consistency group snapshot determining first, then determines in default file The data that are written into of all LUN (stabbed including the object time) before object time stamp, judge the data whether with consistency group Snapshot is identical, if identical, then it is assumed that there is no problem for consistency group snapshot, and reliability demonstration passes through, and does not otherwise pass through.
It should be noted that when getting multiple consistency group snapshots in S104 step, then again this step it needs to be determined that The corresponding object time stamp of each consistency group snapshot successively judges in the default file before each object time stamp All write-ins record whether consistency group snapshot corresponding with current goal timestamp is consistent.
It should be noted that in the present solution, each consistency group snapshot verifying method with single consistency group Verification method is identical, specifically may refer to above content, is no longer repeated herein.
It in a specific embodiment,, will be all according to timestamp when getting multiple consistency group snapshots Before the nearest consistency group snapshot of consistency group snapshot progress time Bit-reversed, i.e. time is located at most, successively sort backward, it should Sequence of the sequence for verifying, i.e., nearest consistency group snapshot of first verification time.
It should be noted that since the record of data every in default file is according to time vertical sequence note It carries, therefore, in order to easy to verify, in the present solution, nearest consistency group snapshot of first verification time.
Since verification process only needs to verify whether consistency group snapshot with the object time corresponding in default file stabs it Preceding All Files are consistent, and are to be verified in the order described above again, therefore when verifying a snapshot, only by default file In current snapshot to be verified correspond to the object time stamp before data retain, other data delete, to complete delete operation Default file be object time stamp before all data, therefore directly by default file with currently to be verified shine into fastly Row compares, and is verified as unit of file, without verifying one by one, can effectively increase the efficiency of verifying.
Therefore, in the present solution, the detailed process of verifying may refer to following steps:
S1 determines the corresponding object time stamp of each consistency group snapshot;
S2 closely sorts all consistency group snapshots according to the time from apart from current time to remote target sequences;
S3 obtains one in not verified all consistency group snapshots according to the target sequences and does not verify consistency group Snapshot, and determine the object time stamp of the consistency group snapshot;
S4 determines all data after the object time stabs and is deleted in the default file, obtains file destination;
S5, whether judgement does not currently verify consistency group snapshot consistent with current goal file, if so, not verifying currently Consistency group snapshot is verified, and is not passed through if it is not, not verifying the verifying of consistency group snapshot currently then;
S6, judgement are not currently verified whether consistency group snapshot is that the last one does not verify consistency group snapshot, are returned if not S3 is returned, continues to verify.
S105, if so, the consistency group snapshot is verified.
S106, if it is not, then the consistency group snapshot verifying does not pass through.
It can be seen that a kind of consistency group snapshot reliability verification method provided by the embodiments of the present application, it can be by certainly Data are written in dynamic write-in data thread each LUN into consistency group, and the write-in of every data is recorded and the corresponding time Stamp is saved in default file, obtains the consistency group snapshot created, determines the corresponding object time stamp of consistency group snapshot, And the record of all written data before the timestamp is determined in default file, judge whether to take a picture fastly with consistency group Together, so that it is determined that whether the reliability of consistency group snapshot is verified.Therefore, pass through default file and consistency group snapshot Timestamp can accurately verify whether consistency group snapshot has reliability.Further, since in verification process certainly by thread Dynamic addition data, also ensure the efficiency of verification process.
A kind of specific consistency group snapshot reliability verification method provided by the embodiments of the present application is introduced below, A kind of specific consistency group snapshot reliability verification method described below can be cross-referenced with above-described embodiment.
Referring to fig. 2, a kind of specific consistency group snapshot reliability verification method provided by the embodiments of the present application, it is specific to wrap It includes:
S201 determines that the LUN of predetermined number is consistency group.
S202 creates the concurrent thread of the predetermined number, the corresponding LUN of one of them described concurrent thread.
For the efficiency for further increasing consistency group reliability demonstration, in the present solution, creation concurrent thread, using concurrent Concomitantly data are written into each LUN in thread realization.
Specifically, the concurrent thread of predetermined number, i.e. concurrent thread number and LUN in consistency group several phases are created first Together, the corresponding LUN of a thread.
Data concomitantly are written into each LUN using each concurrent thread in S203.
Specifically, data concomitantly are written into each LUN using each concurrent thread.
In a specific embodiment, in order to facilitate the record of data write operation and data and timestamp, Data write operation is carried out in this programme in the form of database.
Specifically, corresponding each LUN creates a tables of data namely database table;Data line is automatically write using described The data of the preset data amount of the corresponding each tables of data of journey construction are inserted into sentence;Data thread utilization pair is automatically write using described The data of each tables of data are answered to be inserted into sentence to each tables of data insertion data.
In the present solution, construct the insertion sentence of corresponding preset data amount using the tables of data that concurrent thread is each LUN, Then it is executed concurrently insertion sentence, is inserted into data to each tables of data, to realize the purpose that data are written into LUN.Often All the data of insertion are recorded in default file after the completion of data insertion, and record corresponding timestamp.
S204, the write-in record and timestamp for recording every data are into default file.
S205, obtains that be written into each LUN be consistency group that the consistency group creates in data procedures Snapshot.
In a specific embodiment, it obtains to be written in data procedures into each LUN and has utilized VSS snapshot Manage the consistency group snapshot that platform is consistency group creation
VSS (Volume Shadow copy Service, volume mapping copy service), is initially in Windows Server The memory technology introduced in 2003SP1.It can be created on this basis by the way that snapshot functions are added on volume management module Image (Image) based on time point (Point-In-Time), to realize quick backup and the recovery of data.
S206 determines the corresponding object time stamp of the consistency group snapshot, and judges mesh described in the default file Whether all write-ins record before marking timestamp is consistent with the consistency group snapshot.
S207, if so, the consistency group snapshot is verified.
It can be seen that a kind of consistency group reliability verification method provided by the embodiments of the present application, utilizes predetermined number Concurrent thread concomitantly completes the write-in of data, can effectively improve the efficiency of verifying, in addition, in the present solution, each LUN pairs Ying Youyi database tables, and data are inserted into database table by being inserted into sentence, so as to so that the process that data are written More manageability.
A kind of consistency group reliability demonstration system provided by the embodiments of the present application is introduced below, it is described below A kind of consistency group reliability demonstration system can be cross-referenced with any of the above-described embodiment.
Referring to Fig. 3, a kind of consistency group reliability demonstration system provided by the embodiments of the present application is specifically included:
Consistency group determining module 301, for determining that the LUN of predetermined number is consistency group;
Data write. module 302 automatically writes data thread into each LUN data is written, and remembers for calling The write-in record and timestamp for recording every data are into default file;
In a specific embodiment, the Data write. module 302, comprising:
Thread creation unit, for creating the concurrent thread of the predetermined number, one of them described concurrent thread is corresponding One LUN;
Data write unit, for data concomitantly to be written into each LUN using each concurrent thread;
First recording unit, the write-in record and timestamp for recording every data are into default file.
In another particular embodiment of the invention, the corresponding tables of data of each LUN, then the data write-in Module 302, comprising:
It is inserted into sentence structural unit, for automatically writing presetting for the corresponding each tables of data of data thread construction described in utilizing The data of data volume are inserted into sentence;
Data interpolating unit, for automatically writing data thread described in utilizing using the data of corresponding each tables of data It is inserted into sentence and is inserted into data to each tables of data;
Second recording unit, the write-in record and timestamp for recording every data are into default file.
Snapshot obtains module 303, and being written in data procedures for acquisition into each LUN has been the consistency group The consistency group snapshot of creation;
Authentication module 304 for determining the corresponding object time stamp of the consistency group snapshot, and judges the default text Whether all write-ins record before the stamp of object time described in part is consistent with the consistency group snapshot;If so, described one Cause property group snapshot is verified.
The consistency group snapshot reliability demonstration system of the present embodiment is for realizing consistency group snapshot reliability above-mentioned Verification method, therefore the visible consistency group hereinbefore of specific embodiment in consistency group snapshot device for verifying reliability is fast According to the embodiment part of reliability verification method, for example, consistency group determining module 301, Data write. module 302, snapshot is obtained Modulus block 303, authentication module 304 are respectively used to realize step S101 in above-mentioned consistency group snapshot reliability verification method, S102, S103, S104, so, specific embodiment is referred to the description of corresponding various pieces embodiment, herein no longer It repeats.
A kind of consistency group device for verifying reliability provided by the embodiments of the present application is introduced below, it is described below A kind of consistency group device for verifying reliability can be cross-referenced with any of the above-described embodiment.
Referring to fig. 4, a kind of consistency group device for verifying reliability provided by the embodiments of the present application specifically includes:
Memory 100, for storing computer program;
Processor 200 realizes that the consistency group as described in above-mentioned any embodiment is fast when for executing the computer program The step of according to reliability verification method.
Specifically, memory 100 includes non-volatile memory medium, built-in storage.Non-volatile memory medium storage There are operating system and computer-readable instruction, which is that the operating system and computer in non-volatile memory medium can The operation of reading instruction provides environment.Processor 200 provides calculating and control ability for consistency group device for verifying reliability, can be with Realize step provided by any of the above-described consistency group reliability verification method embodiment.
Present invention also provides a kind of computer readable storage mediums, are stored thereon with computer program, the computer Step provided by above-described embodiment may be implemented when program is executed by processor.The storage medium may include: USB flash disk, movement Hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), the various media that can store program code such as magnetic or disk.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with other The difference of embodiment, the same or similar parts in each embodiment may refer 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 consistency group snapshot reliability verification method characterized by comprising
Determine that the LUN of predetermined number is consistency group;
Calling automatically writes data thread and data is written into each LUN, and record every data write-in record and when Between stamp into default file;
Obtain that be written into each LUN be consistency group snapshot that the consistency group creates in data procedures;
It determines the corresponding object time stamp of the consistency group snapshot, and judges that the object time described in the default file stabs it Whether preceding all write-ins record is consistent with the consistency group snapshot;
If so, the consistency group snapshot is verified.
2. the method according to claim 1, wherein the calling automatically writes data thread to each described Data are written in LUN, comprising:
The concurrent thread of the predetermined number is created, the corresponding LUN of one of them described concurrent thread;
Data concomitantly are written into each LUN using each concurrent thread.
3. the method according to claim 1, wherein the corresponding tables of data of each LUN, then described Calling automatically writes data thread and data is written into each LUN, comprising:
Sentence is inserted into using the data for automatically writing the preset data amount that data thread constructs corresponding each tables of data;
The data of corresponding each tables of data are utilized to be inserted into sentence to each number using the data thread that automatically writes Data are inserted into according to table.
4. the method according to claim 1, wherein data procedures are written into each LUN in described obtain In be consistency group creation consistency group snapshot, comprising:
Obtaining to be written in data procedures into each LUN has utilized VSS snapshot management platform for consistency group creation Consistency group snapshot.
5. the method according to claim 1, which is characterized in that described obtain is write into each LUN Enter be in data procedures consistency group creation consistency group snapshot, comprising:
Obtain that be written into each LUN be multiple timestamps corresponding one that the consistency group creates in data procedures Cause property group snapshot;
The then determination consistency group snapshot corresponding object time stamp, and when judging target described in the default file Between stab before all write-ins record it is whether consistent with the consistency group snapshot, comprising:
The corresponding object time stamp of each consistency group snapshot is determined, when successively judging each target in the default file Between stab before all write-ins record whether consistency group snapshot corresponding with current goal timestamp is consistent.
6. a kind of consistency group snapshot reliability demonstration system characterized by comprising
Consistency group determining module, for determining that the LUN of predetermined number is consistency group;
Data write. module automatically writes data thread into each LUN data is written, and records every number for calling According to write-in record and timestamp into default file;
Snapshot obtains module, in write-in data procedures has been that the consistency group creates for obtaining into each LUN Consistency group snapshot;
Authentication module for determining the corresponding object time stamp of the consistency group snapshot, and judges institute in the default file Whether all write-ins record before stating object time stamp is consistent with the consistency group snapshot;If so, the consistency group Snapshot is verified.
7. system according to claim 6, which is characterized in that the Data write. module, comprising:
Thread creation unit, for creating the concurrent thread of the predetermined number, one of them described concurrent thread is one corresponding The LUN;
Data write unit, for data concomitantly to be written into each LUN using each concurrent thread;
First recording unit, the write-in record and timestamp for recording every data are into default file.
8. system according to claim 6, which is characterized in that each corresponding tables of data of the LUN, then it is described Data write. module, comprising:
It is inserted into sentence structural unit, for automatically writing the preset data of each tables of data of data thread construction correspondence described in utilizing The data of amount are inserted into sentence;
Data interpolating unit is inserted into for automatically writing data thread described in utilizing using the data of corresponding each tables of data Sentence is inserted into data to each tables of data;
Second recording unit, the write-in record and timestamp for recording every data are into default file.
9. a kind of consistency group snapshot device for verifying reliability characterized by comprising
Memory, for storing computer program;
Processor realizes that consistency group snapshot can as described in any one of claim 1 to 5 when for executing the computer program The step of by property verification method.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program realizes that the consistency group snapshot as described in any one of claim 1 to 5 is reliable when the computer program is executed by processor The step of property verification method.
CN201910290946.9A 2019-04-11 2019-04-11 Consistency group reliability verification method and related device Active CN110008227B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910290946.9A CN110008227B (en) 2019-04-11 2019-04-11 Consistency group reliability verification method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910290946.9A CN110008227B (en) 2019-04-11 2019-04-11 Consistency group reliability verification method and related device

Publications (2)

Publication Number Publication Date
CN110008227A true CN110008227A (en) 2019-07-12
CN110008227B CN110008227B (en) 2021-08-10

Family

ID=67171254

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910290946.9A Active CN110008227B (en) 2019-04-11 2019-04-11 Consistency group reliability verification method and related device

Country Status (1)

Country Link
CN (1) CN110008227B (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104965771A (en) * 2015-07-29 2015-10-07 浪潮(北京)电子信息产业有限公司 Method and system for verifying remote disaster recovery data consistency
CN105138426A (en) * 2015-08-20 2015-12-09 浪潮(北京)电子信息产业有限公司 Service-level data consistency protecting method and device based on snapshooting
CN105843704A (en) * 2016-03-15 2016-08-10 上海爱数信息技术股份有限公司 Data protection method and system capable of combining with snapshot function based on distributed block storage
CN106547641A (en) * 2015-09-17 2017-03-29 南京壹进制信息技术股份有限公司 A kind of CDP backup methods based on volume
CN106648993A (en) * 2016-12-30 2017-05-10 杭州宏杉科技股份有限公司 Consistency group snapshot management method and device
CN106844694A (en) * 2017-01-24 2017-06-13 恒生电子股份有限公司 For the method and apparatus of synchrodata
US20170177697A1 (en) * 2015-12-21 2017-06-22 Sap Se Distributed database transaction protocol
CN107219997A (en) * 2016-03-21 2017-09-29 阿里巴巴集团控股有限公司 A kind of method and device for being used to verify data consistency
US20180075079A1 (en) * 2016-09-14 2018-03-15 Oracle International Corporation Patch-up operations on invalidity data
CN108551764A (en) * 2015-12-28 2018-09-18 华睿泰科技有限责任公司 System and method for backing up large-scale distributed data system extending transversely
CN108573016A (en) * 2017-12-25 2018-09-25 北京金山云网络技术有限公司 A kind of data consistent check method, apparatus, equipment and storage medium
CN109460187A (en) * 2018-11-09 2019-03-12 郑州云海信息技术有限公司 A kind of qcow2 file data consistency verification method and verifying terminal
US10255137B1 (en) * 2013-12-16 2019-04-09 EMC IP Holding Company LLC Point-in-time recovery on deduplicated storage

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10255137B1 (en) * 2013-12-16 2019-04-09 EMC IP Holding Company LLC Point-in-time recovery on deduplicated storage
CN104965771A (en) * 2015-07-29 2015-10-07 浪潮(北京)电子信息产业有限公司 Method and system for verifying remote disaster recovery data consistency
CN105138426A (en) * 2015-08-20 2015-12-09 浪潮(北京)电子信息产业有限公司 Service-level data consistency protecting method and device based on snapshooting
CN106547641A (en) * 2015-09-17 2017-03-29 南京壹进制信息技术股份有限公司 A kind of CDP backup methods based on volume
US20170177697A1 (en) * 2015-12-21 2017-06-22 Sap Se Distributed database transaction protocol
CN108551764A (en) * 2015-12-28 2018-09-18 华睿泰科技有限责任公司 System and method for backing up large-scale distributed data system extending transversely
CN105843704A (en) * 2016-03-15 2016-08-10 上海爱数信息技术股份有限公司 Data protection method and system capable of combining with snapshot function based on distributed block storage
CN107219997A (en) * 2016-03-21 2017-09-29 阿里巴巴集团控股有限公司 A kind of method and device for being used to verify data consistency
US20180075079A1 (en) * 2016-09-14 2018-03-15 Oracle International Corporation Patch-up operations on invalidity data
CN106648993A (en) * 2016-12-30 2017-05-10 杭州宏杉科技股份有限公司 Consistency group snapshot management method and device
CN106844694A (en) * 2017-01-24 2017-06-13 恒生电子股份有限公司 For the method and apparatus of synchrodata
CN108573016A (en) * 2017-12-25 2018-09-25 北京金山云网络技术有限公司 A kind of data consistent check method, apparatus, equipment and storage medium
CN109460187A (en) * 2018-11-09 2019-03-12 郑州云海信息技术有限公司 A kind of qcow2 file data consistency verification method and verifying terminal

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
BRENNER D等: "A Snapshot of Writing in Elementary Teacher Preparation Programs", 《NEW EDUCATOR》 *
刘海滨 等: "基于Artifact快照序列的行为一致性检测方法", 《软件学报》 *
曹流 等: "一种基于OCL的体系结构一致性验证环境", 《计算机科学》 *

Also Published As

Publication number Publication date
CN110008227B (en) 2021-08-10

Similar Documents

Publication Publication Date Title
CN106201338B (en) Date storage method and device
CN110531940B (en) Video file processing method and device
CN109542342B (en) Metadata management and data reconstruction method, equipment and storage medium
US20120254569A1 (en) Creating a buffer point-in-time copy relationship for a point-in-time copy function executed to create a point-in-time copy relationship
CN110008129B (en) Reliability test method, device and equipment for storage timing snapshot
CN103186461A (en) Storage method and recover method for field data, and related devices
CN108875061A (en) A kind of conformance test method and relevant apparatus of distributed file system
WO2017143843A1 (en) Metadata recovery method and device
CN105955845A (en) Data recovery method and device
CN104965835B (en) A kind of file read/write method and device of distributed file system
CN106775481B (en) Method for reading data and equipment
CN110990207B (en) BPS memory test method, system, terminal and storage medium based on Whitley platform
TWI461904B (en) Recovery method and device for linux using fat file system
CN104375906B (en) A kind of extensive Backup Data fast calibration method based on file system
CN106445737A (en) Multi-backup starting method
CN110008227A (en) A kind of consistency group reliability verification method and relevant apparatus
CN108459925B (en) Private cloud equipment, database repairing method thereof and device with storage function
CN106611138B (en) GHOST file security check method and device
CN112416657B (en) System cloning method
US8131928B2 (en) Restoring striped volumes of data
CN107273051B (en) The reading/writing method and device of I/O data
CN112486717A (en) Method, system, terminal and storage medium for verifying consistency of disk data
CN105427890A (en) Method and device for recording restart times of storage system
CN110825587A (en) Simple log system based on MCU and log management method
CN110018784A (en) Data processing method, device and calculating equipment

Legal Events

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