A dual-active storage method, device and computer readable storage medium

By redesigning the data backup path selection strategy between the target active-active storage pool and the source storage pool, the limitation that the primary storage pool and the source storage pool must be mounted together in active-active storage is resolved, achieving more efficient data backup and storage.

CN116700625BActive Publication Date: 2026-06-09JINAN INSPUR DATA TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
JINAN INSPUR DATA TECH CO LTD
Filing Date
2023-06-29
Publication Date
2026-06-09

Smart Images

  • Figure CN116700625B_ABST
    Figure CN116700625B_ABST
Patent Text Reader

Abstract

The application discloses a dual-active storage method and device and a computer readable storage medium, and relates to the field of data storage. First, it is judged whether there is a first host commonly mounted between a main target storage pool and a source storage pool in a target dual-active storage pool. If there is, dual-active storage is directly performed by using the first host and the main target storage pool. If there is not, dual-active storage is performed by using a second host and a vice target storage pool in the case that there is a second host commonly mounted between the vice target storage pool and the source storage pool. By redesigning the path selection strategy of 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 restriction on storage service is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of data storage, and in particular to a dual-active storage method, apparatus, and computer-readable storage medium. Background Technology

[0002] To improve the fault tolerance of data storage in cloud computing management platforms, dual-active storage is commonly used. Dual-active storage refers to creating a primary disk in the primary storage pool of the target dual-active storage pool and a secondary disk in the secondary storage pool. Both disks share the data to be stored in the source storage pool, acting as backups for each other, and both are always operational. This allows for immediate switchover to the other disk should one fail. In implementing dual-active storage, the primary disk typically performs the entire operation, and the data is then copied to the secondary disk, establishing a data association between the two. However, this technology requires a host to be simultaneously mounted between the primary and source storage pools; otherwise, dual-active storage cannot be achieved, limiting storage services to some extent. Summary of the Invention

[0003] The purpose of this invention is to provide a dual-active storage method, apparatus, and computer-readable storage medium. By redesigning the path selection strategy for 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 limitations on storage services are reduced.

[0004] To address the aforementioned technical problems, this invention provides a dual-active storage method, comprising:

[0005] Determine whether there is a first host co-mounted between the primary target storage pool and the source storage pool in the target dual-active storage pool;

[0006] If so, the first host is controlled to store the data to be backed up in the source storage pool into the primary target storage pool, and the target dual-active storage host is controlled to copy the data to be backed up in the primary target storage pool to the secondary target storage pool in the dual-active storage pool, wherein the target dual-active storage host is a host jointly mounted by the primary target storage pool and the secondary target storage pool;

[0007] If not, when it is determined that there is a second host co-mounted between the secondary target storage pool and the source storage pool, the second host is controlled to store the data to be backed up in the secondary target storage pool, and the target dual-active storage host is controlled to copy the data to be backed up in the secondary target storage pool to the primary target storage pool.

[0008] On the other hand, before determining whether there is a shared first host between the primary target storage pool and the source storage pool in the target active-active storage pool, the following steps are also included:

[0009] Determine the storage pool type of the source storage pool, wherein the storage pool type includes a dual-active-source storage pool and a non-dual-active-source storage pool;

[0010] When the storage pool type of the source storage pool is the non-dual-active source storage pool, proceed to the step of determining whether there is a first host co-mounted between the primary target storage pool and the source storage pool in the target dual-active storage pool;

[0011] When the storage pool type of the source storage pool is the dual-active source storage pool, it is determined whether there is a host jointly mounted between the primary target storage pool and the primary source storage pool and the secondary source storage pool in the dual-active source storage pool, and whether there is a host jointly mounted between the secondary target storage pool and the primary source storage pool and the secondary source storage pool. Based on the determination results, the data to be backed up is stored in the target dual-active storage pool.

[0012] On the other hand, when the primary target storage pool has only a third host co-mounted with the primary source storage pool, and the secondary target storage pool has only a fourth host co-mounted with the secondary source storage pool, the data to be backed up is stored in the target dual-active storage pool based on the judgment result, including:

[0013] The third host is controlled to store the primary backup data from the primary source storage pool into the primary target storage pool;

[0014] The fourth host is controlled to store the secondary backup data from the secondary source storage pool into the secondary target storage pool;

[0015] The target dual-active storage host is controlled to copy the primary backup data from the primary target storage pool to the secondary target storage pool, and to copy the secondary backup data from the secondary target storage pool to the primary target storage pool. The combination of the primary backup data and the secondary backup data constitutes the backup data.

