CN112463455B - Disaster recovery exercise method, device, equipment and readable storage medium - Google Patents

Disaster recovery exercise method, device, equipment and readable storage medium Download PDF

Info

Publication number
CN112463455B
CN112463455B CN202011422693.5A CN202011422693A CN112463455B CN 112463455 B CN112463455 B CN 112463455B CN 202011422693 A CN202011422693 A CN 202011422693A CN 112463455 B CN112463455 B CN 112463455B
Authority
CN
China
Prior art keywords
exercise
host
disaster recovery
data
original
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.)
Active
Application number
CN202011422693.5A
Other languages
Chinese (zh)
Other versions
CN112463455A (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.)
Sangfor Technologies Co Ltd
Original Assignee
Sangfor Technologies 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 Sangfor Technologies Co Ltd filed Critical Sangfor Technologies Co Ltd
Priority to CN202011422693.5A priority Critical patent/CN112463455B/en
Publication of CN112463455A publication Critical patent/CN112463455A/en
Application granted granted Critical
Publication of CN112463455B publication Critical patent/CN112463455B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/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
    • 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/1458Management of the backup or restore process
    • G06F11/1464Management of the backup or restore process for networked environments

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Hardware Redundancy (AREA)

Abstract

The application discloses a disaster recovery exercise method, device, equipment and readable storage medium. The method disclosed by the application comprises the following steps: acquiring a task of disaster recovery exercise of an operating original host; determining the type of the task according to the data synchronization condition corresponding to the task; determining exercise data corresponding to the task in the standby site of the original host according to the type; based on the exercise data, an exercise master identical to the original master is created in the standby site, and the exercise master is started to check the availability of the exercise master. The disaster recovery exercise scheme provided by the application does not influence the normal operation of the business on the original host, and because the exercise data required by the disaster recovery exercise are executed based on the data synchronization condition corresponding to the disaster recovery exercise task, manual operation is not needed, so that the disaster recovery exercise efficiency can be improved. Correspondingly, the disaster recovery exercise device, the disaster recovery exercise equipment and the readable storage medium have the technical effects.

Description

