Backup virtual machine data backup method, system, electronic device and storage medium

By entering single-user mode when the backup virtual machine is started, the energy consumption and resource waste problems in the activation state of the backup virtual machine are solved, and low-energy consumption and low-cost backup virtual machine management is achieved.

CN119645738BActive Publication Date: 2025-08-29DISJIE (BEIJING) DATA MANAGEMENT TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202510173452.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-02-17
Publication Date
2025-08-29
Estimated Expiration
2045-02-17

AI Technical Summary

Technical Problem

In cloud computing and virtualization technologies, backup virtual machines remain active for easy inspection and failover, resulting in waste of energy consumption and computing resources, increasing operational costs and adversely affecting the data center environment.

Method used

When the backup virtual machine is first started, it enters single-user mode through the default configuration file of the boot program, and only the target service execution file is run to set network information. Other services are not started, and the network connection status is detected through the main server, reducing energy consumption and computing resource usage.

Benefits of technology

It significantly reduces the energy consumption and computing resource usage of backup virtual machines, reduces operational costs, avoids adverse effects on the data center environment, and ensures the normality of network connections.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119645738B_ABST
    Figure CN119645738B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for backing up virtual machine data, comprising the following steps: the backup virtual machine receives a startup instruction; the backup virtual machine reads a default configuration file of a boot program; the backup virtual machine runs the default configuration file to start up and enter single-user mode; the backup virtual machine reads a target service execution file from a startup directory in single-user mode and runs the target service execution file; the target service execution file reads a network information file in a target setting directory and sets network information according to the network information file. The present invention only requires setting network information when the backup virtual machine is first started, so that when the backup virtual machine is not needed, the backup virtual machine does not need to run other functions, significantly reducing energy consumption and avoiding occupying additional computing resources. This not only reduces operating costs but also avoids adverse effects on the environment of the data center. The present invention also discloses a system, electronic device, and computer-readable storage medium for implementing the above method.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data storage, and in particular to a method and system for backing up virtual machine data, an electronic device, and a storage medium. Background Art

[0002] Backup data plays a crucial role in modern data storage and management systems. To ensure business continuity and data security, enterprises typically store a primary copy of critical data in a primary virtual machine (VM). They also create backup copies of this data and store them in separate VMs. This separate storage strategy aims to prevent single points of failure. If the primary VM or its data center fails, data and services can be quickly restored by rapidly launching the backup VM, effectively responding to catastrophic events.

[0003] However, managing backup data is not without its challenges. To ensure the validity and availability of backup data, regular health checks must be performed on backup VMs. These checks include, but are not limited to, verifying the integrity of the backup data, confirming the operating status of the VM's operating system, and detecting any issues that could affect VM startup or data recovery. This process is crucial for ensuring a seamless failover to the backup environment when needed and is a core step in implementing a disaster recovery plan.

[0004] With the increasing popularity of cloud computing and virtualization technologies, energy efficiency has become a key indicator of data center operational effectiveness. In practice, keeping backup virtual machines active at all times facilitates immediate inspection and failover, but significantly increases energy consumption. Active virtual machines consume significant power, generate excess heat, and require additional computing resources, increasing operational costs and potentially negatively impacting the data center environment. Summary of the Invention

[0005] In order to solve the above problems existing in the prior art, the present invention provides a method, system, electronic device and storage medium for backing up virtual machine data. The technical problem to be solved by the present invention is achieved through the following technical solutions:

[0006] A first aspect of an embodiment of the present invention provides a method for backing up virtual machine data, comprising the following steps:

[0007] The backup virtual machine receives a startup instruction;

[0008] The backup virtual machine reads a default configuration file of the boot program; wherein the default configuration file includes single-user mode parameters;

[0009] The backup virtual machine runs the default configuration file to start up and enter single-user mode;

[0010] The backup virtual machine reads the target service execution file from the startup directory of the single-user mode and runs the target service execution file;