[0016] On the other hand, when there are no co-mounted hosts between the primary target storage pool, the primary source storage pool, and the secondary source storage pool, and a fifth co-mounted host exists between the secondary target storage pool and the secondary source storage pool, the data to be backed up is stored in the target dual-active storage pool based on the judgment result, including:

[0017] The fifth host is controlled to store all the data to be backed up in the secondary source storage pool into the secondary target storage pool;

[0018] The target dual-active storage host is controlled to copy all the data to be backed up from the secondary target storage pool to the primary target storage pool.

[0019] On the other hand, when a sixth host is co-mounted between the primary target storage pool and the primary source storage pool, and no host is co-mounted between the secondary target storage pool and either the primary or secondary source storage pool, the data to be backed up is stored in the target dual-active storage pool based on the judgment result, including:

[0020] The sixth host is controlled to store all the data to be backed up in the primary source storage pool into the primary target storage pool;

[0021] The target dual-active storage host is controlled to copy all the data to be backed up from the primary target storage pool to the secondary target storage pool.

[0022] On the other hand, when the primary target storage pool has only a shared seventh host with the secondary source storage pool, and the secondary target storage pool has no shared hosts with either the primary source storage pool or the secondary storage pool, the data to be backed up is stored in the target dual-active storage pool based on the judgment result, including:

[0023] The seventh host is controlled to store all the data to be backed up in the secondary source storage pool into the primary target storage pool;

[0024] The target dual-active storage host is controlled to copy all the data to be backed up from the primary target storage pool to the secondary target storage pool.

[0025] On the other hand, when the secondary target storage pool has only an eighth host co-mounted with the primary source storage pool, and the primary target storage pool has no co-mounted hosts with either the primary source storage pool or the secondary source storage pool, the data to be backed up is stored in the target dual-active storage pool based on the judgment result, including:

[0026] The eighth host is controlled to store all the data to be backed up in the primary source storage pool into the secondary target storage pool;

[0027] The target dual-active storage host is controlled to copy all the data to be backed up from the secondary target storage pool to the secondary target storage pool.

[0028] On the other hand, before determining whether there is a shared first host between the primary target storage pool and the source storage pool in the target active-active storage pool, the following steps are also included:

[0029] Determine whether the target dual-active storage host exists between the primary target storage pool and the secondary target storage pool in the target dual-active storage pool;

[0030] If there is a target dual-active storage host between the primary target storage pool and the secondary target storage pool, then proceed to the step of determining whether there is a first host jointly mounted between the primary target storage pool and the source storage pool in the target dual-active storage pool;

[0031] If there is no target active-active storage host between the primary target storage pool and the secondary target storage pool, a prompt message is generated indicating that the target active-active storage pool does not support active-active storage.

[0032] After determining the storage pool type of the source storage pool, the process also includes:

[0033] When the storage pool type of the source storage pool is the dual-active source storage pool, determine whether there is a shared source dual-active storage machine between the primary source storage pool and the secondary source storage pool in the dual-active source storage pool;

[0034] If there is a source dual-active storage machine between the primary source storage pool and the secondary source storage pool, then proceed to the step of determining whether there is a host jointly mounted between the primary target storage pool and the primary source storage pool and the secondary source storage pool in the dual-active source storage pool, and whether there is a host jointly mounted between the secondary target storage pool and the primary source storage pool and the secondary source storage pool.

[0035] If there is no active-active storage machine between the primary source storage pool and the secondary source storage pool, a prompt message indicating that the source storage pool does not support active-active storage is generated.

[0036] To address the aforementioned technical problems, this application also provides a dual-active storage device, comprising:

[0037] Memory, used to store computer programs;

[0038] A processor, used to implement any of the above-described dual-active storage methods when executing the computer program.

[0039] To address the aforementioned technical problems, this application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of any of the above-described dual-active storage methods.

[0040] The beneficial effects of this invention are as follows: This invention provides a dual-active storage method, apparatus, and computer-readable storage medium. First, it determines whether a first host is co-mounted between the primary target storage pool and the source storage pool in the target dual-active storage pool. If so, dual-active storage is directly performed using the first host and the primary target storage pool. If not, dual-active storage is performed using the second host and the secondary target storage pool if a second host is co-mounted between the secondary target storage pool and the source storage pool. By redesigning the path selection strategy for data backup between the target dual-active storage pool and the source storage pool, the possibility of dual-active storage is greatly increased, reducing limitations on storage services. Attached Figure Description

[0041] To more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the prior art and embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0042] Figure 1 A flowchart of a dual-active storage method provided by the present invention;

[0043] Figure 2 This is a schematic diagram of the structure of a dual-active storage device provided by the present invention;