Disaster recovery exercise method, device, equipment and readable storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a disaster recovery exercise method, apparatus, device, and readable storage medium.
Background
At present, when disaster recovery exercise is performed on a cloud host, the cloud host is required to be powered off, and then data required by the exercise are manually copied to corresponding standby sites. After the backup site recovers to obtain a new cloud host, the new cloud host is utilized to replace the original cloud host, whether the new cloud host is successfully recovered is checked, and then the original cloud host needs to be returned. Therefore, the conventional disaster recovery exercise scheme can influence the normal operation of the business on the cloud host, and the disaster recovery exercise efficiency is lower due to the manual operation.
Therefore, how to implement the disaster recovery exercise scheme without affecting the host business is a problem that needs to be solved by those skilled in the art.
Disclosure of Invention
In view of the foregoing, an object of the present application is to provide a disaster recovery exercise method, apparatus, device and readable storage medium, so as to implement a disaster recovery exercise scheme that does not affect a host service. The specific scheme is as follows:
in a first aspect, the present application provides a disaster recovery exercise method, including:
acquiring a task of disaster recovery exercise of an operating original host;
determining the type of the task according to the data synchronization condition corresponding to the task;
determining exercise data corresponding to the task in a standby site of the original host according to the type;
and creating an exercise host which is identical to the original host in the standby site based on the exercise data, and starting the exercise host to check the availability of the exercise host.
Preferably, the determining the type of the task according to the data synchronization condition corresponding to the task includes:
if the data synchronization condition is instant synchronization, determining that the type is instant backup exercise; otherwise, determining the type as the history backup exercise.
Preferably, the determining, in the backup site of the primary host according to the type, the exercise data corresponding to the task includes:
if the type is the instant backup exercise, determining the exercise data according to the data backup mode of the original host;
and if the type is the historical backup exercise, determining all backup data of the original host in the standby site as the exercise data.
Preferably, the determining the exercise data according to the data backup mode of the original host includes:
if the data backup mode is CDP backup, when the RPO state accords with a preset condition, determining all backup data of the original host in the current backup site as the exercise data;
and if the data backup mode is not CDP backup, backing up the drilling data in the original host to the backup site.
Preferably, before the step of backing up the exercise data in the primary host to the backup site, the method further includes:
judging whether the original host can start disaster recovery exercise or not;
and if so, locking the original host computer into a disaster recovery exercise progress state, and executing the step of backing up the exercise data in the original host computer to the standby site.
Preferably, after the drilling host which is completely the same as the original host is created in the standby site based on the drilling data, the method further comprises:
and unlocking the original host to be in a disaster recovery drilling completion state.
Preferably, the method further comprises:
and configuring the network where the standby site is located according to the original network of the original host so as to obtain the exercise network which is completely the same as the original network.
Preferably, the method further comprises:
and deleting the exercise record corresponding to the task after the disaster recovery exercise is completed.
Preferably, if there are multiple original hosts and the multiple original hosts belong to the same service group, after creating the exercise host completely identical to each original host, starting each exercise host one by one according to the starting priority of each original host in the service group to which each original host belongs, and recording the service group to which each exercise host belongs;
if a plurality of original hosts belong to different service groups, after the exercise hosts which are completely the same as each original host are created, starting each exercise host one by one according to the service priority of the service group and the starting priority of each original host in the service group, and recording the service group to which each exercise host belongs.
In a second aspect, the present application provides a disaster recovery exercise device, including:
the acquisition module is used for acquiring a task of disaster recovery exercise of the running original host;
the task type determining module is used for determining the type of the task according to the data synchronization condition corresponding to the task;
the exercise data determining module is used for determining exercise data corresponding to the task in the standby site of the original host according to the type;
and the creation module is used for creating the exercise host which is completely the same as the original host in the standby site based on the exercise data and starting the exercise host so as to check the availability of the exercise host.
In a third aspect, the present application provides a disaster recovery exercise device, comprising:
a memory for storing a computer program;
and the processor is used for executing the computer program to realize the disaster recovery exercise method disclosed by the prior art.
In a fourth aspect, the present application provides a readable storage medium storing a computer program, where the computer program, when executed by a processor, implements the disaster recovery exercise method disclosed above.
According to the scheme, the application provides a disaster recovery exercise method, which comprises the following steps: acquiring a task of disaster recovery exercise of an operating original host; determining the type of the task according to the data synchronization condition corresponding to the task; determining exercise data corresponding to the task in a standby site of the original host according to the type; and creating an exercise host which is identical to the original host in the standby site based on the exercise data, and starting the exercise host to check the availability of the exercise host.
Therefore, the disaster recovery exercise can be performed on the running original host, in the process of disaster recovery exercise, the task type is determined according to the data synchronization condition corresponding to the disaster recovery exercise task, so that exercise data required by the disaster recovery exercise are determined in the standby site according to the task type, the exercise host which is completely the same as the original host is newly created, and the original host is still running at the moment, namely: instead of replacing the original host with a newly created exercise host, the newly created exercise host is allowed to coexist with the original host. Therefore, the disaster recovery exercise scheme provided by the application does not influence the normal operation of the business on the original host, and because the exercise data required by the disaster recovery exercise are executed based on the data synchronization condition corresponding to the disaster recovery exercise task, manual operation is not needed, so that the disaster recovery exercise efficiency can be improved.
Correspondingly, the disaster recovery exercise device, the disaster recovery exercise equipment and the readable storage medium have the technical effects.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present application, and that other drawings may be obtained according to the provided drawings without inventive effort to a person skilled in the art.
FIG. 1 is a flow chart of a disaster recovery exercise method disclosed in the present application;
FIG. 2 is a schematic diagram of a batch disaster recovery exercise scheme disclosed in the present application;
FIG. 3 is a flow chart of another disaster recovery exercise disclosed in the present application;
fig. 4 is a flow chart of generating an exercise network disclosed in the present application;
FIG. 5 is a flow chart of cleaning exercise records disclosed herein;
FIG. 6 is a schematic diagram of a disaster recovery exercise device disclosed in the present application;
FIG. 7 is a schematic diagram of a disaster recovery exercise device disclosed in the present application;
fig. 8 is a schematic diagram of another disaster recovery exercise device disclosed in the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
At present, the conventional disaster recovery exercise scheme can influence the normal operation of the business on the cloud host, and the disaster recovery exercise efficiency is lower due to the fact that manual operation is required. Therefore, the disaster recovery exercise scheme is provided, the disaster recovery exercise scheme which does not influence the host business is realized, and the disaster recovery exercise efficiency is improved.
Referring to fig. 1, an embodiment of the present application discloses a disaster recovery exercise method, including:
s101, acquiring a task of disaster recovery exercise of an operating original host.
In this embodiment, the task is created by a user management interface based on an SCP (Sangfor Cloud Platform, deep belief cloud computing platform), and the task includes a cloud host currently required to perform disaster recovery exercise, data required to be backed up by exercise, a backup position of the data, a backup mode, a data synchronization condition of the task, and the like. The SCP platform can be used for managing a plurality of HCIs (deep belief super fusion platform), and one HCI is used as a standby site for disaster recovery protection of the cloud host. Multiple hosts may be included in one HCI.
It should be noted that, the original host is provided with a corresponding HCI as its backup site, and in the normal operation process of the original host, the data generated and stored on the original host is synchronized to the HCI in a preset backup manner, so that when the original host fails, the original host is restored based on the HCI, and the continuity of service operation is ensured.
S102, determining the type of the task according to the data synchronization condition corresponding to the task.
The data synchronization conditions of the tasks can be instant synchronization and non-instant synchronization. The instant synchronization is as follows: the drill data and the data currently generated and stored by the original host are required to be synchronized as much as possible. Non-instant synchronization is: the exercise data is generated and stored by the original host at a certain time in the past, and the exercise data is not required to be synchronized with the data currently generated and stored by the original host.
Accordingly, the types of disaster recovery drilling tasks can be instant backup drilling and historical backup drilling. The instant backup exercise is as follows: the drill data and the data currently generated and stored by the original host are required to be synchronized as much as possible. History backup exercise is: the exercise data is generated and stored by the original host at a certain time in the past, and the exercise data is not required to be synchronized with the data currently generated and stored by the original host. The exercise data is the data which needs to be backed up from the original host and is used for disaster recovery exercise of the original host currently.
In a specific embodiment, determining the type of the task according to the data synchronization condition corresponding to the task includes: if the data synchronization condition is instant synchronization, determining that the type is instant backup exercise; otherwise, determining the type as the history backup drilling.
S103, determining exercise data corresponding to the task in the standby site of the original host according to the type.
In a specific embodiment, determining exercise data corresponding to a task in a standby site of an original host according to a type includes: if the type is the instant backup exercise, determining exercise data according to the data backup mode of the original host; if the type is history backup exercise, determining all backup data of an original host in the current backup site as exercise data, namely, executing the current disaster recovery exercise task without deliberately backing up the data, and directly using the data backed up before in the backup site.
In a specific embodiment, determining exercise data according to a data backup mode of an original host includes: if the data backup mode is CDP (Continuous Data Protection ) backup, when the RPO (Recovery Point Objective, recovery point target) state meets the preset condition, determining all backup data of the original host in the current backup site as exercise data; if the data backup mode is not CDP backup, the drilling data in the original host computer is backed up to the backup site. At this time, the exercise data and the data currently generated and stored by the original host are required to be synchronized as much as possible, and it is required to wait until the RPO state meets a preset condition (that is, the difference between the exercise data and the data currently generated and stored by the original host meets the preset condition), or directly perform data backup (although the data on the original host can be periodically synchronized to the backup site, in order to minimize the difference between the two data, improve the backup efficiency, reduce the backup data volume, and at this time, backup the difference data between the two data) so as to minimize the difference between the exercise data and the data currently generated and stored by the original host.
It should be noted that, to ensure smooth completion of the disaster recovery exercise task, the primary host that needs to perform the disaster recovery exercise may be locked, so as to avoid failure of the disaster recovery exercise caused by maintenance, update, and other operations performed on the primary host by other personnel. Therefore, in one embodiment, before backing up the exercise data in the original host to the backup site, the method further includes: judging whether the original host can start disaster recovery exercise; if yes, locking the original host machine into a disaster recovery drilling progress state, and executing the step of backing up drilling data in the original host machine to the standby site. Correspondingly, after the drilling host which is completely the same as the original host is created in the standby site based on the drilling data, the method further comprises the following steps: and unlocking the original host to be in a disaster recovery drilling completion state.
Wherein, judge whether former host computer can start disaster recovery exercise, include: judging whether the original host is in a disaster recovery exercise progress state and a host abnormal state or judging whether the original host is executing a task mutually exclusive with the disaster recovery exercise.
And S104, creating an exercise host which is completely the same as the original host in the standby site based on the exercise data, and starting the exercise host to check the availability of the exercise host.
It should be noted that, a task may perform disaster recovery exercise on multiple primary hosts at the same time. If there are multiple original hosts and the multiple original hosts belong to the same service group, after the exercise hosts which are completely the same as each original host are created, starting each exercise host one by one according to the starting priority of each original host in the service group to which each original host belongs, and recording the service group to which each exercise host belongs. For example: the number of the original hosts is 3, and all the original hosts belong to the service group A, so that 3 exercise hosts can be created, the 3 exercise hosts are started one by one according to the starting priority of the 3 original hosts, and the 3 exercise hosts are recorded to belong to the service group A.
If there are multiple original hosts and the multiple original hosts belong to different service groups, after the exercise host which is completely the same as each original host is created, starting each exercise host one by one according to the service priority of the service group and the starting priority of each original host in the service group to which each original host belongs, and recording the service group to which each exercise host belongs. For example: the original host has 3: the original host 1, the original host 2 and the original host 3, wherein the original host 1 and the original host 2 belong to a service group B, the original host 3 belongs to a service group C, after 3 exercise hosts (the exercise host 1, the exercise host and the exercise host 3) are created, which service group is started first is determined according to the service priorities of the service group B and the service group C, then each exercise host is started one by one in the service group according to the starting priorities of each original host in the service group, and the exercise host 1 and the exercise host 2 belong to the service group B and the exercise host 3 belongs to the service group C are recorded. Different drilling hosts can correspond to the same standby site or different standby sites.
In one specific embodiment, the method further comprises: and configuring the network where the standby site is located according to the original network of the original host computer so as to obtain the exercise network which is completely the same as the original network. The configuration of the network where the backup site is located is that: and generating a new route, a new switch and other network nodes with the same positions, functions and the like in the original network, and connecting the new route, the new switch, the standby site and the other network nodes to obtain the exercise network which is completely the same as the original network.
In one specific embodiment, the method further comprises: and deleting the exercise record corresponding to the task after the disaster recovery exercise is completed. The drill record includes: the exercise host, the exercise network, the grouping of exercise hosts, and other information generated when performing tasks.
Therefore, according to the embodiment of the application, disaster recovery exercise can be performed on the running original host, in the process of disaster recovery exercise, the task type is determined according to the data synchronization condition corresponding to the disaster recovery exercise task, so that exercise data required by the disaster recovery exercise are determined in the standby site according to the task type, and accordingly the exercise host which is completely the same as the original host is newly created, and the original host still operates at the moment, namely: instead of replacing the original host with a newly created exercise host, the newly created exercise host is allowed to coexist with the original host. Therefore, the disaster recovery exercise scheme provided by the application does not influence the normal operation of the business on the original host, and because the exercise data required by the disaster recovery exercise are executed based on the data synchronization condition corresponding to the disaster recovery exercise task, manual operation is not needed, so that the disaster recovery exercise efficiency can be improved.
The embodiment of the application discloses a scheme for performing disaster recovery exercise in batches. According to the scheme, disaster recovery exercise is carried out on the cloud hosts in the service groups, an exercise network isolated from a production network (an original network where an original host is located) is generated, and records generated by the exercise at the time can be cleaned by one key later, so that the disaster recovery exercise flow is simplified, and the efficiency is improved.
Referring to fig. 2, a disaster recovery exercise task is a recovery plan, where the recovery plan includes a plurality of service groups, and each service group includes a plurality of cloud hosts (i.e., original hosts) that need to perform disaster recovery exercises. The execution of the recovery plan needs to lock the service group (i.e., lock the cloud host performing disaster recovery exercise as the disaster recovery exercise progress state) so as to prevent other operations from affecting the disaster recovery exercise process. The service group execution stage needs to record grouping information of each service so as to group the exercise host after the exercise host is created and obtained. The cloud host execution stage needs to provide resources (exercise data, data backup locations, network resource configuration information, etc.) required for creating an exercise host, and record relevant information (affiliated backup sites, etc.) of the exercise host.
After each drilling host is created and pulled up, the drilling network is configured based on the standby site to which each drilling host belongs, and network resource information of the drilling network is recorded. The drilling network is not connected with any physical network card and is not connected with the production network, so that the production environment is not affected. After that, the user can manually check the availability of each exercise host, and after the checking is finished, the user can clean the exercise resources generated by the exercise at this time through the function of ending the exercise in the user management interface.
Referring to fig. 3, any cloud host in the present disaster recovery exercise task can perform disaster recovery exercise accordingly.
1. Locking a cloud host which needs disaster recovery exercise, and setting the state of the cloud host into exercise. And recording resource information (such as ID and name) required by the drill (i.e. drill host) and setting the record state as in the creation, and determining the task type according to the data synchronization condition of the task.
2. If the real-time synchronous data is not needed, the task type is no_sync; if the data needs to be synchronized immediately and the cloud host uses CDP to backup the data, the task type is wait_ CDP; if the data needs to be synchronized immediately, but the cloud host backs up the data in other ways, the task type is sync_backup.
3. If the task type is sync_backup, checking whether the cloud host can start disaster recovery drilling. If the cloud host state is abnormal or disaster recovery exercise is already performed, the exercise task fails. If the cloud host can start disaster recovery exercise, immediately backing up data required by the exercise to the standby site.
4. If the task type is wait_ cdp, the RPO state is detected at regular time until the RPO state is detected to meet the preset condition, and the data required by the exercise are considered to be ready in the standby site.
5. If the task type is no_sync, it is considered that data synchronized to the standby site in the past can be used as data required for the exercise. Data synchronized to the backup site in the past may also be obtained using CDP backup.
6. For the data required by the exercise, if the data is obtained by using the CDP backup, the cloud host is newly built and restored from the CDP backup (i.e. the exercise machine is created), and if the data is obtained by using the ordinary backup, the cloud host is newly built and restored from the ordinary backup (i.e. the exercise machine is created).
7. The configuration of the disaster recovery backup machine (i.e. the cloud host) is used to modify the configuration of the exercise machine (such as the configuration of the CPU, the memory, the network, etc.) so as to keep the exercise machine and the cloud host consistent.
8. Updating the record state of the drilling machine to finish the creation, starting the drilling machine, unlocking the disaster recovery state of the cloud host, and setting the state to finish the drilling.
When executing the startup task of the drilling machine, it is necessary to check whether the drilling machine with high priority is started or not, and after waiting for the drilling machine with high priority to start up, the drilling machine with low priority is started up. The priority is ordered according to two factors, the importance of the service group and the host initiation priority.
Referring to fig. 4, fig. 4 is a flowchart of generating an exercise network. The exercise network generation step comprises the following steps:
1. and obtaining topology information of the current network of the standby site, wherein the topology information is generated according to the existing configuration of the cloud host.
2. And traversing the network of the standby site by adopting a strategy of depth-first search to filter configuration information of network nodes, routes, switches and the like involved in the drilling, and copying a drilling network which is the same as the production network by means of the configuration information and the existing configuration of the cloud host.
3. Topology nodes required in the exercise network are generated, and network resources of the topology nodes are recorded, wherein the nodes comprise exercise machines, routers and switches.
4. The switches and routers that have been generated are validated.
5. Because the topology nodes are automatically generated, topology links between nodes need to be created after validation.
6. Setting IP information of the topological node.
Referring to fig. 5, the process of cleaning the exercise record includes:
1. and acquiring all uncleaned resource records (including exercise hosts, cloud host groups, network devices and the like) of the exercise from a resource record list generated during the exercise.
2. Cleaning the drilling cloud host:
if the cloud host still exists, the cloud host needs to be moved to the recycle bin first and then thoroughly deleted from the recycle bin. After deletion, the resource record is set as deleted.
If the cloud host is moved to the recycle bin, the corresponding drill is completely deleted from the recycle bin directly. After deletion, the resource record is set as deleted.
If the cloud host has been completely deleted, only the resource record needs to be set as deleted.
3. And cleaning the cloud host group and setting the corresponding resource record as deleted. If the packet has been deleted in advance, the deletion action is skipped.
4. And cleaning network equipment in the drilling network, and setting the corresponding resource record as deleted. If the network device has been deleted in advance, the deletion action is skipped.
Therefore, in the embodiment, the disaster recovery exercise is performed on the cloud hosts in the plurality of service groups, the exercise network isolated from the production network is generated, and the record generated by the present exercise can be cleaned by one key, so that the disaster recovery exercise flow is simplified, the efficiency is improved, and the disaster recovery exercise scheme which does not influence the user service and is easy and convenient to operate is realized.
The following describes a disaster recovery exercise device provided in the embodiments of the present application, and the disaster recovery exercise device described below and the disaster recovery exercise method described above may be referred to each other.
Referring to fig. 6, an embodiment of the present application discloses a disaster recovery exercise device, including:
the acquiring module 601 is configured to acquire a task of performing disaster recovery exercise on an operating original host;
the task type determining module 602 is configured to determine a task type according to a data synchronization condition corresponding to the task;
the exercise data determining module 603 is configured to determine exercise data corresponding to a task in a standby site of the primary host according to a type;
the creating module 604 is configured to create an exercise host that is identical to the original host in the standby site based on the exercise data, and start the exercise host to check availability of the exercise host.
In one embodiment, the task type determination module is specifically configured to:
if the data synchronization condition is instant synchronization, determining that the type is instant backup exercise; otherwise, determining the type as the history backup drilling.
In one specific embodiment, the exercise data determination module includes: :
the first determining unit is used for determining exercise data according to the data backup mode of the original host computer if the type is instant backup exercise;
and the second determining unit is used for determining all backup data of the original host in the current standby site as exercise data if the type is history backup exercise.
In a specific embodiment, the first determining unit is specifically configured to:
if the data backup mode is CDP backup, when the RPO state accords with the preset condition, determining all backup data of the original host in the current backup site as exercise data;
if the data backup mode is not CDP backup, the drilling data in the original host computer is backed up to the backup site.
In one specific embodiment, the exercise data determination module further includes:
a judging unit for judging whether the original host can start disaster recovery exercise;
and the execution unit is used for locking the original host machine into a disaster recovery exercise progress state if the original host machine can start the disaster recovery exercise, and executing the step of backing up exercise data in the original host machine to the standby site.
In one specific embodiment, the method further comprises:
and the unlocking module is used for unlocking the original host to be in a disaster recovery drilling completion state.
In one specific embodiment, the method further comprises:
and the exercise network generation module is used for configuring the network where the standby site is located according to the original network of the original host computer so as to obtain the exercise network which is completely the same as the original network.
In one specific embodiment, the method further comprises:
and the cleaning module is used for deleting the exercise record corresponding to the task after disaster recovery exercise is completed.
In a specific embodiment, if there are multiple original hosts and the multiple original hosts belong to the same service group, after creating the exercise host completely identical to each original host, starting each exercise host one by one according to the starting priority of each original host in the service group to which each exercise host belongs, and recording the service group to which each exercise host belongs; if there are multiple original hosts and the multiple original hosts belong to different service groups, after the exercise host which is completely the same as each original host is created, starting each exercise host one by one according to the service priority of the service group and the starting priority of each original host in the service group to which each original host belongs, and recording the service group to which each exercise host belongs.
The more specific working process of each module and unit in this embodiment may refer to the corresponding content disclosed in the foregoing embodiment, and will not be described herein.
Therefore, the present embodiment provides a disaster recovery exercise device, where the disaster recovery exercise scheme provided by the device does not affect the normal operation of the service on the original host, and because the exercise data required by the disaster recovery exercise is executed based on the data synchronization condition corresponding to the disaster recovery exercise task, no manual operation is required, so that the disaster recovery exercise efficiency can be improved.
The following describes a disaster recovery exercise device provided in the embodiments of the present application, and the disaster recovery exercise device described below and the disaster recovery exercise method and apparatus described above may be referred to each other.
Referring to fig. 7, an embodiment of the present application discloses a disaster recovery exercise device, including:
a memory 701 for storing a computer program;
a processor 702 for executing the computer program to implement the method disclosed in any of the embodiments above.
Referring to fig. 8, fig. 8 is a schematic diagram of another disaster recovery exercise device provided in this embodiment, where the disaster recovery exercise device may have a relatively large difference due to different configurations or performances, and may include one or more processors (central processing units, CPU) 322 (e.g., one or more processors) and a memory 332, and one or more storage media 330 (e.g., one or more mass storage devices) storing application programs 342 or data 344. Wherein the memory 332 and the storage medium 330 may be transitory or persistent. The program stored on the storage medium 330 may include one or more modules (not shown), each of which may include a series of instruction operations in the data processing apparatus. Still further, central processor 322 may be configured to communicate with storage medium 330 to execute a series of instruction operations in storage medium 330 on disaster recovery exercise device 301.
Disaster recovery exercise device 301 can also include one or more power supplies 326, one or more wired or wireless network interfaces 350, one or more input/output interfaces 358, and/or one or more operating systems 341. For example, windows ServerTM, mac OS XTM, unixTM, linuxTM, freeBSDTM, etc.
In fig. 8, an application 342 may be a program for performing the disaster recovery exercise method, and data 344 may be data required or generated for performing the disaster recovery exercise method.
The steps in the disaster recovery exercise method described above may be implemented by the structure of the disaster recovery exercise device.
The following describes a readable storage medium provided in the embodiments of the present application, and the readable storage medium described below and the disaster recovery exercise method, apparatus and device described above may be referred to each other.
A readable storage medium storing a computer program, wherein the computer program when executed by a processor implements the disaster recovery exercise method disclosed in the foregoing embodiment. For specific steps of the method, reference may be made to the corresponding contents disclosed in the foregoing embodiments, and no further description is given here.
Reference to "first," "second," "third," "fourth," etc. (if present) herein is used to distinguish similar objects from each other and does not necessarily describe a particular order or sequence. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments described herein may be implemented in other sequences than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed or inherent to such process, method, or apparatus.
It should be noted that the description herein of "first," "second," etc. is for descriptive purposes only and is not to be construed as indicating or implying a relative importance or implying an indication of the number of technical features being indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In addition, the technical solutions of the embodiments may be combined with each other, but it is necessary to base that the technical solutions can be realized by those skilled in the art, and when the technical solutions are contradictory or cannot be realized, the combination of the technical solutions should be regarded as not exist and not within the protection scope of the present application.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, so that the same or similar parts between the embodiments are referred to each other.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. The software modules may be disposed in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of readable storage medium known in the art.
The principles and embodiments of the present application are described herein with specific examples, the above examples being provided only to assist in understanding the methods of the present application and their core ideas; meanwhile, as those skilled in the art will have modifications in the specific embodiments and application scope in accordance with the ideas of the present application, the present description should not be construed as limiting the present application in view of the above.