[0011] The target service execution file reads the network information file in the target setting directory and sets the network information according to the network information file.

[0012] In one embodiment of the present invention, before the backup virtual machine receives the startup instruction, the method further includes:

[0013] The local server deletes the original service execution file in response to the instruction to delete the original service execution file in the startup directory of the single-user mode of the backup virtual machine;

[0014] The local server stores the target service execution file, the target setting directory, and the network information file in response to an instruction to add a target service execution file in a startup directory in single-user mode of the backup virtual machine and an instruction to add a target setting directory and a network information file in single-user mode;

[0015] The local server modifies the default configuration file in response to the instruction to add a single-user mode parameter to the default configuration file of the boot program of the backup virtual machine.

[0016] In one embodiment of the present invention, the method further comprises:

[0017] The main server sends an ICMP echo request message to the IP address of the network information at a preset interval;

[0018] The primary server detects whether an ICMP echo reply message of the backup virtual machine corresponding to the IP address of the network information is received.

[0019] In one embodiment of the present invention, the method further comprises:

[0020] The primary server sends a disaster recovery instruction to the backup virtual machine;

[0021] The backup virtual machine receives the disaster recovery instruction; wherein the disaster recovery instruction instructs to switch the single-user mode to the multi-user mode;

[0022] The backup virtual machine switches to multi-user mode according to the disaster recovery instruction;

[0023] Back up the virtual machine for disaster recovery.

[0024] A second aspect of an embodiment of the present invention provides a virtual machine data backup system, comprising: a backup virtual machine;

[0025] The backup virtual machine is used to receive a startup instruction;

[0026] The backup virtual machine is used to read a default configuration file of the boot program; wherein the default configuration file includes single-user mode parameters;

[0027] The backup virtual machine is used to run the default configuration file to start up and enter single-user mode;

[0028] The backup virtual machine is used to read the target service execution file from the startup directory of the single-user mode and run the target service execution file;

[0029] The target service execution file reads the network information file in the target setting directory and sets the network information according to the network information file.

[0030] In one embodiment of the present invention, a local server is further included;

[0031] The local server is configured to delete the original service execution file in response to an instruction to delete the original service execution file in the startup directory of the single-user mode of the backup virtual machine;

[0032] The local server is configured to store the target service execution file, the target setting directory, and the network information file in response to an instruction to add a target service execution file in a startup directory in single-user mode of the backup virtual machine and an instruction to add a target setting directory and a network information file in single-user mode;

[0033] The local server is configured to modify the default configuration file in response to an instruction to add a single-user mode parameter to the default configuration file of the boot program of the backup virtual machine.

[0034] In one embodiment of the present invention, it further includes a main server;

[0035] The main server is used to send an ICMP echo request message to the IP address of the network information at a preset interval;

[0036] The primary server is configured to detect whether an ICMP echo reply message of the backup virtual machine corresponding to the IP address of the network information is received.

[0037] In one embodiment of the present invention, the primary server is further configured to send a disaster recovery instruction to the backup virtual machine;

[0038] The backup virtual machine is further configured to receive the disaster recovery instruction; wherein the disaster recovery instruction instructs switching the single-user mode to the multi-user mode;

[0039] The backup virtual machine is further configured to switch to a multi-user mode according to the disaster recovery instruction;

[0040] The backup virtual machine is also used for disaster recovery operations.

[0041] A third aspect of an embodiment of the present invention provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and runnable on the processor. When the processor executes the program, a method for backing up virtual machine data provided by the first aspect of an embodiment of the present invention is implemented.

[0042] A fourth aspect of an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method for backing up virtual machine data provided by the first aspect of the embodiment of the present invention is implemented.

[0043] Beneficial effects of the present invention:

[0044] The present invention enters single-user mode when the backup virtual machine is first started, and the default configuration file in the boot program is used to boot the program. In single-user mode, fewer programs are run, which can reduce the energy consumption of the backup virtual machine and occupy fewer computing resources. At the same time, after entering single-user mode, only the target service execution file is run, that is, the backup virtual machine only starts the service in the target service execution file, and other services are not started. The target service execution file is used to set network information, so that when the backup virtual machine is first started, only the network information needs to be set, and no other services need to be started. The backup virtual machine completes the setting of network information, so that when the backup virtual machine is not needed, the main server can be used to detect whether the network connection status of the backup virtual machine is normal. The backup virtual machine does not need to run other functions, which significantly reduces energy consumption, saves a lot of electricity resources, and avoids occupying additional computing resources. This not only reduces operating costs, but also avoids adverse effects on the environment of the data center.

[0045] Other features and advantages of the present invention will be described in the following description, and in part will become apparent from the description, or will be understood by practicing the present invention. The purposes and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the written description, claims, and drawings.

[0046] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:

[0048] Figure 1 A flowchart of a method for backing up virtual machine data provided by an embodiment of the present invention;

[0049] Figure 2 The present invention provides a block diagram of a virtual machine data backup system. DETAILED DESCRIPTION

[0050] The present invention will be further described in detail below with reference to specific examples, but the embodiments of the present invention are not limited thereto.

[0051] like Figure 1 As shown, a first aspect of an embodiment of the present invention provides a method for backing up virtual machine data, comprising the following steps:

[0052] Step 11: The backup virtual machine receives a startup instruction.

[0053] Step 12: The backup virtual machine reads the default configuration file of the boot program.

[0054] The default configuration file includes single-user mode parameters.

[0055] Step 13: The backup virtual machine starts up according to the default configuration file and enters single-user mode.

[0056] Step 14: The backup virtual machine reads the target service execution file from the startup directory in the single-user mode and runs the target service execution file.

[0057] Step 15: The target service execution file reads the network information file in the target setting directory and sets the network information according to the network information file.

[0058] In this embodiment, when the backup virtual machine is first started, the default configuration file in the boot program enters single-user mode by default. There are fewer programs running in single-user mode, which can reduce the energy consumption of the backup virtual machine and occupy fewer computing resources. At the same time, after entering single-user mode, only the target service execution file is run, that is, the backup virtual machine only starts the service in the target service execution file, and other services are not started. The target service execution file is used to set network information, so that when the backup virtual machine is first started, only the network information needs to be set, and no other services need to be started. The backup virtual machine completes the setting of network information, so that when the backup virtual machine is not needed, the main server can be used to detect whether the network connection status of the backup virtual machine is normal. The backup virtual machine does not need to run other functions, which significantly reduces energy consumption, saves a lot of electricity resources, and avoids occupying additional computing resources. This not only reduces operating costs, but also avoids adverse effects on the data center environment.

[0059] A second aspect of an embodiment of the present invention provides a method for backing up virtual machine data, which is applied to a Linux system and includes the following steps:

[0060] Step 21 : The local server deletes the original service execution file in response to the instruction to delete the original service execution file in the startup directory of the single-user mode of the backup virtual machine.

[0061] In this step, before deleting the original service execution file, a target service execution file is created in advance. Before the backup virtual machine is started, the original service execution file used to start the service in the startup directory in single-user mode is deleted.

[0062] In step 22, the local server stores the target service execution file, target setting directory and network information file in response to the instruction to add the target service execution file in the startup directory of the single-user mode of the backup virtual machine and the instruction to add the target setting directory and network information file in the single-user mode.

[0063] After deleting the original service execution file, the target service execution file is stored in the startup directory. This way, when the backup VM boots up, only the service corresponding to the target service execution file will run, and no other services will run. Simultaneously, a new directory is added to single-user mode, becoming the target settings directory. A pre-created network information file is then stored in the target settings directory. This network information file contains the backup VM's network information, including its MAC address, IP address, subnet mask, and gateway.

[0064] Step 23: The local server modifies the default configuration file in response to the instruction to add the single-user mode parameter to the default configuration file of the boot program of the backup virtual machine.