[0044] Figure 3 This is a schematic diagram of the structure of a computer-readable storage medium provided by the present invention. Detailed Implementation

[0045] The core of this invention is to provide a dual-active storage method, apparatus, and computer-readable storage medium. By redesigning the path selection strategy for 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 limitations on storage services are reduced.

[0046] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0047] Please refer to Figure 1 , Figure 1 A flowchart of a dual-active storage method provided by the present invention, the method comprising:

[0048] S1: Determine whether there is a first host jointly mounted between the primary target storage pool and the source storage pool in the target dual-active storage pool; if yes, proceed to S2; if no, proceed to S3.

[0049] S2: Control the first host to store the data to be backed up in the source storage pool to the primary target storage pool, and control the target dual-active storage host to copy the data to be backed up in the primary target storage pool to the secondary target storage pool in the dual-active storage pool. The target dual-active storage host is a host that is jointly mounted to the primary target storage pool and the secondary target storage pool.

[0050] S3: When it is determined that there is a second host co-mounted between the secondary target storage pool and the source storage pool, control the second host to store the data to be backed up in the secondary target storage pool, and control the target dual-active storage host to copy the data to be backed up in the secondary target storage pool to the primary target storage pool.

[0051] In this application, the source storage pool refers to the storage pool where the data to be backed up needs to be stored, and the target active-active storage pool refers to the storage pool used to back up the data to be backed up from the source storage pool. It should also be noted that backing up the data to be backed up from the source storage pool using the target active-active storage pool includes both copying the data to be backed up from the source storage pool and moving (or cutting) the data to be backed up from the source storage pool; this application does not impose any particular limitations on this.

[0052] In related technologies, when performing dual-active storage, a primary target storage pool is used instead of a target dual-active storage pool to complete the data acquisition operation. Therefore, to achieve dual-active storage, it is essential that the primary target storage pool and the source storage pool in the target dual-active storage pool share a common host; otherwise, data backup cannot be achieved. Therefore, this application redesigns the data backup strategy between the target dual-active storage pool and the source storage pool. When the primary target storage pool and the source storage pool share a common host, the data to be backed up is acquired through the primary target storage pool, and then the association between the primary target storage pool and the secondary target storage pool is established. When the primary target storage pool and the source storage pool do not share a common host, but the secondary target storage pool and the source storage pool share a common host, the data to be backed up is acquired through the secondary target storage pool, and then the association between the secondary target storage pool and the primary storage pool is established. It is evident that this application provides more optional paths for data backup between the target dual-active storage pool and the source storage pool, significantly increasing the likelihood of successful dual-active storage.

[0053] Specifically, the process first determines whether a shared host exists between the primary target storage pool and the source storage pool. If a shared host exists, the primary host is controlled to store the data to be backed up from the source storage pool into the primary target storage pool. In this case, the primary host acts as the channel for transmitting the data between the source and primary target storage pools. After the primary target storage pool successfully stores the data to be backed up, the target active-active storage host is used as the data transmission channel to copy the data to be backed up from the primary target storage pool to the secondary target storage pool, thus completing the active-active storage process.

[0054] When there is no shared host between the primary target storage pool and the source storage pool, backup of the data to be backed up is considered through the secondary target storage pool. Specifically, when it is determined that there is a shared host between the secondary target storage pool and the source storage pool, the secondary host is controlled to store the data to be backed up in the secondary target storage pool. At this time, the secondary host acts as a channel for transmitting the data to be backed up between the source and secondary storage pools. After the secondary target storage pool successfully stores the data to be backed up, the target dual-active storage host is used as a data transmission channel to copy the data to be backed up stored in the secondary target storage pool to the primary target storage pool, thus completing the dual-active storage process.

[0055] For example, if the source storage pool is mounted with host A and host C, the primary target storage pool is mounted with host B, and the secondary target storage pool is mounted with host B and host C, then the relevant technologies cannot achieve dual-active storage. However, this application takes into account that there is a host C that is mounted on both the source storage pool and the secondary target storage pool. Therefore, the data to be backed up in the source storage pool is stored in the secondary target storage pool through host C, and then the data to be backed up stored in the secondary target storage pool is copied to the primary target storage pool through host B, thus completing dual-active storage and improving the security of data storage.

[0056] In summary, this invention provides a dual-active storage method. First, it determines whether a first host is co-mounted between the primary target storage pool and the source storage pool in the target dual-active storage pool. If so, dual-active storage is directly performed using the first host and the primary target storage pool. If not, and a second host is co-mounted between the secondary target storage pool and the source storage pool, dual-active storage is performed using the second host and the secondary target storage pool. By redesigning the path selection strategy for data backup between the target dual-active storage pool and the source storage pool, the feasibility of dual-active storage is greatly increased, reducing limitations on storage services.

