A Dual Virtualization Disaster Recovery Method, Apparatus, Device, and Storage Medium

By creating synchronized storage domains and storage pools in the primary and standby virtualization environment, and using a universal unique identification code to achieve data synchronization, the problem of long recovery time of single virtualized CFS disaster recovery solution is solved, rapid failover and business continuity are achieved, and the disaster recovery capabilities and competitiveness of the virtualized system are improved.

CN115048058BActive Publication Date: 2025-07-08SHAANXI LANGCHAO YINGXIN TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210751284.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-29
Publication Date
2025-07-08
Estimated Expiration
2042-06-29

AI Technical Summary

Technical Problem

The existing single virtualized CFS disaster recovery solution has a long recovery time and cannot accurately control the failure time, resulting in too long business downtime and cannot provide continuous and stable system support.

Method used

By creating corresponding storage domains and storage pools in the primary and secondary virtualization environment, synchronizing with a universal unique identification code, the two-way synchronization and mapping of disk data information is achieved, ensuring that the backup virtualization system can be switched quickly in the event of a main system failure and providing business continuity.

Benefits of technology

It effectively reduces the system downtime, improves the disaster recovery capabilities and product competitiveness of the virtualized system, and ensures business continuity and stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115048058B_ABST
    Figure CN115048058B_ABST
Patent Text Reader

Abstract

The present application discloses a dual virtualization disaster recovery method, apparatus, device, and storage medium, relating to the technical field of cloud computing, including: creating a corresponding first storage domain in the primary virtualization environment end through a first logical volume, and obtaining the universally unique identifier of the first storage domain; creating a corresponding second storage domain in the secondary virtualization environment end based on the universally unique identifier and through a second logical volume; respectively creating corresponding first and second storage pools in the first and second storage domains; synchronizing the disk data information located in the first logical volume to the second logical volume; based on the corresponding relationship between the second logical volume and the second storage pool, importing the disk data information into the second storage pool, so that when a failure occurs in the primary virtualization system, the secondary virtualization system can be used to mount through the second storage pool and execute corresponding services in the secondary virtualization environment end. Through the technical solution of the present application, the disaster recovery ability of the virtualization system can be improved, and the system downtime can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of cloud computing, and particularly relates to a dual virtualization disaster recovery method, device, equipment, and storage medium. Background Art

[0002] Disaster recovery is a set of actions to reduce the likelihood of disaster events and limit the impact of disasters on critical business processes. For services running in a virtualization system, if a disaster event occurs, such as a server power outage or server failure, it will directly lead to service downtime, causing immeasurable losses. Therefore, to ensure service continuity and stability and provide normal services to the greatest extent, the disaster recovery solution has become the most important indicator for measuring the high availability of virtualization.

[0003] In scenarios with high requirements for service continuity, controlling the downtime within the minute level is an urgent problem to be solved. For the single virtualization CFS disaster recovery solution, for example, the patent number of the authorized patent is CN201911088627.6. The used disaster recovery solution requires redeploying the environment and then using disk data to restore the virtualization system. The recovery time of the disaster recovery solution is relatively long, generally about 30 minutes. Moreover, using the single virtualization CFS disaster recovery solution makes the fault time control inaccurate, the service downtime is long, and it cannot provide continuous and stable system support.

[0004] In summary, how to improve the disaster recovery ability of the virtualization system, reduce the system downtime, and improve the competitiveness of virtualization products is a technical problem to be solved in this field. Summary of the Invention

[0005] In view of this, the purpose of the present invention is to provide a dual virtualization disaster recovery method, device, equipment, and storage medium, which can improve the disaster recovery ability of the virtualization system, reduce the system downtime, and improve the competitiveness of virtualization products. The specific solutions are as follows:

[0006] In the first aspect, the present application discloses a dual virtualization disaster recovery method, including:

[0007] Create a corresponding first storage domain in the primary virtualization environment end through the first logical volume, and obtain the universally unique identifier of the first storage domain;

[0008] Create a corresponding second storage domain in the standby virtualization environment end based on the universally unique identifier through the second logical volume;

[0009] Create corresponding first and second storage pools in the first and second storage domains respectively;

[0010] Synchronize the disk data information located in the first logical volume to the second logical volume;

[0011] Based on the corresponding relationship between the second logical volume and the second storage pool, import the disk data information into the second storage pool, so that when the primary virtualization system fails, the standby virtualization system can be used to mount through the second storage pool and execute corresponding services at the standby virtualization environment end.

[0012] Optionally, the dual virtualization disaster recovery method further includes:

[0013] Construct a first mapping relationship between the first logical volume and the primary virtualization environment end;

