CN111858162A - Data processing method, system and device in remote copy - Google Patents

Data processing method, system and device in remote copy Download PDF

Info

Publication number
CN111858162A
CN111858162A CN202010605298.4A CN202010605298A CN111858162A CN 111858162 A CN111858162 A CN 111858162A CN 202010605298 A CN202010605298 A CN 202010605298A CN 111858162 A CN111858162 A CN 111858162A
Authority
CN
China
Prior art keywords
volume
thin
read
data processing
remote copy
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.)
Withdrawn
Application number
CN202010605298.4A
Other languages
Chinese (zh)
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 CN202010605298.4A priority Critical patent/CN111858162A/en
Publication of CN111858162A publication Critical patent/CN111858162A/en
Priority to PCT/CN2021/076852 priority patent/WO2022001127A1/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1479Generic software techniques for error detection or fault masking
    • G06F11/1492Generic software techniques for error detection or fault masking by run-time replication performed by the application software
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1479Generic software techniques for error detection or fault masking
    • G06F11/1482Generic software techniques for error detection or fault masking by means of middleware or OS functionality

Landscapes

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

Abstract

The invention provides a data processing method, a system and a device in remote copy, wherein the method comprises the steps of establishing two thin pools, respectively establishing a thin volume master volume and a thin volume slave volume in the thin pools, and establishing a remote copy relationship of the master volume and the slave volume; when the thin pool where any thin volume is located is full, the thin volume is in a read-only state. When the thin pool in which the thin volume is located is full, the thin volume is in a read-only state, and compared with the situation that the volume in which the thin volume is located is set to be in an off-line state after the traditional storage pool is full, the thin volume reading method and the thin volume reading device can not affect the reading operation of the volume and expand the operation range of services. And the reaction can be immediately carried out after the streamlined pool is full, and the service treatment timeliness cannot be influenced.

Description