[0057] Based on the above embodiments:

[0058] In some embodiments, before determining whether a first host is co-mounted between the primary target storage pool and the source storage pool in the target active-active storage pool, the method further includes:

[0059] Determine the storage pool type of the source storage pool, where the storage pool type includes dual-active-source storage pools and non-dual-active-source storage pools;

[0060] When the storage pool type of the source storage pool is a non-dual-active source storage pool, proceed to the step of determining whether there is a first host co-mounted between the primary target storage pool and the source storage pool in the target dual-active storage pool;

[0061] When the source storage pool is a dual-active source storage pool, determine whether there is a host jointly mounted between the primary target storage pool and the primary and secondary source storage pools in the dual-active source storage pool, and whether there is a host jointly mounted between the secondary target storage pool and the primary and secondary source storage pools. Based on the determination results, the data to be backed up is stored in the target dual-active storage pool.

[0062] Considering that in practical applications, the source storage pool may be a dual-active source storage pool (that is, the source storage pool stores data on both the primary and secondary source storage pools) or a non-dual-active source storage pool (that is, the source storage pool stores data in only one storage pool), the method of using the target dual-active storage pool for dual-active storage backup will also be different when the storage pool types of the source storage pools are different.

[0063] When the source storage pool is a non-dual-active source storage pool, it is only necessary to consider whether there is a first host jointly mounted between the primary target storage pool and the source storage pool, and whether there is a second host jointly mounted between the secondary target storage pool and the source storage pool. The primary target storage pool and the secondary target storage pool can obtain complete data to be backed up from one source storage pool.

[0064] When the source storage pool is a dual-active source storage pool, since the source storage pool includes a primary source storage pool and a secondary source storage pool, it is necessary to determine whether there are co-mounted hosts between the target dual-active storage pool and the dual-active source storage pool to determine whether the conditions for dual-active storage are met. This requires determining whether there are co-mounted hosts between the primary target storage pool and the primary and secondary source storage pools in the dual-active source storage pool, and whether there are co-mounted hosts between the secondary target storage pool and the primary and secondary source storage pools. The determination conditions are different from those when the source storage pool is a non-dual-active source storage pool.

[0065] In summary, this embodiment fully considers the storage pool type of the source storage pool. When the storage pool types of the source storage pools are different, different judgment conditions are used to determine whether data backup can be performed between the target dual-active storage pool and the source storage pool.

[0066] In some embodiments, when the primary target storage pool has only a third host co-mounted with the primary source storage pool, and the secondary target storage pool has only a fourth host co-mounted with the secondary source storage pool, the data to be backed up is stored in the target active-active storage pool based on the determination result, including:

[0067] The third host controls the storage of the primary backup data in the primary source storage pool to the primary target storage pool;

[0068] The fourth host controls the storage of the secondary backup data from the secondary source storage pool to the secondary target storage pool;

[0069] The control target dual-active storage host copies the primary backup data from the primary target storage pool to the secondary target storage pool, and copies the secondary backup data from the secondary target storage pool to the primary target storage pool. The combination of the primary backup data and the secondary backup data constitutes the backup data.

[0070] Considering that the source storage pool is a dual-active source storage pool, when backing up data from the dual-active source storage pool using the target dual-active storage pool, if the intersection of the primary target storage pool, primary source storage pool, secondary target storage pool, and secondary source storage pool is selected as the host to be mounted together, and the primary backup data in the primary source storage pool is copied to the primary target storage pool, and the secondary backup data in the secondary source storage pool is copied to the secondary target storage pool, then on the one hand, there may be a problem that there is no host to be mounted together among the four storage pools, which may lead to the inability to perform data backup; on the other hand, using the same host to perform two data copying tasks at the same time may cause the host to be overloaded, reducing the efficiency of data backup.

[0071] To address the aforementioned shortcomings, in this embodiment, when the source storage pool is a dual-active source storage pool, data backup can be performed as long as there is a shared host between the primary target storage pool and the primary source storage pool, and a shared host between the secondary target storage pool and the secondary source storage pool. Specifically, when the primary target storage pool has only a shared third host with the primary source storage pool, and the secondary target storage pool has only a shared fourth host with the secondary source storage pool, the primary backup data from the primary source storage pool is copied and stored in the primary target storage pool using the third host, and the secondary backup data from the secondary source storage pool is stored in the secondary target storage pool using the fourth host. The combination of the primary and secondary backup data constitutes the backup data, thus reducing the workload of the third and fourth hosts and accelerating the data backup process.