[0014] Construct a second mapping relationship between the second logical volume and the standby virtualization environment end.

[0015] Optionally, the dual virtualization disaster recovery method further includes:

[0016] Create a first logical volume in the first storage device, and create the second logical volume with the same quantity as the first logical volume in the second storage device.

[0017] Optionally, during the process of creating the corresponding first storage pool and second storage pool in the first storage domain and the second storage domain respectively, it further includes:

[0018] Format the first storage pool, and write metadata containing a universally unique identifier into the disk of the first storage pool.

[0019] Optionally, after importing the disk data information into the second storage pool based on the corresponding relationship between the second logical volume and the second storage pool, it further includes:

[0020] Create a primary virtualization system in the primary virtualization environment end, and create a configuration file for starting the standby virtualization system in the standby virtualization environment end.

[0021] Optionally, after creating a primary virtualization system in the primary virtualization environment end and creating a configuration file for starting the standby virtualization system in the standby virtualization environment end, it further includes:

[0022] When the primary virtualization system performs a read or write operation, synchronously update the disk data generated by the read or write operation to the standby virtualization environment end.

[0023] Optionally, when the primary virtualization system fails, using the standby virtualization system to mount through the second storage pool and execute corresponding services at the standby virtualization environment end includes:

[0024] When the primary virtualization system fails, use the configuration file to create the standby virtualization system;

[0025] Execute corresponding services at the standby virtualization environment end by mounting through the second storage pool using the standby virtualization system.

[0026] In a second aspect, the present application discloses a dual-virtualization disaster recovery device, including:

[0027] A first domain creation module, configured to create a corresponding first storage domain at the primary virtualization environment end through a first logical volume and obtain the universally unique identifier of the first storage domain;

[0028] A second domain creation module, configured to create a corresponding second storage domain at the standby virtualization environment end based on the universally unique identifier and through a second logical volume;

[0029] A storage pool creation module, configured to create a corresponding first storage pool and second storage pool in the first storage domain and the second storage domain respectively;

[0030] A data mapping module, configured to synchronize the disk data information located in the first logical volume to the second logical volume;

[0031] An information import module, configured to import the disk data information into the second storage pool based on the corresponding relationship between the second logical volume and the second storage pool, so that when the primary virtualization system fails, execute corresponding services at the standby virtualization environment end by mounting through the second storage pool using the standby virtualization system.

[0032] In a third aspect, the present application discloses an electronic device, including:

[0033] A memory, configured to store a computer program;

[0034] A processor, configured to execute the computer program to implement the steps of the dual-virtualization disaster recovery method disclosed above.

[0035] In a fourth aspect, the present application discloses a computer-readable storage medium, configured to store a computer program; wherein, when the computer program is executed by a processor, the steps of the dual-virtualization disaster recovery method disclosed above are implemented.

[0036] As can be seen, the present application discloses a dual virtualization disaster recovery method, including: creating a corresponding first storage domain in the primary virtualization environment through a first logical volume, and obtaining the universally unique identifier of the first storage domain; creating a corresponding second storage domain in the standby virtualization environment based on the universally unique identifier and through a second logical volume; creating corresponding first and second storage pools in the first and second storage domains respectively; synchronizing the disk data information located in the first logical volume to the second logical volume; based on the corresponding relationship between the second logical volume and the second storage pool, importing the disk data information into the second storage pool, so that when the primary virtualization system fails, the standby virtualization system can be used to mount through the second storage pool and execute corresponding services in the standby virtualization environment. Thus, the present application effectively improves the disaster recovery ability of the virtualization system, reduces the system downtime, and enhances the competitiveness of virtualization products by creating CFS storage pools with the same information under the CFS storage domain in the primary and standby virtualization systems, where the logical volumes in the storage device correspond one-to-one with the CFS storage pools, and the virtualization system calls the driver of the storage device to achieve data synchronization. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the following drawings are only the embodiments of the present invention, and those of ordinary skill in the art can also obtain other drawings according to the provided drawings without creative efforts.

[0038] Figure 1 It is a flowchart of a dual virtualization disaster recovery method disclosed in the present application;

[0039] Figure 2 It is a relationship diagram of a CFS storage domain and a CFS storage pool disclosed in the present application;

[0040] Figure 3 It is a flowchart of a specific dual virtualization disaster recovery method disclosed in the present application;

[0041] Figure 4 It is a flowchart of a dual virtualization disaster recovery method based on a CFS storage pool disclosed in the present application;

[0042] Figure 5 It is a schematic structural diagram of a dual virtualization disaster recovery device disclosed in the present application;