[0065] Before starting the backup VM, modify the default configuration file of the boot program and add the single-user mode parameter single to the default configuration file.

[0066] Taking the Linux system as an example, modify the grub.cfg boot menu and add the single parameter. This parameter means that the computer will start in single-user mode. The code example with the single parameter added is as follows:

[0067] [root@localhost grub2]# pwd

[0068] / boot / grub2

[0069] [root@localhost grub2]# vim grub.cfg

[0070] menuentry 'centOS Linux(3.10.0-693.el7.x86_64) 7 (core)' --classcentos --class gnu –class os –unrestricted $menuentry_id_option 'gnulinux-3.10.0-693.el7.x86_64-advanced-b01e725a-445f-467f-94a6-cbebfa5df3cc'{

[0071] load_video

[0072] set gfxpayload=keep

[0073] insmod gzio

[0074] insmod part_msdos

[0075] insmod xfs

[0076] set root='hd0,msdos1'

[0077] if [ x$feature_platform_search_hint = xy ]; then

[0078] search --no-floppy --fs-uuid –set=root --hint-bios=hd,msdos1 –hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' 01701220-010c-4f5c-8bf8-f6c2f16731d3

[0079] else

[0080] search --no-floppy --fs-uuid --set=root 01701220-010c-4f5c-8bf8-f6c2f16731d3

[0081] fi

[0082] linux16 / vmlinuz-3.10.0-693.e17.x86_64 root= / dev / mapper / centos-rootro crashkernel=auto rd.lvm.lv=centos / root rd.lvm.lv=centos / swap rhgb quietLANG=en_US.UTF-8 single

[0083] initrd16 / initramfs-3.10.0-693.el7.x86_64.img

[0084] Here, the execution order of step 21, step 22 and step 23 is not particular, and the above steps are performed in the local server, that is, in the background end.

[0085] In step 24, the primary server sends a startup command to the backup virtual machine, which then receives the startup command. The primary server stores primary data, and the backup virtual machine backs up the primary server's primary data. The primary server can be a local server or a cloud server. The backup virtual machine can be local or cloud-based.

[0086] Step 25: The backup virtual machine reads the default configuration file of the boot program.

[0087] The default configuration file includes single-user mode parameters.

[0088] Step 26: The backup virtual machine runs the default configuration file to start up and enter single-user mode.

[0089] Step 27: The backup virtual machine reads the target service execution file from the startup directory in the single-user mode and runs the target service execution file.

[0090] After the backup virtual machine is powered on in single-user mode, it will automatically read the executable files in the startup directory / etc / rc.d / rc1.d. The startup directory only stores the target service execution file start.sh. The content of the target service execution file start.sh is the program for starting the required related services, that is, the program for setting network information.

[0091] For example, the code to read and run the target service execution file is as follows:

[0092] [root@localhost rcl.d]# pwd

[0093] / etc / rc.d / rc1.d

[0094] [root@localhost rc1.d]# cat start.sh

[0095] systemctl start dsgcdpagent

[0096] [root@localhost rc1.d]#

[0097] Step 28: The target service execution file reads the network information file in the target setting directory and sets the network information according to the network information file.

[0098] After the target service executable file runs, it reads the contents of the network information file in the target configuration directory and obtains and sets the network information. For example, after the target service executable file runs, it reads the contents of the takeoverip.conf file in the / home / dsgcdpagent / conf directory and sets the network information.

[0099] For example, the code to read the contents of the network information file in the target setting directory is as follows:

[0100] [root@localhost conf]# pwd

[0101] / home / dsgcdpagent / conf

[0102] [root@localhost conf]# cat takeoverip.conf

[0103] 00:0c:29:ba:f4:0a,192.168.80.207 / 24,192.168.80.1

[0104] [root@localhost conf]#

[0105] After the network information is set, the backup VM is started. Starting the backup VM only requires setting the network information; no other services need to be started.

[0106] Step 29: After the network information is set, the main server sends an ICMP echo request message to the IP address of the network information at a preset interval.

[0107] In step 30, the primary server detects whether it has received an ICMP echo reply message of the backup virtual machine corresponding to the IP address of the network information.

[0108] After setting up the network information, configure the same settings on the primary server to enable network communication with the backup VM. When the backup VM does not need to be backed up for disaster recovery, the primary server periodically pings the backup VM's IP address to check if the ping succeeds. If successful, the backup VM's network status is normal and the target service executable file is available. If unsuccessful, the backup VM's network status may be abnormal or the target service executable file may be abnormal.

[0109] In one feasible implementation, when disaster recovery is required, the backup virtual machine switches from single-user mode to multi-user mode to activate the corresponding services for disaster recovery. The primary server sends a disaster recovery command to the backup virtual machine. Upon receiving the command, the backup virtual machine switches from single-user mode to multi-user mode according to the command and then performs the disaster recovery operation.

[0110] like Figure 2 As shown, a third aspect of an embodiment of the present invention provides a backup virtual machine data backup system, comprising: a backup virtual machine 31;

[0111] The backup virtual machine 31 is used to receive a startup instruction;

[0112] The backup virtual machine 31 is used to read the default configuration file of the boot program; wherein the default configuration file includes single-user mode parameters;

[0113] The backup virtual machine 31 is used to run a default configuration file to start up and enter single-user mode;

[0114] The backup virtual machine 31 is used to read the target service execution file from the startup directory of the single-user mode and run the target service execution file;

[0115] The target service execution file reads the network information file in the target setting directory and sets the network information according to the network information file.

[0116] In one embodiment of the present invention, a local server 32 is further included;

[0117] The local server 32 is configured to delete the original service execution file in response to the instruction to delete the original service execution file in the startup directory of the single-user mode of the backup virtual machine;

[0118] The local server 32 is configured to store the target service execution file, the target setting directory, and the network information file in response to an instruction to add a target service execution file in a startup directory in single-user mode of the backup virtual machine and an instruction to add a target setting directory and a network information file in single-user mode;

[0119] The local server 32 is configured to modify the default configuration file in response to an instruction to add a single-user mode parameter to the default configuration file of the boot program of the backup virtual machine.

[0120] In one embodiment of the present invention, a main server 33 is further included;

[0121] The main server 33 is used to send ICMP echo request messages to the IP address of the network information at preset intervals;

[0122] The primary server 33 is configured to detect whether an ICMP echo reply message of the backup virtual machine corresponding to the IP address of the network information is received.

[0123] In one embodiment of the present invention, the primary server 33 is further configured to send a disaster recovery instruction to the backup virtual machine;

[0124] The backup virtual machine 31 is further configured to receive a disaster recovery instruction; wherein the disaster recovery instruction instructs switching the single-user mode to the multi-user mode;

[0125] The backup virtual machine 31 is also used to switch to multi-user mode according to the disaster recovery instruction;

[0126] The backup virtual machine 31 is also used for disaster recovery operations.

[0127] A fourth aspect of an embodiment of the present invention provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, a method for backing up virtual machine data provided in the above-mentioned embodiment of the present invention is implemented.

[0128] A fifth aspect of an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of a method for backing up virtual machine data provided in the above-mentioned embodiment of the present invention are implemented.

[0129] The memory may include random access memory (RAM) or non-volatile memory (NVM), such as at least one disk storage. Alternatively, the memory may be at least one storage device located away from the processor.

[0130] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, and discrete hardware systems.

[0131] The method provided in the embodiments of the present invention can be applied to electronic devices. Specifically, the electronic devices can be desktop computers, portable computers, smart mobile terminals, servers, etc. This is not limited here; any electronic device that can implement the present invention falls within the scope of protection of the present invention.

[0132] As for the system / electronic device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0133] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowcharts and / or block diagrams, as well as combinations of processes and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowcharts and / or block diagrams. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0134] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.