[0072] Once the primary target storage pool has completed copying the primary backup data and the secondary target storage pool has completed copying the secondary backup data, the control target dual-active storage host copies the primary backup data from the primary target storage pool to the secondary target storage pool, and copies the secondary backup data from the secondary target storage pool to the primary target storage pool. This ensures that both the primary and secondary target storage pools contain complete backup data, achieving dual-active storage for the backup data.

[0073] It is important to emphasize that when the third host, which is shared only with the primary source storage pool, and the fourth host, which is shared only with the secondary source storage pool, include both the same host and different hosts, different hosts should be selected as the third and fourth hosts respectively. This enables parallel replication of the data to be backed up and speeds up the backup process.

[0074] In some embodiments, when there are no co-mounted hosts between the primary target storage pool and the primary source storage pool and the secondary source storage pool, but a fifth co-mounted host exists between the secondary target storage pool and the secondary source storage pool, the data to be backed up is stored in the target active-active storage pool based on the determination result, including:

[0075] The fifth host controls the storage of all data to be backed up in the secondary source storage pool to the secondary target storage pool;

[0076] The control target dual-active storage host copies all the data to be backed up from the secondary target storage pool to the primary target storage pool.

[0077] In this embodiment, considering the special case where there are no co-mounted hosts between the primary target storage pool, the primary source storage pool, and the secondary source storage pool, and a fifth host co-mounted between the secondary target storage pool and the secondary source storage pool, the fifth host is used as the data transmission channel for the data to be backed up to store the complete data to be backed up in the secondary source storage pool into the secondary target storage pool. Then, the target dual-active storage host is used as the data transmission channel to copy all the data to be backed up in the secondary target storage pool to the primary target storage pool. Therefore, both the primary target storage pool and the secondary target storage pool store the complete data to be backed up, realizing dual-active storage of the data to be backed up and improving the flexibility of dual-active storage.

[0078] For example, in a dual-active-source storage pool, the primary source storage pool is equipped with host A, and the secondary source storage pool is equipped with both host A and host C. In a target dual-active storage pool, the primary target storage pool is equipped with host B, and the secondary target storage pool is equipped with both host B and host C. At this time, there are no hosts mounted between the primary source storage pool, the secondary source storage pool, the primary target storage pool, and the secondary target storage pool, and there are no hosts jointly mounted between the primary source storage pool and the primary target storage pool. Related technologies may not be able to perform data backup. However, in this embodiment, the data to be backed up in the dual-active-source storage pool can be copied to the secondary target storage pool through host C, which is jointly mounted between the secondary source storage pool and the secondary target storage pool. Then, the data to be backed up stored in the secondary target storage pool can be copied to the primary target storage pool through host B, thus achieving dual-active storage of the data to be backed up.

[0079] In some embodiments, when a sixth host is co-mounted between the primary target storage pool and the primary source storage pool, and no host is co-mounted between the secondary target storage pool and either the primary or secondary source storage pool, the data to be backed up is stored in the target active-active storage pool based on the determination result, including:

[0080] The sixth host controls the storage of all data to be backed up in the primary source storage pool to the primary target storage pool;

[0081] The control target dual-active storage host copies all the data to be backed up from the primary target storage pool to the secondary target storage pool.

[0082] In this embodiment, considering the special case where a sixth host is co-mounted between the primary target storage pool and the primary source storage pool, and there is no co-mounted host between the secondary target storage pool and either the primary or secondary source storage pool, the sixth host is used as the data transmission channel for the 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. Then, the target dual-active storage host is used as the data transmission channel to copy all the data to be backed up in the primary target storage pool to the secondary target storage pool. Therefore, both the primary and secondary target storage pools store the complete data to be backed up, achieving dual-active storage of the data to be backed up and improving the flexibility of dual-active storage.

[0083] In some embodiments, when the primary target storage pool has only a shared seventh host with the secondary source storage pool, and the secondary target storage pool has no shared hosts with either the primary or secondary source storage pools, the data to be backed up is stored in the target active-active storage pool based on the determination result, including:

[0084] The seventh host controls the storage of all data to be backed up in the secondary source storage pool to the primary target storage pool;

[0085] The control target dual-active storage host copies all the data to be backed up from the primary target storage pool to the secondary target storage pool.