[0043] Figure 6 It is a structural diagram of an electronic device disclosed in the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0044] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.

[0045] Disaster recovery is a set of actions to reduce the likelihood of disaster events and limit the impact of disasters on critical business processes. For the services running in a virtualization system, if a disaster event occurs, such as a server power outage or a server failure, it will directly lead to the downtime of the service, causing immeasurable losses. Therefore, to ensure the continuity and stability of the service and provide normal services to the greatest extent, the disaster recovery solution has become the most important indicator for measuring the high availability of virtualization.

[0046] In scenarios with high requirements for business continuity, controlling the downtime within the minute level is an urgent problem to be solved. For the single-virtualization CFS disaster recovery solution, for example, the patent number of the authorized patent is CN201911088627.6. The disaster recovery solution used needs to redeploy the environment and then use disk data to restore the virtualization system. The recovery time of the disaster recovery solution is relatively long, generally about 30 minutes. Moreover, using the single-virtualization CFS disaster recovery solution makes the control of the failure time inaccurate, the service downtime is long, and it cannot provide continuous and stable system support.

[0047] Therefore, the present application provides a dual-virtualization disaster recovery solution, which can improve the disaster recovery ability of the virtualization system, reduce the system downtime, and enhance the competitiveness of virtualization products.

[0048] Refer to Figure 1 As shown, the embodiments of the present invention disclose a dual-virtualization disaster recovery method, including:

[0049] Step S11: Create a corresponding first storage domain in the primary virtualization environment through the first logical volume, and obtain the universally unique identifier of the first storage domain.

[0050] In this embodiment, since the corresponding dual-virtualization disaster recovery solution is based on the CFS (Cluster File System) storage pool, therefore, refer to Figure 2As shown in the figure, the CFS storage domain is a set composed of a series of hosts, heartbeat disks, data disks, configuration parameters, etc. The heartbeat disks ensure the survival status of each host in the storage domain. The data disks can be used to create shared storage for use by virtual machines in the virtualization system. On each host, relevant services are started through configuration files and parameters to maintain the normal operation of the CFS storage domain. The CFS storage pool is the shared storage created using the data disks. When creating the CFS storage pool, a formatting operation is required, that is, initializing the disk data information, which contains the basic information of the CFS storage domain, such as UUID (Universally Unique Identifier). The creation of the CFS storage pool depends on the CFS storage domain.

[0051] Step S12: Based on the universal unique identifier and through the second logical volume, create a corresponding second storage domain at the standby virtualization environment end.

[0052] In this embodiment, for storage logical volume mapping, the mapped logical volumes can be displayed on both the primary and standby virtualization environments. Create a CFS storage domain on the primary virtualization environment and record the UUID of the CFS storage domain. Then, specify the UUID to create a CFS storage domain on the standby virtualization environment, that is, clone the CFS storage domain created on the primary virtualization environment to obtain the CFS storage domain on the standby virtual environment. At this time, two exactly the same CFS storage domains are established. That is, to create exactly the same CFS storage domains, after the primary virtualization environment creates the CFS storage domain, the standby virtualization environment specifies the UUID of the CFS storage domain of the primary virtualization environment to create the CFS storage domain, ensuring that the UUIDs of the two CFS storage domains are the same and the basic information is the same, preparing for subsequent operations of creating and importing the CFS storage pool. It can be understood that the CFS storage domain cloning solution can achieve the goal of consistency of identification information, etc. of the CFS storage domains in the dual virtualization environment, providing guarantee for subsequent creation or import of the CFS storage pool.

[0053] In this embodiment, create a first logical volume in the first storage device and create the same number of the second logical volumes as the first logical volume in the second storage device. It can be understood that, for example: two sets of virtualization environments are VA and VB respectively, and two storage devices are DA and DB respectively. The process is as follows: Create the same number of logical volumes on DA and DB, with the same logical volume size and user-defined names. It should be noted that there are at least two logical volumes, and it is recommended to use a 10G heartbeat disk and a data disk with a user-defined size.

[0054] In this embodiment, a first mapping relationship between the first logical volume and the primary virtualization environment end is constructed; a second mapping relationship between the second logical volume and the standby virtualization environment end is constructed. It can be understood that the logical volumes on DAs and DBs are mapped to VAs and VBs, and the mapped logical volumes can be normally displayed in the primary and standby virtual environments; a CFS storage domain is created at the VA end using the heartbeat disk and data disk mapped by DA, and the UUID information of the CFS storage domain is obtained; a CFS storage domain is created at the VB end using the heartbeat disk and data disk mapped by DB in the way of specifying the UUID, and the CFS storage domain information on VAs and VBs is consistent.

