Disaster recovery method and system based on multipath and remote copy technology

文档序号:1815418 发布日期:2021-11-09 浏览:6次 中文

阅读说明:本技术 一种基于多路径和远程复制技术的容灾方法、系统 (Disaster recovery method and system based on multipath and remote copy technology ) 是由 焦浩霖 马豹 亓开元 于 2021-06-25 设计创作,主要内容包括:本发明提供一种基于多路径和远程复制技术的容灾方法、系统,所述方法包括如下步骤:将各存储设备的卷配置同步远程复制,并将具备远程复制关系的卷的全球标识ID标识为同一个磁盘设备;分别将各存储设备的卷挂载到宿主机;宿主机进行磁盘扫描,获取分别为两个不同全球标识ID对应卷的多条路径;将获取的两个卷的多条路径聚合为一个虚拟卷,并根据两个全球标识ID将路径分为两组,并设置两组路径为主备模式;监控主路径组的状态,当主路径组发生故障时,自动进行切换路径至备路径组。能大大提高存储的高可用性,降低故障切换和回切的复杂度,且大幅降低业务的服务不可用时间。(The invention provides a disaster recovery method and a system based on multipath and remote copy technology, wherein the method comprises the following steps: the volume configuration of each storage device is synchronously and remotely copied, and the global identification ID of the volume with the remote copying relation is identified as the same disk device; respectively mounting the volumes of the storage devices to a host machine; the host machine scans a magnetic disk to obtain a plurality of paths of the volumes corresponding to two different global identification IDs respectively; aggregating a plurality of acquired paths of the two volumes into a virtual volume, dividing the paths into two groups according to the two global identification IDs, and setting the two groups of paths as a master-standby mode; and monitoring the state of the main path group, and automatically switching the path to the standby path group when the main path group fails. The method can greatly improve the high availability of storage, reduce the complexity of fault switching and back switching, and greatly reduce the service unavailable time of the service.)

1. A disaster recovery method based on multipath and remote copy technology is characterized by comprising the following steps:

the volume configuration of each storage device is synchronously and remotely copied, and the global identification ID of the volume with the remote copying relation is identified as the same disk device;

respectively mounting the volumes of the storage devices to a host machine;

the host machine scans a magnetic disk to obtain a plurality of paths of the volumes corresponding to two different global identification IDs respectively;

aggregating a plurality of acquired paths of the two volumes into a virtual volume, dividing the paths into two groups according to the two global identification IDs, and setting the two groups of paths as a master-standby mode;

and monitoring the state of the main path group, and automatically switching the path to the standby path group when the main path group fails.

2. The disaster recovery method based on the multi-path and remote copy technology as claimed in claim 1, wherein the step of configuring the volumes of the respective storage devices for synchronous remote copy and identifying the global identification IDs of the volumes with remote copy relationship as the same disk device comprises:

and respectively creating the magnetic disks with the same specification in different storage devices.

3. The disaster recovery method based on multipath and remote replication technology as claimed in claim 1, wherein the step of performing disk scanning by the host computer to obtain the plurality of paths respectively corresponding to the volumes with two different global identification IDs comprises:

setting the disks of different global identification IDs transmitted by the multipath software as the same disk device;

and when the host machine scans the disk, the multi-path software acquires a plurality of paths of the volumes respectively with two different global identification IDs.

4. A disaster recovery method based on multi-path and remote copy technologies as claimed in claim 1, wherein the step of monitoring the status of the primary path group and automatically switching the path to the backup path group when the primary path group fails comprises:

monitoring the state of the main path group storage device;

when the main path group storage device fails, the standby path group storage device starts the read-write capability of the volume, reports the failure of the main path group storage device and switches the path to the standby path group.

5. The disaster recovery method based on multipath and remote replication technology as claimed in claim 4, wherein when the primary path group storage device fails, the backup path group storage device enables a read-write capability of the volume, and simultaneously the backup path group storage device reports the failure of the primary path group storage device, and the step of switching the path to the backup path group further includes:

after the failure recovery of the main path group storage equipment is monitored, starting the reverse remote copy from the volume of the standby path group storage equipment to the volume of the main path group storage equipment;

monitoring whether the data reverse synchronization is completed; if not, continuing to execute the steps: monitoring whether the data reverse synchronization is completed;