[0086] In this embodiment, when there is only a shared seventh host between the primary target storage pool and the primary source storage pool and the secondary source storage pool, and between the secondary target storage pool and the primary source storage pool and the secondary source storage pool, the seventh host is used as a data transmission channel to transfer the data to be backed up from the secondary source storage pool to the primary target storage pool. Then, the target dual-active storage host is used as a data transmission channel to transfer the data to be backed up from the primary target storage pool to the secondary target storage pool. Therefore, both the primary target storage pool and the secondary target storage pool store complete data to be backed up, realizing dual-active storage of the data to be backed up and improving the flexibility of dual-active storage.

[0087] For example, in a source dual-active storage pool, the primary source storage pool is mounted with hosts B and D, and the secondary source storage pool is mounted with host B. In a target dual-active storage pool, the primary target storage pool is mounted with host C, and the secondary target storage pool is mounted with hosts C and D. In this case, host D is the only shared host between the primary target storage pool and the secondary source storage pool. Therefore, host D is used as the data transmission channel for the data to be backed up to be copied from the primary source storage pool to the primary target storage pool. Then, the data to be backed up in the primary target storage pool is copied to the secondary target storage pool through host D, thus achieving dual-active storage for the data to be backed up.

[0088] In some embodiments, when the secondary target storage pool has only an eighth host co-mounted with the primary source storage pool, and there are no co-mounted hosts between the primary target storage pool, the primary source storage pool, and the secondary source storage pool, the data to be backed up is stored in the target active-active storage pool based on the determination result, including:

[0089] The eighth host controls the storage of all data to be backed up from the primary source storage pool to the secondary target storage pool;

[0090] The control target dual-active storage host copies all the data to be backed up from the secondary target storage pool to the secondary target storage pool.

[0091] In this embodiment, when there is only an eighth host commonly mounted between the primary target storage pool and the primary source storage pool and the secondary source storage pool, and between the secondary target storage pool and the primary source storage pool and the secondary source storage pool, the eighth host is used as a data transmission channel to transfer the data to be backed up from the primary source storage pool to the secondary target storage pool. Then, the target dual-active storage host is used as a data transmission channel to transfer the data to be backed up from the secondary target storage pool to the primary target storage pool. Therefore, both the primary target storage pool and the secondary target storage pool store complete data to be backed up, realizing dual-active storage of the data to be backed up and improving the flexibility of dual-active storage.

[0092] In some embodiments, before determining whether a first host is co-mounted between the primary target storage pool and the source storage pool in the target active-active storage pool, the method further includes:

[0093] Determine whether there is a target dual-active storage host between the primary target storage pool and the secondary target storage pool in the target dual-active storage pool;

[0094] If there is a target dual-active storage host between the primary target storage pool and the secondary target storage pool, then proceed to the step of determining whether there is a first host jointly mounted between the primary target storage pool and the source storage pool in the target dual-active storage pool;

[0095] If there is no target active-active storage host between the primary target storage pool and the secondary target storage pool, a prompt message will be generated indicating that the target active-active storage pool does not support active-active storage.

[0096] After determining the storage pool type of the source storage pool, the following steps are also included:

[0097] When the storage pool type of the source storage pool is a dual-active source storage pool, determine whether there is a shared source dual-active storage machine between the primary source storage pool and the secondary source storage pool in the dual-active source storage pool;

[0098] If there are active-active storage machines between the primary source storage pool and the secondary source storage pool, then proceed to the steps of determining whether there are any co-mounted hosts between the primary source storage pool and the secondary source storage pool in the active-active source storage pool, and whether there are any co-mounted hosts between the secondary target storage pool and the primary source storage pool and the secondary source storage pool.

[0099] If there is no active-active storage machine between the primary and secondary source storage pools, a message indicating that the source storage pool does not support active-active storage will be generated.

[0100] Considering that dual-active storage requires a shared host between the primary and secondary target storage pools, otherwise data consistency cannot be guaranteed, this embodiment determines whether a shared target dual-active storage host exists between the primary and secondary target storage pools before backing up data from the source storage pool using the target dual-active storage pool. If a shared target dual-active storage host exists, subsequent data backup operations proceed. If no shared target dual-active storage host exists, a message indicating that the target dual-active storage pool does not support dual-active storage is generated for timely handling by maintenance personnel.

[0101] Under normal circumstances, the hosts mounted on the primary target storage pool and the hosts mounted on the secondary target storage pool should have an inclusive or contained relationship. For example, if the primary target storage pool has three hosts A, B, and C, then the secondary target storage pool can have hosts A and B (inclusive) or hosts A, B, C, and D (inclusive).