[0055] Step S13: Create a corresponding first storage pool and second storage pool in the first storage domain and the second storage domain respectively.

[0056] In this embodiment, during the process of creating the corresponding first storage pool and second storage pool in the first storage domain and the second storage domain respectively, it further includes: performing a formatting process on the first storage pool, and writing metadata containing a universally unique identifier into the disk of the first storage pool. It can be understood that when creating a CFS storage pool on the primary virtualization environment, disk formatting will be performed during the creation of the CFS storage pool, and metadata information will be written into the disk. The metadata includes information such as the UUID of the CFS storage domain. After that, it is successfully mounted on each host of the CFS storage domain, and at this time, the creation of the CFS storage pool is completed. For example: when creating a CFS storage pool at the VA end, after the creation is completed, since the corresponding CFS storage domain has been created at the VB end, therefore, a CFS storage pool will also be created at the VB end accordingly.

[0057] Step S14: Synchronize the disk data information located in the first logical volume to the second logical volume.

[0058] In this embodiment, after the creation of the CFS storage pool is completed, data synchronization between logical volumes is performed, and the disk data on the logical volume mapped by the primary virtualization environment is synchronized to the logical volume mapped by the standby virtualization environment. The disk data on the logical volume corresponding to the standby virtualization environment contains metadata information such as the formatted metadata of the CFS storage pool in the primary virtualization environment. For example: when creating a CFS storage pool at the VA end, after the creation is completed, data synchronization is performed between the logical volumes on the DAs and DBs corresponding to the data disk. It can be understood that the CFS storage pool disaster recovery solution in this embodiment includes processing such as resource creation, storage data synchronization, and mounting and unmounting operations of the CFS storage pool, and data synchronization of each logical volume ensures the integrity of the disk data.

[0059] Step S15: Based on the correspondence between the second logical volume and the second storage pool, import the disk data information into the second storage pool, so that when the primary virtualization system fails, the standby virtualization system can be used to mount through the second storage pool and execute corresponding services at the standby virtualization environment end.

[0060] In this embodiment, the disk data on the logical volume is imported into the CFS storage pool in the standby virtualization environment. Among them, the import process does not perform formatting and only performs the mount operation. The CFS storage pool created in the primary virtualization environment has exactly the same data information for the two logical volumes through data synchronization of the logical volumes in the storage device. When importing the CFS storage pool in the standby virtualization environment, the import process will not format the disk, ensuring the integrity of the data in the standby virtualization environment. In this way, the CFS storage pools on both the primary and standby virtualization environments are displayed normally. Then, when the primary virtualization system fails, the standby virtualization system can be used to mount through the second storage pool and execute corresponding services at the standby virtualization environment end.

[0061] It can be seen that the present application discloses a dual virtualization disaster recovery method, including: creating a corresponding first storage domain in the primary virtualization environment end through a first logical volume, and obtaining the universally unique identifier of the first storage domain; creating a corresponding second storage domain in the standby virtualization environment end based on the universally unique identifier and through a second logical volume; creating corresponding first and second storage pools in the first and second storage domains respectively; synchronizing the disk data information located in the first logical volume to the second logical volume; based on the correspondence between the second logical volume and the second storage pool, importing the disk data information into the second storage pool, so that when the primary virtualization system fails, the standby virtualization system can be used to mount through the second storage pool and execute corresponding services at the standby virtualization environment end. Thus, it can be seen that the present application creates CFS storage pools with the same information under the CFS storage domain in the primary and standby virtualization systems. The logical volumes in the storage device correspond to the CFS storage pools one by one, and the virtualization system calls the driver of the storage device to achieve data synchronization, effectively improving the disaster recovery ability of the virtualization system, reducing the system downtime, and enhancing the competitiveness of the virtualization product.

[0062] Refer to Figure 3 As shown, the embodiment of the present invention discloses a specific flowchart of a dual virtualization disaster recovery method. Compared with the previous embodiment, this embodiment further explains and optimizes the technical solution. Specifically:

[0063] Step S21: Create a corresponding first storage domain in the primary virtualization environment end through a first logical volume, and obtain the universally unique identifier of the first storage domain.

[0064] Step S22: Create a corresponding second storage domain in the standby virtualization environment based on the Universal Unique Identifier (UUID) and through the second logical volume.

[0065] Step S23: Create a corresponding first storage pool and second storage pool in the first storage domain and the second storage domain respectively.

[0066] Step S24: Synchronize the disk data information located in the first logical volume to the second logical volume.

[0067] Step S25: Based on the correspondence between the second logical volume and the second storage pool, import the disk data information into the second storage pool.