if so, switching the remote copying directions of the volumes of the standby path group storage equipment and the volumes of the main path group storage equipment;

the path is switched back to the main path group.

6. The disaster recovery method based on the multi-path and remote replication technique as claimed in claim 5, wherein the step of monitoring completion of the reverse synchronization of the data further comprises:

detecting whether data of a volume of the backup path group storage device and data of a volume of the primary path group storage device are completely consistent;

when the data are completely consistent, executing the following steps: the remote copy direction of the volumes of the backup path group storage device and the volumes of the primary path group storage device are switched.

7. The disaster recovery method based on the multi-path and remote replication technique as claimed in claim 6, wherein the step of monitoring completion of the reverse synchronization of the data further comprises:

when the data are not completely consistent, detecting whether the backup path group storage equipment fails;

if yes, executing the following steps: switching back the path to the main path group;

if not, synchronizing the data of the volume of the backup path group storage device to the volume of the primary path group storage device, and executing the following steps: it is detected whether data of a volume of the backup path group storage device and data of a volume of the primary path group storage device are completely consistent.

8. A disaster recovery system based on multipath and remote copy technology is characterized by comprising a storage device A, a storage device B and a host machine; a volume A exists in the storage device A, and a volume B exists in the storage device B; the storage device A is in remote communication with the storage device B;

the system also comprises a mounting module, a configuration module, a multipath software module, a monitoring module and a switching module;

the mounting module is used for mounting the volume A and the volume B into the host machine at the same time;

the configuration module is used for configuring the volumes of the storage devices to be synchronously and remotely copied;

the multi-path software module is arranged on the host machine and used for scanning a disk of the host machine and acquiring a plurality of paths of the volumes corresponding to two different global identification IDs respectively; aggregating a plurality of acquired paths of the two volumes into a virtual volume, dividing the paths into two groups according to the two global identification IDs, and setting the two groups of paths as a master-standby mode;

the monitoring module is used for monitoring the state of the main path group;

and the switching module is used for automatically switching the path to the standby path group when the main path group fails.

9. The disaster recovery system based on multipath and remote replication technique as claimed in claim 8, wherein the system further comprises a disk creation module;

and the disk creating module is used for creating disks with the same specification in the storage device A and the storage device B respectively.

10. The disaster recovery system based on multipath and remote replication technology as claimed in claim 9, wherein the configuration module is further configured to set the disks with different global identification IDs transmitted by the multipath software module as the same disk device; and notifies the multipath software module of the setting result.

Technical Field

The invention relates to the technical field of storage disaster tolerance, in particular to a disaster tolerance method and system based on multipath and remote copy technology.

Background

The current storage synchronous remote replication technology can only ensure the data security of storage when a fault occurs, cannot ensure the high availability of a host machine using the storage, can only unload a failed volume, and then mount a corresponding storage volume in opposite-end storage, and then map a new volume to the host machine according to information such as a drive letter of the failed volume, so that the whole operation is complex and tedious, a large amount of manual intervention and operation are needed, and the RTO time depends on the duration of manual fault finding and fault recovery operation.

The data synchronization between the storage A and the storage B is realized through a remote copy technology, and the storage A can be switched to the storage B through the fault to ensure the quick recovery of the service when the storage A fails or is in a disaster, so that the unavailable time of the service is reduced.

Disclosure of Invention

The invention provides a disaster recovery method and system based on multipath and remote copy technology, aiming at the problems of service interruption and over-complicated and long downtime of switching operation when storage fails and switching after storage failure is recovered.

The technical scheme of the invention is as follows:

on one hand, the technical scheme of the invention provides a disaster recovery method based on multipath and remote copy technology, which comprises the following steps:

the volume configuration of each storage device is synchronously and remotely copied, and the global identification ID of the volume with the remote copying relation is identified as the same disk device;

respectively mounting the volumes of the storage devices to a host machine;

the host machine scans a magnetic disk to obtain a plurality of paths of the volumes corresponding to two different global identification IDs respectively;

aggregating a plurality of acquired paths of the two volumes into a virtual volume, dividing the paths into two groups according to the two global identification IDs, and setting the two groups of paths as a master-standby mode;

and monitoring the state of the main path group, and automatically switching the path to the standby path group when the main path group fails.