[0102] Furthermore, when the source storage pool is also a dual-active storage pool, it is necessary to consider whether there is a shared active-active storage machine between the primary and secondary source storage pools to ensure the backup integrity of the target dual-active storage pool when backing up data solely based on the primary or secondary source storage pool. Therefore, in this embodiment, the subsequent step of backing up data from the dual-active source pool using the target dual-active storage pool only proceeds when it is determined that there is a shared active-active storage machine between the primary and secondary source storage pools; if there is no shared active-active storage machine between the primary and secondary source storage pools, a prompt message indicating that the source storage pool does not support dual-active storage is generated so that maintenance personnel can handle the situation promptly.

[0103] In summary, in this embodiment, data backup of the source storage pool is only performed when it is determined that there is a common target dual-active storage host between the primary target storage pool and the secondary target storage pool in the target dual-active storage pool, and when it is determined that there is a common source dual-active storage machine between the primary source storage pool and the secondary source storage pool in the dual-active source storage pool if the source storage pool is a dual-active source storage pool. This ensures the accuracy and integrity of the data backup.

[0104] Please refer to Figure 2 , Figure 2 This is a schematic diagram of a dual-active storage device provided by the present invention. The dual-active storage device includes:

[0105] Memory 21 is used to store computer programs;

[0106] The processor 22 is used to implement any of the above-described dual-active storage methods when executing a computer program.

[0107] This invention provides a dual-active storage device, comprising a memory 21 and a processor 22. When the processor 22 executes a computer program stored in the memory 21, it first determines whether there is a first host co-mounted between the primary target storage pool and the source storage pool in the target dual-active storage pool. If there is, dual-active storage is directly performed using the first host and the primary target storage pool. If not, dual-active storage is performed using the second host and the secondary target storage pool if there is a second host co-mounted between the secondary target storage pool and the source storage pool. By redesigning the path selection strategy for data backup between the target dual-active storage pool and the source storage pool, the possibility of dual-active storage is greatly increased, reducing the limitations on storage services.

[0108] For a detailed description of the dual-active storage device provided in this application, please refer to the embodiments of the dual-active storage method described above, which will not be repeated here.

[0109] Please refer to Figure 3 , Figure 3 This is a schematic diagram of a computer-readable storage medium provided by the present invention. The computer-readable storage medium 31 stores a computer program, which, when executed by a processor, implements the steps of any of the above-described dual-active storage methods.

[0110] This invention provides a computer-readable storage medium 31. When a computer program stored in this medium is executed by a processor, it first determines whether a first host is co-mounted between the primary target storage pool and the source storage pool in the target dual-active storage pool. If so, dual-active storage is directly performed using the first host and the primary target storage pool. If not, dual-active storage is performed using the second host and the secondary target storage pool if a second host is co-mounted between the secondary target storage pool and the source storage pool. By redesigning the path selection strategy for data backup between the target dual-active storage pool and the source storage pool, the possibility of dual-active storage is greatly increased, reducing the limitations on storage services.

[0111] For a detailed description of the computer-readable storage medium 31 provided in this application, please refer to the above-described embodiments of the dual-active storage method, which will not be repeated here.

[0112] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to the method section.

[0113] It should also be noted that, in this specification, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0114] The above description of the disclosed embodiments enables those skilled in the art to make or use the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the invention is not 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

1. A dual-active storage method, characterized in that, include: Determine whether there is a first host co-mounted between the primary target storage pool and the source storage pool in the target dual-active storage pool; If so, the first host is controlled to store the data to be backed up in the source storage pool into the primary target storage pool, and the target dual-active storage host is controlled to copy the data to be backed up in the primary target storage pool to the secondary target storage pool in the dual-active storage pool, wherein the target dual-active storage host is a host jointly mounted by the primary target storage pool and the secondary target storage pool; If not, when it is determined that there is a second host co-mounted between the secondary target storage pool and the source storage pool, the second host is controlled to store the data to be backed up in the secondary target storage pool, and the target dual-active storage host is controlled to copy the data to be backed up in the secondary target storage pool to the primary target storage pool.

2. The dual-active storage method as described in claim 1, characterized in that, Before determining whether there is a shared first host between the primary target storage pool and the source storage pool in the target active-active storage pool, the following steps are also included: Determine the storage pool type of the source storage pool, wherein the storage pool type includes 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, proceed to the step of determining whether there is a first host co-mounted between the primary target storage pool and the source storage pool in the target dual-active storage pool; When the storage pool type of the source storage pool is the dual-active source storage pool, it is determined whether there is a host jointly mounted between the primary target storage pool and the primary source storage pool and the secondary source storage pool in the dual-active source storage pool, and whether there is a host jointly mounted between the secondary target storage pool and the primary source storage pool and the secondary source storage pool. Based on the determination results, the data to be backed up is stored in the target dual-active storage pool.

