CN115080316A - Cross-storage-platform double-active disaster recovery protection method and system based on virtualization technology - Google Patents

Cross-storage-platform double-active disaster recovery protection method and system based on virtualization technology Download PDF

Info

Publication number
CN115080316A
CN115080316A CN202210787844.XA CN202210787844A CN115080316A CN 115080316 A CN115080316 A CN 115080316A CN 202210787844 A CN202210787844 A CN 202210787844A CN 115080316 A CN115080316 A CN 115080316A
Authority
CN
China
Prior art keywords
data
data file
file
command
recovery
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210787844.XA
Other languages
Chinese (zh)
Other versions
CN115080316B (en
Inventor
庞力荣
庞力华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Feichuang Information Technology Co ltd
Original Assignee
Guangxi Feichuang Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangxi Feichuang Information Technology Co ltd filed Critical Guangxi Feichuang Information Technology Co ltd
Priority to CN202210787844.XA priority Critical patent/CN115080316B/en
Publication of CN115080316A publication Critical patent/CN115080316A/en
Application granted granted Critical
Publication of CN115080316B publication Critical patent/CN115080316B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/16Error detection or correction of the data by redundancy in hardware
    • G06F11/20Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements
    • G06F11/2053Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where persistent mass storage functionality or persistent mass storage control functionality is redundant
    • G06F11/2056Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where persistent mass storage functionality or persistent mass storage control functionality is redundant by mirroring
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0662Virtualisation aspects
    • G06F3/0664Virtualisation aspects at device level, e.g. emulation of a storage device or system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45562Creating, deleting, cloning virtual machine instances

Landscapes

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

Abstract

The invention relates to a cross-storage platform double-active disaster recovery protection method and a system based on virtualization technology, wherein the method comprises the following steps: starting a first virtual system platform and a second virtual system platform in a double-active disaster tolerance mode; storing data in data files in different virtual system platforms; when one virtual system platform is damaged, copying data to a subdata file in another virtual system platform which is not damaged through mirror image copying; when the damaged virtual system platform recovers the normal operation state, transmitting the data of the subdata file to the original data file to complete the recovery of the data; and when the damaged virtual system platform cannot recover the normal running state, starting a new virtual system platform, and protecting the data with the undamaged virtual system platform in a double-active disaster recovery mode. The invention uses the virtual system platform to realize the double-active disaster recovery mode to protect the data, and can also realize the protection of the data system under the condition that the operating system is damaged.

Description

Cross-storage-platform double-active disaster recovery protection method and system based on virtualization technology
Technical Field
The invention relates to the technical field of computer data security processing, in particular to a cross-storage-platform dual-active disaster recovery protection method and system based on a virtualization technology.
Background
With increasingly wide application of information technology in modern society, management strengthening and efficiency improvement of numerous organs and enterprises are achieved through informatization construction, various management systems and industry software are widely used in the process of informatization construction, and meanwhile, the dependence of the organs and the enterprises on the information system is gradually deepened, so that the safety of the information system, particularly the safety of a data system in the safety of the information system becomes a key point for protection of the organs and the enterprises.
In order to ensure data safety, the establishment of a data disaster recovery system is usually considered when the enterprise and the institution establish the information system, namely, a main data storage pool and a backup data storage pool are established to realize data synchronization between the two data storage pools, and when one data storage pool is damaged, the other data storage pool can ensure the safety of data so as to prevent the data system from being paralyzed, for example, Chinese patent ZL202011081321.0 discloses a method, a device and a system for virtual disk double-activity disaster recovery, the technical scheme starts a virtual machine in a double-activity disaster recovery mode, and when the virtual machine normally operates, input and output files of the virtual machine are simultaneously written into two disk files of an original virtual machine simulator, when one disk file or the storage pool where the disk file is located has an error, writing an input/output file of the virtual machine into the disk file which has not been subjected to the error, executing the original image of the quorum device simulation layer, and respectively copying the disk file which has not been subjected to the error to two disk files below the quorum device simulation layer after the image, thereby realizing the protection of data in the disk file so as to prevent the data system from being paralyzed.
Disclosure of Invention
Therefore, the invention provides a cross-storage-platform dual-active disaster recovery protection method and system based on a virtualization technology, which can solve the problem that the protection of a data system cannot be realized under the condition that an operating system is damaged in the prior art.
In order to achieve the above object, in one aspect, the present invention provides a cross-storage platform dual-active disaster recovery protection method based on a virtualization technology, including:
starting a first virtual system platform and a second virtual system platform in a double-living disaster tolerance mode, setting a first database in the first virtual system platform, and setting a second database in the second virtual system platform;
simultaneously writing data into a first data file of the first database and a second data file of the second database, comparing the first data file with the second data file, and inputting or modifying the data written in the first data file and the second data file according to a comparison result;
when the first virtual platform cannot normally run, starting mirror image equipment of the second database to copy the second data file into a first sub data file and a second sub data file, comparing the first sub data file with the second sub data file, and inputting or modifying data written in the first sub data file and the second sub data file according to a comparison result;
when the first virtual platform recovers a normal operation state, the first sub data file writes data into a first recovery data file of a first database through the database unified interface, the second sub data file writes data into a second recovery data file of a second database through the database unified interface, the first recovery data file and the second recovery data file are compared, input or modified, and the first recovery data file and the second recovery data file complete input;
when the first virtual platform cannot recover the normal operation state, starting the mirror image equipment of the second database to copy the second data file into the first data file and the second data file, comparing the first data file with the second data file, and inputting or modifying the first data file and the second data file according to the comparison result, deleting the first virtual system platform and starting a third virtual system platform in a double-active disaster tolerance mode, setting a third database in the third virtual system platform, writing the data of the first data file into a third data file of the third database through a database unified interface, simultaneously writing the data of the second data file into a second recovery data file of the second database through the database unified interface, comparing the second recovery data file with the third data file, and comparing the second recovery data file with the third data file according to the comparison result And inputting or modifying according to the data written in the file.
Further, when data is written into a first data file of the first database and a second data file of the second database at the same time, the first data file and the second data file are compared, and the data written into the first data file and the second data file are recorded or modified according to the comparison result,
when the first data file and the second data file are the same, the first database records the first data file, and the second database records the second data file;
and when the first data file is different from the second data file, modifying the second data file by taking the first data file as a reference, after modification, transmitting and comparing the first data file and the second data file through the database unified interface again until the first data file is the same as the second data file, recording the first data file into the first database, and recording the second data file into the second database.
Further, when the first virtual platform cannot normally run, starting the mirror image device of the second database to copy the second data file into the first sub data file and the second sub data file, comparing the first sub data file with the second sub data file, and inputting or modifying data written in the first sub data file and the second sub data file according to the comparison result,
when the first sub data file and the second sub data file are the same, the first sub data file records the first sub data file, and the second sub data file records the second sub data file;
and when the first sub data file is different from the second sub data file, modifying the second sub data file by taking the first sub data file as a reference, after modification, transmitting and comparing the first sub data file and the second sub data file through the database unified interface again until the first sub data file is the same as the second sub data file, recording the first sub data file by the first sub data file, and recording the second sub data file by the second sub data file.
Furthermore, when the damaged first virtual platform recovers to the normal operation state, the first sub data file writes data into a first recovery data file of the first database through the database unified interface, the second sub data file writes data into a second recovery data file of the second database through the database unified interface, the first recovery data file and the second recovery data file are compared, and the data written into the first recovery data file and the second recovery data file are recorded or modified according to the comparison result,
when the data of the first recovery data file is the same as that of the second recovery data file, the first database records the first recovery data file, the second database records the second recovery data file, and the second database deletes the first subdata file and the second subdata file;
when the data of the first recovery data file is different from that of the second recovery data file, the second recovery data file is modified with the first recovery data file as a standard, the first recovery data file and the second recovery data file are transmitted and compared through a database unified interface again after the modification is completed until the data of the first recovery data file and the data of the second recovery data file are the same, the first database records the first data file, the second database records the second data file, and the second database deletes the first subdata file and the second subdata file.
Further, when the first virtual system platform is deleted and a third virtual system platform is started in a double-active disaster tolerance mode, a third database is arranged in the third virtual system platform, the first sub data file writes data into a third data file of the third database through a database unified interface, meanwhile, the second sub data file writes data into a second recovery data file of the second database through the database unified interface, the second recovery data file and the third data file are compared, and the data written in the second recovery data file and the third data file are recorded or modified according to the comparison result,
when the data of the second recovery data file is the same as that of the third data file, the second database records the second recovery data file, the third database records the third data file, the second database deletes the first sub data file and the second sub data file, and the operating system deletes the first virtual system platform;
and when the data of the second recovery data file is different from that of the third data file, modifying the third data file with the second recovery data file as the standard, transmitting and comparing the second recovery data file and the third data file through the database unified interface again after the modification is finished until the data of the second recovery data file is the same as that of the third data file, inputting the second recovery data file into the second database, inputting the third data file into the third database, deleting the first sub data file and the second sub data file into the second database, and deleting the first virtual system platform by the operating system.
On the other hand, the invention also provides a cross-storage-platform dual-active disaster recovery protection system based on virtualization technology, which comprises:
the operation module is used for starting the virtual module in a double-active disaster recovery mode, receiving a protection system command of the central control module, starting a new virtual system platform according to the protection system command and deleting a paralyzed virtual system platform;
the virtual module is used for starting a plurality of virtual data platforms, each virtual data platform comprises a plurality of databases, each database is used for setting a plurality of data files, and each data file is used for inputting and storing data;
the mirror image module is used for receiving a mirror image command of the central control module and copying data in the data file according to the mirror image command, and the mirror image module is connected with the virtual module;
the data writing module is used for writing data into the data file and outputting a writing result, and the data writing module is connected with the virtual module;
the data comparison module is used for receiving a comparison command of the central control module, comparing the data files according to the comparison command and outputting a comparison result, and the data comparison module is connected with the virtual module;
the data transmission module is used for receiving a data transmission command of the central control module and transmitting data of each data file among the data files according to the data transmission command, and the data transmission module is connected with the virtual module;
and the central control module is used for constructing a data transmission command, receiving a writing result, constructing a comparison command according to the writing result, receiving the comparison result, constructing a modification/input command according to the comparison result, monitoring the running state of each virtual data platform and constructing a protection system command according to the running state of each virtual data platform, and is respectively connected with the data transmission module, the data writing module, the data comparison module, the operation module, the virtual module and the mirror image module.
Further, when the central control module monitors the running state of each virtual data platform and constructs a protection system command according to the running state of each virtual data platform, the protection system command comprises a mirror image command, a command for starting a new virtual system platform, a command for deleting an empty data file and a command for deleting a paralyzed virtual system platform.
Furthermore, when the central control module monitors the running state of each virtual data platform and constructs a protection system command according to the running state of each virtual data platform, when the central control module monitors that the running state of a certain virtual system platform is abnormal, the central control module constructs the mirror image command, the mirror image module receives the mirror image command, copies data files under the virtual system platform in a mirror image mode and writes the copied data into two subdata files by the data writing module, after the data writing is completed, the data writing module sends a writing completion result to the central control module, the hollow module receives the writing completion result and constructs the comparison command to the data comparison module, the data comparison module receives the comparison command and compares the subdata files,
when the subdata files are the same, the data comparison module sends a data identity result, the central control module receives the data identity result and constructs an input command according to the data identity result, and each subdata file receives the input command and inputs the data according to the input command;
when the data files are different, the data comparison module sends different data results, the central control module receives the different data results and constructs a modification command according to the different data results, each data file receives the modification command and modifies the data written into the data file according to the modification command, when the data is modified, one data file serves as the standard, the other data file is modified, after the modification is completed, the data comparison module compares and modifies the data files again until the data files are the same, the data comparison module sends the same data result to the central control module, the central control module receives the same data result and constructs an entry command according to the same data result, and each data file receives the entry command and enters the data according to the entry command.
Further, when the central control module monitors the running state of each virtual data platform and constructs a protection system command according to the running state of each virtual data platform, and when the central control module monitors that the running state of the virtual system platform with abnormal running state is recovered to normal, the central control module constructs a data transmission command, the data transmission module receives the data transmission command and transmits the data of one subdata file to the database under the virtual system platform with normal running state and writes the corresponding recovery data file into the data writing module according to the data transmission command, and simultaneously transmits the data of the other subdata file to the database under the virtual system platform without damage and writes the corresponding recovery data file into the data writing module, after the data writing is completed, the data writing module sends the writing completion result to the central control module, and the hollow module receives the writing completion result and constructs a comparison command to the data comparison module, the data comparison module compares the recovered data files after receiving the comparison command,
when the recovery data files are the same, the data comparison module sends a data identity result, the central control module receives the data identity result and constructs an entry command according to the data identity result, each recovery data file receives the entry command and enters data according to the entry command, the central control module constructs a command for deleting the subdata file, and the database containing the subdata file receives the command for deleting the subdata file and deletes the two subdata files according to the command for deleting the subdata file;
when the recovery data files are different, the data comparison module sends different data results, the central control module receives the different data results and constructs a modification command according to the different data results, each recovery data file receives the modification command and modifies the data written into the recovery data file according to the modification command, when the data is modified, one recovery data file is taken as the reference, the other recovery data file is modified, after the modification is finished, the data comparison module compares and modifies the recovery data files again until the recovery data files are the same, the data comparison module sends the same data result to the central control module, the central control module receives the same data result and constructs an entry command according to the same data result, each recovery data file receives the entry command and enters the data according to the entry command, and the central control module constructs a command for deleting the sub-data file, and the database containing the subdata files receives the command of deleting the subdata files and deletes the two subdata files according to the command of deleting the subdata files.
Further, when the central control module monitors the running state of each virtual data platform and constructs a protection system command according to the running state of each virtual data platform, and when the central control module monitors that the virtual system platform with abnormal running state cannot recover to the normal running state within the normal maintenance time, the central control module constructs a command for starting a new virtual system platform, the operating system module receives the command for starting the new virtual system platform and starts a new virtual system platform in a double-active disaster recovery mode according to the command for starting the new virtual system platform, the new virtual system platform is provided with a new data base, the new data base contains a new data file, after the new virtual system platform is started, the central control module constructs a data transmission command, the data transmission module transmits the data of a subdata file to the new data file according to the data transmission command and writes the data into the new data file by the data writing module, meanwhile, the data of the other subdata file is transmitted to a recovery data file under a virtual system platform with a normal operation state, the data writing module writes the data into the recovery data file, after the data is written, the data writing module sends a writing-in completion result to the central control module, the hollow module receives the writing-in completion result and constructs a comparison command to the data comparison module, after the data comparison module receives the comparison command, the recovery data file and the new data file are compared,
when the recovered data file is the same as the new data file, the data comparison module sends a data identity result, the central control module receives the data identity result and constructs an entry command according to the data identity result, the recovered data file receives the entry command and enters the data into the recovered data file according to the entry command, the new data file receives the entry command and enters the data into the new data file according to the entry command, the central control module constructs a command for deleting the subdata file and a command for deleting the paralyzed virtual system platform, the database containing the subdata file receives the command for deleting the subdata file and deletes the two subdata files according to the command for deleting the subdata file, and the operating system module receives the command for deleting the paralyzed virtual system platform and deletes the virtual system platform with abnormal operation state according to the command for deleting the paralyzed virtual system platform;
when the recovery data file and the new data file are different, the data comparison module sends different data results, the central control module receives the different data results and constructs a modification command according to the different data results, the recovery data file and the new data file receive the modification command and modify the data written in the data file according to the modification command, when the data is modified, the new data file is modified by taking the recovery data file as the standard, after the modification is finished, the data comparison module compares and modifies the recovery data file and the new data file again until the recovery data file and the new data file are the same, the data comparison module sends the same data result to the central control module, the central control module receives the same data result and constructs an entry command according to the same data result, the recovery data file and the new data file receive the entry command and enter the data according to the entry command, meanwhile, the central control module constructs a command of deleting the subdata files and a command of deleting the paralyzed virtual system platform, the database containing the subdata files receives the command of deleting the subdata files and deletes the two subdata files according to the command of deleting the subdata files, and the operating system module receives the command of deleting the paralyzed virtual system platform and deletes the virtual system platform with abnormal running state according to the command of deleting the paralyzed virtual system platform.
Compared with the prior art, the invention has the advantages that the first virtual system platform and the second virtual system platform are started in a double-active disaster recovery mode, the data are stored in the data files in the databases under different virtual system platforms, when one virtual system platform is damaged, the data are copied to the subdata file in the other virtual system platform which is not damaged through mirror image copy to be used as an original data file of a recovered data file, when the damaged virtual system platform recovers the normal operation state, the data of the subdata file are transmitted to the original data file to complete the recovery of the data, when the damaged virtual system platform cannot recover the normal operation state, the new virtual system platform is started to replace the damaged virtual system platform to store the data of the subdata file, and the data are protected by the virtual system platform which is not damaged in the double-active disaster recovery mode, therefore, data can be backed up and protected in time when the virtual system platform normally runs and cannot run normally due to damage, and the protection of the data system can be realized under the condition that the operating system is damaged.
Particularly, the first data file and the second data file are compared before data are recorded into the first data file and the second data file, the data are recorded when the first data file and the second data file are the same, the second data file is modified and compared with the first data file as a standard when the first data file and the second data file are different until the first data file and the second data file are the same, and then the data are recorded, so that data are mistakenly investigated in the data recording process, and the data system is protected in the data recording stage.
Particularly, when the first virtual platform cannot normally run, starting the mirror image device of the second database to copy the second data file into the first sub data file and the second sub data file, comparing, entering or modifying the first sub data file and the second sub data file, when the first sub data file and the second sub data file are the same, the first sub data file enters the first sub data file, the second sub data file enters the second sub data file, when the first sub data file and the second sub data file are different, the second sub data file is modified by taking the first sub data file as a reference, after modification, the first sub data file and the second sub data file are transmitted and compared through the database unified interface again until the first sub data file and the second sub data file are the same, and the first sub data file enters the first sub data file, the second subdata file is recorded by the second subdata file, so that the backup data is mistakenly investigated under the condition that the first virtual platform cannot normally operate, the correctness of the data is ensured under the condition that the first virtual platform cannot normally operate, and the protection of the data system can be realized under the condition that an operating system is damaged.
Particularly, when the damaged first virtual platform recovers to a normal operation state, the first sub-data file writes data into a first recovery data file of a first database through the database unified interface, the second sub-data file writes data into a second recovery data file of a second database through the database unified interface, and the first recovery data file and the second recovery data file are compared, recorded or modified, when the data of the first recovery data file is the same as that of the second recovery data file, the first database records the first recovery data file, the second database records the second recovery data file, the second database deletes the first sub-data file and the second sub-data file, and when the data of the first recovery data file is different from that of the second recovery data file, the second recovery data file is modified by taking the first recovery data file as a reference, after the modification is finished, the first recovery data file and the second recovery data file are transmitted and compared through the database unified interface again until the data of the first recovery data file and the data of the second recovery data file are the same, the first data file is recorded by the first database, the second data file is recorded by the second database, the first subdata file and the second subdata file are deleted by the second database, the recovery data are mistakenly investigated under the condition that the damaged first virtual platform recovers the normal operation state, the correctness of the data is ensured under the condition that the damaged first virtual platform restores to the normal running state, and the first sub data file and the second sub data file are deleted in time, so that the first sub data file and the second sub data file are prevented from occupying an operation memory and influencing the operation of a data protection system, and the data system is protected under the condition that an operating system is damaged.
Particularly, a first virtual system platform is deleted, a third virtual system platform is started in a double-living disaster recovery mode, a third database is arranged in the third virtual system platform, data are written into a third data file of the third database from a first sub data file through a database unified interface, data are written into a second recovery data file of the second database from a second sub data file through the database unified interface, the second recovery data file and the third data file are compared, recorded or modified, when the data of the second recovery data file are the same as the data of the third data file, the second recovery data file is recorded into the second database, the third data file is recorded into the third database, the first sub data file and the second sub data file are deleted from the second database, and when the data of the second recovery data file are different from the data of the third data file, modifying the third data file with the second recovery data file as the standard, transmitting and comparing the second recovery data file and the third data file through a database unified interface again after the modification is finished until the data of the second recovery data file and the third data file are the same, logging the second recovery data file into the second database, logging the third data file into the third database, deleting the first sub-data file and the second sub-data file by the second database, so that under the condition that the damaged first virtual platform cannot recover the normal operation state, a third virtual system platform is built in time to replace the first virtual system platform to protect the data system, the recovery data is mistaken, the correctness of the data is ensured under the condition that the damaged first virtual platform cannot recover the normal operation state, and the first sub-data file and the second sub-data file are deleted in time, the method and the device avoid the first subdata file and the second subdata file from occupying the operation memory and influencing the operation of the data protection system, thereby realizing the protection of the data system under the condition that the operating system is damaged.
Particularly, the operating system starts the virtual data platforms in a double-active disaster recovery mode, the data are stored in a plurality of virtual environments, the central control module monitors the running state of each virtual data platform and constructs commands according to the running of each virtual data platform so as to adjust the working state of each module, and therefore the data can be protected when each virtual system platform runs normally, and when one virtual system platform is damaged and the data stored in the virtual system platform cannot be used, other virtual system platforms can be used and can be protected on the basis, and the data system can be protected under the condition that the operating system is damaged.
Particularly, the central control module monitors the running state of each virtual data platform and constructs a protection system command according to the running state of each virtual data platform, so that the data system can monitor the running state of the data system in real time and protect the data according to the current running state when the running state of the data system changes, and the protection of the data system is realized under the condition that the operating system is damaged.
Particularly, when the central control module monitors that the running state of a certain virtual system platform is abnormal, the central control module constructs the mirror image command, copies data of the data file under the virtual system platform in a mirror image mode, writes the data into two subdata files through the data writing module, compares or modifies the subdata files after the data writing is finished, and records the data, so that the data file can be timely backed up when the running state of the certain virtual system platform is abnormal, the backed-up subdata files are compared or modified and then recorded, the accuracy of the data in the data system is ensured, and the data system is protected under the condition that an operating system is damaged.
Particularly, when the central control module monitors that the running state of the virtual system platform with abnormal running state is recovered, the central control module constructs a data transmission command, transmits the data of one subdata file to the database under the virtual system platform with normal running state and writes the corresponding recovery data file into the data writing module, simultaneously transmits the data of the other subdata file to the database under the virtual system platform without damage and writes the corresponding recovery data file into the data writing module, after the data writing is finished, the recovery data file is compared and modified and then recorded, after the recording of the recovery data file is finished, the central control module constructs a command of deleting the subdata file, the database containing the subdata file receives the command of deleting the subdata file and deletes the two subdata files according to the command of deleting the subdata file, the method can timely recover the double-active disaster recovery mode to protect the data system when the running state of the virtual system platform with abnormal running state is recovered to be normal, and can record the data after the recovery data file is compared or modified to ensure the accuracy of the data in the data system.
Particularly, when the central control module monitors that the virtual system platform with abnormal running state can not recover the normal running state within the normal maintenance time, the central control module constructs a command for starting a new virtual system platform, a new virtual system platform is started in a double-active disaster recovery mode, after the new virtual system platform is started, the central control module constructs a data transmission command, the data transmission module transmits the data of one subdata file to a new data file under the new virtual system platform according to the data transmission command and writes the data into the new data file by the data writing module, simultaneously transmits the data of the other subdata file to a recovery data file under the virtual system platform with normal running state and writes the data into the recovery data file by the data writing module, and after the data writing is finished, the recovery data file and the new data file are compared and modified and then recorded, after the data file and the new data file are recovered and recorded, the central control module constructs a command for deleting the data file and a command for deleting the paralyzed virtual system platform, and deletes the data file and the virtual system platform with abnormal operation state, so that the data system can be protected in a double-active disaster recovery mode when the virtual system platform with abnormal operation state fails to recover the normal operation state within the normal maintenance time, and the data system is recorded after the recovered data file and the new data file are compared or modified, so that the accuracy of data in the data system is ensured, in addition, the data file and the virtual system platform with abnormal operation state are deleted in time after the data file and the new data file are recorded, and the phenomenon that the data system operation speed is reduced because the data file and the virtual system platform with abnormal operation state occupy the memory of the data system is avoided, thereby enabling protection of the data system in the event that the operating system is compromised.
Drawings
Fig. 1 is a schematic structural diagram of a cross-storage platform dual-active disaster recovery protection system based on a virtualization technology in an embodiment of the present invention;
fig. 2 is a flowchart of a cross-storage platform dual-active disaster recovery protection method based on virtualization technology according to an embodiment of the present invention.
Detailed Description
In order that the objects and advantages of the invention will be more clearly understood, the invention is further described below with reference to examples; it should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Preferred embodiments of the present invention are described below with reference to the accompanying drawings. It should be understood by those skilled in the art that these embodiments are only for explaining the technical principle of the present invention, and do not limit the scope of the present invention.
It should be noted that in the description of the present invention, the terms of direction or positional relationship indicated by the terms "upper", "lower", "left", "right", "inner", "outer", etc. are based on the directions or positional relationships shown in the drawings, which are only for convenience of description, and do not indicate or imply that the device or element must have a specific orientation, be constructed in a specific orientation, and be operated, and thus, should not be construed as limiting the present invention.
Furthermore, it should be noted that, in the description of the present invention, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, and may be, for example, fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
The invention provides a cross-storage-platform double-active disaster recovery protection method based on virtualization technology, which comprises the following steps:
starting a first virtual system platform and a second virtual system platform in a double-living disaster tolerance mode, setting a first database in the first virtual system platform, and setting a second database in the second virtual system platform;
simultaneously writing data into a first data file of the first database and a second data file of the second database, comparing the first data file with the second data file, and inputting or modifying the data written in the first data file and the second data file according to a comparison result;
when the first virtual platform cannot normally run, starting mirror image equipment of the second database to copy the second data file into a first sub data file and a second sub data file, comparing the first sub data file with the second sub data file, and inputting or modifying data written in the first sub data file and the second sub data file according to a comparison result;
when the first virtual platform recovers a normal operation state, the first sub data file writes data into a first recovery data file of a first database through the database unified interface, the second sub data file writes data into a second recovery data file of a second database through the database unified interface, the first recovery data file and the second recovery data file are compared, input or modified, and the first recovery data file and the second recovery data file complete input;
when the first virtual platform can not restore the normal operation state, starting the mirror image device of the second database to copy the second data file to the first sub data file and the second sub data file, and when the first sub data file and the second sub data file are compared, input or modified, deleting the first virtual system platform and opening the third virtual system platform in a double-active disaster recovery mode, setting a third database in the third virtual system platform, writing the first sub data file into a third data file of the third database through a database unified interface, meanwhile, writing the second sub data file into a second recovery data file of the second database through the database unified interface, and comparing the second recovery data file with the third data file and inputting or modifying the data written in the second recovery data file and the third data file according to the comparison result.
The data is stored in data files in databases under different virtual system platforms by starting a first virtual system platform and a second virtual system platform in a double-living disaster tolerance mode, when one virtual system platform is damaged, the data is copied to a subdata file in the other virtual system platform which is not damaged through mirror image copying to be used as an original data file of a recovered data file, when the damaged virtual system platform is recovered to a normal operation state, the data of the subdata file is transmitted to an original data file to complete the recovery of the data, when the damaged virtual system platform cannot be recovered to the normal operation state, a new virtual system platform is started to replace the damaged virtual system platform to store the data of the subdata file, and the data is protected with the virtual system platform which is not damaged in the double-living disaster tolerance mode, therefore, data can be backed up and protected in time when the virtual system platform normally runs and cannot run normally due to damage, and the protection of the data system can be realized under the condition that the operating system is damaged.
Specifically, when data is written into a first data file of the first database and a second data file of the second database at the same time, the first data file and the second data file are compared, and the data written into the first data file and the second data file is recorded or modified according to the comparison result,
when the first data file and the second data file are the same, the first database records the first data file, and the second database records the second data file;
and when the first data file is different from the second data file, modifying the second data file by taking the first data file as a reference, after modification, transmitting and comparing the first data file and the second data file through the database unified interface again until the first data file is the same as the second data file, recording the first data file into the first database, and recording the second data file into the second database.
The data logging method comprises the steps of comparing a first data file with a second data file before logging the data into the first data file and the second data file, logging the data when the first data file is the same as the second data file, modifying and comparing the second data file by taking the first data file as a standard when the first data file is different from the second data file until the first data file is the same as the second data file, and logging the data, so that the data is mistakenly investigated in the data logging process, and the data system is protected in the data logging stage.
Specifically, when the first virtual platform cannot normally run, starting the mirror image device of the second database to copy the second data file into the first sub data file and the second sub data file, comparing the first sub data file with the second sub data file, and inputting or modifying data written in the first sub data file and the second sub data file according to the comparison result,
when the first sub data file and the second sub data file are the same, the first sub data file records the first sub data file, and the second sub data file records the second sub data file;
and when the first sub data file is different from the second sub data file, modifying the second sub data file by taking the first sub data file as a reference, after modification, transmitting and comparing the first sub data file and the second sub data file through the database unified interface again until the first sub data file is the same as the second sub data file, recording the first sub data file by the first sub data file, and recording the second sub data file by the second sub data file.
When the first virtual platform cannot normally run, starting mirror image equipment of the second database to copy the second data file into a first sub data file and a second sub data file, comparing, entering or modifying the first sub data file and the second sub data file, when the first sub data file and the second sub data file are the same, entering the first sub data file by the first sub data file, entering the second sub data file by the second sub data file, when the first sub data file and the second sub data file are different, taking the first sub data file as a reference, modifying the second sub data file, after modification, transmitting and comparing the first sub data file and the second sub data file through a unified interface of the database again until the first sub data file and the second sub data file are the same, and entering the first sub data file by the first sub data file, the second subdata file is recorded by the second subdata file, so that the backup data is mistakenly investigated under the condition that the first virtual platform cannot normally operate, the correctness of the data is ensured under the condition that the first virtual platform cannot normally operate, and the protection of the data system can be realized under the condition that an operating system is damaged.
Specifically, when the damaged first virtual platform recovers to the normal operation state, the first sub data file writes data into a first recovery data file of the first database through the database unified interface, the second sub data file writes data into a second recovery data file of the second database through the database unified interface, the first recovery data file and the second recovery data file are compared, and the data written in the first recovery data file and the second recovery data file are recorded or modified according to the comparison result,
when the data of the first recovery data file is the same as that of the second recovery data file, the first database records the first recovery data file, the second database records the second recovery data file, and the second database deletes the first sub data file and the second sub data file;
when the data of the first recovery data file is different from that of the second recovery data file, the second recovery data file is modified with the first recovery data file as a standard, the first recovery data file and the second recovery data file are transmitted and compared through a database unified interface again after the modification is completed until the data of the first recovery data file and the data of the second recovery data file are the same, the first database records the first data file, the second database records the second data file, and the second database deletes the first subdata file and the second subdata file.
When the damaged first virtual platform recovers to a normal operation state, the first sub-data file writes data into a first recovery data file of a first database through a database unified interface, the second sub-data file writes data into a second recovery data file of a second database through the database unified interface, the first recovery data file and the second recovery data file are compared, recorded or modified, when the data of the first recovery data file and the data of the second recovery data file are the same, the first database records the first recovery data file, the second database records the second recovery data file, the second database deletes the first sub-data file and the second sub-data file, and when the data of the first recovery data file and the data of the second recovery data file are different, the second recovery data file is modified by taking the first recovery data file as a reference, after the modification is finished, the first recovery data file and the second recovery data file are transmitted and compared through the database unified interface again until the data of the first recovery data file and the data of the second recovery data file are the same, the first data file is recorded by the first database, the second data file is recorded by the second database, the first subdata file and the second subdata file are deleted by the second database, the recovery data are mistakenly investigated under the condition that the damaged first virtual platform recovers the normal operation state, the correctness of the data is ensured under the condition that the damaged first virtual platform restores to the normal operation state, and the first sub data file and the second sub data file are deleted in time, so that the first sub data file and the second sub data file are prevented from occupying an operation memory and influencing the operation of a data protection system, and the data system is protected under the condition that an operating system is damaged.
Specifically, when a first virtual system platform is deleted and a third virtual system platform is started in a double-living disaster recovery mode, a third database is arranged in the third virtual system platform, data are written into a third data file of the third database by a first sub data file through a database unified interface, data are written into a second recovery data file of the second database by a second sub data file through the database unified interface, the second recovery data file and the third data file are compared, and data written into the second recovery data file and the third data file are recorded or modified according to a comparison result,
when the data of the second recovery data file is the same as that of the third data file, the second database records the second recovery data file, the third database records the third data file, the second database deletes the first sub data file and the second sub data file, and the operating system deletes the first virtual system platform;
and when the data of the second recovery data file is different from that of the third data file, modifying the third data file with the second recovery data file as the standard, transmitting and comparing the second recovery data file and the third data file through the database unified interface again after the modification is finished until the data of the second recovery data file is the same as that of the third data file, inputting the second recovery data file into the second database, inputting the third data file into the third database, deleting the first sub data file and the second sub data file into the second database, and deleting the first virtual system platform by the operating system.
The method comprises the steps of deleting a first virtual system platform, starting a third virtual system platform in a double-living disaster tolerance mode, arranging a third database in the third virtual system platform, writing data of a first sub data file into a third data file of the third database through a database unified interface, simultaneously writing data of a second sub data file into a second recovery data file of the second database through the database unified interface, comparing, inputting or modifying the second recovery data file and the third data file, inputting the second recovery data file into the second database when the data of the second recovery data file is the same as that of the third data file, inputting the third data file into the third database, deleting the first sub data file and the second sub data file from the second database, and when the data of the second recovery data file is different from that of the third data file, modifying the third data file with the second recovery data file as the standard, transmitting and comparing the second recovery data file and the third data file through a database unified interface again after the modification is finished until the data of the second recovery data file and the third data file are the same, logging the second recovery data file into the second database, logging the third data file into the third database, deleting the first sub-data file and the second sub-data file by the second database, so that under the condition that the damaged first virtual platform cannot recover the normal operation state, a third virtual system platform is built in time to replace the first virtual system platform to protect the data system, the recovery data is mistaken, the correctness of the data is ensured under the condition that the damaged first virtual platform cannot recover the normal operation state, and the first sub-data file and the second sub-data file are deleted in time, the method and the device avoid the first subdata file and the second subdata file from occupying the operation memory and influencing the operation of the data protection system, thereby realizing the protection of the data system under the condition that the operating system is damaged.
Referring to fig. 1, the present invention further provides a cross-storage-platform dual-active disaster recovery protection system based on virtualization technology, which includes:
the operation module 1 is used for starting the virtual module 2 in a double-active disaster recovery mode, receiving a protection system command of the central control module 4, starting a new virtual system platform according to the protection system command and deleting a paralyzed virtual system platform;
the virtual module is used for starting a plurality of virtual data platforms, each virtual data platform comprises a plurality of databases, each database is used for setting a plurality of data files, and each data file is used for inputting and storing data;
the mirror image module 3 is used for receiving a mirror image command of the central control module and copying data in the data file according to the mirror image command, and the mirror image module is connected with the virtual module;
the data writing module 6 is used for writing data into the data file and outputting a writing result, and the data writing module is connected with the virtual module;
the data comparison module 5 is used for receiving a comparison command of the central control module, comparing the data files according to the comparison command and outputting a comparison result, and the data comparison module is connected with the virtual module;
the data transmission module 7 is used for receiving a data transmission command of the central control module and transmitting data of each data file among the data files according to the data transmission command, and the data transmission module is connected with the virtual module;
and the central control module is used for constructing a data transmission command, receiving a writing result, constructing a comparison command according to the writing result, receiving the comparison result, constructing a modification/input command according to the comparison result, monitoring the running state of each virtual data platform and constructing a protection system command according to the running state of each virtual data platform, and is respectively connected with the data transmission module, the data writing module, the data comparison module, the operation module, the virtual module and the mirror image module.
The operating system starts the virtual data platforms in a double-active disaster recovery mode, the data are stored in a plurality of virtual environments, the central control module monitors the running state of each virtual data platform and constructs commands according to the running of each virtual data platform so as to adjust the working state of each module, and therefore the data can be protected when each virtual system platform runs normally, and when one virtual system platform is damaged to cause that the data stored in the virtual system platform cannot be used, other virtual system platforms can be used to protect the data on the basis, and the data system is protected under the condition that the operating system is damaged.
Specifically, when the central control module monitors the running state of each virtual data platform and constructs a protection system command according to the running state of each virtual data platform, the protection system command comprises a mirror image command, a command for starting a new virtual system platform, a command for deleting an empty data file and a command for deleting a paralyzed virtual system platform.
The operation state of each virtual data platform is monitored by the central control module, and the protection system command is constructed according to the operation state of each virtual data platform, so that the data system can monitor the operation state of the data system in real time and protect the data according to the current operation state of the data system when the operation state of the data system changes, and the data system is protected under the condition that the operating system is damaged.
Specifically, when the central control module monitors the running state of each virtual data platform and constructs a protection system command according to the running state of each virtual data platform, when the central control module monitors that the running state of one virtual system platform is abnormal, the central control module constructs the mirror image command, the mirror image module receives the mirror image command, the data file under the virtual system platform is subjected to mirror image copy data and written into two subdata files by the data writing module, after the data writing is finished, the data writing module sends a writing finishing result to the central control module, the hollow module receives the writing finishing result and constructs the comparison command to the data comparison module, after the data comparison module receives the comparison command, the subdata files are compared,
when the subdata files are the same, the data comparison module sends a data identity result, the central control module receives the data identity result and constructs an input command according to the data identity result, and each subdata file receives the input command and inputs the data according to the input command;
when the data files are different, the data comparison module sends different data results, the central control module receives the different data results and constructs a modification command according to the different data results, each data file receives the modification command and modifies the data written into the data file according to the modification command, when the data is modified, one data file serves as the standard, the other data file is modified, after the modification is completed, the data comparison module compares and modifies the data files again until the data files are the same, the data comparison module sends the same data result to the central control module, the central control module receives the same data result and constructs an entry command according to the same data result, and each data file receives the entry command and enters the data according to the entry command.
When the central control module monitors that the running state of a certain virtual system platform is abnormal, the central control module constructs the mirror image command, copies data of the data file under the virtual system platform in a mirror image mode, writes the data into two subdata files through the data writing module, compares or modifies the subdata files after the data writing is finished, and records the subdata files, so that the data file can be timely backed up when the running state of the certain virtual system platform is abnormal, the backed-up subdata files are recorded after being compared or modified, the accuracy of the data in the data system is guaranteed, and the data system is protected under the condition that an operating system is damaged.
Specifically, when the central control module monitors the running state of each virtual data platform and constructs a protection system command according to the running state of each virtual data platform, and when the central control module monitors that the running state of the virtual system platform with abnormal running state is recovered to normal, the central control module constructs a data transmission command, the data transmission module receives the data transmission command, transmits the data of one subdata file to the database under the virtual system platform with normal running state recovered according to the data transmission command and writes the corresponding recovered data file into the data writing module, and simultaneously transmits the data of the other subdata file to the database under the virtual system platform without damage and writes the corresponding recovered data file into the data writing module, after the data writing is completed, the data writing module sends the completed writing result to the central control module, and the hollow module receives the completed writing result and constructs a comparison command to the data comparison module, the data comparison module compares the recovered data files after receiving the comparison command,
when the recovery data files are the same, the data comparison module sends a data identity result, the central control module receives the data identity result and constructs an entry command according to the data identity result, each recovery data file receives the entry command and enters the data according to the entry command, the central control module constructs a subdata file deleting command at the same time, and the database containing the subdata files receives the subdata file deleting command and deletes the two subdata files according to the subdata file deleting command;
when the recovery data files are different, the data comparison module sends different data results, the central control module receives the different data results and constructs a modification command according to the different data results, each recovery data file receives the modification command and modifies the data written into the recovery data file according to the modification command, when the data is modified, one recovery data file is taken as the reference, the other recovery data file is modified, after the modification is finished, the data comparison module compares and modifies the recovery data files again until the recovery data files are the same, the data comparison module sends the same data result to the central control module, the central control module receives the same data result and constructs an entry command according to the same data result, each recovery data file receives the entry command and enters the data according to the entry command, and the central control module constructs a command for deleting the sub-data file, and the database containing the subdata files receives the command of deleting the subdata files and deletes the two subdata files according to the command of deleting the subdata files.
When the central control module monitors that the running state of the virtual system platform with abnormal running state is recovered, the central control module constructs a data transmission command, transmits the data of one subdata file to a database under the virtual system platform with normal running state recovered and writes the corresponding recovered data file into the data writing module, simultaneously transmits the data of the other subdata file to a database under the virtual system platform without being damaged and writes the corresponding recovered data file into the data writing module, after the data writing is finished, the recovered data file is compared and modified and then recorded, after the data file recovery is recorded, the central control module constructs a subdata file deletion command, the database containing the subdata file receives the subdata file deletion command and deletes the two subdata files according to the subdata file deletion command, the method can timely recover the double-active disaster recovery mode to protect the data system when the running state of the virtual system platform with abnormal running state is recovered to be normal, and can record the data file after being compared or modified by recovering the data file, thereby ensuring the accuracy of the data in the data system.
Specifically, when the central control module monitors the running state of each virtual data platform and constructs a protection system command according to the running state of each virtual data platform, and when the central control module monitors that the virtual system platform with abnormal running state cannot recover to the normal running state within the normal maintenance time, the central control module constructs a command for starting a new virtual system platform, the operating system module receives the command for starting the new virtual system platform and starts a new virtual system platform in a double-active disaster tolerance mode according to the command for starting the new virtual system platform, the new virtual system platform sets a new database, the new database contains new data files, after the new virtual system platform is started, the central control module constructs a data transmission command, the data transmission module transmits the data of one subdata file to the new data files according to the data transmission command and writes the data into the new data files by the data writing module, meanwhile, the data of the other subdata file is transmitted to a recovery data file under a virtual system platform with a normal operation state, the data writing module writes the data into the recovery data file, after the data is written, the data writing module sends a writing-in completion result to the central control module, the hollow module receives the writing-in completion result and constructs a comparison command to the data comparison module, after the data comparison module receives the comparison command, the recovery data file and the new data file are compared,
when the recovered data file is the same as the new data file, the data comparison module sends a data identity result, the central control module receives the data identity result and constructs an entry command according to the data identity result, the recovered data file receives the entry command and enters the data into the recovered data file according to the entry command, the new data file receives the entry command and enters the data into the new data file according to the entry command, the central control module constructs a command for deleting the subdata file and a command for deleting the paralyzed virtual system platform, the database containing the subdata file receives the command for deleting the subdata file and deletes the two subdata files according to the command for deleting the subdata file, and the operating system module receives the command for deleting the paralyzed virtual system platform and deletes the virtual system platform with abnormal operation state according to the command for deleting the paralyzed virtual system platform;
when the recovery data file and the new data file are different, the data comparison module sends different data results, the central control module receives the different data results and constructs a modification command according to the different data results, the recovery data file and the new data file receive the modification command and modify the data written in the data file according to the modification command, when the data is modified, the new data file is modified by taking the recovery data file as the standard, after the modification is finished, the data comparison module compares and modifies the recovery data file and the new data file again until the recovery data file and the new data file are the same, the data comparison module sends the same data result to the central control module, the central control module receives the same data result and constructs an entry command according to the same data result, the recovery data file and the new data file receive the entry command and enter the data according to the entry command, meanwhile, the central control module constructs a command for deleting the subdata file and a command for deleting the paralyzed virtual system platform, the database containing the subdata file receives the command for deleting the subdata file and deletes the two subdata files according to the command for deleting the subdata file, and the operating system module receives the command for deleting the paralyzed virtual system platform and deletes the virtual system platform with abnormal running state according to the command for deleting the paralyzed virtual system platform.
When the central control module monitors that a virtual system platform with an abnormal running state cannot recover a normal running state within normal maintenance time, the central control module constructs a command for starting a new virtual system platform, a new virtual system platform is started in a double-active disaster recovery mode, after the new virtual system platform is started, the central control module constructs a data transmission command, the data transmission module transmits data of one subdata file to a new data file under the new virtual system platform according to the data transmission command and writes the data into the new data file by the data writing module, simultaneously transmits data of the other subdata file to a recovery data file under the virtual system platform with a normal running state and writes the data into the recovery data file by the data writing module, and after the data writing is finished, the recovery data file and the new data file are compared and modified and then recorded, after the data file and the new data file are recovered and recorded, the central control module constructs a command for deleting the data file and a command for deleting the paralyzed virtual system platform, and deletes the data file and the virtual system platform with abnormal operation state, so that the data system can be protected in a double-active disaster recovery mode when the virtual system platform with abnormal operation state fails to recover the normal operation state within the normal maintenance time, and the data system is recorded after the recovered data file and the new data file are compared or modified, so that the accuracy of data in the data system is ensured, in addition, the data file and the virtual system platform with abnormal operation state are deleted in time after the data file and the new data file are recorded, and the phenomenon that the data system operation speed is reduced because the data file and the virtual system platform with abnormal operation state occupy the memory of the data system is avoided, thereby enabling protection of the data system in the event that the operating system is compromised.
In the practical application process, the specific work flow of the cross-storage-platform double-active disaster recovery protection system based on the virtualization technology is as follows:
when the operation module starts to run, the virtual module is started by the operation system in a double-active disaster recovery mode, and the virtual module comprises a plurality of virtual system platforms. Preferably, when the operating system runs normally, the virtual module includes two virtual system platforms, namely a first virtual system platform and a second virtual system platform, because the two virtual system platforms are started when the operating system runs normally, double-active disaster recovery protection can be realized, and too many virtual system platforms are started to occupy the running memory of the operating system, which results in that the running speed of the operating system is reduced. Each virtual system platform is provided with a plurality of databases. Preferably, when the operating system normally runs, each virtual system platform includes one database, that is, the first virtual system platform includes a first database, and the second virtual system platform includes a second database, because when the operating system normally runs, the two virtual system platforms each set one database to implement double-active disaster recovery protection, and setting too many databases occupies the running memory of the operating system, which results in a slow running speed of the operating system. Each database is provided with a plurality of data files, and it is recommended that each database comprises one data file when the operating system normally operates, namely the first database comprises a first data file, and the second database comprises a second data file. When the data is required to be stored, the data is written into each data file from the outside of the system through the data writing module, after the data is written, the data writing module sends the writing result of the writing completion to the central control module, the hollow module receives the writing result of the writing completion and constructs a comparison command to the data comparison module, after the data comparison module receives the comparison command, the data files are compared,
when the data files are the same, the data comparison module sends a data identity result, the central control module receives the data identity result and constructs an input command according to the data identity result, each data file receives the input command and inputs the data according to the input command,
when the data files are different, the data comparison module sends different data results, the central control module receives the different data results and constructs a modification command according to the different data results, each data file receives the modification command and modifies the data written into the data file according to the modification command, when the data is modified, one data file is taken as the standard, the other data file is modified, after the modification is finished, the data comparison module compares and modifies the data files again until the data files are the same, the data comparison module sends the same data result to the central control module, the central control module receives the same data result and constructs an entry command according to the same data result, and each data file receives the entry command and enters the data according to the entry command;
when the central control module monitors that the running state of a certain virtual system platform is abnormal, the central control module constructs a mirror image command, the mirror image module receives the mirror image command, the data file under the virtual system platform is subjected to mirror image copy data and written into two subdata files by the data writing module, after the data writing is finished, the data writing module sends a writing finishing result to the central control module, the hollow module receives the writing finishing result and constructs a comparison command to the data comparison module, the data comparison module receives the comparison command and compares the subdata files,
when the sub data files are the same, the data comparison module sends a data identity result, the central control module receives the data identity result and constructs an input command according to the data identity result, each sub data file receives the input command and inputs the data according to the input command,
when the sub-data files are different, the data comparison module sends different data results, the central control module receives the different data results and constructs a modification command according to the different data results, each sub-data file receives the modification command and modifies the data written into the sub-data file according to the modification command, when the data is modified, one sub-data file is taken as the standard, the other sub-data file is modified, after the modification is finished, the data comparison module compares and modifies the sub-data files again until the sub-data files are the same, the data comparison module sends the same data result to the central control module, the central control module receives the same data result and constructs an entry command according to the same data result, and each sub-data file receives the entry command and enters the data according to the entry command;
when the central control module monitors that the running state of the virtual system platform with the abnormal running state is recovered to be normal, the central control module constructs a data transmission command, the data transmission module receives the data transmission command, transmits the data of one subdata file to a database under the virtual system platform with the normal running state recovered according to the data transmission command, writes the corresponding recovered data file into the data writing module, simultaneously transmits the data of the other subdata file to the database under the virtual system platform which is not damaged and writes the corresponding recovered data file into the data writing module, after the data writing is completed, the data writing module sends the completed writing result to the central control module, the hollow module receives the completed writing result and constructs a comparison command to the data comparison module, and after the data comparison module receives the comparison command, the recovered data files are compared,
when the recovery data files are the same, the data comparison module sends a data identity result, the central control module receives the data identity result and constructs an entry command according to the data identity result, each recovery data file receives the entry command and enters data according to the entry command, the central control module constructs a command for deleting the subdata file, the database containing the subdata file receives the command for deleting the subdata file and deletes the two subdata files according to the command for deleting the subdata file,
when the recovery data files are different, the data comparison module sends different data results, the central control module receives the different data results and constructs a modification command according to the different data results, each recovery data file receives the modification command and modifies the data written into the recovery data file according to the modification command, when the data is modified, one recovery data file is taken as the reference, the other recovery data file is modified, after the modification is finished, the data comparison module compares and modifies the recovery data files again until the recovery data files are the same, the data comparison module sends the same data result to the central control module, the central control module receives the same data result and constructs an entry command according to the same data result, each recovery data file receives the entry command and enters the data according to the entry command, and the central control module constructs a command for deleting the sub-data file, the database containing the subdata files receives a subdata file deleting command and deletes the two subdata files according to the subdata file deleting command;
when the central control module monitors that a virtual system platform with an abnormal running state cannot recover the normal running state within normal maintenance time, the central control module builds a command for starting a new virtual system platform, the operating system module receives the command for starting the new virtual system platform and starts a new virtual system platform in a double-active disaster recovery mode according to the command for starting the new virtual system platform, the new virtual system platform is provided with a new database, the new database comprises a new data file, after the new virtual system platform is started, the central control module builds a data transmission command, the data transmission module transmits data of one sub-data file to the new data file according to the data transmission command and writes the data into the new data file by the data writing module, and simultaneously transmits the data of the other sub-data file to a recovery data file under the virtual system platform with a normal running state and writes the data into the recovery data file by the data writing module, after the data writing is finished, the data writing module sends a writing-finished result to the central control module, the hollow module receives the writing-finished result and constructs a comparison command to the data comparison module, the data comparison module compares the recovered data file with the new data file after receiving the comparison command,
when the recovery data file and the new data file are the same, the data comparison module sends a data identity result, the central control module receives the data identity result and constructs an input command according to the data identity result, the recovery data file receives the input command and inputs the data into the recovery data file according to the input command, the new data file receives the input command and inputs the data into the new data file according to the input command, the central control module constructs a command for deleting the subdata file and a command for deleting the paralyzed virtual system platform, the database containing the subdata file receives the command for deleting the subdata file and deletes the two subdata files according to the command for deleting the subdata file, the operating system module receives the command for deleting the paralyzed virtual system platform and deletes the virtual system platform with abnormal operating state according to the command for deleting the paralyzed virtual system platform,
when the recovery data file and the new data file are different, the data comparison module sends different data results, the central control module receives the different data results and constructs a modification command according to the different data results, the recovery data file and the new data file receive the modification command and modify the data written in the data file according to the modification command, when the data is modified, the new data file is modified by taking the recovery data file as the standard, after the modification is finished, the data comparison module compares and modifies the recovery data file and the new data file again until the recovery data file and the new data file are the same, the data comparison module sends the same data result to the central control module, the central control module receives the same data result and constructs an entry command according to the same data result, the recovery data file and the new data file receive the entry command and enter the data according to the entry command, meanwhile, the central control module constructs a command for deleting the subdata file and a command for deleting the paralyzed virtual system platform, the database containing the subdata file receives the command for deleting the subdata file and deletes the two subdata files according to the command for deleting the subdata file, and the operating system module receives the command for deleting the paralyzed virtual system platform and deletes the virtual system platform with abnormal running state according to the command for deleting the paralyzed virtual system platform.
Referring to fig. 2, in an actual application process, the cross-storage platform dual-active disaster recovery protection method based on the virtualization technology in the present invention includes the following specific implementation steps:
step S1: the method comprises the steps that a single node runs a unique operating system instance, the operating system instance starts a first virtual system platform and a second virtual system platform in a double-active disaster tolerance mode, the first virtual system platform is provided with a first database, the second virtual platform is provided with a second database, and the first database and the second database exchange and compare data through a database unified interface.
Step S2: when the first virtual system platform and the second virtual platform normally run, the data file is written into the first database and the second database at the same time, after the data file is written, the first data file of the first database and the second data file of the second database are transmitted and compared through the database uniform interface,
when the first data file and the second data file are the same, the first database enters the first data file, the second database enters the second data file,
when the first data file and the second data file are different, the second data file is modified by taking the first data file as a reference, after the modification is finished, the first data file and the second data file are transmitted and compared through a database unified interface again until the first data file and the second data file are the same, the first data file is recorded by the first database, and the second data file is recorded by the second database;
step S3: when the first virtual system platform is damaged to cause the first database to be paralyzed, the second virtual system platform starts mirror image equipment, copies the data mirror image in the second data file and writes the data mirror image into a first sub data file and a second sub data file under the second database, wherein the data is written into the first sub data file in the first sub data file and the second sub data file in the second sub data file, and after the data writing is finished, the first sub data file and the second sub data file are compared,
when the first subdata file and the second subdata file are the same, the first subdata file is recorded by the first subdata file, the second subdata file is recorded by the second subdata file,
when the first sub data file and the second sub data file are different, the second sub data file is modified by taking the first sub data file as a standard, after the modification is finished, the first sub data file and the second sub data file are transmitted and compared through a database unified interface again until the first sub data file and the second sub data file are the same, the first sub data file is recorded into the first sub data file, and the second sub data file is recorded into the second sub data file;
step S4: judging whether the damaged first virtual system platform can recover to a normal operation state within the time limit without influencing the operation of the data system;
step S5: when the damaged first virtual system platform recovers normal operation, the data of the first sub data file is transmitted to the first database which recovers normal operation state through the database unified interface and written into the first recovered data file, meanwhile, the data of the second sub data file is transmitted to the second database through the database unified interface and written into the second recovered data file, after the data writing is completed, the first recovered data file is compared with the second recovered data file,
when the data of the first recovery data file is the same as that of the second recovery data file, the first database records the first recovery data file, the second database records the second recovery data file, and the second database deletes the first sub data file and the second sub data file so as to prevent the first sub data file and the second sub data file from occupying extra memory;
when the data of the first recovery data file is different from that of the second recovery data file, the second recovery data file is modified with the first recovery data file as a reference, the first recovery data file and the second recovery data file are transmitted and compared through a database unified interface again after the modification is completed until the data of the first recovery data file and the data of the second recovery data file are the same, the first database records the first data file, the second database records the second data file, and the second database deletes the first subdata file and the second subdata file so as to prevent the first subdata file and the second subdata file from occupying additional internal memory;
step S6: when the first virtual system platform is damaged, so that the first virtual system platform recovers a normal operation state within a time limit which does not influence the operation of the data system, the second database copies data to the first sub data file and the second sub data file through the mirror image equipment, the operating system example deletes the first virtual system platform, and simultaneously opens the third virtual system platform in a double living disaster tolerance mode, the third virtual platform is provided with a third database, the data of the first sub data file is transmitted to the third database through the database unified interface and written into the third data file, the data of the second sub data file is transmitted to the second database through the database unified interface and written into the second recovery data file, and after the data writing is finished, the second recovery data file is compared with the third data file,
when the data of the second recovery data file is the same as that of the third data file, the second database records the second recovery data file, the third database records the third data file, the second database deletes the first subdata file and the second subdata file, and the operating system deletes the first virtual system platform so as to prevent the first subdata file, the second subdata file and the first virtual system platform from occupying extra memory;
when the data of the second recovery data file is different from that of the third data file, the third data file is modified under the condition that the second recovery data file is taken as a reference, the second recovery data file and the third data file are transmitted and compared again through a database unified interface after the modification is finished until the data of the second recovery data file is the same as that of the third data file, the second recovery data file is recorded into the second database, the third data file is recorded into the third database, the first subdata file and the second subdata file are deleted from the second database, and the first virtual system platform is deleted from the operating system so as to prevent the first subdata file, the second subdata file and the first virtual system platform from occupying extra memory.
In the practical application process, the specific working flow of the cross-storage-platform dual-active disaster recovery protection system based on the virtualization technology is as follows:
when the operation module is started to run, the operation system starts the virtual module in a double-active disaster recovery mode, and the virtual module comprises a plurality of virtual system platforms. Preferably, when the operating system normally operates, the virtual module includes two virtual system platforms, which are the first virtual system platform and the second virtual system platform, respectively, because the dual active disaster recovery protection can be implemented by starting the two virtual system platforms when the operating system normally operates, and starting too many virtual system platforms occupies the operating memory of the operating system, which results in a slow operating speed of the operating system. Each virtual system platform is provided with a plurality of databases. Preferably, when the operating system normally runs, each virtual system platform includes one database, that is, the first virtual system platform includes a first database, and the second virtual system platform includes a second database, because when the operating system normally runs, the two virtual system platforms each set one database to implement double-active disaster recovery protection, and setting too many databases occupies the running memory of the operating system, which results in a slow running speed of the operating system. Each database is provided with a plurality of data files, and it is recommended that each database comprises one data file when the operating system normally operates, namely the first database comprises the first data file, and the second database comprises the second data file. When the data is required to be stored, the data is written into each data file from the outside of the system through the data writing module, after the data is written, the data writing module sends the writing result of the writing completion to the central control module, the hollow module receives the writing result of the writing completion and constructs a comparison command to the data comparison module, after the data comparison module receives the comparison command, the data files are compared,
when the data files are the same, the data comparison module sends a data identity result, the central control module receives the data identity result and constructs an input command according to the data identity result, each data file receives the input command and inputs the data according to the input command,
when the data files are different, the data comparison module sends different data results, the central control module receives the different data results and constructs a modification command according to the different data results, each data file receives the modification command and modifies the data written into the data file according to the modification command, when the data is modified, one data file is taken as the standard, the other data file is modified, after the modification is finished, the data comparison module compares and modifies the data files again until the data files are the same, the data comparison module sends the same data result to the central control module, the central control module receives the same data result and constructs an entry command according to the same data result, and each data file receives the entry command and enters the data according to the entry command;
when the central control module monitors that the running state of a certain virtual system platform is abnormal, the central control module constructs a mirror image command, the mirror image module receives the mirror image command, the data file under the virtual system platform is subjected to mirror image copy data and written into two subdata files by the data writing module, after the data writing is finished, the data writing module sends a writing finishing result to the central control module, the hollow module receives the writing finishing result and constructs a comparison command to the data comparison module, the data comparison module receives the comparison command and compares the subdata files,
when the sub data files are the same, the data comparison module sends a data identity result, the central control module receives the data identity result and constructs an input command according to the data identity result, each sub data file receives the input command and inputs the data according to the input command,
when the sub-data files are different, the data comparison module sends different data results, the central control module receives the different data results and constructs a modification command according to the different data results, each sub-data file receives the modification command and modifies the data written into the sub-data file according to the modification command, when the data is modified, one sub-data file is taken as the standard, the other sub-data file is modified, after the modification is finished, the data comparison module compares and modifies the sub-data files again until the sub-data files are the same, the data comparison module sends the same data result to the central control module, the central control module receives the same data result and constructs an entry command according to the same data result, and each sub-data file receives the entry command and enters the data according to the entry command;
when the central control module monitors that the running state of the virtual system platform with abnormal running state is recovered to normal, the central control module constructs a data transmission command, the data transmission module receives the data transmission command, transmits the data of one subdata file to the database under the virtual system platform with normal running state according to the data transmission command and writes the corresponding recovered data file by the data writing module, simultaneously transmits the data of the other subdata file to the database under the virtual system platform without damage and writes the corresponding recovered data file by the data writing module, after the data writing is completed, the data writing module sends the writing completion result to the central control module, the hollow module receives the writing completion result and constructs a comparison command to the data comparison module, and after the data comparison module receives the comparison command, the recovered data files are compared,
when the recovery data files are the same, the data comparison module sends a data identity result, the central control module receives the data identity result and constructs an entry command according to the data identity result, each recovery data file receives the entry command and enters data according to the entry command, the central control module constructs a command for deleting the subdata file, the database containing the subdata file receives the command for deleting the subdata file and deletes the two subdata files according to the command for deleting the subdata file,
when the recovery data files are different, the data comparison module sends different data results, the central control module receives the different data results and constructs a modification command according to the different data results, each recovery data file receives the modification command and modifies the data written into the recovery data file according to the modification command, when the data is modified, one recovery data file is taken as the reference, the other recovery data file is modified, after the modification is finished, the data comparison module compares and modifies the recovery data files again until the recovery data files are the same, the data comparison module sends the same data result to the central control module, the central control module receives the same data result and constructs an entry command according to the same data result, each recovery data file receives the entry command and enters the data according to the entry command, and the central control module constructs a command for deleting the sub-data file, the database containing the subdata files receives a subdata file deleting command and deletes the two subdata files according to the subdata file deleting command;
when the central control module monitors that a virtual system platform with an abnormal running state cannot recover the normal running state within normal maintenance time, the central control module builds a command for starting a new virtual system platform, the operating system module receives the command for starting the new virtual system platform and starts a new virtual system platform in a double-active disaster recovery mode according to the command for starting the new virtual system platform, the new virtual system platform is provided with a new database, the new database comprises a new data file, after the new virtual system platform is started, the central control module builds a data transmission command, the data transmission module transmits data of one sub-data file to the new data file according to the data transmission command and writes the data into the new data file by the data writing module, and simultaneously transmits the data of the other sub-data file to a recovery data file under the virtual system platform with a normal running state and writes the data into the recovery data file by the data writing module, after the data writing is finished, the data writing module sends a writing-finished result to the central control module, the hollow module receives the writing-finished result and constructs a comparison command to the data comparison module, the data comparison module compares the recovered data file with the new data file after receiving the comparison command,
when the recovery data file and the new data file are the same, the data comparison module sends a data identity result, the central control module receives the data identity result and constructs an input command according to the data identity result, the recovery data file receives the input command and inputs the data into the recovery data file according to the input command, the new data file receives the input command and inputs the data into the new data file according to the input command, the central control module constructs a command for deleting the subdata file and a command for deleting the paralyzed virtual system platform, the database containing the subdata file receives the command for deleting the subdata file and deletes the two subdata files according to the command for deleting the subdata file, the operating system module receives the command for deleting the paralyzed virtual system platform and deletes the virtual system platform with abnormal operating state according to the command for deleting the paralyzed virtual system platform,
when the recovery data file and the new data file are different, the data comparison module sends different data results, the central control module receives the different data results and constructs a modification command according to the different data results, the recovery data file and the new data file receive the modification command and modify the data written in the data file according to the modification command, when the data is modified, the new data file is modified by taking the recovery data file as the standard, after the modification is finished, the data comparison module compares and modifies the recovery data file and the new data file again until the recovery data file and the new data file are the same, the data comparison module sends the same data result to the central control module, the central control module receives the same data result and constructs an entry command according to the same data result, the recovery data file and the new data file receive the entry command and enter the data according to the entry command, meanwhile, the central control module constructs a command for deleting the subdata file and a command for deleting the paralyzed virtual system platform, the database containing the subdata file receives the command for deleting the subdata file and deletes the two subdata files according to the command for deleting the subdata file, and the operating system module receives the command for deleting the paralyzed virtual system platform and deletes the virtual system platform with abnormal running state according to the command for deleting the paralyzed virtual system platform.
So far, the technical solutions of the present invention have been described in connection with the preferred embodiments shown in the drawings, but it is apparent to those skilled in the art that the scope of the present invention is not limited to these specific embodiments. Equivalent changes or substitutions of related technical features can be made by those skilled in the art without departing from the principle of the invention, and the technical scheme after the changes or substitutions can fall into the protection scope of the invention.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention; various modifications and alterations to this invention will become apparent to those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A cross-storage-platform double-active disaster recovery protection method based on virtualization technology is characterized by comprising the following steps:
starting a first virtual system platform and a second virtual system platform in a double-living disaster tolerance mode, setting a first database in the first virtual system platform, and setting a second database in the second virtual system platform;
simultaneously writing data into a first data file of the first database and a second data file of the second database, comparing the first data file with the second data file, and inputting or modifying the data written in the first data file and the second data file according to a comparison result;
when the first virtual platform cannot normally run, starting mirror image equipment of the second database to copy the second data file into a first sub data file and a second sub data file, comparing the first sub data file with the second sub data file, and inputting or modifying data written in the first sub data file and the second sub data file according to a comparison result;
when the first virtual platform recovers a normal operation state, the first sub data file writes data into a first recovery data file of a first database through the database unified interface, the second sub data file writes data into a second recovery data file of a second database through the database unified interface, the first recovery data file and the second recovery data file are compared, input or modified, and the first recovery data file and the second recovery data file complete input;
when the first virtual platform cannot recover the normal operation state, starting the mirror image equipment of the second database to copy the second data file into the first data file and the second data file, comparing the first data file with the second data file, and inputting or modifying the first data file and the second data file according to the comparison result, deleting the first virtual system platform and starting a third virtual system platform in a double-active disaster tolerance mode, setting a third database in the third virtual system platform, writing the data of the first data file into a third data file of the third database through a database unified interface, simultaneously writing the data of the second data file into a second recovery data file of the second database through the database unified interface, comparing the second recovery data file with the third data file, and comparing the second recovery data file with the third data file according to the comparison result And inputting or modifying according to the data written in the file.
2. The virtualization technology-based cross-storage-platform dual-active disaster recovery protection method according to claim 1, wherein when data is written into a first data file of the first database and a second data file of the second database at the same time, and the first data file and the second data file are compared and data written into the first data file and the second data file is entered or modified according to a comparison result,
when the first data file and the second data file are the same, the first database records the first data file, and the second database records the second data file;
and when the first data file is different from the second data file, modifying the second data file by taking the first data file as a reference, after the modification is finished, transmitting and comparing the first data file and the second data file through the database unified interface again until the first data file is the same as the second data file, inputting the first data file by the first database, and inputting the second data file by the second database.
3. The virtualization technology-based cross-storage-platform dual-active disaster recovery protection method according to claim 2, wherein when the first virtual platform fails to operate normally, a mirror device of the second database is started to copy the second data file into the first sub data file and the second sub data file, and the first sub data file and the second sub data file are compared, and data written in the first sub data file and the second sub data file is recorded or modified according to a comparison result,
when the first sub data file and the second sub data file are the same, the first sub data file records the first sub data file, and the second sub data file records the second sub data file;
and when the first sub data file and the second sub data file are different, modifying the second sub data file by taking the first sub data file as a standard, after modification, transmitting and comparing the first sub data file and the second sub data file through the database unified interface again until the first sub data file and the second sub data file are the same, inputting the first sub data file by the first sub data file, and inputting the second sub data file by the second sub data file.
4. The virtualization technology-based cross-storage-platform dual-active disaster recovery protection method according to claim 3, wherein when the damaged first virtual platform recovers to a normal operating state, the first sub data file writes data into a first recovery data file of the first database through the database unified interface, the second sub data file writes data into a second recovery data file of the second database through the database unified interface, and the first recovery data file and the second recovery data file are compared with each other and data written in the first recovery data file and the second recovery data file are recorded or modified according to a comparison result,
when the data of the first recovery data file is the same as that of the second recovery data file, the first database records the first recovery data file, the second database records the second recovery data file, and the second database deletes the first sub data file and the second sub data file;
when the data of the first recovery data file is different from that of the second recovery data file, the second recovery data file is modified by taking the first recovery data file as a reference, the first recovery data file and the second recovery data file are transmitted and compared through a database unified interface again after the modification is finished until the data of the first recovery data file and the data of the second recovery data file are the same, the first database records the first data file, the second database records the second data file, and the second database deletes the first subdata file and the second subdata file.
5. The virtualization technology-based double-active disaster recovery protection method across storage platforms according to claim 4, wherein when the first virtual system platform is deleted and a third virtual system platform is started in a double-active disaster recovery manner, a third database is set in the third virtual system platform, the first sub data file writes data into a third data file of the third database through the database unified interface, the second sub data file writes data into a second recovery data file of the second database through the database unified interface, the second recovery data file and the third data file are compared, and the data written in the second recovery data file and the third data file are recorded or modified according to the comparison result,
when the data of the second recovery data file is the same as that of the third data file, the second database records the second recovery data file, the third database records the third data file, the second database deletes the first sub data file and the second sub data file, and the operating system deletes the first virtual system platform;
and when the data of the second recovery data file is different from that of the third data file, modifying the third data file with the second recovery data file as the standard, transmitting and comparing the second recovery data file and the third data file through the database unified interface again after the modification is finished until the data of the second recovery data file is the same as that of the third data file, inputting the second recovery data file into the second database, inputting the third data file into the third database, deleting the first sub data file and the second sub data file into the second database, and deleting the first virtual system platform by the operating system.
6. A virtualization technology-based cross-storage platform dual-active disaster recovery protection system using the virtualization technology-based cross-storage platform dual-active disaster recovery protection method according to any one of claims 1 to 5, comprising:
the operation module is used for starting the virtual module in a double-active disaster recovery mode, receiving a protection system command of the central control module, starting a new virtual system platform according to the protection system command and deleting a paralyzed virtual system platform;
the virtual module is used for starting a plurality of virtual data platforms, each virtual data platform comprises a plurality of databases, each database is used for setting a plurality of data files, and each data file is used for inputting and storing data;
the mirror image module is used for receiving a mirror image command of the central control module and copying data in the data file according to the mirror image command, and the mirror image module is connected with the virtual module;
the data writing module is used for writing data into the data file and outputting a writing result, and the data writing module is connected with the virtual module;
the data comparison module is used for receiving a comparison command of the central control module, comparing the data files according to the comparison command and outputting a comparison result, and the data comparison module is connected with the virtual module;
the data transmission module is used for receiving a data transmission command of the central control module and transmitting data of each data file among the data files according to the data transmission command, and the data transmission module is connected with the virtual module;
and the central control module is used for constructing a data transmission command, receiving a writing result, constructing a comparison command according to the writing result, receiving the comparison result, constructing a modification/input command according to the comparison result, monitoring the running state of each virtual data platform and constructing a protection system command according to the running state of each virtual data platform, and is respectively connected with the data transmission module, the data writing module, the data comparison module, the operation module, the virtual module and the mirror image module.
7. The virtualization technology-based cross-storage-platform dual-active disaster recovery protection system according to claim 6, wherein when the central control module monitors the operating status of each virtual data platform and constructs a protection system command according to the operating status of each virtual data platform, the protection system command comprises a mirror image command, a command to start a new virtual system platform, a command to delete an empty data file, and a command to delete a paralyzed virtual system platform.
8. The virtualization technology-based cross-storage platform dual-active disaster recovery protection system according to claim 7, wherein the central control module monitors the operation status of each virtual data platform and constructs a protection system command according to the operation status of each virtual data platform, when the central control module monitors that the operation status of a virtual system platform is abnormal, the central control module constructs the mirror command, the mirror module receives the mirror command, mirror copies data files under the virtual system platform and writes the copied data into two sub-data files by the data writing module, after the data writing is completed, the data writing module sends a writing completion result to the central control module, the hollow module receives the writing completion result and constructs the comparison command to the data comparison module, and after the data comparison module receives the comparison command, the sub-data files are compared,
when the subdata files are the same, the data comparison module sends a data identity result, the central control module receives the data identity result and constructs an input command according to the data identity result, and each subdata file receives the input command and inputs the data according to the input command;
when the data files are different, the data comparison module sends different data results, the central control module receives the different data results and constructs a modification command according to the different data results, each data file receives the modification command and modifies the data written into the data file according to the modification command, when the data is modified, one data file serves as the standard, the other data file is modified, after the modification is completed, the data comparison module compares and modifies the data files again until the data files are the same, the data comparison module sends the same data result to the central control module, the central control module receives the same data result and constructs an entry command according to the same data result, and each data file receives the entry command and enters the data according to the entry command.
9. The virtualization technology-based cross-storage-platform dual-active disaster recovery protection system according to claim 8, wherein the central control module monitors the operation status of each virtual data platform and constructs a protection system command according to the operation status of each virtual data platform, when the central control module monitors that the operation status of the virtual system platform with the abnormal previous operation status returns to normal, the central control module constructs a data transmission command, the data transmission module receives the data transmission command and transmits the data of one sub-data file to the database under the virtual system platform with the normal operation status restored according to the data transmission command and writes the corresponding restored data file into the data writing module, and simultaneously transmits the data of the other sub-data file to the database under the virtual system platform without being damaged and writes the corresponding restored data file into the data writing module, after the data writing is finished, the data writing module sends a finished writing result to the central control module, the hollow module receives the finished writing result and constructs a comparison command to the data comparison module, the data comparison module compares the recovered data files after receiving the comparison command,
when the recovery data files are the same, the data comparison module sends a data identity result, the central control module receives the data identity result and constructs an entry command according to the data identity result, each recovery data file receives the entry command and enters data according to the entry command, the central control module constructs a command for deleting the subdata file, and the database containing the subdata file receives the command for deleting the subdata file and deletes the two subdata files according to the command for deleting the subdata file;
when the recovery data files are different, the data comparison module sends different data results, the central control module receives the different data results and constructs modification commands according to the different data results, each recovery data file receives the modification commands and modifies the data written in the recovery data file according to the modification commands, when the data is modified, one recovery data file is taken as the reference, the other recovery data file is modified, after the modification is finished, the data comparison module compares and modifies the recovery data files again until the recovery data files are the same, the data comparison module sends the same data results to the central control module, the central control module receives the same data results and constructs an entry command according to the same data results, each recovery data file receives the entry command and enters the data according to the entry command, and the central control module constructs a command for deleting the sub-data files, and the database containing the subdata files receives a subdata file deleting command and deletes the two subdata files according to the subdata file deleting command.
10. The virtualization technology-based cross-storage-platform double-active disaster recovery protection system according to claim 9, wherein the central control module monitors the operating status of each virtual data platform and constructs a protection system command according to the operating status of each virtual data platform, when the central control module monitors that a virtual system platform with an abnormal operating status fails to return to a normal operating status within a normal maintenance time, the central control module constructs a command to open a new virtual system platform, the operating system module receives the command to open the new virtual system platform and opens a new virtual system platform in a double-active disaster recovery manner according to the command to open the new virtual system platform, the new virtual system platform sets a new database, the new database contains a new data file, after the new virtual system platform is opened, the central control module constructs a data transmission command according to the data transmission command, the data transmission module transmits data of a sub data file to the new data file, and the data writing module writes the number of the data file into the data file Writing a new data file, simultaneously transmitting the data of the other subdata file to a recovery data file under a virtual system platform with a normal operation state, writing the data into the recovery data file by a data writing module, after the data is written, sending a writing completion result to a central control module by the data writing module, receiving the writing completion result by a hollow module, constructing a comparison command to a data comparison module, comparing the recovery data file with the new data file after the comparison command is received by the data comparison module,
when the recovered data file is the same as the new data file, the data comparison module sends a data identity result, the central control module receives the data identity result and constructs an entry command according to the data identity result, the recovered data file receives the entry command and enters the data into the recovered data file according to the entry command, the new data file receives the entry command and enters the data into the new data file according to the entry command, the central control module constructs a command for deleting the subdata file and a command for deleting the paralyzed virtual system platform, the database containing the subdata file receives the command for deleting the subdata file and deletes the two subdata files according to the command for deleting the subdata file, and the operating system module receives the command for deleting the paralyzed virtual system platform and deletes the virtual system platform with abnormal operation state according to the command for deleting the paralyzed virtual system platform;
when the recovery data file and the new data file are different, the data comparison module sends different data results, the central control module receives the different data results and constructs a modification command according to the different data results, the recovery data file and the new data file receive the modification command and modify the data written in the data file according to the modification command, when the data is modified, the new data file is modified by taking the recovery data file as the standard, after the modification is finished, the data comparison module compares and modifies the recovery data file and the new data file again until the recovery data file and the new data file are the same, the data comparison module sends the same data result to the central control module, the central control module receives the same data result and constructs an entry command according to the same data result, the recovery data file and the new data file receive the entry command and enter the data according to the entry command, meanwhile, the central control module constructs a command for deleting the subdata file and a command for deleting the paralyzed virtual system platform, the database containing the subdata file receives the command for deleting the subdata file and deletes the two subdata files according to the command for deleting the subdata file, and the operating system module receives the command for deleting the paralyzed virtual system platform and deletes the virtual system platform with abnormal running state according to the command for deleting the paralyzed virtual system platform.
CN202210787844.XA 2022-07-06 2022-07-06 Cross-storage-platform double-active disaster recovery protection method and system based on virtualization technology Active CN115080316B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210787844.XA CN115080316B (en) 2022-07-06 2022-07-06 Cross-storage-platform double-active disaster recovery protection method and system based on virtualization technology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210787844.XA CN115080316B (en) 2022-07-06 2022-07-06 Cross-storage-platform double-active disaster recovery protection method and system based on virtualization technology

Publications (2)

Publication Number Publication Date
CN115080316A true CN115080316A (en) 2022-09-20
CN115080316B CN115080316B (en) 2023-01-31

Family

ID=83257523

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210787844.XA Active CN115080316B (en) 2022-07-06 2022-07-06 Cross-storage-platform double-active disaster recovery protection method and system based on virtualization technology

Country Status (1)

Country Link
CN (1) CN115080316B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103647849A (en) * 2013-12-24 2014-03-19 华为技术有限公司 Method and device for migrating businesses and disaster recovery system
CN107797888A (en) * 2017-11-06 2018-03-13 长沙曙通信息科技有限公司 A kind of continuous data protection system data rollback implementation method
CN108880874A (en) * 2018-06-06 2018-11-23 郑州云海信息技术有限公司 A kind of pair of server virtualization platform carries out the method, apparatus and equipment of disaster tolerance
CN109117146A (en) * 2017-06-22 2019-01-01 中兴通讯股份有限公司 Automatic deployment method, device, storage medium and the computer equipment of cloud platform duoble computer disaster-tolerance system
CN110825562A (en) * 2019-09-16 2020-02-21 北京京东尚科信息技术有限公司 Data backup method, device, system and storage medium
CN112100003A (en) * 2020-10-10 2020-12-18 苏州浪潮智能科技有限公司 Virtualized disk double-active disaster recovery method, device and system
CN113391950A (en) * 2021-05-20 2021-09-14 广西飞创信息科技有限公司 Method and system for efficient disaster recovery protection
US20210373761A1 (en) * 2019-07-18 2021-12-02 Pure Storage, Inc. Leveraging Distinct Storage Tiers In A Virtual Storage System
CN113946474A (en) * 2021-10-29 2022-01-18 蜂巢科技(南通)有限公司 Efficient disaster tolerance protection method and disaster tolerance processing system for storage system

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103647849A (en) * 2013-12-24 2014-03-19 华为技术有限公司 Method and device for migrating businesses and disaster recovery system
WO2015096500A1 (en) * 2013-12-24 2015-07-02 华为技术有限公司 Service migration method and device and disaster tolerance system
CN109117146A (en) * 2017-06-22 2019-01-01 中兴通讯股份有限公司 Automatic deployment method, device, storage medium and the computer equipment of cloud platform duoble computer disaster-tolerance system
CN107797888A (en) * 2017-11-06 2018-03-13 长沙曙通信息科技有限公司 A kind of continuous data protection system data rollback implementation method
CN108880874A (en) * 2018-06-06 2018-11-23 郑州云海信息技术有限公司 A kind of pair of server virtualization platform carries out the method, apparatus and equipment of disaster tolerance
US20210373761A1 (en) * 2019-07-18 2021-12-02 Pure Storage, Inc. Leveraging Distinct Storage Tiers In A Virtual Storage System
CN110825562A (en) * 2019-09-16 2020-02-21 北京京东尚科信息技术有限公司 Data backup method, device, system and storage medium
CN112100003A (en) * 2020-10-10 2020-12-18 苏州浪潮智能科技有限公司 Virtualized disk double-active disaster recovery method, device and system
CN113391950A (en) * 2021-05-20 2021-09-14 广西飞创信息科技有限公司 Method and system for efficient disaster recovery protection
CN113946474A (en) * 2021-10-29 2022-01-18 蜂巢科技(南通)有限公司 Efficient disaster tolerance protection method and disaster tolerance processing system for storage system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
吴礼乐: "基于双活容灾存储技术的云计算数据中心的设计及应用", 《电子设计工程》 *

Also Published As

Publication number Publication date
CN115080316B (en) 2023-01-31

Similar Documents

Publication Publication Date Title
JP4415610B2 (en) System switching method, replica creation method, and disk device
US7017003B2 (en) Disk array apparatus and disk array apparatus control method
EP1569120B1 (en) Computer system for recovering data based on priority of the data
US6557089B1 (en) Backup by ID-suppressed instant virtual copy then physical backup copy with ID reintroduced
CN100440155C (en) Method and apparatus for creating a virtual data copy
EP3179359B1 (en) Data sending method, data receiving method, and storage device
EP0902923B1 (en) Method for independent and simultaneous access to a common data set
US7415586B2 (en) Data backup method and system
US8214333B2 (en) Storage system for managing a log of access
EP1387269A1 (en) Backup system and method of generating a checkpoint for a database
CN105049258B (en) The data transmission method of network disaster tolerance system
CN103034564A (en) Data disaster tolerance demonstration and practicing method and data disaster tolerance demonstration and practicing device and system
US7260739B2 (en) Method, apparatus and program storage device for allowing continuous availability of data during volume set failures in a mirrored environment
CN111177122A (en) Database backup method, device, equipment and computer readable storage medium
US8423776B2 (en) Storage systems and data storage method
US7013317B2 (en) Method for backup and storage system
CN101136940B (en) Method and system for backup of hierarchically structured storage pools
CN103502970B (en) A kind of method of operating of key-value pair and device
CN115080316B (en) Cross-storage-platform double-active disaster recovery protection method and system based on virtualization technology
US20090164839A1 (en) Storage control apparatus and storage control method
JP2004272318A (en) System changeover system, processing method therefor, and processing program therefor
CN113467717B (en) Dual-machine volume mirror image management method, device and equipment and readable storage medium
KR102303895B1 (en) Database Replication System With Improved Database Replication
JP2853527B2 (en) Automatic file failure recovery system
CN107707402B (en) Management system and management method for service arbitration in distributed system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 530025, Shop 215, 2nd Floor, Building 13, Ronghe and Yuelanshan, No. 5 Changhong Road, Qingxiu District, Nanning City, Guangxi Zhuang Autonomous Region

Patentee after: Feichuang Information Technology Co.,Ltd.

Country or region after: China

Address before: 530022 shop 215, floor 2, building 13, Ronghe yuelanshan, No. 5, Changhong Road, Qingxiu District, Nanning City, Guangxi Zhuang Autonomous Region

Patentee before: Guangxi feichuang Information Technology Co.,Ltd.

Country or region before: China