The method is improved on the basis of the original storage remote copying technology and the original multipath technology, the mode that the original multipath can only carry out multiple paths on a single volume is changed, and the complexity of original synchronous remote copying fault switching and fault recovery is greatly reduced by the mode that volumes on two storages configured with remote copying are simultaneously mounted to a host and are aggregated into a virtual volume.

Further, the step of configuring, synchronizing and remotely copying the volumes of the storage devices, and identifying the global identification IDs of the volumes having the remote copy relationship as the same disk device includes:

and respectively creating the magnetic disks with the same specification in different storage devices.

Further, the step of the host computer performing disk scanning to obtain multiple paths of the volumes corresponding to the two different global identification IDs includes:

setting the disks of different global identification IDs transmitted by the multipath software as the same disk device;

and when the host machine scans the disk, the multi-path software acquires a plurality of paths of the volumes respectively with two different global identification IDs.

Further, the step of monitoring the state of the main path group and automatically switching the path to the standby path group when the main path group fails includes:

monitoring the state of the main path group storage device;

when the main path group storage device fails, the standby path group storage device starts the read-write capability of the volume, reports the failure of the main path group storage device and switches the path to the standby path group.

The problem of service interruption during fault switching and fault recovery is solved, and the fault switching and fault recovery can be carried out without interruption and perception. The complexity of operation and maintenance of the client is reduced, and the user experience is improved.

Further, when the primary path group storage device fails, the backup path group storage device enables the read-write capability of the volume, and meanwhile, the backup path group storage device reports the failure of the primary path group storage device, and after the step of switching the path to the backup path group, the method further includes:

after the failure recovery of the main path group storage equipment is monitored, starting the reverse remote copy from the volume of the standby path group storage equipment to the volume of the main path group storage equipment;

monitoring whether the data reverse synchronization is completed; if not, continuing to execute the steps: monitoring whether the data reverse synchronization is completed;

if so, switching the remote copying directions of the volumes of the standby path group storage equipment and the volumes of the main path group storage equipment;

the path is switched back to the main path group. At the moment, the failure is completed and the switching-back is finished, the whole process is not required to be stopped, and the upper-layer service is not sensed and is not interrupted.

Further, the step of monitoring the completion of the reverse synchronization of the data further comprises:

detecting whether data of a volume of the backup path group storage device and data of a volume of the primary path group storage device are completely consistent;

when the data are completely consistent, executing the following steps: the remote copy direction of the volumes of the backup path group storage device and the volumes of the primary path group storage device are switched.

The information such as the disk identifier ID of the virtual machine in the host machine is not changed, the borne service does not need to be interrupted or unavailable, and all switching can be automatically switched under the condition that service application is not perceived.

Further, the step of monitoring the completion of the reverse synchronization of the data further comprises:

when the data are not completely consistent, detecting whether the backup path group storage equipment fails;

if yes, executing the following steps: switching back the path to the main path group;

if not, synchronizing the data of the volume of the backup path group storage device to the volume of the primary path group storage device, and executing the following steps: it is detected whether data of a volume of the backup path group storage device and data of a volume of the primary path group storage device are completely consistent.

On the other hand, the technical scheme of the invention also provides a disaster recovery system based on the multipath and remote copy technology, which comprises a storage device A, a storage device B and a host machine; a volume A exists in the storage device A, and a volume B exists in the storage device B; the storage device A is in remote communication with the storage device B;

the system also comprises a mounting module, a configuration module, a multipath software module, a monitoring module and a switching module;

the mounting module is used for mounting the volume A and the volume B into the host machine at the same time;

the configuration module is used for configuring the volumes of the storage devices to be synchronously and remotely copied;

the multi-path software module is arranged on the host machine and used for scanning a disk of the host machine and acquiring a plurality of paths of the volumes corresponding to two different global identification IDs respectively; aggregating a plurality of acquired paths of the two volumes into a virtual volume, dividing the paths into two groups according to the two global identification IDs, and setting the two groups of paths as a master-standby mode;

the monitoring module is used for monitoring the state of the main path group;

and the switching module is used for automatically switching the path to the standby path group when the main path group fails.

Further, the system also comprises a disk creating module;

and the disk creating module is used for creating disks with the same specification in the storage device A and the storage device B respectively.

Further, the configuration module is also used for setting the disks of different global identification IDs transmitted by the multipath software module as the same disk device; and notifies the multipath software module of the setting result.