3. The dual-active storage method as described in claim 2, characterized in that, When the primary target storage pool has only a third host co-mounted with the primary source storage pool, and the secondary target storage pool has only a fourth host co-mounted with the secondary source storage pool, the data to be backed up is stored in the target active-active storage pool based on the determination result, including: The third host is controlled to store the primary backup data from the primary source storage pool into the primary target storage pool; The fourth host is controlled to store the secondary backup data from the secondary source storage pool into the secondary target storage pool; The target dual-active storage host is controlled to copy the primary backup data from the primary target storage pool to the secondary target storage pool, and to copy the secondary backup data from the secondary target storage pool to the primary target storage pool. The combination of the primary backup data and the secondary backup data constitutes the backup data.

4. The dual-active storage method as described in claim 2, characterized in that, When there are no co-mounted hosts between the primary target storage pool, the primary source storage pool, and the secondary source storage pool, but a fifth host co-mounted between the secondary target storage pool and the secondary source storage pool, the data to be backed up is stored in the target active-active storage pool based on the judgment result, including: The fifth host is controlled to store all the data to be backed up in the secondary source storage pool into the secondary target storage pool; The target dual-active storage host is controlled to copy all the data to be backed up from the secondary target storage pool to the primary target storage pool.

5. The dual-active storage method as described in claim 2, characterized in that, When a sixth host is co-mounted between the primary target storage pool and the primary source storage pool, and no host is co-mounted between the secondary target storage pool and either the primary or secondary source storage pool, the data to be backed up is stored in the target active-active storage pool based on the determination result, including: The sixth host is controlled to store all the data to be backed up in the primary source storage pool into the primary target storage pool; The target dual-active storage host is controlled to copy all the data to be backed up from the primary target storage pool to the secondary target storage pool.

6. The dual-active storage method as described in claim 2, characterized in that, When the primary target storage pool has a shared seventh host with the secondary source storage pool, and the secondary target storage pool has no shared hosts with either the primary source storage pool or the secondary source storage pool, the data to be backed up is stored in the target active-active storage pool based on the determination result, including: The seventh host is controlled to store all the data to be backed up in the secondary source storage pool into the primary target storage pool; The target dual-active storage host is controlled to copy all the data to be backed up from the primary target storage pool to the secondary target storage pool.

7. The dual-active storage method as described in claim 2, characterized in that, When the secondary target storage pool has only an eighth host co-mounted with the primary source storage pool, and the primary target storage pool has no co-mounted hosts with either the primary source storage pool or the secondary source storage pool, the data to be backed up is stored in the target active-active storage pool based on the determination result, including: The eighth host is controlled to store all the data to be backed up in the primary source storage pool into the secondary target storage pool; The target dual-active storage host is controlled to copy all the data to be backed up from the secondary target storage pool to the secondary target storage pool.

8. The dual-active storage method according to any one of claims 2 to 7, characterized in that, Before determining whether there is a shared first host between the primary target storage pool and the source storage pool in the target active-active storage pool, the following steps are also included: Determine whether the target dual-active storage host exists between the primary target storage pool and the secondary target storage pool in the target dual-active storage pool; If there is a target dual-active storage host between the primary target storage pool and the secondary target storage pool, then proceed to the step of determining whether there is a first host jointly mounted between the primary target storage pool and the source storage pool in the target dual-active storage pool; If there is no target active-active storage host between the primary target storage pool and the secondary target storage pool, a prompt message is generated indicating that the target active-active storage pool does not support active-active storage. After determining the storage pool type of the source storage pool, the process also includes: When the storage pool type of the source storage pool is the dual-active source storage pool, determine whether there is a shared source dual-active storage machine between the primary source storage pool and the secondary source storage pool in the dual-active source storage pool; If there is a source dual-active storage machine between the primary source storage pool and the secondary source storage pool, then proceed to the step of determining whether there is a host jointly mounted between the primary target storage pool and the primary source storage pool and the secondary source storage pool in the dual-active source storage pool, and whether there is a host jointly mounted between the secondary target storage pool and the primary source storage pool and the secondary source storage pool. If there is no active-active storage machine between the primary source storage pool and the secondary source storage pool, a prompt message indicating that the source storage pool does not support active-active storage is generated.

9. A dual-active storage device, characterized in that, include: Memory, used to store computer programs; A processor, configured to implement the steps of the dual-active storage method as described in any one of claims 1 to 8 when executing the computer program.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the dual-active storage method as described in any one of claims 1 to 8.