Claims (11)

1. A disaster recovery exercise method, comprising:
acquiring a task of disaster recovery exercise of an operating original host;
determining the type of the task according to the data synchronization condition corresponding to the task;
determining exercise data corresponding to the task in a standby site of the original host according to the type;
based on the exercise data, an exercise host which is completely the same as the original host is created in the standby site, and the exercise host is started to check the availability of the exercise host, so that the normal operation of the business on the original host is not affected; the exercise host and the original host coexist;
if the type is the instant backup exercise and the data backup mode of the original host is not CDP backup, judging whether the original host can start disaster recovery exercise; and if so, locking the original host computer into a disaster recovery drilling progress state, and backing up the drilling data in the original host computer to the standby site.
2. The disaster recovery exercise method of claim 1, wherein determining the type of the task according to the data synchronization condition corresponding to the task comprises:
if the data synchronization condition is instant synchronization, determining that the type is instant backup exercise; otherwise, determining the type as the history backup exercise.
3. The disaster recovery exercise method according to claim 2, wherein if the type is a history backup exercise, all backup data of the original host in the backup site at present is determined as the exercise data.
4. The disaster recovery exercise method according to claim 3, wherein if the data backup mode is CDP backup, when the RPO status is in compliance with a preset condition, determining all backup data of the original host in the backup site as the exercise data.
5. The disaster recovery exercise method according to claim 4, wherein after creating an exercise host exactly identical to the original host in the backup site based on the exercise data, further comprising:
and unlocking the original host to be in a disaster recovery drilling completion state.
6. The disaster recovery exercise method of any one of claims 1 to 5, further comprising:
and configuring the network where the standby site is located according to the original network of the original host so as to obtain the exercise network which is completely the same as the original network.
7. The disaster recovery exercise method of claim 6, further comprising:
and deleting the exercise record corresponding to the task after the disaster recovery exercise is completed.
8. The disaster recovery exercise method according to claim 1, wherein,
if a plurality of original hosts belong to the same service group, after the exercise hosts which are completely the same as each original host are created, starting each exercise host one by one according to the starting priority of each original host in the service group to which each original host belongs, and recording the service group to which each exercise host belongs;
if a plurality of original hosts belong to different service groups, after the exercise hosts which are completely the same as each original host are created, starting each exercise host one by one according to the service priority of the service group and the starting priority of each original host in the service group, and recording the service group to which each exercise host belongs.
9. A disaster recovery exercise device, comprising:
the acquisition module is used for acquiring a task of disaster recovery exercise of the running original host;
the task type determining module is used for determining the type of the task according to the data synchronization condition corresponding to the task;
the exercise data determining module is used for determining exercise data corresponding to the task in the standby site of the original host according to the type;
the creation module is used for creating an exercise host which is completely the same as the original host in the standby site based on the exercise data, and starting the exercise host so as to check the availability of the exercise host without influencing the normal operation of the business on the original host; the exercise host and the original host coexist;
if the type is the instant backup exercise and the data backup mode of the original host is not CDP backup, judging whether the original host can start disaster recovery exercise; and if so, locking the original host computer into a disaster recovery drilling progress state, and backing up the drilling data in the original host computer to the standby site.
10. A disaster recovery exercise device, comprising:
a memory for storing a computer program;
a processor for executing the computer program to implement the disaster recovery exercise method as claimed in any one of claims 1 to 8.
11. A readable storage medium for storing a computer program, wherein the computer program when executed by a processor implements the disaster recovery exercise method of any one of claims 1 to 8.
CN202011422693.5A 2020-12-08 2020-12-08 Disaster recovery exercise method, device, equipment and readable storage medium Active CN112463455B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011422693.5A CN112463455B (en) 2020-12-08 2020-12-08 Disaster recovery exercise method, device, equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011422693.5A CN112463455B (en) 2020-12-08 2020-12-08 Disaster recovery exercise method, device, equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN112463455A CN112463455A (en) 2021-03-09
CN112463455B true CN112463455B (en) 2024-02-23

