CN110008227B - Consistency group reliability verification method and related device - Google Patents

Consistency group reliability verification method and related device Download PDF

Info

Publication number
CN110008227B
CN110008227B CN201910290946.9A CN201910290946A CN110008227B CN 110008227 B CN110008227 B CN 110008227B CN 201910290946 A CN201910290946 A CN 201910290946A CN 110008227 B CN110008227 B CN 110008227B
Authority
CN
China
Prior art keywords
data
consistency group
snapshot
lun
writing
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
CN201910290946.9A
Other languages
Chinese (zh)
Other versions
CN110008227A (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 Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur 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 Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur 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

Images

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

Abstract

The invention discloses a consistency group snapshot reliability verification method, which can write data into each LUN in a consistency group through an automatic write-in data thread, save write-in records and corresponding time stamps of each piece of data into a preset file, acquire a created consistency group snapshot, determine a target time stamp corresponding to the consistency group snapshot, determine all records of the written data before the time stamp in the preset file, judge whether the records are the same as the consistency group snapshot or not, and determine whether the reliability of the consistency group snapshot passes verification or not. Therefore, whether the consistency group snapshot has reliability or not can be accurately verified by presetting the time stamps of the file and the consistency group snapshot. In addition, the efficiency of the verification process is also ensured because data is automatically added through threads in the verification process. The application also provides a system, a device and a computer readable storage medium for verifying the reliability of the consistency group snapshot, and the technical effects can be realized.

Description

Consistency group reliability verification method and related device
Technical Field
The present invention relates to consistency group technology, and more particularly, to a consistency group reliability verification method, system, apparatus, and computer-readable storage medium.
Background
In large and medium database applications, files such as data, logs, modification records, and the like are stored in different associated LUNs (volumes) of a storage system, and lack of data of one LUN causes data failure in other LUNs, so in order to ensure data security and data storage efficiency, a set of complete data is usually split into multiple parts and added to different volumes, so all volumes storing the same data can be used as a consistency group, and when a consistency group snapshot is created, in order to ensure that the data state of each volume is consistent, a snapshot needs to be created for each volume in the consistency group at the same time, so that all snapshot groups are taken as a consistency group.
If there is a difference in snapshot creation time in the same consistency group, the data state of the snapshot of each volume may be inconsistent, and an error may occur when recovering data using the consistency group snapshot. Therefore, to avoid inconsistency of data states in consistency group snapshots, reliability detection of consistency group snapshots is particularly important.
Therefore, how to verify consistency group snapshot reliability is a problem that needs to be solved by those skilled in the art.
Disclosure of Invention
The invention aims to provide a consistency group reliability verification method, a consistency group reliability verification system, a consistency group reliability verification device and a computer readable storage medium, so as to verify consistency group snapshot reliability.
In order to achieve the above purpose, the embodiment of the present invention provides the following technical solutions:
a consistency group snapshot reliability verification method comprises the following steps:
determining a preset number of LUNs as a consistency group;
calling an automatic write-in data thread to write data into each LUN, and recording write-in records and timestamps of each piece of data into a preset file;
obtaining consistency group snapshots created for the consistency groups in the process of writing data into each LUN;
determining a target timestamp corresponding to the consistency group snapshot, and judging whether all write-in records before the target timestamp in the preset file are consistent with the consistency group snapshot or not;
if so, the consistency group snapshot is verified to be passed.
Wherein the invoking of the auto-write data thread writes data into each of the LUNs, including:
creating the concurrent threads with the preset number, wherein one concurrent thread corresponds to one LUN;
and writing data into each LUN by using each concurrent thread.
Wherein, if each LUN corresponds to a data table, the invoking an automatic write data thread to write data into each LUN includes:
constructing a data insertion statement corresponding to the preset data volume of each data table by using the automatic write-in data thread;
and inserting data into each data table by using the automatic data writing thread by using a data inserting statement corresponding to each data table.
Wherein the obtaining of the consistency group snapshot created for the consistency group during the process of writing data into each LUN comprises:
and acquiring a consistency group snapshot created for the consistency group by using a VSS snapshot management platform in the process of writing data into each LUN.
Wherein the obtaining of the consistency group snapshot created for the consistency group during the process of writing data into each LUN comprises:
obtaining consistency group snapshots corresponding to a plurality of timestamps created for the consistency group in the process of writing data into each LUN;
the determining a target timestamp corresponding to the consistency group snapshot and determining whether all write-in records before the target timestamp in the preset file are consistent with the consistency group snapshot include:
and determining a target timestamp corresponding to each consistency group snapshot, and sequentially judging whether all write-in records before each target timestamp in the preset file are consistent with the consistency group snapshot corresponding to the current target timestamp.
To achieve the above object, the present application further provides a consistency group snapshot reliability verification system, including:
the consistency group determining module is used for determining a preset number of LUNs as a consistency group;
the data writing module is used for calling an automatic data writing thread to write data into each LUN and recording the writing record and the time stamp of each piece of data into a preset file;
a snapshot obtaining module, configured to obtain a consistency group snapshot that has been created for the consistency group in a process of writing data into each LUN;
the verification module is used for determining a target timestamp corresponding to the consistency group snapshot and judging whether all write-in records before the target timestamp in the preset file are consistent with the consistency group snapshot or not; if so, the consistency group snapshot is verified to be passed.
Wherein the data writing module comprises:
the thread creating unit is used for creating the concurrent threads with the preset number, wherein one concurrent thread corresponds to one LUN;
a data writing unit, configured to write data into each LUN concurrently by using each concurrent thread;
and the first recording unit is used for recording the writing record and the time stamp of each piece of data into a preset file.
Wherein, each LUN corresponds to a data table, and the data writing module includes:
an insertion statement constructing unit, configured to construct a data insertion statement corresponding to a preset data amount of each data table by using the automatic write data thread;
a data insertion unit, configured to insert data into each data table by using the data insertion statement corresponding to each data table by using the automatic write data thread;
and the second recording unit is used for recording the writing record and the time stamp of each piece of data into a preset file.
In order to achieve the above object, the present application further provides a consistency group snapshot reliability verification apparatus, including:
a memory for storing a computer program;
a processor for implementing the steps of the consistency group snapshot reliability verification method when executing the computer program.
To achieve the above object, the present application further provides a computer-readable storage medium having a computer program stored thereon, where the computer program when executed by a processor implements the steps of the consistency group snapshot reliability verification method as described.
According to the scheme, the consistency group snapshot reliability verification method provided by the embodiment of the invention comprises the following steps: determining a preset number of LUNs as a consistency group; calling an automatic write-in data thread to write data into each LUN, and recording write-in records and timestamps of each piece of data into a preset file; obtaining consistency group snapshots created for the consistency groups in the process of writing data into each LUN; determining a target timestamp corresponding to the consistency group snapshot, and judging whether all write-in records before the target timestamp in the preset file are consistent with the consistency group snapshot or not; if so, the consistency group snapshot is verified to be passed.
Therefore, according to the consistency group snapshot reliability verification method provided by the application, data can be written into each LUN in the consistency group through an automatic data writing thread, the written record and the corresponding timestamp of each piece of data are saved in the preset file, the created consistency group snapshot is obtained, the target timestamp corresponding to the consistency group snapshot is determined, all the records of the written data before the timestamp are determined in the preset file, whether the records are the same as the consistency group snapshot or not is judged, and whether the reliability of the consistency group snapshot passes verification or not is determined. Therefore, whether the consistency group snapshot has reliability or not can be accurately verified by presetting the time stamps of the file and the consistency group snapshot. In addition, the efficiency of the verification process is also ensured because data is automatically added through threads in the verification process. The application also provides a system, a device and a computer readable storage medium for verifying the reliability of the consistency group snapshot, and the technical effects can be realized.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flowchart of a consistency group reliability verification method disclosed in an embodiment of the present invention;
FIG. 2 is a flowchart of a method for verifying reliability of a consistency group according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a consistency group reliability verification system according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a consistency group reliability verification apparatus according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention discloses a consistency group reliability verification method, a consistency group reliability verification system, a consistency group reliability verification device and a computer readable storage medium, which are used for verifying consistency group snapshot reliability.
Referring to fig. 1, the method for verifying reliability of a consistency group provided in the embodiment of the present invention specifically includes:
s101, determining a preset number of LUNs as a consistency group.
Specifically, a consistency group is determined first, where the consistency group includes a preset number of LUNs, and the consistency group is a plurality of LUNs that need to create a snapshot at the same time.
And S102, calling an automatic data writing thread to write data into each LUN, and recording the writing record and the time stamp of each piece of data into a preset file.
In the scheme, in order to make the test preparation work more convenient and faster, an automatic write-in data thread is created in the scheme, the thread can be used for automatically writing data into each LUN in the consistency group, and after each piece of data is written, the result of writing each piece of data and the timestamp are recorded into the preset file.
Each piece of write-in data and the corresponding timestamp of each LUN are stored in the preset file, and because the recording sequence is performed according to the sequence of the write-in data, each piece of write-in data stored in the preset file is recorded from front to back according to the write-in time sequence, so that the preset file can be used for subsequent reliable verification of consistency. The specific verification operation is described in the following steps, which are not described herein again.
S103, obtaining the consistency group snapshot created for the consistency group in the process of writing data into each LUN.
During the process of writing data into each LUN, the consistency group snapshot creation tool will create one or more consistency group snapshots at regular times. Consistency group snapshots are snapshots of each volume in the consistency group at the same time, and all snapshot groups together are consistency group snapshots. Because the current consistency group snapshot mechanism cannot guarantee that a snapshot of each LUN is created completely at the same time, in this solution, reliability verification needs to be performed on the consistency group snapshot result.
It should be noted that, in order to improve the accuracy of the verification result, in the present solution, a plurality of consistency group snapshots may be obtained, specifically, consistency group snapshots corresponding to a plurality of timestamps created for the consistency group in the process of writing data into each LUN are obtained.
S104, determining a target timestamp corresponding to the consistency group snapshot, and judging whether all write-in records before the target timestamp in the preset file are consistent with the consistency group snapshot.
It should be noted that the reliability verification of the consistency group snapshot is to verify whether the snapshot data is all the data of all LUNs at the time stamp corresponding to the snapshot, in other words, whether the snapshot data is all the data of all the LUNs written before the time stamp corresponding to the snapshot.
In the scheme, a target timestamp corresponding to the consistency group snapshot is determined, then data written in all LUNs before the target timestamp (including the target timestamp) is determined in a preset file, whether the data is the same as the consistency group snapshot is judged, if yes, the consistency group snapshot is considered to have no problem, the reliability verification is passed, and otherwise, the consistency group snapshot is not passed.
It should be noted that, when multiple consistency group snapshots are acquired in step S104, in this step, it is necessary to determine a target timestamp corresponding to each consistency group snapshot, and sequentially determine whether all write records before each target timestamp in the preset file are consistent with the consistency group snapshot corresponding to the current target timestamp.
It should be noted that, in the present solution, a method for verifying each consistency group snapshot is the same as that of a single consistency group verification method, which may be referred to above specifically, and details are not described here again.
In a specific embodiment, when multiple consistency group snapshots are acquired, all consistency group snapshots are sorted in reverse order of time according to a timestamp, that is, the most recent consistency group snapshot is located at the forefront and sorted backwards in sequence, where the sequence is a verification sequence, that is, the most recent consistency group snapshot is verified.
It should be noted that, because the description of each piece of data in the preset file is described in the order from front to back, in this scheme, for convenience of verification, a consistency group snapshot with the latest verification time is verified.
In the verification process, whether the consistency group snapshot is consistent with all files before the corresponding target timestamp in the preset file or not only needs to be verified, and the verification is performed according to the sequence, so that when one snapshot is verified, only the data before the target timestamp corresponding to the current snapshot to be verified in the preset file is reserved, and other data are deleted, so that the deleted preset file is all the data before the target timestamp, and therefore the preset file can be directly compared with the current snapshot to be verified, the verification is performed by taking the file as a unit, the verification is not needed one by one, and the verification efficiency can be effectively increased.
Therefore, in the present scheme, the specific process of verification can be seen in the following steps:
s1, determining a target timestamp corresponding to each consistency group snapshot;
s2, sorting all the consistency group snapshots according to the target sequence from the time close to the current time to the time far away;
s3, acquiring an unverified consistency group snapshot from all unverified consistency group snapshots according to the target sequence, and determining the target time stamp of the consistency group snapshot;
s4, determining and deleting all data after the target timestamp in the preset file to obtain a target file;
s5, judging whether the current unverified consistency group snapshot is consistent with the current target file, if so, the current unverified consistency group snapshot passes verification, and if not, the current unverified consistency group snapshot does not pass verification;
and S6, judging whether the current unverified consistency group snapshot is the last unverified consistency group snapshot or not, and if not, returning to S3 to continue verifying.
And S105, if yes, the consistency group snapshot passes verification.
And S106, if not, the consistency group snapshot verification is not passed.
Therefore, according to the consistency group snapshot reliability verification method provided by the embodiment of the application, data can be written into each LUN in the consistency group through an automatic data writing thread, the written record and the corresponding timestamp of each piece of data are saved in the preset file, the created consistency group snapshot is obtained, the target timestamp corresponding to the consistency group snapshot is determined, all the written records before the timestamp are determined in the preset file, whether the written records are the same as the consistency group snapshot or not is judged, and whether the reliability of the consistency group snapshot passes verification or not is determined. Therefore, whether the consistency group snapshot has reliability or not can be accurately verified by presetting the time stamps of the file and the consistency group snapshot. In addition, the efficiency of the verification process is also ensured because data is automatically added through threads in the verification process.
A specific consistency group snapshot reliability verification method provided in the embodiments of the present application is introduced below, and a specific consistency group snapshot reliability verification method described below and the embodiments described above may be referred to each other.
Referring to fig. 2, a method for verifying reliability of a consistency group snapshot provided in an embodiment of the present application specifically includes:
s201, determining a preset number of LUNs as a consistency group.
S202, the preset number of concurrent threads are created, wherein one concurrent thread corresponds to one LUN.
In order to further improve the reliability verification efficiency of the consistency group, in the scheme, concurrent threads are created, and the concurrent threads are used for writing data into each LUN.
Specifically, a preset number of concurrent threads are created, that is, the number of concurrent threads is the same as the number of LUNs in the consistency group, and one thread corresponds to one LUN.
S203, writing data into each LUN concurrently by using each concurrent thread.
Specifically, data is written into each LUN concurrently with each concurrent thread.
In a specific embodiment, in order to facilitate the data writing operation and the recording of the data and the time stamp, the data writing operation is performed in the form of a database in the present scheme.
Specifically, a data table, that is, a database table, is created corresponding to each LUN; constructing a data insertion statement corresponding to the preset data volume of each data table by using the automatic write-in data thread; and inserting data into each data table by using the automatic data writing thread by using a data inserting statement corresponding to each data table.
In the scheme, a concurrent thread is utilized to construct an insertion statement corresponding to the preset data volume for the data table of each LUN, then the insertion statement is executed concurrently, and data is inserted into each data table, so that the purpose of writing data into the LUN is achieved. And after each piece of data is inserted, recording the inserted data into a preset file, and recording a corresponding timestamp.
And S204, recording the write record and the time stamp of each piece of data into a preset file.
S205, obtaining the consistency group snapshot created for the consistency group in the process of writing data into each LUN.
In a specific embodiment, a consistency group snapshot created for the consistency group by using a VSS snapshot management platform in the process of writing data into each LUN is obtained
VSS (Volume copy Service), originally a storage technology introduced in Windows Server 2003SP 1. By adding a snapshot function to the volume management module, images (images) based on Point-In-Time (Point-In-Time) can be created on the basis, so that rapid backup and recovery of data are realized.
S206, determining a target timestamp corresponding to the consistency group snapshot, and judging whether all write-in records before the target timestamp in the preset file are consistent with the consistency group snapshot.
And S207, if yes, the consistency group snapshot passes verification.
Therefore, according to the consistency group reliability verification method provided by the embodiment of the application, the writing of data is completed concurrently by using the preset number of concurrent threads, so that the verification efficiency can be effectively improved.
In the following, a consistency group reliability verification system provided by the embodiments of the present application is described, and a consistency group reliability verification system described below and any of the embodiments described above may be referred to with each other.
Referring to fig. 3, the consistency group reliability verification system provided in the embodiment of the present application specifically includes:
a consistency group determining module 301, configured to determine that a preset number of LUNs are consistency groups;
a data writing module 302, configured to invoke an automatic write data thread to write data into each LUN, and record a write record and a timestamp of each piece of data in a preset file;
in a specific embodiment, the data writing module 302 includes:
the thread creating unit is used for creating the concurrent threads with the preset number, wherein one concurrent thread corresponds to one LUN;
a data writing unit, configured to write data into each LUN concurrently by using each concurrent thread;
and the first recording unit is used for recording the writing record and the time stamp of each piece of data into a preset file.
In another specific embodiment, each LUN corresponds to a data table, and the data writing module 302 includes:
an insertion statement constructing unit, configured to construct a data insertion statement corresponding to a preset data amount of each data table by using the automatic write data thread;
a data insertion unit, configured to insert data into each data table by using the data insertion statement corresponding to each data table by using the automatic write data thread;
and the second recording unit is used for recording the writing record and the time stamp of each piece of data into a preset file.
A snapshot obtaining module 303, configured to obtain a consistency group snapshot that has been created for the consistency group in a process of writing data in each LUN;
a verification module 304, configured to determine a target timestamp corresponding to the consistency group snapshot, and determine whether all write records in the preset file before the target timestamp are consistent with the consistency group snapshot; if so, the consistency group snapshot is verified to be passed.
The consistency group snapshot reliability verification system of this embodiment is configured to implement the consistency group snapshot reliability verification method, and thus specific embodiments of the consistency group snapshot reliability verification apparatus may be found in the foregoing embodiment parts of the consistency group snapshot reliability verification method, for example, the consistency group determination module 301, the data writing module 302, the snapshot obtaining module 303, and the verification module 304 are respectively configured to implement steps S101, S102, S103, and S104 in the consistency group snapshot reliability verification method, so that the specific embodiments thereof may refer to descriptions of corresponding partial embodiments, and are not described herein again.
In the following, a consistency group reliability verification apparatus provided in the embodiments of the present application is described, and a consistency group reliability verification apparatus described below and any of the embodiments described above may be referred to with each other.
Referring to fig. 4, the consistency group reliability verification apparatus provided in the embodiment of the present application specifically includes:
a memory 100 for storing a computer program;
a processor 200, configured to implement the steps of the consistency group snapshot reliability verification method according to any one of the above embodiments when executing the computer program.
Specifically, the memory 100 includes a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and computer-readable instructions, and the internal memory provides an environment for the operating system and the computer-readable instructions in the non-volatile storage medium to run. Processor 200 provides computational and control capabilities for the consistency group reliability verification apparatus and may implement the steps provided by any of the consistency group reliability verification method embodiments described above.
The present application also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, may implement the steps provided by the above-described embodiments. The storage medium may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (9)

1. A consistency group snapshot reliability verification method is characterized by comprising the following steps:
determining a preset number of LUNs as a consistency group;
calling an automatic write-in data thread to write data into each LUN, and recording write-in records and timestamps of each piece of data into a preset file;
obtaining consistency group snapshots corresponding to a plurality of timestamps created for the consistency group in the process of writing data into each LUN;
determining a target timestamp corresponding to each consistency group snapshot, and sequentially judging whether all write-in records before each target timestamp in the preset file are consistent with the consistency group snapshot corresponding to the current target timestamp;
if so, the consistency group snapshot is verified to be passed.
2. The method of claim 1, wherein the invoking an auto-write data thread writes data into each of the LUNs, comprising:
creating the concurrent threads with the preset number, wherein one concurrent thread corresponds to one LUN;
and writing data into each LUN by using each concurrent thread.
3. The method according to claim 1, wherein each LUN corresponds to a data table, and the invoking an auto-write data thread writes data into each LUN includes:
constructing a data insertion statement corresponding to the preset data volume of each data table by using the automatic write-in data thread;
and inserting data into each data table by using the automatic data writing thread by using a data inserting statement corresponding to each data table.
4. The method according to claim 1, wherein the obtaining the consistency group snapshot created for the consistency group during writing data to each LUN comprises:
and acquiring a consistency group snapshot created for the consistency group by using a VSS snapshot management platform in the process of writing data into each LUN.
5. A consistency group snapshot reliability verification system, comprising:
the consistency group determining module is used for determining a preset number of LUNs as a consistency group;
the data writing module is used for calling an automatic data writing thread to write data into each LUN and recording the writing record and the time stamp of each piece of data into a preset file;
a snapshot obtaining module, configured to obtain consistency group snapshots corresponding to multiple timestamps that have been created for the consistency group in a process of writing data into each LUN;
the verification module is used for determining a target timestamp corresponding to each consistency group snapshot and sequentially judging whether all write-in records before each target timestamp in the preset file are consistent with the consistency group snapshot corresponding to the current target timestamp; if so, the consistency group snapshot is verified to be passed.
6. The system of claim 5, wherein the data writing module comprises:
the thread creating unit is used for creating the concurrent threads with the preset number, wherein one concurrent thread corresponds to one LUN;
a data writing unit, configured to write data into each LUN concurrently by using each concurrent thread;
and the first recording unit is used for recording the writing record and the time stamp of each piece of data into a preset file.
7. The system according to claim 5, wherein each LUN corresponds to a data table, and the data writing module comprises:
an insertion statement constructing unit, configured to construct a data insertion statement corresponding to a preset data amount of each data table by using the automatic write data thread;
a data insertion unit, configured to insert data into each data table by using the data insertion statement corresponding to each data table by using the automatic write data thread;
and the second recording unit is used for recording the writing record and the time stamp of each piece of data into a preset file.
8. A consistency group snapshot reliability verification apparatus, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the consistency group snapshot authenticity verification method as claimed in any one of claims 1 to 4 when executing said computer program.
9. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the consistency group snapshot reliability verification method according to any one of claims 1 to 4.
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 CN110008227A (en) 2019-07-12
CN110008227B true 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 (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN108551764A (en) * 2015-12-28 2018-09-18 华睿泰科技有限责任公司 System and method for backing up large-scale distributed data system extending transversely
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

Family Cites Families (7)

* 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
CN105138426B (en) * 2015-08-20 2018-04-13 浪潮(北京)电子信息产业有限公司 A kind of business data method for protecting consistency and device based on snapshot
US10572510B2 (en) * 2015-12-21 2020-02-25 Sap Se Distributed database transaction protocol
CN107219997B (en) * 2016-03-21 2020-08-18 阿里巴巴集团控股有限公司 Method and device for verifying data consistency
US10372699B2 (en) * 2016-09-14 2019-08-06 Oracle International Corporation Patch-up operations on invalidity data
CN106844694B (en) * 2017-01-24 2019-11-15 恒生电子股份有限公司 Method and apparatus for synchrodata
CN108573016A (en) * 2017-12-25 2018-09-25 北京金山云网络技术有限公司 A kind of data consistent check method, apparatus, equipment and storage medium

Patent Citations (6)

* 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
CN106547641A (en) * 2015-09-17 2017-03-29 南京壹进制信息技术股份有限公司 A kind of CDP backup methods based on volume
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
CN106648993A (en) * 2016-12-30 2017-05-10 杭州宏杉科技股份有限公司 Consistency group snapshot management method and device
CN109460187A (en) * 2018-11-09 2019-03-12 郑州云海信息技术有限公司 A kind of qcow2 file data consistency verification method and verifying terminal

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
A Snapshot of Writing in Elementary Teacher Preparation Programs;Brenner D等;《New Educator》;20181231;409-414 *
一种基于OCL的体系结构一致性验证环境;曹流 等;《计算机科学》;20121130;第39卷(第11A期);1-12 *

Also Published As

Publication number Publication date
CN110008227A (en) 2019-07-12

Similar Documents

Publication Publication Date Title
CN110008129B (en) Reliability test method, device and equipment for storage timing snapshot
US9727411B2 (en) Method and processor for writing and error tracking in a log subsystem of a file system
CN110727597B (en) Method for checking invalid code completion case based on log
CN105573676B (en) A kind of method of verify data consistency in storage system
CN107577558B (en) Cloud storage snapshot method and device
CN111176885A (en) Data verification method and related device for distributed storage system
CN113778822A (en) Error correction capability test method and device, readable storage medium and electronic equipment
CN105446825A (en) Database test method and device
WO2017143843A1 (en) Metadata recovery method and device
CN109344579A (en) A kind of determination method and device of time confidence level
CN110147354B (en) Batch data editing method, device, computer equipment and storage medium
WO2017087015A1 (en) Count of metadata operations
CN114721881A (en) Database management method, system, electronic device and storage medium
US20160170842A1 (en) Writing to files and file meta-data
CN110008227B (en) Consistency group reliability verification method and related device
CN110647507B (en) File system writing state determining method and device, electronic equipment and medium
CN106445737A (en) Multi-backup starting method
CN115470040A (en) Method, device, equipment and medium for testing re-deleted fingerprint threshold based on snapshot
CN111221795A (en) Virtual disk data verification method, device and medium
CN111367710A (en) eMMC problem reduction method and device
CN112463042B (en) Data volume import data verification method, device, terminal and storage medium
CN115114095A (en) Data backup method, system, device and storage medium
CN111221801A (en) Database migration method, system and related device
US8131928B2 (en) Restoring striped volumes of data
CN102541668A (en) Method for analyzing reliability of flash file system

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