When the main path group storage device fails, the standby path group storage device starts the read-write capability of the volume, meanwhile, the standby path group storage device reports the failure of the main path group storage device, and the switching module switches the path to the standby path group.

After the failure recovery of the main path group storage equipment is monitored, starting the reverse remote copy from the volume of the standby path group storage equipment to the volume of the main path group storage equipment; after the monitoring data is reversely synchronized, detecting whether the data of the volume of the backup path group storage device is completely consistent with the data of the volume of the main path group storage device, and switching the remote copying directions of the volume of the backup path group storage device and the volume of the main path group storage device when the data is completely consistent; the path is then switched back to the main path group.

The method can greatly improve the high availability of storage, reduce the complexity of fault switching and back switching, and greatly reduce the service unavailable time of the service.

According to the technical scheme, the invention has the following advantages: the complexity of original synchronous remote copy fault switching and fault recovery is greatly reduced. The problem of service interruption during fault switching and fault recovery is solved, and the fault switching and fault recovery can be carried out without interruption and perception. The complexity of operation and maintenance of the client is reduced, and the user experience is improved. The method is applicable to various scenes such as cloud computing, virtualization and bare metal. The method can greatly improve the high availability of storage, reduce the complexity of fault switching and back switching, and greatly reduce the service unavailable time of the service.

In addition, the invention has reliable design principle, simple structure and very wide application prospect.

Therefore, compared with the prior art, the invention has prominent substantive features and remarkable progress, and the beneficial effects of the implementation are also obvious.

Drawings

In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present invention, the drawings used in the description of the embodiments or prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without creative efforts.

FIG. 1 is a schematic flow diagram of a method of one embodiment of the invention.

Fig. 2 is a schematic flow diagram of a method of another embodiment of the invention.

Fig. 3 is a schematic diagram of a system according to an embodiment of the present invention.

Detailed Description

In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution in the embodiment of the present invention will be clearly and completely described below with reference to the drawings in the embodiment of the present invention, and it is obvious that the described embodiment is only a part of the embodiment of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

WWID: world Wide ID global identification ID, the only identification of the magnetic disk, is used for differentiating different magnetic disks, and multiple paths of the same magnetic disk are aggregated in multiple paths according to WWID.

As shown in fig. 1, an embodiment of the present invention provides a disaster recovery method based on a multipath and remote copy technology, including the following steps:

s11: the volume configuration of each storage device is synchronously and remotely copied, and the global identification ID of the volume with the remote copying relation is identified as the same disk device;

s12: respectively mounting the volumes of the storage devices to a host machine;

s13: the host machine scans a magnetic disk to obtain a plurality of paths of the volumes corresponding to two different global identification IDs respectively;

s14: aggregating a plurality of acquired paths of the two volumes into a virtual volume, dividing the paths into two groups according to the two global identification IDs, and setting the two groups of paths as a master-standby mode;

s15: and monitoring the state of the main path group, and automatically switching the path to the standby path group when the main path group fails.

The method is improved on the basis of the original storage remote copying technology and the original multipath technology, the mode that the original multipath can only carry out multiple paths on a single volume is changed, and the complexity of original synchronous remote copying fault switching and fault recovery is greatly reduced by the mode that volumes on two storages configured with remote copying are simultaneously mounted to a host and are aggregated into a virtual volume.

The embodiment of the invention provides a disaster recovery method based on multipath and remote replication technology, which comprises the following steps:

s21: respectively creating magnetic disks with the same specification in different storage devices;

s22: the volume configuration of each storage device is synchronously and remotely copied, and the global identification ID of the volume with the remote copying relation is identified as the same disk device;

s23: respectively mounting the volumes of the storage devices to a host machine;

s24: the host machine scans a magnetic disk to obtain a plurality of paths of the volumes corresponding to two different global identification IDs respectively; the method comprises the following specific steps: setting the disks of different global identification IDs transmitted by the multipath software as the same disk device; the method comprises the steps that when a host computer conducts disk scanning, multi-path software acquires a plurality of paths of volumes which are respectively two different global identification IDs;

s25: aggregating a plurality of acquired paths of the two volumes into a virtual volume, dividing the paths into two groups according to the two global identification IDs, and setting the two groups of paths as a master-standby mode;