Family

ID=74800961

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011422693.5A Active CN112463455B (en) 2020-12-08 2020-12-08 Disaster recovery exercise method, device, equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN112463455B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102142998A (en) * 2011-03-22 2011-08-03 辽宁国兴科技有限公司 Backup interactive method based on remote on-line data disaster tolerance and system for executing method
CN103984309A (en) * 2014-05-09 2014-08-13 浙江中烟工业有限责任公司 Cigarette production system with disaster tolerance function and disaster tolerance exercise method thereof
CN105955836A (en) * 2016-05-09 2016-09-21 深圳市前海云端容灾信息技术有限公司 Cold-hot backup automatic walkthrough multifunction system
CN109710453A (en) * 2017-10-26 2019-05-03 深圳市沃土科技有限公司 A kind of continuous data store method
CN110727501A (en) * 2019-09-29 2020-01-24 上海英方软件股份有限公司 Practicing method and system based on virtual machine backup data

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140181040A1 (en) * 2012-12-21 2014-06-26 Zetta, Inc. Client application software for on-line backup and disaster recovery
US10228962B2 (en) * 2015-12-09 2019-03-12 Commvault Systems, Inc. Live synchronization and management of virtual machines across computing and virtualization platforms and using live synchronization to support disaster recovery

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102142998A (en) * 2011-03-22 2011-08-03 辽宁国兴科技有限公司 Backup interactive method based on remote on-line data disaster tolerance and system for executing method
CN103984309A (en) * 2014-05-09 2014-08-13 浙江中烟工业有限责任公司 Cigarette production system with disaster tolerance function and disaster tolerance exercise method thereof
CN105955836A (en) * 2016-05-09 2016-09-21 深圳市前海云端容灾信息技术有限公司 Cold-hot backup automatic walkthrough multifunction system
CN109710453A (en) * 2017-10-26 2019-05-03 深圳市沃土科技有限公司 A kind of continuous data store method
CN110727501A (en) * 2019-09-29 2020-01-24 上海英方软件股份有限公司 Practicing method and system based on virtual machine backup data

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于云计算的网络数据容灾关键技术的研究;刘军;《中国优秀硕士论文 信息科技》;全文 *
异构容灾一机完成――NetApp推出ReplicatorX企业级复制软件;每周电脑报(26);全文 *