Data processing method, system and device in remote copy
Technical Field
The invention relates to the technical field of remote copy disaster tolerance, in particular to a data processing method, a system and a device in remote copy.
Background
After the storage pool where the master end or the slave end volume is located is full, the remote copy disaster recovery technology stops the remote copy relationship, and the master volume and the slave volume are in an offline state and cannot read and write.
For the above problem, the existing processing means is to perform read-write operation on the remotely copied primary volume only after the storage pool is full, the storage pool is expanded or garbage collection is performed on the storage pool so that the storage pool is no longer in the pool full state.
The processing means is complex, a large amount of cost is consumed, and the data processing service is influenced because the storage pool cannot react immediately after being full.
Disclosure of Invention
The invention provides a data processing method, a system and a device in remote copy, which are used for solving the problem that the existing storage pool cannot react immediately after being full, and the data processing service is influenced.
In order to achieve the purpose, the invention adopts the following technical scheme:
the invention provides a data processing method in remote copy in a first aspect, which comprises the following steps:
creating two thin pools, respectively creating a thin volume master volume and a thin volume slave volume in the thin pools, and establishing a remote copy relationship of the master volume and the slave volume;
when the thin pool where any thin volume is located is full, the thin volume is in a read-only state.
Further, when the thin pool where the primary volume is located is full, the remote copy relationship is not changed, the primary volume is in a read-only state, and when there is read IO, the primary volume is directly processed.
Further, when the thin pool where the secondary volume is located is full, the remote copy relationship is stopped;
when a write IO request exists, the main volume processes the write IO and returns success;
when there is a read IO request, the primary volume processes the write IO and returns success.
Further, the remote copy relationship is dual active, when the thin pool where the master volume is located is full, the master volume and the slave volume are switched, the switched slave volume is in a read-only state, and the switched master volume processes the read/write IO request; when the thin pool where the slave volume is located is full, the slave volume is in a read-only state, and the master volume processes the read/write IO request.
Further, the method further includes displaying a read-only state of the thin volume, specifically:
adding a read-only attribute value of the compact volume in the status attribute value;
and when the thin volume is changed into a read-only state, correspondingly displaying the read-only attribute value of the thin volume.
Further, the remote copy includes a synchronous remote copy relationship and an asynchronous remote copy relationship.
A second aspect of the present invention provides a data processing system in remote copy, the system comprising:
the remote copy relationship establishing unit is used for establishing two thin pools, respectively establishing a thin volume master volume and a thin volume slave volume in the thin pools, and establishing a remote copy relationship of the master volume and the slave volume;
And the data processing unit is used for enabling any thin volume to be in a read-only state when the thin pool where the thin volume is located is full.
Further, the system further comprises a state display unit for displaying the read-only state of the thin volume.
A third aspect of the present invention provides a data processing apparatus in remote copy, said apparatus comprising two thin pools, a master volume, a slave volume and said data processing system.
A fourth aspect of the present invention provides a computer storage medium having stored therein computer instructions which, when run on a data processing system, cause the data processing system to perform the steps of the data processing method.
The data processing system in remote copy according to the second aspect of the present invention is capable of implementing the methods according to the first aspect and the implementation manners of the first aspect, and achieves the same effects.
The effect provided in the summary of the invention is only the effect of the embodiment, not all the effects of the invention, and one of the above technical solutions has the following advantages or beneficial effects:
when the thin pool in which the thin volume is located is full, the thin volume is in a read-only state, and compared with the situation that the volume in which the thin volume is located is set to be in an off-line state after the traditional storage pool is full, the thin volume reading method and the thin volume reading device can not affect the reading operation of the volume and expand the operation range of services. And the reaction can be immediately carried out after the streamlined pool is full, and the service treatment timeliness cannot be influenced. In addition, when the thin volume is in a read-only state, corresponding attribute value display is carried out, so that an operator can know the fullness condition of the thin pool in time, take counter measures as soon as possible, and further ensure the processing capacity of service data.
Drawings
In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present invention, the drawings used in the description of the embodiments or prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without creative efforts.
FIG. 1 is a schematic flow diagram of the process of the present invention;
FIG. 2 is a schematic diagram of the structure of the remote copy relationship of the present invention;
fig. 3 is a schematic diagram of the system of the present invention.
Detailed Description
In order to clearly explain the technical features of the present invention, the following detailed description of the present invention is provided with reference to the accompanying drawings. The following disclosure provides many different embodiments, or examples, for implementing different features of the invention. To simplify the disclosure of the present invention, the components and arrangements of specific examples are described below. Furthermore, the present invention may repeat reference numerals and/or letters in the various examples. This repetition is for the purpose of simplicity and clarity and does not in itself dictate a relationship between the various embodiments and/or configurations discussed. It should be noted that the components illustrated in the figures are not necessarily drawn to scale. Descriptions of well-known components and processing techniques and procedures are omitted so as to not unnecessarily limit the invention.
As shown in fig. 1, a data processing method in remote copy includes the following steps:
s1, creating two thin pools, creating a thin volume master volume and a thin volume slave volume in the thin pools respectively, and establishing a remote copy relationship of the master volume and the slave volume;
and S2, when the thin pool in which any thin volume is located is full, the thin volume is in a read-only state.
In step S1, a remote copy relationship as shown in fig. 2 is established, and the present invention is based on the full-flash product, where the storage pool is a thin pool, and a master volume and a slave volume of the remote copy are created as thin volumes from the thin pool.
Remote replication includes both synchronous remote replication relationships and asynchronous remote replication relationships.
Step S1 further includes initiating a remote copy relationship to synchronize the states of the master and slave volumes.
In step S2, when the thin pool in which the primary volume is located is full, the remote copy relationship is unchanged, the primary volume does not process write IO any more, and the failed volume is directly returned; when reading IO, the main volume directly processes and returns success.
When the thin pool where the slave volume is located is full, the remote copy relationship is stopped; the master volume stops for consistency with the slave volume; when write IO is sent to the main volume, the remote copy relationship is consistently disconnected, the main volume processes the write IO and returns success; when a read IO is sent to the main volume, the remote copy relationship is consistently disconnected, the main volume processes the read IO and returns success.
When the remote copy relationship is double-active, when the thin pool in which the master volume is located is full, the master volume is changed into a readonly, the master volume is switched from the slave volume, the slave volume is changed into the master volume, the switched slave volume is in a read-only state, and the switched master volume processes a read/write IO request; when the thin storage pool in which the slave volume is located is full, the slave volume becomes read-only, and the master volume processes the read/write IO request.
The method further comprises the step of displaying the read-only state of the compact volume, which specifically comprises the following steps: the status attribute value of the lsrcdisplacement command is modified, and the read-only attribute values "primary _ read _ only" and "secondary _ read _ only" of the thin volume are added. When the primary volume becomes read-only, this attribute shows "primary _ read _ only"; when the volume is changed to read-only, the attribute shows "second _ read _ only".
As shown in fig. 3, the data processing system in remote copy of the present invention includes a remote copy relationship establishing unit 1, a data processing unit 2, and a status display unit 3.
The remote copy relationship establishing unit 1 is configured to create two thin pools, respectively create a thin volume master volume and a thin volume slave volume in the thin pools, and establish a remote copy relationship between the master volume and the slave volume.
When the thin pool where any thin volume is located is full, the data processing unit 2 makes the thin volume in a read-only state.
The state display unit 3 is used to display the read-only state of the thin volume.
The invention also provides a data processing device in remote copy, which comprises two thin pools, a master volume, a slave volume and the data processing system.
The invention also provides a computer storage medium, wherein computer instructions are stored in the computer storage medium, and when the computer instructions are run on a data processing system, the data processing system executes the steps of the data processing method.
Although the embodiments of the present invention have been described with reference to the accompanying drawings, it is not intended to limit the scope of the present invention, and it should be understood by those skilled in the art that various modifications and variations can be made without inventive efforts by those skilled in the art based on the technical solution of the present invention.