s26: and monitoring the state of the main path group, and automatically switching the path to the standby path group when the main path group fails. Specifically, the state of the main path group storage device is monitored; when the main path group storage device fails, the standby path group storage device starts the read-write capability of the volume, reports the failure of the main path group storage device and switches the path to the standby path group. After the failure recovery of the main path group storage equipment is monitored, starting the reverse remote copy from the volume of the standby path group storage equipment to the volume of the main path group storage equipment; monitoring whether the data reverse synchronization is completed; if not, continuing to execute the steps: monitoring whether the data reverse synchronization is completed; if so, switching the remote copying directions of the volumes of the standby path group storage equipment and the volumes of the main path group storage equipment; the path is switched back to the main path group. At the moment, the failure is completed and the switching-back is finished, the whole process is not required to be stopped, and the upper-layer service is not sensed and is not interrupted.

The method is improved on the basis of the original storage remote copying technology and the original multipath technology, the mode that the original multipath can only carry out multiple paths on a single volume is changed, and the complexity of original synchronous remote copying fault switching and fault recovery is greatly reduced by the mode that volumes on two storages configured with remote copying are simultaneously mounted to a host and are aggregated into a virtual volume.

As shown in fig. 2, an embodiment of the present invention provides a disaster recovery method based on a multipath and remote copy technology, including the following steps:

s31: respectively creating magnetic disks with the same specification in different storage devices;

s32: the volume configuration of each storage device is synchronously and remotely copied, and the global identification ID of the volume with the remote copying relation is identified as the same disk device;

s33: respectively mounting the volumes of the storage devices to a host machine;

s34: the host machine scans a magnetic disk to obtain a plurality of paths of the volumes corresponding to two different global identification IDs respectively;

s35: aggregating a plurality of acquired paths of the two volumes into a virtual volume, dividing the paths into two groups according to the two global identification IDs, and setting the two groups of paths as a master-standby mode;

s36: monitoring the state of the main path group storage device;

s37: judging whether the main path group storage equipment has faults or not, if so, executing a step S38, otherwise, returning to execute a step S36;

s38: the standby path group storage equipment starts the read-write capability of the volume, reports the fault of the main path group storage equipment and switches the path to the standby path group;

s39: after the failure recovery of the main path group storage equipment is monitored, starting the reverse remote copy from the volume of the standby path group storage equipment to the volume of the main path group storage equipment;

s40: monitoring whether the data reverse synchronization is finished, if so, executing the step S41, otherwise, continuing to execute the step S40;

s41: detecting whether data of a volume of the backup path group storage device and data of a volume of the primary path group storage device are completely consistent; if yes, go to step S44; otherwise, go to step S42;

s42: monitoring whether the backup path group storage device fails, if so, executing step S45; otherwise, go to step S43;

s43: synchronizing data of a volume of a backup path group storage device to a volume of a primary path group storage device;

s44: switching the remote replication direction of the volumes of the backup path group storage device and the volumes of the primary path group storage device;

s45: the path is switched back to the main path group.

The method is improved on the basis of the original storage remote copying technology and the original multipath technology, the mode that the original multipath can only carry out multiple paths on a single volume is changed, and the complexity of original synchronous remote copying fault switching and fault recovery is greatly reduced by the mode that volumes on two storages configured with remote copying are simultaneously mounted to a host and are aggregated into a virtual volume.

The method is specifically applied to a disaster recovery system, where the disaster recovery system includes a storage device a, a storage device B, and a host; a volume A exists in the storage device A, and a volume B exists in the storage device B; the storage device A and the storage device B are in remote communication, traditional multipath software scans disks in a host machine under the condition that multipath is started in storage, a plurality of disk devices using the same WWID can be scanned, the same storage volume corresponding to different paths can be used, the multipath can be used as a unique identifier through the WWID, the plurality of disk paths are finally aggregated into one disk device, when data are read or written from the storage device, the multipath can distribute the IO to different paths according to the IO and the path condition, the effect of improving the speed is achieved, when the storage path fails, the failed path is automatically switched, and the high availability of the disk paths is ensured. The invention identifies WWIDs of a plurality of volumes with remote copy relationship as the same disk device by changing the mode that multi-path software can only aggregate a single WWID path and transmitting the WWIDs, informs that a plurality of WWID disk devices transmitted by the multi-path software are the same disk, enables the multi-path to aggregate a plurality of device paths with the WWIDs into the same disk device when scanning the disk, groups the paths according to the WWIDs as the identification, uses the multi-path in a master-standby mode, preferentially uses the path of a master volume in remote copy, wherein the path of a storage device A is a master path, and the path of a storage device B is a backup path.