Also Published As

Publication number Publication date
CN112463455A (en) 2021-03-09

Similar Documents

Publication Publication Date Title
US9405590B2 (en) Method, apparatus, and system for issuing partition balancing subtask
CN103164295B (en) Enterprise information technology (IT) business virtualization disaster recovery method based on zettabyte file system (ZFS) and kernel-based virtual machine (KVM) kernel virtual underlying system
JP2007140700A (en) Computer system, management computer, storage system and backup management method
CN112463450B (en) Incremental backup management method, system, electronic equipment and storage medium
CN107656705B (en) Computer storage medium and data migration method, device and system
CN109271376A (en) Database upgrade method, apparatus, equipment and storage medium
CN104793981B (en) A kind of online snapshot management method and device of cluster virtual machine
CN110928728A (en) Virtual machine copying and switching method and system based on snapshot
CN111666266A (en) Data migration method and related equipment
CN112463455B (en) Disaster recovery exercise method, device, equipment and readable storage medium
CN112367186B (en) Fault protection method and device based on 0penStack bare computer
CN114356711A (en) Database fault self-healing method, system and related device
CN109725916B (en) Topology updating system and method for stream processing
CN118018463A (en) Fault processing method, device, equipment and readable storage medium
CN110858168A (en) Cluster node fault processing method and device and cluster node
WO2014094296A1 (en) Distributed storage control method, device, and system
CN115878361A (en) Node management method and device for database cluster and electronic equipment
CN111581221B (en) Method for redundant storage and reconstruction of information of distributed multi-station fusion system
CN111324513B (en) Monitoring management method and system for artificial intelligence development platform
CN112231150B (en) Method and device for recovering fault database in database cluster
CN107710165A (en) Method and apparatus for the request of memory node synchronous service
CN108599982B (en) Data recovery method and related equipment
CN112667449B (en) Cluster management method and device
CN116938881B (en) Method, system, equipment and readable storage medium for realizing dynamic IP pool
CN113190344B (en) Method and device for dynamic reconfiguration deployment of neural network for software defined satellite

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