Claims (10)

1. A method of data processing in remote copy, the method comprising the steps of:
creating two thin pools, respectively creating a thin volume master volume and a thin volume slave volume in the thin pools, and establishing a remote copy relationship of the master volume and the slave volume;
when the thin pool where any thin volume is located is full, the thin volume is in a read-only state.
2. The data processing method in remote copy as claimed in claim 1, wherein when the thin pool where the primary volume is located is full, the remote copy relationship is not changed, the primary volume is in a read-only state, and when there is a read IO, the primary volume is directly processed.
3. The data processing method in remote copy as claimed in claim 1, wherein when the thin pool of the slave volume is full, the remote copy relationship is stopped;
when a write IO request exists, the main volume processes the write IO and returns success;
when there is a read IO request, the primary volume processes the write IO and returns success.
4. The data processing method in remote copy as claimed in claim 1, wherein the remote copy relationship is dual active, when the thin pool where the master volume is located is full, the master volume and the slave volume are switched, the switched slave volume is in a read-only state, and the switched master volume processes the read/write IO request; when the thin pool where the slave volume is located is full, the slave volume is in a read-only state, and the master volume processes the read/write IO request.
5. The data processing method in remote replication according to any of claims 1 to 4, wherein the method further comprises displaying the read-only state of the thin volume, in particular:
adding a read-only attribute value of the compact volume in the status attribute value;
And when the thin volume is changed into a read-only state, correspondingly displaying the read-only attribute value of the thin volume.
6. The method of data processing in remote copy of claim 5, wherein the remote copy comprises a synchronous remote copy relationship and an asynchronous remote copy relationship.
7. A data processing system in remote replication, the system comprising:
the remote copy relationship establishing unit is used for establishing two thin pools, respectively establishing a thin volume master volume and a thin volume slave volume in the thin pools, and establishing a remote copy relationship of the master volume and the slave volume;
and the data processing unit is used for enabling any thin volume to be in a read-only state when the thin pool where the thin volume is located is full.
8. The data processing system in remote replication of claim 7, wherein the system further comprises a state display unit for displaying a read-only state of the thin volume.
9. A data processing apparatus in remote replication, characterized in that said apparatus comprises two thin pools, a master volume, a slave volume and a data processing system according to claim 7 or 8.
10. A computer storage medium having computer instructions stored thereon, which, when executed on a data processing system, cause the data processing system to perform the steps of the data processing method of claim 6.
CN202010605298.4A 2020-06-29 2020-06-29 Data processing method, system and device in remote copy Withdrawn CN111858162A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010605298.4A CN111858162A (en) 2020-06-29 2020-06-29 Data processing method, system and device in remote copy
PCT/CN2021/076852 WO2022001127A1 (en) 2020-06-29 2021-02-19 Data processing method, system and device in remote replication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010605298.4A CN111858162A (en) 2020-06-29 2020-06-29 Data processing method, system and device in remote copy