When the storage device A fails, the storage device B and the host machine judge that the storage device A fails through a monitoring mode, the storage device B starts the read-write capability of the volume B, meanwhile, the host machine multipath software reports the failure through the monitoring judgment or the storage device B and switches the path to the storage device B, information such as a drive ID of the virtual machine in the host machine is not changed, the borne service is not required to be interrupted or unavailable, and all switching can be automatically switched under the condition that service application is not sensed.

After the fault of the storage device A is repaired, the reverse synchronization from the volume B to the volume A is started on each storage device, after the synchronization is completed and the data of the volume A and the volume B are completely consistent, only a command needs to be issued to the storage device to switch the remote copying directions of the volume A and the volume B, and the storage device informs multi-path software of a host machine to switch the path back to the volume A. At the moment, the failure is completed and the switching-back is finished, the whole process is not required to be stopped, and the upper-layer service is not sensed and is not interrupted.

As shown in fig. 3, an embodiment of the present invention further provides a disaster recovery system based on a multipath and remote copy technology, including a storage device a, a storage device B, and a host; a volume A exists in the storage device A, and a volume B exists in the storage device B; the storage device A is in remote communication with the storage device B;

the system also comprises a mounting module, a configuration module, a multipath software module, a monitoring module and a switching module;

the mounting module is used for mounting the volume A and the volume B into the host machine at the same time;

the configuration module is used for configuring the volumes of the storage devices to be synchronously and remotely copied; the system is also used for setting the disks of different global identification IDs transmitted by the multipath software module as the same disk device; and notifies the multipath software module of the setting result.

The multi-path software module is arranged on the host machine and used for scanning a disk of the host machine and acquiring a plurality of paths of the volumes corresponding to two different global identification IDs respectively; aggregating a plurality of acquired paths of the two volumes into a virtual volume, dividing the paths into two groups according to the two global identification IDs, and setting the two groups of paths as a master-standby mode;

the monitoring module is used for monitoring the state of the main path group;

and the switching module is used for automatically switching the path to the standby path group when the main path group fails. When the main path group storage device fails, the standby path group storage device starts the read-write capability of the volume, meanwhile, the standby path group storage device reports the failure of the main path group storage device, and the switching module switches the path to the standby path group.

As another embodiment of the present invention, a disaster recovery system based on multipath and remote copy technology is further provided, including a storage device a, a storage device B, and a host; a volume A exists in the storage device A, and a volume B exists in the storage device B; the storage device A is in remote communication with the storage device B;

the system also comprises a mounting module, a configuration module, a multipath software module, a monitoring module, a switching module and a disk creating module;

the disk creating module is used for creating disks with the same specification in the storage device A and the storage device B respectively;

the mounting module is used for mounting the volume A and the volume B into the host machine at the same time;

the configuration module is used for configuring the volumes of the storage devices to be synchronously and remotely copied; the system is also used for setting the disks of different global identification IDs transmitted by the multipath software module as the same disk device; and notifies the multipath software module of the setting result.

The multi-path software module is arranged on the host machine and used for scanning a disk of the host machine and acquiring a plurality of paths of the volumes corresponding to two different global identification IDs respectively; aggregating a plurality of acquired paths of the two volumes into a virtual volume, dividing the paths into two groups according to the two global identification IDs, and setting the two groups of paths as a master-standby mode;

the monitoring module is used for monitoring the state of the main path group; after the failure recovery of the main path group storage equipment is monitored, starting the reverse remote copy from the volume of the standby path group storage equipment to the volume of the main path group storage equipment; after the monitoring data is reversely synchronized, detecting whether the data of the volume of the backup path group storage device is completely consistent with the data of the volume of the main path group storage device, and switching the remote copying directions of the volume of the backup path group storage device and the volume of the main path group storage device when the data is completely consistent; the path is then switched back to the main path group.