[0135] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0136] Obviously, those skilled in the art may make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if such changes and modifications fall within the scope of the claims and their equivalents, the present invention is intended to include such changes and modifications.

Claims

1. A method for backing up virtual machine data, characterized in that: The following steps are involved: The backup virtual machine receives a startup instruction; The backup virtual machine reads a default configuration file of the boot program grub.cfg; wherein the default configuration file includes single-user mode parameters; The backup virtual machine runs the default configuration file to start up and enter single-user mode; The backup virtual machine reads the target service execution file from the startup directory of the single-user mode and runs the target service execution file; The target service execution file reads the network information file in the target setting directory and sets the network information according to the network information file; wherein, when the backup virtual machine is started for the first time, only the network information needs to be set without starting the original service; Before the backup virtual machine receives the startup instruction, the method further includes: The local server deletes the original service execution file in response to the instruction to delete the original service execution file in the startup directory of the single-user mode of the backup virtual machine, so as to avoid starting the original service; The local server stores the target service execution file, the target setting directory, and the network information file in response to an instruction to add a target service execution file in a startup directory in single-user mode of the backup virtual machine and an instruction to add a target setting directory and a network information file in single-user mode; The local server modifies the default configuration file in response to an instruction to add a single-user mode parameter in the default configuration file of the boot program grub.cfg of the backup virtual machine; The method further comprises: The main server sends an ICMP echo request message to the IP address of the network information at a preset interval; The primary server detects whether an ICMP echo reply message of the backup virtual machine corresponding to the IP address of the network information is received.

