CN116700625A - Dual-activity storage method, dual-activity storage device and computer readable storage medium - Google Patents
Dual-activity storage method, dual-activity storage device and computer readable storage medium Download PDFInfo
- Publication number
- CN116700625A CN116700625A CN202310780546.2A CN202310780546A CN116700625A CN 116700625 A CN116700625 A CN 116700625A CN 202310780546 A CN202310780546 A CN 202310780546A CN 116700625 A CN116700625 A CN 116700625A
- Authority
- CN
- China
- Prior art keywords
- storage pool
- target
- dual
- host
- active
- 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.)
- Pending
Links
- 230000009977 dual effect Effects 0.000 title claims abstract description 94
- 238000000034 method Methods 0.000 title claims abstract description 39
- 238000004590 computer program Methods 0.000 claims description 12
- 238000013500 data storage Methods 0.000 abstract description 5
- 230000005540 biological transmission Effects 0.000 description 11
- 238000010586 diagram Methods 0.000 description 4
- 238000012423 maintenance Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0629—Configuration or reconfiguration of storage systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1448—Management of the data involved in backup or backup restore
- G06F11/1451—Management of the data involved in backup or backup restore by selection of backup contents
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0629—Configuration or reconfiguration of storage systems
- G06F3/0635—Configuration or reconfiguration of storage systems by changing the path, e.g. traffic rerouting, path reconfiguration
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0646—Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
- G06F3/065—Replication mechanisms
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Quality & Reliability (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a dual-activity storage method, a dual-activity storage device and a computer readable storage medium, which relate to the field of data storage, and are characterized in that whether a first host mounted jointly exists between a main target storage pool and a source storage pool in a target dual-activity storage pool is judged; if yes, directly using the first host and the main target storage pool to perform dual-activity storage; and if the secondary storage pool does not exist, under the condition that a second host which is mounted jointly between the secondary target storage pool and the source storage pool exists, performing dual-activity storage by utilizing the second host and the secondary target storage pool. By redesigning the path selection strategy of the data backup between the target dual-active storage pool and the source storage pool, the possibility of dual-active storage is greatly improved, and the limitation of storage service is reduced.
Description
Technical Field
The present invention relates to the field of data storage, and in particular, to a dual-active storage method, apparatus and computer readable storage medium.
Background
In order to improve the fault tolerance of the cloud computing management platform data storage, the data storage is currently performed in a dual-active storage mode. The dual-active storage is to create a main disk in a main storage pool of a target dual-active storage pool, create a secondary disk in a secondary storage pool of the target dual-active storage pool, and use the two disks of the main disk and the secondary disk to jointly store data to be stored in a source storage pool, wherein the main disk and the secondary disk are mutually backup, and the main disk and the secondary disk are all in an operation state all the time, so that when one disk fails, the other disk can be immediately switched. When dual-active storage is realized in the related technology, the operation is generally completed by replacing the whole dual-active disk with the main disk, and then the data on the main disk is copied to the auxiliary disk to complete the data association of the main disk and the auxiliary disk. However, in the related art, a host computer installed simultaneously is required to be arranged between the main storage pool and the source storage pool, otherwise, dual-active storage cannot be realized, and the progress of storage business is limited to a certain extent.
Disclosure of Invention
The invention aims to provide a dual-active storage method, a dual-active storage device and a computer readable storage medium, which greatly improve the possibility of dual-active storage and reduce the limitation of storage business by redesigning a path selection strategy for carrying out data backup between a target dual-active storage pool and a source storage pool.
In order to solve the technical problems, the invention provides a dual-activity storage method, which comprises the following steps:
judging whether a first host mounted jointly exists between a main target storage pool and a source storage pool in a target dual-active storage pool;
if yes, the first host is controlled to store the data to be backed up in the source storage pool into the main target storage pool, and the target dual-activity storage host is controlled to copy the data to be backed up in the main target storage pool into a secondary target storage pool in the dual-activity storage pool, wherein the target dual-activity storage host is a host mounted together with the main target storage pool and the secondary target storage pool;
if not, when a second host computer which is mounted jointly between the auxiliary target storage pool and the source storage pool is determined, the second host computer is controlled to store the data to be backed up into the auxiliary target storage pool, and the target dual-active storage host computer is controlled to copy the data to be backed up in the auxiliary target storage pool into the main target storage pool.
In another aspect, before determining whether a co-mounted first host exists between a primary target storage pool and a source storage pool in the target dual-active storage pool, the method further includes:
determining a storage pool type of the source storage pool, wherein the storage pool type comprises a dual active source storage pool and a non-dual active source storage pool;
when the storage pool type of the source storage pool is the non-dual active source storage pool, entering a step of judging whether a first host mounted jointly exists between a main target storage pool and a source storage pool in a target dual active storage pool;
and when the storage pool type of the source storage pool is the dual-active-source storage pool, judging whether a commonly mounted host exists between the main target storage pool and the main source storage pool and between the auxiliary source storage pool in the dual-active-source storage pool, and whether a commonly mounted host exists between the auxiliary target storage pool and the main source storage pool and between the auxiliary source storage pool, and storing the data to be backed up in the target dual-active storage pool based on a judging result.
On the other hand, when the primary target storage pool only has a third host with common mount with the primary source storage pool and the secondary target storage pool only has a fourth host with common mount with the secondary source storage pool, storing the data to be backed up in the target dual-activity storage pool based on a judgment result, including:
Controlling the third host to store the primary data to be backed up in the primary source storage pool into the primary target storage pool;
controlling the fourth host to store the data to be backed up in the secondary source storage pool into the secondary target storage pool;
and controlling the target dual-active storage host to copy the primary to-be-backed-up data in the primary target storage pool to the secondary target storage pool, and copy the secondary to-be-backed-up data in the secondary target storage pool to the primary target storage pool, wherein the combination of the primary to-be-backed-up data and the secondary to-be-backed-up data is the to-be-backed-up data.
On the other hand, when there is no co-mounted host between the primary target storage pool and the primary source storage pool and between the secondary source storage pool, and there is a fifth co-mounted host between the secondary target storage pool and the secondary source storage pool, storing the data to be backed up in the target dual-activity storage pool based on a determination result, including:
controlling the fifth host to store all data to be backed up in the secondary source storage pool into the secondary target storage pool;
and controlling the target dual-active storage host to copy all the data to be backed up in the auxiliary target storage pool to the main target storage pool.
On the other hand, when there is a sixth host mounted in common between the primary target storage pool and the primary source storage pool, and there is no host mounted in common between the secondary target storage pool, the primary source storage pool, and the secondary source storage pool, storing the data to be backed up in the target dual-activity storage pool based on a determination result, including:
controlling the sixth host to store all data to be backed up in the main source storage pool into the main target storage pool;
and controlling the target dual-active storage host to copy all the data to be backed up in the main target storage pool to the auxiliary target storage pool.
On the other hand, when only the seventh host mounted in common exists between the primary target storage pool and the secondary source storage pool and no host mounted in common exists between the secondary target storage pool and the primary source storage pool and the secondary source storage pool, storing the data to be backed up in the target dual-activity storage pool based on a judgment result, including:
controlling the seventh host to store all data to be backed up in the secondary source storage pool into the primary target storage pool;
and controlling the target dual-active storage host to copy all the data to be backed up in the main target storage pool to the auxiliary target storage pool.
On the other hand, when only the eighth host mounted in common exists between the secondary target storage pool and the primary source storage pool and no host mounted in common exists between the primary target storage pool and the primary source storage pool and between the secondary source storage pool, storing the data to be backed up in the target dual-activity storage pool based on a judgment result, including:
controlling the eighth host to store all data to be backed up in the main source storage pool into the auxiliary target storage pool;
and controlling the target dual-activity storage host to copy all the data to be backed up in the secondary target storage pool to the secondary target storage pool.
In another aspect, before determining whether a co-mounted first host exists between a primary target storage pool and a source storage pool in the target dual-active storage pool, the method further includes:
judging whether the target dual-activity storage host exists between the main target storage pool and the auxiliary target storage pool in the target dual-activity storage pool;
if the target dual-active storage host exists between the main target storage pool and the auxiliary target storage pool, a step of judging whether a first host which is mounted jointly exists between the main target storage pool and the source storage pool in the target dual-active storage pool is entered;
If the target dual-activity storage host does not exist between the main target storage pool and the auxiliary target storage pool, generating prompt information that the target dual-activity storage pool does not support dual-activity storage;
after determining the storage pool type of the source storage pool, further comprising:
when the storage pool type of the source storage pool is the dual-active-source storage pool, judging whether a commonly mounted source dual-active storage machine exists between the main source storage pool and the auxiliary source storage pool in the dual-active-source storage pool;
if the source dual-active storage machine exists between the main source storage pool and the auxiliary source storage pool, entering a step of judging whether a commonly mounted host exists between the main target storage pool and the main source storage pool and the auxiliary source storage pool in the dual-active storage pool and whether a commonly mounted host exists between the auxiliary target storage pool and the main source storage pool and the auxiliary source storage pool;
and if the source dual-active storage machine does not exist between the main source storage pool and the auxiliary source storage pool, generating prompt information that the source storage pool does not support dual-active storage.
In order to solve the technical problem, the present application further provides a dual-active storage device, including:
A memory for storing a computer program;
and the processor is used for realizing the steps of any double-activity storage method when executing the computer program.
The present application also provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps of any of the above-described dual-activity storage methods.
The beneficial effects of the application are as follows: the application provides a dual-activity storage method, a dual-activity storage device and a computer readable storage medium, which are characterized in that whether a first host mounted jointly exists between a main target storage pool and a source storage pool in a target dual-activity storage pool is judged; if yes, directly using the first host and the main target storage pool to perform dual-activity storage; and if the secondary storage pool does not exist, under the condition that a second host which is mounted jointly between the secondary target storage pool and the source storage pool exists, performing dual-activity storage by utilizing the second host and the secondary target storage pool. By redesigning the path selection strategy of the data backup between the target dual-active storage pool and the source storage pool, the possibility of dual-active storage is greatly improved, and the limitation of storage service is reduced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required in the prior art and the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a dual live storage method provided by the invention;
FIG. 2 is a schematic diagram of a dual active memory device according to the present invention;
fig. 3 is a schematic structural diagram of a computer readable storage medium according to the present invention.
Detailed Description
The core of the invention is to provide a dual-active storage method, a dual-active storage device and a computer readable storage medium, by redesigning a path selection strategy for carrying out data backup between a target dual-active storage pool and a source storage pool, the possibility of dual-active storage is greatly improved, and the limitation of storage service is reduced.
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1, fig. 1 is a flowchart of a dual-active storage method according to the present application, where the method includes:
s1: judging whether a first host mounted jointly exists between a main target storage pool and a source storage pool in a target dual-active storage pool; if yes, entering S2; if not, entering S3;
s2: controlling a first host to store data to be backed up in a source storage pool into a main target storage pool, and controlling a target dual-activity storage host to copy the data to be backed up in the main target storage pool into a secondary target storage pool in the dual-activity storage pool, wherein the target dual-activity storage host is a host mounted together with the main target storage pool and the secondary target storage pool;
s3: and when the second host computer with the common mount exists between the auxiliary target storage pool and the source storage pool, controlling the second host computer to store the data to be backed up into the auxiliary target storage pool, and controlling the target dual-activity storage host computer to copy the data to be backed up in the auxiliary target storage pool into the main target storage pool.
The source storage pool refers to a storage pool of which stored data needs to be backed up, and the target dual-activity storage pool refers to a storage pool used for carrying out backup storage on data to be backed up in the source storage pool. It should be further noted that, the backup of the data to be backed up in the source storage pool by using the target dual-active storage pool in the present application includes copying the data to be backed up in the source storage pool, and moving (may also be referred to as cutting) the data to be backed up in the source storage pool, which is not particularly limited in the present application.
In the related art, when dual-active storage is performed, a main target storage pool is used for replacing a target dual-active storage pool to complete data acquisition operation to be backed up, so that the dual-active storage in the related art needs to ensure that a commonly mounted host exists between the main target storage pool and a source storage pool in the target dual-active storage pool, otherwise, data backup cannot be realized. Therefore, the application redesigns the strategy of data backup between the target double-active storage pool and the source storage pool, when the co-mounted host exists between the main target storage pool and the source storage pool, the data to be backed up is obtained through the main target storage pool, and then the association between the main target storage pool and the auxiliary target storage pool is carried out; when no co-mounted host exists between the main target storage pool and the source storage pool, if the co-mounted host exists between the auxiliary target storage pool and the source storage pool, the data to be backed up is acquired through the auxiliary target storage pool, and then association between the auxiliary target storage pool and the main target storage pool is carried out. Therefore, the application has more alternative paths for carrying out data backup between the target dual-activity storage pool and the source storage pool, so that the possibility of successfully carrying out dual-activity storage is greatly improved.
Specifically, whether a first host with common mount exists between a main target storage pool and a source storage pool is firstly judged, when the first host with common mount exists between the main target storage pool and the source storage pool, the first host is controlled to store data to be backed up in the source storage pool into the main target storage pool, and at the moment, the first host is used as a channel for transmitting the data to be backed up between the source storage pool and the main target storage pool. And after the main target storage pool successfully stores the data to be backed up, the target dual-activity storage host is used as a data transmission channel to copy the data to be backed up stored in the main target storage pool into the auxiliary target storage pool, so as to complete dual-activity storage.
When the first host with the common mount does not exist between the main target storage pool and the source storage pool, the backup of the data to be backed up is considered to be carried out through the auxiliary target storage pool, specifically, when the second host with the common mount exists between the auxiliary target storage pool and the source storage pool, the second host is controlled to store the data to be backed up into the auxiliary target storage pool, and at the moment, the second host is used as a channel for transmitting the data to be backed up between the source storage pool and the auxiliary target storage pool. And after the secondary target storage pool successfully stores the data to be backed up, the target dual-activity storage host is used as a data transmission channel to copy the data to be backed up stored in the secondary target storage pool into the primary target storage pool, so as to complete dual-activity storage.
For example, if the source storage pool mounts host a and host C, the main target storage pool mounts host B, and the auxiliary target storage pool mounts host B and host C, then the related art cannot realize dual-active storage, but the present application considers that there is co-mounted host C between the source storage pool and the auxiliary target storage pool, then the host C stores the data to be backed up in the source storage pool into the auxiliary target storage pool, and then the host B copies the data to be backed up stored in the auxiliary target storage pool into the main target storage pool, thereby completing dual-active storage and improving the security of data storage.
In summary, the present application provides a dual-active storage method, which includes first determining whether a first host mounted together exists between a main target storage pool and a source storage pool in a target dual-active storage pool; if yes, directly using the first host and the main target storage pool to perform dual-activity storage; and if the secondary storage pool does not exist, under the condition that a second host which is mounted jointly between the secondary target storage pool and the source storage pool exists, performing dual-activity storage by utilizing the second host and the secondary target storage pool. By redesigning the path selection strategy of the data backup between the target dual-active storage pool and the source storage pool, the possibility of dual-active storage is greatly improved, and the limitation of storage service is reduced.
Based on the above embodiments:
in some embodiments, before determining whether there is a co-mounted first host between a primary target storage pool and a source storage pool in the target dual active storage pool, further comprising:
determining a storage pool type of a source storage pool, wherein the storage pool type comprises a dual active source storage pool and a non-dual active source storage pool;
when the storage pool type of the source storage pool is a non-dual active source storage pool, entering a step of judging whether a first host mounted jointly exists between a main target storage pool and the source storage pool in the target dual active storage pool;
and when the storage pool type of the source storage pool is a dual-active-source storage pool, judging whether a commonly mounted host exists between the main source storage pool and the auxiliary source storage pool in the main target storage pool and the dual-active-source storage pool, and whether a commonly mounted host exists between the auxiliary target storage pool and the main source storage pool and the auxiliary source storage pool, and storing the data to be backed up in the target dual-active storage pool based on a judging result.
Considering that in practical applications, a source storage pool may be a dual active source storage pool (i.e., the source storage pool stores data on a primary source storage pool and a secondary source storage pool at the same time), and may also be a non-dual active source storage pool (i.e., the source storage pool stores data in only one storage pool), when the storage pool types of the source storage pools are different, the manner of performing dual active storage backup by using the target dual active storage pool is also different.
When the storage pool type of the source storage pool is a non-dual active source storage pool, only a first host with common mount between the main target storage pool and the source storage pool and a second host with common mount between the auxiliary target storage pool and the source storage pool need to be considered, and the main target storage pool and the auxiliary target storage pool can acquire complete data to be backed up from one source storage pool.
When the storage pool type of the source storage pool is a dual-active storage pool, since the source storage pool includes a main source storage pool and a secondary source storage pool, whether a co-mounted host exists between the target dual-active storage pool and the dual-active storage pool is determined to determine whether a condition for dual-active storage is satisfied between the target dual-active storage pool and the dual-active storage pool, whether a co-mounted host exists between the main source storage pool and the secondary source storage pool in the main target storage pool and whether a co-mounted host exists between the secondary target storage pool and the main source storage pool and the secondary source storage pool is determined to be different from the case when the source storage pool is a non-dual-active storage pool.
In summary, the embodiment fully considers the storage pool type of the source storage pool, and determines whether the data backup can be performed between the target dual-active storage pool and the source storage pool according to different judging conditions when the storage pool types of the source storage pool are different.
In some embodiments, when there is a third host mounted in common between the primary target storage pool and the primary source storage pool only, and there is a fourth host mounted in common between the secondary target storage pool and the secondary source storage pool only, storing the data to be backed up in the target dual-activity storage pool based on the determination result, including:
controlling a third host to store the primary data to be backed up in the primary source storage pool into the primary target storage pool;
controlling a fourth host to store the auxiliary data to be backed up in the auxiliary source storage pool into the auxiliary target storage pool;
and the control target dual-active storage host copies the primary to-be-backed-up data in the primary target storage pool to the secondary target storage pool, copies the secondary to-be-backed-up data in the secondary target storage pool to the primary target storage pool, wherein the combination of the primary to-be-backed-up data and the secondary to-be-backed-up data is to-be-backed-up data.
Considering that when the source storage pool is a dual-active storage pool and the target dual-active storage pool is utilized to perform data backup on the dual-active storage pool, if an intersection among the main target storage pool, the main source storage pool, the auxiliary target storage pool and the auxiliary source storage pool is selected as a commonly mounted host, and the host is utilized to copy the main data to be backed up in the main source storage pool to the main target storage pool respectively, and copy the auxiliary data to be backed up in the auxiliary source storage pool to the auxiliary target storage pool, on one hand, the problem that the commonly mounted host does not exist among the four storage pools and further data backup cannot be performed is likely to occur, and on the other hand, the same host is utilized to simultaneously perform two data copying tasks, which may cause overload of the host and lower the efficiency of data backup.
In order to solve the above-mentioned drawbacks, in this embodiment, in the case where the source storage pool is a dual active source storage pool, as long as there is a commonly mounted host between the primary target storage pool and the primary source storage pool, the data backup can be performed by the commonly mounted host between the secondary target storage pool and the secondary source storage pool. Specifically, when a third host with common mount exists between the main target storage pool and the main source storage pool, and a fourth host with common mount exists between the auxiliary target storage pool and the auxiliary source storage pool, the third host is used for copying and storing the main data to be backed up in the main source storage pool into the main target storage pool, and the fourth host is used for storing the auxiliary data to be backed up in the auxiliary source storage pool into the auxiliary target storage pool. The combination of the primary data to be backed up and the secondary data to be backed up is the data to be backed up, so that tasks born by the third host and the fourth host can be relatively lightened, and the speed of data backup is improved.
When the main target storage pool copies the main to-be-backed up data, the auxiliary target storage pool copies the auxiliary to-be-backed up data, and then the target dual-active storage host is controlled to copy the main to-be-backed up data in the main target storage pool to the auxiliary target storage pool, and copy the auxiliary to-be-backed up data in the auxiliary target storage pool to the main target storage pool, so that the main target storage pool and the auxiliary target storage pool both store complete to-be-backed up data, and dual-active storage of the to-be-backed up data is realized.
It should be emphasized that, in the case that the third host computer with common mount only between the primary target storage pool and the primary source storage pool and the fourth host computer with common mount only between the secondary target storage pool and the secondary source storage pool include both the same host computer and different host computers, the different host computers are preferentially selected to be respectively used as the third host computer and the fourth host computer, thereby realizing parallel copying of the data to be backed up and accelerating the backup speed.
In some embodiments, when there is no co-mounted host between the primary target storage pool and both the primary source storage pool and the secondary source storage pool, and there is a fifth co-mounted host between the secondary target storage pool and the secondary source storage pool, storing the data to be backed up in the target dual-active storage pool based on the determination result, including:
controlling a fifth host to store all data to be backed up in the secondary source storage pool into the secondary target storage pool;
and the control target dual-active storage host copies all the data to be backed up in the auxiliary target storage pool to the main target storage pool.
In this embodiment, considering that no co-mounted host exists between the primary target storage pool and the primary source storage pool and between the secondary source storage pool, and that there exists a fifth co-mounted host between the secondary target storage pool and the secondary source storage pool, the fifth host is used as a data transmission channel of data to be backed up to store the complete data to be backed up in the secondary source storage pool in the secondary target storage pool, and then the target dual-active storage host is used as a data transmission channel to copy all the data to be backed up in the secondary target storage pool in the primary target storage pool, so that the complete data to be backed up are stored in both the primary target storage pool and the secondary target storage pool, dual-active storage of the data to be backed up is realized, and flexibility of dual-active storage is improved.
For example, a primary source storage pool in a dual active storage pool is loaded with a host a, a secondary source storage pool is loaded with a host a and a host C, a primary target storage pool in a target dual active storage pool is loaded with a host B, and a secondary target storage pool is loaded with a host B and a host C, where there is no host mounted among the primary source storage pool, the secondary source storage pool, the primary target storage pool, and the secondary target storage pool, and there is no host mounted together between the primary source storage pool and the primary target storage pool, and the related art may not be able to perform data backup.
In some embodiments, when there is a sixth host mounted in common between the primary target storage pool and the primary source storage pool, and there is no host mounted in common between the secondary target storage pool and both the primary source storage pool and the secondary source storage pool, storing the data to be backed up in the target dual-activity storage pool based on the determination result, including:
Controlling a sixth host to store all data to be backed up in the main source storage pool into the main target storage pool;
and the control target dual-active storage host copies all the data to be backed up in the main target storage pool to the auxiliary target storage pool.
In this embodiment, considering that a sixth host computer with common mount exists between the primary target storage pool and the primary source storage pool, and that special cases of no common mount exist between the secondary target storage pool and the primary source storage pool and between the secondary source storage pool, the sixth host computer is used as a data transmission channel of data to be backed up to store the complete data to be backed up in the primary source storage pool into the primary target storage pool, and then the target dual-active storage host computer is used as a data transmission channel to copy all the data to be backed up in the primary target storage pool into the secondary target storage pool, so that the complete data to be backed up are stored in both the primary target storage pool and the secondary target storage pool, dual-active storage of the data to be backed up is realized, and flexibility of dual-active storage is improved.
In some embodiments, when there is a seventh host mounted in common between the primary target storage pool and the secondary source storage pool only, and there is no host mounted in common between the secondary target storage pool and both the primary source storage pool and the secondary source storage pool, storing the data to be backed up in the target dual-activity storage pool based on the determination result, including:
Controlling a seventh host to store all data to be backed up in the secondary source storage pool into a main target storage pool;
and the control target dual-active storage host copies all the data to be backed up in the main target storage pool to the auxiliary target storage pool.
In this embodiment, when a seventh host mounted jointly exists between the primary target storage pool and the primary source storage pool and between the secondary target storage pool and the secondary source storage pool, only the seventh host is used as a data transmission channel of data to be backed up to store the data to be backed up in the secondary source storage pool in the primary target storage pool, and then the target dual-active storage host is used as a data transmission channel to store the data to be backed up stored in the primary target storage pool in the secondary target storage pool, so that the primary target storage pool and the secondary target storage pool both store complete data to be backed up, dual-active storage of the data to be backed up is realized, and flexibility of dual-active storage is improved.
For example, a primary source storage pool in a source dual-active storage pool is loaded with a host B and a host D, a secondary source storage pool is loaded with a host B, a primary target storage pool in a target dual-active storage pool is loaded with a host C, and a secondary target storage pool is loaded with a host C and a host D, only the host D which is commonly loaded between the primary target storage pool and the secondary source storage pool exists, so that the host D is used as a data transmission channel of data to be backed up to copy the data to be backed up from the primary source storage pool to the primary target storage pool, and then copy the data to be backed up in the primary target storage pool to the secondary target storage pool through the host D, thereby realizing dual-active storage of the data to be backed up.
In some embodiments, when there is an eighth host mounted in common between the secondary target storage pool and the primary source storage pool only, and there is no host mounted in common between the primary target storage pool and both the primary source storage pool and the secondary source storage pool, storing the data to be backed up in the target dual-activity storage pool based on the determination result, including:
controlling an eighth host to store all data to be backed up in the main source storage pool into the auxiliary target storage pool;
and the control target dual-active storage host copies all the data to be backed up in the secondary target storage pool to the secondary target storage pool.
In this embodiment, when there is an eighth host mounted together between the primary target storage pool and the primary source storage pool and between the secondary source storage pool and only between the secondary target storage pool and the primary source storage pool, the eighth host is used as a data transmission channel of data to be backed up to store the data to be backed up in the primary source storage pool into the secondary target storage pool, and then the target dual-active storage host is used as a data transmission channel to store the data to be backed up stored in the secondary target storage pool into the primary target storage pool.
In some embodiments, before determining whether there is a co-mounted first host between a primary target storage pool and a source storage pool in the target dual active storage pool, further comprising:
judging whether a target dual-active storage host exists between a main target storage pool and a secondary target storage pool in the target dual-active storage pool;
if a target dual-active storage host exists between the main target storage pool and the auxiliary target storage pool, a step of judging whether a first host mounted jointly exists between the main target storage pool and the source storage pool in the target dual-active storage pool is entered;
if the target dual-active storage host does not exist between the main target storage pool and the auxiliary target storage pool, generating prompt information that the target dual-active storage pool does not support dual-active storage;
after determining the storage pool type of the source storage pool, further comprising:
when the storage pool type of the source storage pool is a double-active-source storage pool, judging whether a commonly mounted source double-active storage machine exists between a main source storage pool and a secondary source storage pool in the double-active-source storage pool;
if a source dual-active storage machine exists between the main source storage pool and the auxiliary source storage pool, a step of judging whether a commonly mounted host exists between the main source storage pool and the auxiliary source storage pool in the main target storage pool and the dual-active storage pool and whether a commonly mounted host exists between the auxiliary target storage pool and the main source storage pool and the auxiliary source storage pool is entered;
If the source dual-active storage machine does not exist between the main source storage pool and the auxiliary source storage pool, generating prompt information that the source storage pool does not support dual-active storage.
Considering that dual-active storage is to be performed, it is necessary to ensure that there must be a co-mounted host between the primary target storage pool and the secondary target storage pool in the target dual-active storage pool, otherwise, data consistency between the primary target storage pool and the secondary target storage pool cannot be ensured. Therefore, in this embodiment, before the target dual-active storage pool is utilized to perform data backup on the source storage pool, it is first determined whether a target dual-active storage host with common mount exists between the main target storage pool and the auxiliary target storage pool, if the target dual-active storage host with common mount exists between the main target storage pool and the auxiliary target storage pool, the target dual-active storage host with common mount performs subsequent data backup operation, and if the target dual-active storage host with common mount does not exist between the main target storage pool and the auxiliary target storage pool, prompt information that the target dual-active storage pool does not support dual-active storage is generated so as to facilitate timely processing by operation and maintenance personnel.
Normally, the relationship between the host mounted on the primary target storage pool and the host mounted on the secondary target storage pool of the target dual-active storage pool should be contained or contained, for example, the primary target storage pool is mounted with A, B, C as three hosts, so that the secondary target storage pool may be mounted with A, B or A, B, C, D.
And under the condition that the source storage pool is also a double-active storage pool, whether a commonly mounted source double-active storage machine exists between a main source storage pool and a secondary source storage pool in the double-active storage pool is needed to be considered, so that backup integrity when the target double-active storage pool performs data backup based on the main source storage pool alone or based on the secondary source storage pool alone is ensured. Therefore, in this embodiment, when it is determined that a source dual-active storage machine exists between the primary source storage pool and the secondary source storage pool, a step of performing data backup on the dual-active storage pool by using the target dual-active storage pool is performed; and when the source dual-active storage machine does not exist between the main source storage pool and the auxiliary source storage pool, generating prompt information that the source storage pool does not support dual-active storage, so that operation and maintenance personnel can process in time.
In summary, in this embodiment, when it is determined that there is a target dual-active storage host mounted together between a primary target storage pool and a secondary target storage pool in a target dual-active storage pool, and when it is determined that there is a source dual-active storage machine mounted together between a primary source storage pool and a secondary source storage pool in a dual-active storage pool in a source storage pool, the target dual-active storage pool is used to perform data backup on the source storage pool, so that accuracy and completeness of data backup are ensured.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a dual-active storage device according to the present application, where the dual-active storage device includes:
a memory 21 for storing a computer program;
a processor 22 for implementing the steps of any of the dual live storage methods described above when executing a computer program.
The application provides a dual-activity storage device, which comprises a memory 21 and a processor 22, wherein when executing a computer program stored in the memory 21, the processor 22 firstly judges whether a first host which is mounted jointly exists between a main target storage pool and a source storage pool in a target dual-activity storage pool; if yes, directly using the first host and the main target storage pool to perform dual-activity storage; and if the secondary storage pool does not exist, under the condition that a second host which is mounted jointly between the secondary target storage pool and the source storage pool exists, performing dual-activity storage by utilizing the second host and the secondary target storage pool. By redesigning the path selection strategy of the data backup between the target dual-active storage pool and the source storage pool, the possibility of dual-active storage is greatly improved, and the limitation of storage service is reduced.
For a detailed description of the dual-active storage device provided by the present application, refer to the embodiment of the dual-active storage method described above, and are not described herein.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a computer readable storage medium according to the present application, and a computer program is stored on the computer readable storage medium 31, and when the computer program is executed by a processor, the steps of any of the above-mentioned dual-activity storage methods are implemented.
The application provides a computer readable storage medium 31, when the computer program stored in the computer readable storage medium 31 is executed by a processor, firstly judging whether a first host mounted jointly exists between a main target storage pool and a source storage pool in a target dual-active storage pool; if yes, directly using the first host and the main target storage pool to perform dual-activity storage; and if the secondary storage pool does not exist, under the condition that a second host which is mounted jointly between the secondary target storage pool and the source storage pool exists, performing dual-activity storage by utilizing the second host and the secondary target storage pool. By redesigning the path selection strategy of the data backup between the target dual-active storage pool and the source storage pool, the possibility of dual-active storage is greatly improved, and the limitation of storage service is reduced.
For a detailed description of the computer readable storage medium 31 provided by the present application, refer to the embodiment of the dual-active storage method described above, and are not described herein.
In the present specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, and identical and similar parts between the embodiments are all enough to refer to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section.
It should also be noted that in this specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
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 (10)
1. A dual active storage method, comprising:
judging whether a first host mounted jointly exists between a main target storage pool and a source storage pool in a target dual-active storage pool;
if yes, the first host is controlled to store the data to be backed up in the source storage pool into the main target storage pool, and the target dual-activity storage host is controlled to copy the data to be backed up in the main target storage pool into a secondary target storage pool in the dual-activity storage pool, wherein the target dual-activity storage host is a host mounted together with the main target storage pool and the secondary target storage pool;
If not, when a second host computer which is mounted jointly between the auxiliary target storage pool and the source storage pool is determined, the second host computer is controlled to store the data to be backed up into the auxiliary target storage pool, and the target dual-active storage host computer is controlled to copy the data to be backed up in the auxiliary target storage pool into the main target storage pool.
2. The dual-active storage method of claim 1, further comprising, prior to determining whether a co-mounted first host exists between a primary target storage pool and a source storage pool in the target dual-active storage pool:
determining a storage pool type of the source storage pool, wherein the storage pool type comprises a dual active source storage pool and a non-dual active source storage pool;
when the storage pool type of the source storage pool is the non-dual active source storage pool, entering a step of judging whether a first host mounted jointly exists between a main target storage pool and a source storage pool in a target dual active storage pool;
and when the storage pool type of the source storage pool is the dual-active-source storage pool, judging whether a commonly mounted host exists between the main target storage pool and the main source storage pool and between the auxiliary source storage pool in the dual-active-source storage pool, and whether a commonly mounted host exists between the auxiliary target storage pool and the main source storage pool and between the auxiliary source storage pool, and storing the data to be backed up in the target dual-active storage pool based on a judging result.
3. The dual-active storage method of claim 2, wherein storing the data to be backed up in the target dual-active storage pool based on the determination result when a third host that is co-mounted only between the primary target storage pool and the primary source storage pool and a fourth host that is co-mounted only between the secondary target storage pool and the secondary source storage pool comprises:
controlling the third host to store the primary data to be backed up in the primary source storage pool into the primary target storage pool;
controlling the fourth host to store the data to be backed up in the secondary source storage pool into the secondary target storage pool;
and controlling the target dual-active storage host to copy the primary to-be-backed-up data in the primary target storage pool to the secondary target storage pool, and copy the secondary to-be-backed-up data in the secondary target storage pool to the primary target storage pool, wherein the combination of the primary to-be-backed-up data and the secondary to-be-backed-up data is the to-be-backed-up data.
4. The dual-active storage method of claim 2, wherein storing the data to be backed up in the target dual-active storage pool based on the determination result when there is no co-mounted host between the primary target storage pool and the primary source storage pool and no co-mounted fifth host between the secondary target storage pool and the secondary source storage pool, comprises:
Controlling the fifth host to store all data to be backed up in the secondary source storage pool into the secondary target storage pool;
and controlling the target dual-active storage host to copy all the data to be backed up in the auxiliary target storage pool to the main target storage pool.
5. The dual-active storage method of claim 2, wherein storing the data to be backed up in the target dual-active storage pool based on the determination result when there is a sixth host co-mounted between the primary target storage pool and the primary source storage pool and no host co-mounted between the secondary target storage pool and both the primary source storage pool and the secondary source storage pool comprises:
controlling the sixth host to store all data to be backed up in the main source storage pool into the main target storage pool;
and controlling the target dual-active storage host to copy all the data to be backed up in the main target storage pool to the auxiliary target storage pool.
6. The dual-active storage method of claim 2, wherein storing the data to be backed up in the target dual-active storage pool based on the determination result when there is a seventh host that is co-mounted only between the primary target storage pool and the secondary source storage pool and there is no host that is co-mounted between the secondary target storage pool and both the primary source storage pool and the secondary source storage pool, comprises:
Controlling the seventh host to store all data to be backed up in the secondary source storage pool into the primary target storage pool;
and controlling the target dual-active storage host to copy all the data to be backed up in the main target storage pool to the auxiliary target storage pool.
7. The dual-active storage method of claim 2, wherein storing the data to be backed up in the target dual-active storage pool based on a determination result when there is an eighth host with a common mount between the secondary target storage pool and the primary source storage pool only, and there is no host with a common mount between the primary target storage pool and both the primary source storage pool and the secondary source storage pool, comprises:
controlling the eighth host to store all data to be backed up in the main source storage pool into the auxiliary target storage pool;
and controlling the target dual-activity storage host to copy all the data to be backed up in the secondary target storage pool to the secondary target storage pool.
8. The dual active storage method of any of claims 2-7, further comprising, prior to determining whether a co-mounted first host exists between a primary target storage pool and a source storage pool in the target dual active storage pool:
Judging whether the target dual-activity storage host exists between the main target storage pool and the auxiliary target storage pool in the target dual-activity storage pool;
if the target dual-active storage host exists between the main target storage pool and the auxiliary target storage pool, a step of judging whether a first host which is mounted jointly exists between the main target storage pool and the source storage pool in the target dual-active storage pool is entered;
if the target dual-activity storage host does not exist between the main target storage pool and the auxiliary target storage pool, generating prompt information that the target dual-activity storage pool does not support dual-activity storage;
after determining the storage pool type of the source storage pool, further comprising:
when the storage pool type of the source storage pool is the dual-active-source storage pool, judging whether a commonly mounted source dual-active storage machine exists between the main source storage pool and the auxiliary source storage pool in the dual-active-source storage pool;
if the source dual-active storage machine exists between the main source storage pool and the auxiliary source storage pool, entering a step of judging whether a commonly mounted host exists between the main target storage pool and the main source storage pool and the auxiliary source storage pool in the dual-active storage pool and whether a commonly mounted host exists between the auxiliary target storage pool and the main source storage pool and the auxiliary source storage pool;
And if the source dual-active storage machine does not exist between the main source storage pool and the auxiliary source storage pool, generating prompt information that the source storage pool does not support dual-active storage.
9. A dual active storage device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the dual live storage method according to any of claims 1 to 8 when executing said computer program.
10. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the dual live storage method according to any of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310780546.2A CN116700625A (en) | 2023-06-29 | 2023-06-29 | Dual-activity storage method, dual-activity storage device and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310780546.2A CN116700625A (en) | 2023-06-29 | 2023-06-29 | Dual-activity storage method, dual-activity storage device and computer readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116700625A true CN116700625A (en) | 2023-09-05 |
Family
ID=87825629
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310780546.2A Pending CN116700625A (en) | 2023-06-29 | 2023-06-29 | Dual-activity storage method, dual-activity storage device and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116700625A (en) |
-
2023
- 2023-06-29 CN CN202310780546.2A patent/CN116700625A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8713272B2 (en) | Point-in-time copies in a cascade using maps and fdisks | |
US6189079B1 (en) | Data copy between peer-to-peer controllers | |
CN100440214C (en) | Management of metadata in a storage subsystem, system and computer program | |
CN100485676C (en) | Apparatus, system, and method for file system serialization reinitialization | |
KR101476018B1 (en) | Buffer disk in flashcopy cascade | |
US7684073B2 (en) | Copy controller and method thereof | |
US8495635B2 (en) | Mechanism to enable and ensure failover integrity and high availability of batch processing | |
US7143253B2 (en) | Remote copy system | |
US7831569B2 (en) | Preserving a query plan cache | |
US7689790B2 (en) | Storage system, remote copy and management method therefor | |
US7620661B2 (en) | Method for improving the performance of database loggers using agent coordination | |
CN101981550B (en) | Database system, database update method, database, and database update program | |
US8725686B2 (en) | Method and program for creating determinate backup data in a database backup system | |
WO2021169163A1 (en) | File data access method and apparatus, and computer-readable storage medium | |
US20240104089A1 (en) | Methods, systems, electronic devices, and storage media for database transaction processing | |
US7099995B2 (en) | Metadata access during error handling routines | |
US8055624B2 (en) | On-site reclamation of off-site copy storage volumes using multiple, parallel processes | |
CN111078127B (en) | Data migration method, system and device | |
US8676748B2 (en) | Clearing metadata tracks in a storage system | |
US7330946B2 (en) | Data processing system | |
CN116700625A (en) | Dual-activity storage method, dual-activity storage device and computer readable storage medium | |
US20080109607A1 (en) | Method, system and article for managing memory | |
US6591264B1 (en) | Method that allows I/O requests to run concurrently with a rollback from a snapshot in a drive array | |
US7949632B2 (en) | Database-rearranging program, database-rearranging method, and database-rearranging apparatus | |
EP0449660B1 (en) | A method and apparatus of generating shadow process |
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 |