And the switching module is used for automatically switching the path to the standby path group when the main path group fails. When the main path group storage device fails, the standby path group storage device starts the read-write capability of the volume, meanwhile, the standby path group storage device reports the failure of the main path group storage device, and the switching module switches the path to the standby path group.

It should be noted that the disk creating module, the configuration module, and the switching module are arranged in each storage device, the mounting module and the switching module may be arranged in a host, and the monitoring module is respectively arranged in each storage device and the host;

specifically, data synchronization is realized between the storage device a and the storage device B through a remote copy technology, and when the storage device a fails or has a disaster, the storage device a is switched to the storage device B through a failure to ensure quick recovery of a service, so that unavailable time of the service is reduced. Under normal conditions, the storage device a provides the volume a for the host to use, the host mounts the volume a into the system as a bare device, and then creates a file system (for example, a database may also directly use a bare disk) according to the volume a, and the like for service use. Meanwhile, the volume B with the same specification exists in the storage device B, the synchronization from the volume A data to the volume B is realized through a remote copy technology, the write-in modification and deletion of the host computer to the volume A are all performed by the storage device A to synchronize the IO action to the volume B in the storage device B, and the multi-copy storage of the data is realized. When a storage device a fails, a volume a IO mounted on a host will be interrupted, a file system or an application using the volume a will also fail, and a service will be affected to stop the service. Automatically switching the path to the standby path group, namely, switching from the storage device A to the storage device B; after the storage device a is repaired, the original method is to perform reverse synchronization from the volume B in the storage B to the volume a in the storage a, synchronize data during the failure to the volume a, ensure the data consistency between the volume a and the volume B, then unload the volume B from the host, mount the volume a on the host, manually map the volume a to the file system or application of the host, and then start remote copy from the volume a to the volume B, so that the volume B is recovered to normal. In the present application, since the remote copy technology generally does not allow two volumes to read and write simultaneously, all the multi-path policies adopt a master-backup mode, the default path is that the path of volume a can be read and written, and the default path of volume B is the backup path. When a host computer scans a disk, a plurality of disk devices using the same WWID (world Wide Web ID) and corresponding to the same storage volume with different paths are scanned, and multiple paths can be used as unique identifiers through the WWID and finally aggregated into one disk device. The invention identifies WWIDs of a plurality of volumes with remote copy relationship as the same disk device by changing the mode that multi-path software can only aggregate a single WWID path and transmitting the WWIDs, informs that a plurality of WWID disk devices transmitted by the multi-path software are the same disk, enables the multi-path to aggregate a plurality of device paths with the WWIDs into the same disk device when scanning the disk, groups the paths according to the WWIDs as the identification, uses the multi-path in a master-standby mode, preferentially uses the path of a master volume in remote copy, wherein the path of a storage device A is a master path, and the path of a storage device B is a backup path.

After the storage device A is repaired in a fault, starting reverse remote copying from the volume of the storage device B to the volume of the storage device A; after the monitoring data is reversely synchronized, detecting whether the data of the volume of the storage device B is completely consistent with the data of the volume of the storage device A, and switching the remote copying directions of the volume of the storage device B and the volume of the storage device A when the data is completely consistent; the path is then switched back to the main path group.

The method comprises the steps of changing that the original multipath can only comprise a plurality of paths of a single volume for aggregation, aggregating a plurality of volumes into a virtual volume, simultaneously mounting the volume A and the volume B into a host machine, aggregating the paths of the two volumes through multipath software, combining the paths into a virtual volume, and then creating a file system or directly using the file system for business by the host machine according to the virtual volume.

The method can greatly improve the high availability of storage, reduce the complexity of fault switching and back switching, and greatly reduce the service unavailable time of the service.

Note that, multipath: the main function is to realize the following functions together with the storage device: switching and recovering faults, balancing load of IO traffic and virtualizing a disk.

Remote copy: the storage copy remote copy capability is divided into synchronous remote copy and asynchronous remote copy, and is used for synchronizing data to two storage devices to realize data synchronization.

Although the present invention has been described in detail by referring to the drawings in connection with the preferred embodiments, the present invention is not limited thereto. Various equivalent modifications or substitutions can be made on the embodiments of the present invention by those skilled in the art without departing from the spirit and scope of the present invention, and these modifications or substitutions are within the scope of the present invention/any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

14页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:分布式存储的慢盘处理方法、系统、终端及存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类