2. The method according to claim 1, wherein The method further comprises: The primary server sends a disaster recovery instruction to the backup virtual machine; The backup virtual machine receives the disaster recovery instruction; wherein the disaster recovery instruction instructs to switch the single-user mode to the multi-user mode; The backup virtual machine switches to multi-user mode according to the disaster recovery instruction; Back up the virtual machine for disaster recovery.

3. A virtual machine data backup system, characterized in that: include: Back up virtual machines; The backup virtual machine is used to receive a startup instruction; The backup virtual machine is used to read the default configuration file of the boot program grub.cfg; wherein the default configuration file includes single-user mode parameters; The backup virtual machine is used to run the default configuration file to start up and enter single-user mode; The backup virtual machine is used to read the target service execution file from the startup directory of the single-user mode and run the target service execution file; The target service execution file reads the network information file in the target setting directory and sets the network information according to the network information file; wherein, when the backup virtual machine is started for the first time, only the network information needs to be set without starting the original service; Also includes local servers; The local server is configured to delete the original service execution file in response to an instruction to delete the original service execution file in the startup directory of the single-user mode of the backup virtual machine, so as to avoid starting the original service; The local server is configured to store the target service execution file, the target setting directory, and the network information file in response to an instruction to add a target service execution file in a startup directory in single-user mode of the backup virtual machine and an instruction to add a target setting directory and a network information file in single-user mode; The local server is used to modify the default configuration file in response to an instruction to add a single-user mode parameter in the default configuration file of the boot program grub.cfg of the backup virtual machine; Also includes the main server; The main server is used to send an ICMP echo request message to the IP address of the network information at a preset interval; The primary server is configured to detect whether an ICMP echo reply message of the backup virtual machine corresponding to the IP address of the network information is received.

4. The system according to claim 3, wherein: The primary server is also used to send disaster recovery instructions to the backup virtual machine; The backup virtual machine is further configured to receive the disaster recovery instruction; wherein the disaster recovery instruction instructs switching the single-user mode to the multi-user mode; The backup virtual machine is further configured to switch to a multi-user mode according to the disaster recovery instruction; The backup virtual machine is also used for disaster recovery operations.

5. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the method for backing up virtual machine data according to any one of claims 1 to 2 is implemented.

6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the backup virtual machine data backup method according to any one of claims 1 to 2 is implemented.

Citation Information

Patent Citations

  • Data backup method, device and computer program product

    CN110058959A