[0068] Among them, for the more detailed processing procedures of steps S21, S22, S23, S24, and S25, please refer to the foregoing disclosed embodiments, and will not be elaborated herein.

[0069] Step S26: Create a primary virtualization system in the primary virtualization environment, and create a configuration file for starting the standby virtualization system in the standby virtualization environment.

[0070] In this embodiment, a virtual machine is created on the primary virtualization environment, and a placeholder virtual machine is created on the standby virtualization environment at the same time. It should be noted that the placeholder virtual machine is in a closed state at this time.

[0071] In this embodiment, after creating the primary virtualization system in the primary virtualization environment and creating the configuration file for starting the standby virtualization system in the standby virtualization environment, it further includes: when the primary virtualization system performs a read or write operation, synchronously update the disk data generated by the read or write operation to the standby virtualization environment. It can be understood that when the virtual machine on the primary virtualization environment performs read and write operations, the disk data will be synchronized to the standby environment along with the data synchronization. For example: create a virtual machine on the CFS storage pool at the VA end, and a placeholder virtual machine is synchronously created at the VB end, and the underlying disk data is synchronously in real time.

[0072] Step S27: When the primary virtualization system fails, create the standby virtualization system using the configuration file; use the standby virtualization system to mount through the second storage pool and execute corresponding services in the standby virtualization environment.

[0073] In this embodiment, if a failure occurs in the primary virtualization environment, the virtual machines on the standby virtualization environment can be started immediately, taking over the business again to reduce the downtime. That is, when creating a virtual machine in the primary virtualization environment and all virtual disks are created normally, the standby virtualization environment creates a placeholder virtual machine. The placeholder virtual machine only creates a configuration file, and the virtual disk data already exists on the CFS storage pool of the standby virtualization environment through data synchronization. When a failure occurs in the primary virtualization environment, the standby virtualization environment can immediately start the business virtual machine to ensure the high availability of the business virtual machine. For example, when the primary virtualization environment starts a disaster recovery drill or when a VA failure occurs and VB takes over, the placeholder virtual machine on VB is started and quickly pulled up using the corresponding configuration file to take over the business again, reducing the downtime and completing the disaster recovery operation. It can be understood that the high-availability solution for business virtual machines is a solution for creating virtual machines in the primary and standby environments when the system is normal and quickly pulling up virtual machines in the standby environment when a system failure occurs. Quickly pulling up the corresponding virtual machines can run the corresponding business operations, ensuring business continuity and reducing the failure time.

[0074] In this embodiment, referring to Figure 4 As shown, the logical volumes LUN (Logical Unit Number) E and LUN F on storage device 1 and storage device 2 are mapped to the primary virtualization system 1 and the standby virtualization system 2 respectively. LUN E and LUN F serve as the data disks for CFS storage domain 1 and CFS storage domain 1-1. When creating virtual machine A on the CFS storage pool A of the primary virtualization system 1, a placeholder virtual machine A-1 is created in the standby virtualization system 2 at the same time. Virtual machine A-1 is only a placeholder virtual machine, that is, it creates the configuration file required to start the virtual machine. The virtual disk C of virtual machine A is imported into the CFS storage pool A-1 on the standby virtualization system 2 after data synchronization through the storage devices where logical volumes LUN E and LUN F are located, and then the virtual disk C is synchronized to the CFS storage pool A-1. Virtual machine A-1 uses the virtual disk C on the CFS storage pool A-1. The import process does not require formatting to ensure data integrity. The data on LUN E and LUN F is exactly the same, and the information of the CFS storage domain in metadata 1 and metadata 2 is also exactly the same, only the resource names created and displayed on the LUN are different. The data written by running the business on the primary virtual machine A will be synchronized to the placeholder virtual machine A-1 through data synchronization.

[0075] It can be seen that in order to make up for the disadvantages of the single virtualized CFS storage pool disaster recovery solution, reduce the business downtime, provide continuous and stable system support, and meet the requirements of data integrity at the same time, this patent proposes a dual virtualized disaster recovery solution based on the CFS storage pool through two sets of virtualization environments and two sets of storage devices. In the primary and standby virtualization systems, CFS storage pools with the same information are created under the CFS storage domain, and the logical volumes in the storage devices correspond one by one to the CFS storage pools. The virtualization system calls the driver of the storage device to implement data synchronization, effectively improving the disaster recovery ability of the virtualization system, reducing the system downtime, enhancing the high availability of the system, and facilitating the wide application of the virtualization system.

[0076] Referring to Figure 5 as shown, the embodiment of the present invention also correspondingly discloses a dual virtualized disaster recovery device, including:

[0077] A first domain creation module 11, configured to create a corresponding first storage domain in the primary virtualization environment through a first logical volume, and obtain the universally unique identifier of the first storage domain;

[0078] A second domain creation module 12, configured to create a corresponding second storage domain in the standby virtualization environment based on the universally unique identifier and through a second logical volume;

[0079] A storage pool creation module 13, configured to create a corresponding first storage pool and a second storage pool in the first storage domain and the second storage domain respectively;

[0080] A data mapping module 14, configured to synchronize the disk data information located in the first logical volume to the second logical volume;

[0081] An information import module 15, configured to import the disk data information into the second storage pool based on the correspondence between the second logical volume and the second storage pool, so that when the primary virtualization system fails, the standby virtualization system can be used to mount through the second storage pool and execute corresponding services at the standby virtualization environment end.

[0082] Among them, the second domain creation module 12 can be specifically used to perform storage logical volume mapping, and the mapped logical volume can be displayed in both the primary and standby virtualization environments; create a CFS storage domain in the primary virtualization environment and record the UUID of the CFS storage domain; then specify the UUID to create a CFS storage domain in the standby virtualization environment, that is, clone the CFS storage domain created in the primary virtualization environment to obtain the CFS storage domain in the standby virtual environment. At this time, two exactly the same CFS storage domains are established. That is, to create exactly the same CFS storage domains, after the CFS storage domain is created in the primary virtualization environment, the standby virtualization environment specifies the UUID of the CFS storage domain in the primary virtualization environment to create a CFS storage domain, ensuring that the UUIDs of the two CFS storage domains are consistent and the basic information is the same, preparing for subsequent creation and import of the CFS storage pool operations. It can be understood that the CFS storage domain cloning solution can achieve the goal of consistency of identification information and the like of the CFS storage domain in the dual virtualization environment, providing guarantee for subsequent creation or import of the CFS storage pool.

[0083] It can be seen that the present application discloses a dual virtualization disaster recovery method, including: creating a corresponding first storage domain in the primary virtualization environment end through a first logical volume and obtaining the universally unique identifier of the first storage domain; creating a corresponding second storage domain in the standby virtualization environment end based on the universally unique identifier and through a second logical volume; creating corresponding first and second storage pools in the first and second storage domains respectively; synchronizing the disk data information located in the first logical volume to the second logical volume; based on the corresponding relationship between the second logical volume and the second storage pool, importing the disk data information into the second storage pool so that when the primary virtualization system fails, the standby virtualization system can be used to mount through the second storage pool and execute corresponding services in the standby virtualization environment end. Thus, it can be seen that the present application effectively improves the disaster recovery ability of the virtualization system, reduces the system downtime, and improves the competitiveness of the virtualization product by creating CFS storage pools with the same information under the CFS storage domain in the primary and standby virtualization systems, with the logical volumes in the storage device corresponding one-to-one to the CFS storage pools, and the virtualization system calling the driver of the storage device to achieve data synchronization.

[0084] In some specific embodiments, the dual virtualization disaster recovery device may specifically include:

[0085] A mapping unit, configured to construct a first mapping relationship between the first logical volume and the primary virtualization environment end; construct a second mapping relationship between the second logical volume and the standby virtualization environment end.

[0086] In some specific embodiments, the dual virtualization disaster recovery device may specifically include:

[0087] A logical volume creation unit is used to create a first logical volume in a first storage device and create the same number of second logical volumes as the first logical volume in a second storage device.

[0088] In some specific embodiments, the storage pool creation module 13 may specifically include:

[0089] A data writing unit is used to format the first storage pool and write metadata containing a universally unique identifier into the disks of the first storage pool.

[0090] In some specific embodiments, the information import module 15 may specifically include:

[0091] A file configuration sub-module is used to create a primary virtualization system at the primary virtualization environment end and create a configuration file for starting the standby virtualization system at the standby virtualization environment end.

[0092] In some specific embodiments, the file configuration sub-module may specifically include:

[0093] A data synchronization unit is used to synchronously update the disk data generated by the read or write operation to the standby virtualization environment end when the primary virtualization system performs a read or write operation.

[0094] In some specific embodiments, the information import module 15 may specifically include:

[0095] A standby virtualization startup unit is used to create the standby virtualization system using the configuration file when the primary virtualization system fails; use the standby virtualization system to mount through the second storage pool and execute corresponding services at the standby virtualization environment end.

[0096] Furthermore, an embodiment of the present application also discloses an electronic device, Figure 6 It is a structural diagram of an electronic device 20 shown according to an exemplary embodiment, and the content in the figure cannot be considered as any limitation on the scope of use of the present application.