Publications (1)

Publication Number Publication Date
CN111858162A true CN111858162A (en) 2020-10-30

Family

ID=72989164

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010605298.4A Withdrawn CN111858162A (en) 2020-06-29 2020-06-29 Data processing method, system and device in remote copy

Country Status (2)

Country Link
CN (1) CN111858162A (en)
WO (1) WO2022001127A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022001127A1 (en) * 2020-06-29 2022-01-06 苏州浪潮智能科技有限公司 Data processing method, system and device in remote replication

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8543786B2 (en) * 2010-09-29 2013-09-24 Hitachi, Ltd. Computer system and computer system management method for adding an unused real volume to a pool
US9218407B1 (en) * 2014-06-25 2015-12-22 Pure Storage, Inc. Replication and intermediate read-write state for mediums
CN107608623B (en) * 2016-07-11 2021-08-31 中兴通讯股份有限公司 Asynchronous remote copying method, device and system
CN110780816B (en) * 2019-10-17 2023-01-10 苏州浪潮智能科技有限公司 Data synchronization method, device and medium
CN110989930B (en) * 2019-11-22 2023-07-18 浪潮(北京)电子信息产业有限公司 Pool space data processing method, device, equipment and storage medium
CN111858162A (en) * 2020-06-29 2020-10-30 苏州浪潮智能科技有限公司 Data processing method, system and device in remote copy

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022001127A1 (en) * 2020-06-29 2022-01-06 苏州浪潮智能科技有限公司 Data processing method, system and device in remote replication

Also Published As

Publication number Publication date
WO2022001127A1 (en) 2022-01-06

Similar Documents

Publication Publication Date Title
US20060294413A1 (en) Fault tolerant rolling software upgrade in a cluster
CN105975579B (en) A kind of active and standby clone method and memory database system of memory database
CN102891849B (en) Service data synchronization method, data recovery method, data recovery device and network device
EP4072097A1 (en) Method and device for dynamically adding consensus node in blockchain
CN102710752B (en) Calamity is for storage system
CN108614876B (en) Redis database-based system and data processing method
CN106802892B (en) Method and equipment for checking consistency of main and standby data
CN111858162A (en) Data processing method, system and device in remote copy
WO2018006723A1 (en) Database data modification request processing method and apparatus
CN103973727A (en) Data synchronizing method and device
CN108460160B (en) Off-line method, device, terminal and storage medium of database instance
CN111078352A (en) Dual-computer hot standby deployment method and system based on KVM virtualization system
CN111770139A (en) Method, device and system for remotely synchronizing data of distributed storage system
CN113535665A (en) Method and device for synchronizing log files between main database and standby database
US10409504B2 (en) Soft-switch in storage system
CN108984346B (en) Method, system and storage medium for producing data disaster tolerance
CN107404511B (en) Method and device for replacing servers in cluster
CN115934742A (en) Fault processing method, device, equipment and storage medium
CN114780639A (en) Core system construction method based on double-database parallelism
CN100383757C (en) Disk data backup system and method thereof
CN115774754A (en) Metadata management method, device, equipment and medium based on distributed transaction
CN110661869B (en) Node online method, system, device, equipment and computer storage medium
CN202677392U (en) Automatic disaster recovery system of database
CN112199329A (en) Double-machine operation and maintenance data filing and cleaning method and equipment based on fortress machine
CN111026810A (en) Data synchronization method, device and storage medium

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20201030

WW01 Invention patent application withdrawn after publication