[0097] Figure 6 This is a schematic structural diagram of an electronic device 20 provided by an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. Among them, the memory 22 is used to store a computer program, and the computer program is loaded and executed by the processor 21 to implement the following steps:

[0098] Create a corresponding first storage domain in the primary virtualization environment end through the first logical volume and obtain the universally unique identifier of the first storage domain;

[0099] Create a corresponding second storage domain in the standby virtualization environment end based on the universal unique identifier and through the second logical volume;

[0100] Create a corresponding first storage pool and second storage pool in the first storage domain and the second storage domain respectively;

[0101] Synchronize the disk data information located in the first logical volume to the second logical volume;

[0102] Based on the correspondence between the second logical volume and the second storage pool, import the disk data information into the second storage pool, so that when the primary virtualization system fails, the standby virtualization system can be used to mount through the second storage pool and execute corresponding services in the standby virtualization environment end.

[0103] In some specific embodiments, the processor can specifically implement the following steps by executing the computer program saved in the memory:

[0104] Construct a first mapping relationship between the first logical volume and the primary virtualization environment end;

[0105] Construct a second mapping relationship between the second logical volume and the standby virtualization environment end.

[0106] In some specific embodiments, the processor can specifically implement the following steps by executing the computer program saved in the memory:

[0107] Create a first logical volume in the first storage device, and create the second logical volume with the same number as the first logical volume in the second storage device.

[0108] In some specific embodiments, the processor can specifically implement the following steps by executing the computer program saved in the memory:

[0109] Format the first storage pool, and write the metadata containing the universal unique identifier into the disk of the first storage pool.

[0110] In some specific embodiments, the processor can specifically implement the following steps by executing the computer program saved in the memory:

[0111] Create a primary virtualization system in the primary virtualization environment end, and create a configuration file for starting the standby virtualization system in the standby virtualization environment end.

[0112] In some specific embodiments, the processor can specifically implement the following steps by executing the computer program saved in the memory:

[0113] When the primary virtualization system performs a read or write operation, synchronously update the disk data generated by the read or write operation to the secondary virtualization environment side.

[0114] In some specific embodiments, the processor can specifically implement the following steps by executing the computer program stored in the memory:

[0115] When a failure occurs in the primary virtualization system, create the secondary virtualization system by using the configuration file;

[0116] Use the secondary virtualization system to mount through the second storage pool and execute corresponding services in the secondary virtualization environment side.

[0117] In addition, the electronic device 20 in this embodiment can specifically be an electronic computer.

[0118] In this embodiment, the power supply 23 is used to provide operating voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and external devices, and the communication protocol it follows is any communication protocol applicable to the technical solution of this application, and no specific limitation is imposed on it here; the input / output interface 25 is used to obtain external input data or output data to the outside, and its specific interface type can be selected according to specific application needs, and no specific limitation is made here.

[0119] Among them, the processor 21 can include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 can be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 21 can also include a main processor and a coprocessor. The main processor is a processor used to process data in the wake state, also known as the CPU (Central Processing Unit); the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, the processor 21 can be integrated with a GPU (Graphics Processing Unit), and the GPU is responsible for rendering and drawing the content that needs to be displayed on the display screen. In some embodiments, the processor 21 can also include an AI (Artificial Intelligence) processor, and the AI processor is used to process computational operations related to machine learning.

[0120] In addition, as a carrier for storing resources, the memory 22 can be a read-only memory, a random access memory, a magnetic disk, an optical disc, etc. The resources stored thereon can include an operating system 221, a computer program 222, etc. The storage method can be transient storage or permanent storage.

[0121] Among them, the operating system 221 is used to manage and control each hardware device and the computer program 222 on the electronic device 20, so as to implement the operation and processing of the massive data 223 in the memory 22 by the processor 21. It can be Windows Server, Netware, Unix, Linux, etc. In addition to the computer program that can be used to complete the dual virtualization disaster recovery method executed by the electronic device 20 disclosed in any of the foregoing embodiments, the computer program 222 can further include computer programs that can be used to complete other specific tasks. The data 223 can include not only the data transmitted by external devices received by the electronic device, but also the data collected by its own input / output interface 25, etc.

[0122] Furthermore, the present application also discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the foregoing disclosed dual virtualization disaster recovery method is implemented. For the specific steps of this method, reference can be made to the corresponding content disclosed in the foregoing embodiments, and details will not be repeated here.

[0123] In this specification, the various embodiments are described in a progressive manner. Each embodiment focuses on the differences from other embodiments. For the same or similar parts among the various embodiments, reference can be made to each other. For the devices disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple, and reference can be made to the description of the method part for the relevant parts.

[0124] Those skilled in the art may further realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described according to functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of this application. The steps of the methods or algorithms described in combination with the embodiments disclosed herein can be directly implemented by hardware, software modules executed by a processor, or a combination of both. The software modules can be placed in a random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the technical field.

[0125] Finally, it should also be noted that in this document, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "comprising an..." does not exclude the existence of additional identical elements in the process, method, article or device comprising the element.

[0126] The above has introduced in detail a dual virtualization disaster recovery method, device, equipment, and storage medium provided by the present invention. Specific examples are used herein to elaborate on the principle and implementation manner of the present invention. The description of the above embodiments is only used to help understand the method and its core idea of the present invention; at the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation manner and application scope. In summary, the content of this specification should not be construed as a limitation to the present invention.

Claims

1. A dual virtualization disaster recovery method, characterized in that Including: Create a corresponding first storage domain at the primary virtualization environment end through a first logical volume, and obtain the universally unique identifier of the first storage domain; Create a corresponding second storage domain at the standby virtualization environment end based on the universally unique identifier and through a second logical volume; the universally unique identifier of the second storage domain is the same as that of the first storage domain; Create corresponding first and second storage pools in the first and second storage domains respectively; Synchronize the disk data information located in the first logical volume to the second logical volume; the number of the second logical volumes is the same as that of the first logical volumes; Based on the corresponding relationship between the second logical volume and the second storage pool, import the disk data information into the second storage pool, and the import process does not perform formatting, but only performs a mounting operation; Create a primary virtualization system at the primary virtualization environment end, and create a configuration file for starting the standby virtualization system at the standby virtualization environment end, so that when the primary virtualization system fails, the standby virtualization system can be created using the configuration file; use the standby virtualization system to mount through the second storage pool and execute corresponding services at the standby virtualization environment end.

2. The dual virtualization disaster recovery method according to claim 1, wherein Also including: Construct a first mapping relationship between the first logical volume and the primary virtualization environment end; Construct a second mapping relationship between the second logical volume and the standby virtualization environment end.

3. The dual virtualization disaster recovery method according to claim 2, wherein Also including: Create a first logical volume in a first storage device, and create the second logical volumes with the same number as the first logical volume in a second storage device.

4. The dual virtualization disaster recovery method according to claim 1, wherein During the process of creating corresponding first and second storage pools in the first and second storage domains respectively, it further includes: Perform a formatting process on the first storage pool, and write metadata containing the universally unique identifier into the disk of the first storage pool.

5. The dual virtualization disaster recovery method according to claim 1, wherein After creating the primary virtualization system at the primary virtualization environment end and creating the configuration file for starting the standby virtualization system at the standby virtualization environment end, it further includes: When the primary virtualization system performs a read or write operation, synchronously update the disk data generated by the read or write operation to the standby virtualization environment end.

6. A dual virtualization disaster recovery device, characterized in that, Including: A first domain creation module for creating a corresponding first storage domain at the primary virtualization environment end through a first logical volume, and obtaining the universally unique identifier of the first storage domain; A second domain creation module for creating a corresponding second storage domain at the standby virtualization environment end based on the universally unique identifier and through a second logical volume; the universally unique identifier of the second storage domain is the same as that of the first storage domain; A storage pool creation module for creating corresponding first and second storage pools in the first and second storage domains respectively; A data mapping module for synchronizing the disk data information located in the first logical volume to the second logical volume; the number of the second logical volumes is the same as that of the first logical volumes; An information import module, which is used to import the disk data information into the second storage pool based on the corresponding relationship between the second logical volume and the second storage pool. The import process does not perform formatting and only executes the mounting operation; Create a primary virtualization system in the primary virtualization environment end, and create a configuration file for starting the standby virtualization system in the standby virtualization environment end, so that when the primary virtualization system fails, the standby virtualization system can be created using the configuration file; Use the standby virtualization system to mount through the second storage pool and execute corresponding services in the standby virtualization environment end.

7. An electronic device, characterized in that, Comprising: A memory for storing computer programs; A processor for executing the computer programs to implement the steps of the dual virtualization disaster recovery method according to any one of claims 1 to 6.

8. A computer-readable storage medium, characterized in that, For storing computer programs; wherein, when the computer programs are executed by the processor, the steps of the dual virtualization disaster recovery method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Virtualization system disaster recovery system, method, apparatus and readable storage medium

    CN110941508B

  • Disaster recovery method and device, electronic equipment and storage medium

    CN112000437A

  • Method for virtualized operating system to use Ceph and computer readable storage medium

    CN112988468A