CN111240889A - Data backup system and method and electronic device - Google Patents

Data backup system and method and electronic device Download PDF

Info

Publication number
CN111240889A
CN111240889A CN201811446306.4A CN201811446306A CN111240889A CN 111240889 A CN111240889 A CN 111240889A CN 201811446306 A CN201811446306 A CN 201811446306A CN 111240889 A CN111240889 A CN 111240889A
Authority
CN
China
Prior art keywords
data
backup
disk
local
control module
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.)
Pending
Application number
CN201811446306.4A
Other languages
Chinese (zh)
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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201811446306.4A priority Critical patent/CN111240889A/en
Publication of CN111240889A publication Critical patent/CN111240889A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/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

Abstract

The embodiment of the invention provides a data backup system and method and electronic equipment. The system comprises: the cloud storage system comprises a host machine used for deploying a virtual machine and a cloud storage module used for providing cloud services, wherein a control module is arranged in the host machine, a backup disc of a local disc is created in the cloud storage module, the local disc is a data disc used by the virtual machine on the host machine, and the control module is used for monitoring the writing operation of the virtual machine on the local disc in real time and backing up data in the local disc to the backup disc when the writing operation is monitored. According to the embodiment of the invention, the backup disk of the local disk is created on the cloud storage module, and the control module is arranged in the host machine to monitor the writing operation of the virtual machine on the local disk in real time, so that the real-time backup of the local disk data in the host machine is realized, the safety of the local disk data is improved, and the resource waste can be avoided.

Description

Data backup system and method and electronic device
Technical Field
The invention relates to the technical field of cloud services, in particular to a data backup system and method and electronic equipment.
Background
Currently, cloud service providers generally adopt a cloud disk and a local disk (a local hard disk device on a host where a virtual machine is located) as a storage disk of the virtual machine. The cloud disk storage mode adopts a multi-backup mode, so that the data security is higher; the local disk storage mode adopts a local hard disk on a host machine (physical machine), so that the local disk storage mode has better I/O performance and higher throughput. However, in such a storage method, a host (physical machine) is prone to hardware failure, so that the local disk storage is prone to damage, and data loss is caused. In the prior art, the problem of local disk damage is generally solved by taking a snapshot (i.e. copying) of a virtual machine to backup the virtual machine from one host to another host in a whole manner at a predetermined time interval.
In the process of implementing the invention, the inventor finds that the prior art has at least the following problems: if a hardware fault occurs on a local disk used by a host machine or a virtual machine in the host machine, the local disk data newly generated after the last backup is lost due to a time window existing in a snapshot backup mode.
Disclosure of Invention
Embodiments of the present invention provide a data backup system and method and an electronic device, so as to solve a defect that, in the prior art, when a host or a local disk has a hardware fault due to a time window existing in a snapshot backup manner, newly generated local disk data after the last backup is lost.
To achieve the above object, an embodiment of the present invention provides a data backup system, including: the cloud storage system comprises a host machine used for deploying virtual machines and a cloud storage module used for providing cloud services, wherein a control module is arranged in the host machine, a backup disk of a local disk is created in the cloud storage module, the local disk is a data disk used by the virtual machines on the host machine,
the control module is used for monitoring the write operation of the virtual machine to the local disk in real time, and when the write operation is monitored, backing up the data in the local disk to the backup disk.
The embodiment of the invention also provides a data backup method, which comprises the following steps:
creating a backup disk of a local disk in a cloud storage module, wherein the local disk is a data disk used by a virtual machine on a host machine;
monitoring the writing operation of the virtual machine on the local disk in real time through a control module arranged in the host machine;
and when the write operation is monitored, backing up the data in the local disk to the backup disk through the control module.
An embodiment of the present invention further provides an electronic device, including:
a memory for storing a program;
a processor for executing the program stored in the memory for:
creating a backup disk of a local disk in a cloud storage module, wherein the local disk is a data disk used by a virtual machine on a host machine;
monitoring the writing operation of the virtual machine on the local disk in real time through a control module arranged in the host machine;
and when the write operation is monitored, backing up the data in the local disk to the backup disk through the control module.
According to the data backup system and method and the electronic device provided by the embodiment of the invention, the backup disc of the local disc is created on the cloud storage module, the control module is arranged in the host machine to monitor the writing operation of the virtual machine on the local disc in real time, so that the real-time backup of the data of the local disc in the host machine is realized, when the local disc in the host machine or the host machine is lost due to the fault of the local disc, the real-time data recovery can be carried out on the local disc through the backup data on the backup disc, so that the safety of the data of the local disc is improved, and the resource waste caused by the backup of the data of the cloud disc in the existing snapshot backup mode can be avoided.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the application. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a system block diagram of an embodiment of a data backup system provided by the present invention;
fig. 2 is a first schematic structural diagram of a control module in the data backup system according to the embodiment of the present invention;
fig. 3 is a schematic structural diagram of a control module in the data backup system according to the embodiment of the present invention;
FIG. 4 is a flowchart of an embodiment of a data backup method provided by the present invention;
FIG. 5 is a flowchart of another embodiment of a data backup method provided by the present invention;
FIG. 6 is a flow chart of a data backup method according to another embodiment of the present invention;
fig. 7 is a schematic structural diagram of an embodiment of an electronic device provided in the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
In the prior art, to solve the problem that a local hard disk on a host (physical machine) is easily damaged to cause data loss, a virtual machine snapshot (i.e., copy) mode is generally adopted to backup a virtual machine from one host to another host in a whole at regular time. However, because the snapshot backup method has a time window, when a hardware failure occurs on a local disk used by a host or a virtual machine in the host, the local disk data newly generated after the last backup is still lost.
Aiming at the defects of the prior art, the application provides a data backup scheme, and the main principle is as follows: the method comprises the steps of creating a backup disk of a local disk in a host on a cloud storage module (the backup disk can be consistent with the local disk in size and serves as a shadow cloud disk of the local disk) for backing up local disk data, arranging a control module in the host for monitoring the writing operation of a virtual machine on the local disk in real time, and backing up the data in the local disk to the backup disk when the writing operation (namely the change of the local disk data) is monitored, so that the real-time backup of the data in a physical hard disk in the host is realized. When the host machine or the local disk in the host machine fails to cause the loss of the local disk data, the local disk can be subjected to real-time data recovery through the data backed up on the backup disk, so that the safety of the local disk data is improved, and the resource waste caused by the backup of the cloud disk data in the existing snapshot backup mode can be avoided.
The above embodiments are illustrations of technical principles and exemplary application frameworks of the embodiments of the present invention, and specific technical solutions of the embodiments of the present invention are further described in detail below through a plurality of embodiments.
Example one
Fig. 1 is a system block diagram of an embodiment of a data backup system provided in the present invention. The system is applied to a deployment scene of the virtual machine. As shown in fig. 1, the storage device of the virtual machine a adopts two modes, namely a local disk and a cloud disk, the local disk 11 on the host 1 is used by the virtual machine a as a data disk a, the cloud disk 21 on the cloud storage module 2 is used as a data disk b of the virtual machine a, the host 1 simulates a device of the data disk b in the virtual machine a, and the operation of the virtual machine a for reading and writing the data disk b is completed by the host 1 through a network channel.
The data backup system provided by the embodiment of the invention comprises: the cloud storage system comprises a host machine 1 for deploying the virtual machine A and a cloud storage module 2 for providing cloud services, wherein the host machine 1 is provided with a control module 12, a backup disk 22 of a local disk 11 is created in the cloud storage module 2, and the local disk 11 is a data disk used by the virtual machine A on the host machine 1. The control module 12 is configured to monitor a write operation of the virtual machine a to the local disk 11 in real time, and when the write operation is monitored, backup data in the local disk 11 to the backup disk 22.
In the embodiment of the present invention, when deploying the virtual machine a on the host 1, a backup disk 22 with a uniform size may be created for the local disk 11 used by the virtual machine a on the host 1, and the backup disk 22 is created in the cloud storage module 2. The control module 12 in the host 1 is configured to, on one hand, actually monitor the write operation of the virtual machine a to the local disk 11, and, on the other hand, when the write operation (i.e., a change in local disk data) is monitored, backup the data in the local disk 11 to the backup disk 22 in the cloud storage module 2. That is, as soon as a data change occurs in the local disk 11, the data is immediately backed up to the cloud-side backup disk 22, and thus, real-time data backup can be realized.
In addition, in the embodiment of the present invention, the local disk 11 in the host 1 may be a Solid State Drive (SSD) data disk.
According to the data backup system provided by the embodiment of the invention, the backup disc of the local disc is created at the cloud end, the control module is arranged in the host machine, so that the writing operation of the virtual machine on the local disc is monitored in real time, the real-time backup of the data of the local disc in the host machine is realized, when the host machine or the local disc in the host machine fails to cause the loss of the data of the local disc, the real-time data recovery can be carried out on the local disc through the backup data on the backup disc, so that the safety of the data of the local disc is improved, and meanwhile, the resource waste caused by the backup of the data of the cloud disc in the existing snapshot backup mode can be avoided.
Example two
Fig. 2 is a first schematic structural diagram of a control module in the data backup system according to the embodiment of the present invention. As shown in fig. 2, on the basis of the embodiment shown in fig. 1, in the data backup system provided in the embodiment of the present invention, the control module 12 may include: an interface unit 121.
The interface unit 121 may be used to monitor and acquire a write operation of the virtual machine a to the local disk 11 in real time.
In the embodiment of the present invention, the interface unit 121 may be a Qemu component. The Qemu component establishes a data channel for the local disk 11, does not directly participate in data transfer, but can monitor and acquire write operations of the virtual machine a to the local disk 11.
Further, the control module 12 may further include: a first backup unit 122. The first backup unit 122 may be configured to backup incremental data in the local disk 11 to the backup disk 22 according to the write operation acquired by the interface unit 121.
The I/O performance of the local disk is several times that of the cloud disk, and in order to implement the timely backup of data, in the embodiment of the present invention, data that changes may be obtained according to the write operation obtained by the interface unit 121, and incremental backup of data may be performed.
Still further, the control module 12 may further include: and a second backup unit 123. The second backup unit 123 may be configured to, according to the write operation acquired by the interface unit 121, acquire a data block in the local disk 11 to which the write operation is directed, and backup data in the data block to the backup disk 22.
In the embodiment of the present invention, the size of the data backed up at a time, for example, a local disk 11 with a size of 10G, may be set, and may be divided into ten data blocks with a size of 1G, for example, BLK1, BLK2, …, and BLK10, respectively. When the virtual machine a writes an address segment of the BLK2 on the local disk 11, the interface unit 121 notifies the second backup unit 123, and the second backup unit 123 only backs up the data of the BLK2 on the local disk 11 to the corresponding data block on the backup disk 22.
Of course, in the embodiment of the present invention, the number and size of the divided data blocks may be adjusted according to the size of the local disk 11, the bandwidth used for backing up the data, and other factors.
Still further, a buffer may be disposed in the control module 12, in this case, the control module 12 may further include: and a third backup unit 124. The third backup unit 124 may be configured to store the data to be backed up in the local disk 11 in a buffer in a queue when the interface unit 121 monitors the write operation of the virtual machine a to the local disk 11, and sequentially back up the data to be backed up in the queue to the backup disk 22.
In the embodiment of the present invention, a buffer may be provided inside the control module 12 due to the difference in I/O performance between the local disk and the cloud disk. The data to be backed up generated by the local disk 11 is stored in a buffer in a queue form, and then the data to be backed up in the buffer is backed up to the backup disk 22 in a first-in first-out order.
According to the data backup system provided by the embodiment of the invention, the backup disc of the local disc is created on the cloud storage module, the control module is arranged in the host machine to monitor the writing operation of the virtual machine on the local disc in real time, so that the real-time backup of the data of the local disc in the host machine is realized, when the host machine or the local disc in the host machine is in failure to cause the loss of the data of the local disc, the real-time data recovery can be carried out on the local disc through the backup data on the backup disc, so that the safety of the data of the local disc is improved, and meanwhile, the resource waste caused by the backup of the cloud disc data in the existing snapshot backup mode can be avoided.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a control module in the data backup system according to the embodiment of the present invention. As shown in fig. 3, on the basis of the embodiment shown in fig. 1 or fig. 2, in the data backup system provided in the embodiment of the present invention, the control module 12 may further include: a data recovery unit 125.
Specifically, the data recovery unit 125 may be configured to send the data in the backup disk 22 to the local disk 11 after the data of the local disk 11 is lost.
In the embodiment of the present invention, when the host or the local disk in the host fails to cause data loss of the local disk, the cloud management and control notifies the data recovery unit 125 in the control module 12, and the data recovery unit 125 synchronizes the data in the cloud backup disk 22 to the local disk 11. Therefore, the reliability of the local disk is improved to the same level as that of the cloud disk, the stability of the local disk is improved, the use scene of the local disk is enlarged, and a high-performance and high-reliability cloud service product is provided for a user.
According to the data backup system provided by the embodiment of the invention, the backup disc of the local disc is created at the cloud end, the control module is arranged in the host machine, so that the writing operation of the virtual machine on the local disc is monitored in real time, the real-time backup of the data of the local disc in the host machine is realized, when the host machine or the local disc in the host machine fails to cause the loss of the data of the local disc, the real-time data recovery can be carried out on the local disc through the backup data on the backup disc, so that the safety of the data of the local disc is improved, and meanwhile, the resource waste caused by the backup of the data of the cloud disc in the existing snapshot backup mode can be avoided.
Example four
Fig. 4 is a flowchart of an embodiment of a data backup method provided by the present invention, where an execution subject of the method may be the data backup system, a physical machine device in the data backup system, or a system or chip integrated on these devices. As shown in fig. 4, the data backup method includes the following steps:
s401, a backup disc of the local disc is created in the cloud storage module.
In the embodiment of the present invention, the local disk is a data disk used by the virtual machine on the host machine. The data backup method provided by the embodiment of the invention is applied to a deployment scene of a virtual machine. The storage device of the virtual machine adopts a local disk and a cloud disk, the local disk on the host machine is used by the virtual machine as a data disk, and the cloud disk on the cloud storage module is used as the data disk of the virtual machine.
When the virtual machine is deployed on the host machine, a backup disk with a consistent size can be created for a local disk used by the virtual machine on the host machine, and the backup disk is created in the cloud storage module.
S402, monitoring the write operation of the virtual machine to the local disk in real time through a control module arranged in the host machine.
And S403, when the write operation is monitored, backing up the data in the local disk to a backup disk through the control module.
In the embodiment of the present invention, on one hand, a control module in a host may actually monitor write operations of a virtual machine on a local disk, and on the other hand, when the write operations (that is, changes in local disk data) are monitored, data in the local disk is backed up to a backup disk in a cloud storage module. That is, as soon as a data change occurs in the local disk, the data is immediately backed up to the cloud backup disk, so that real-time data backup can be realized.
Additionally, in embodiments of the present invention, the local disk in the host may be an SSD data disk.
According to the data backup method provided by the embodiment of the invention, the backup disc of the local disc is created at the cloud end, the control module is arranged in the host machine, so that the writing operation of the virtual machine on the local disc is monitored in real time, the real-time backup of the data of the local disc in the host machine is realized, when the host machine or the local disc in the host machine fails to cause the loss of the data of the local disc, the real-time data recovery can be carried out on the local disc through the backup data on the backup disc, so that the safety of the data of the local disc is improved, and meanwhile, the resource waste caused by the backup of the data of the cloud disc in the existing snapshot backup mode can be avoided.
EXAMPLE five
Fig. 5 is a flowchart of another embodiment of a data backup method provided by the present invention. As shown in fig. 5, on the basis of the embodiment shown in fig. 3, the data backup method provided in this embodiment may further include the following steps:
s501, a backup disk with the size consistent with that of the local disk is created in the cloud storage module.
And S502, monitoring the write operation of the virtual machine to the local disk in real time through a control module arranged in the host machine.
In the embodiment of the present invention, steps S501 to S502 are the same as steps S401 to S402 in the embodiment shown in fig. 4, and are not repeated herein.
S503, when the write operation is monitored, the write operation is acquired through the control module.
And S504, backing up the incremental data in the local disk to the backup disk according to the writing operation.
In the embodiment of the invention, the write operation of the virtual machine to the local disk can be monitored in real time through the Qemu component. The Qemu component establishes a data channel for the local disk, does not directly participate in data transmission, and can monitor and acquire write operations of the virtual machine on the local disk. Because the I/O performance of the local disk is multiple times of that of the cloud disk, in order to realize the timely backup of data, in the embodiment of the invention, the changed data can be acquired according to the write operation of the virtual machine on the local disk acquired by the Qemu component, so that the data is subjected to incremental backup.
In addition, in the embodiment of the present invention, when the write operation is monitored, the control module may also obtain a data block in the local disk to which the write operation is directed; then, the data in the data block is backed up to the backup disk.
In the embodiment of the present invention, the size of the data backed up at a time, for example, a local disk 11 with a size of 10G, may be set, and may be divided into ten data blocks with a size of 1G, for example, BLK1, BLK2, …, and BLK10, respectively. When the virtual machine writes an address segment of the BLK2 in the local disk, the Qemu component notifies the control module, and at this time, the control module only backs up the data of the BLK2 in the local disk to the corresponding data block of the backup disk.
Of course, in the embodiment of the present invention, the number and size of the divided data blocks may be adjusted according to the size of the local disk, the bandwidth used for backing up the data, and other factors.
According to the data backup method provided by the embodiment of the invention, the backup disc of the local disc is established on the cloud storage module, the control module is arranged in the host machine to monitor the writing operation of the virtual machine on the local disc in real time, so that the real-time backup of the data of the local disc in the host machine is realized, when the host machine or the local disc in the host machine is in failure to cause the loss of the data of the local disc, the real-time data recovery can be carried out on the local disc through the backup data on the backup disc, so that the safety of the data of the local disc is improved, and simultaneously, the resource waste caused by the backup of the data of the cloud disc in the existing snapshot backup mode can be avoided.
EXAMPLE six
Fig. 6 is a flowchart of a data backup method according to another embodiment of the present invention. As shown in fig. 6, on the basis of the embodiments shown in fig. 4 or fig. 5, the data backup method provided in this embodiment may further include the following steps:
s601, creating a backup disk with the size consistent with that of the local disk in the cloud storage module.
And S602, monitoring the write operation of the virtual machine to the local disk in real time through a control module arranged in the host machine.
In the embodiment of the present invention, steps S601 to S602 are the same as steps S401 to S402 in the embodiment shown in fig. 4, and are not repeated herein.
And S603, when the write operation is monitored, storing the data to be backed up in the local disk into a buffer in the control module in a queue form through the control module.
And S604, backing up the data to be backed up in the queue to a backup disc in sequence.
In the embodiment of the invention, due to the difference of the I/O performance of the local disk and the cloud disk, a buffer can be arranged inside the control module. The data to be backed up generated by the local disk is stored in a buffer in a queue mode, and then the data to be backed up in the buffer is backed up to the backup disk according to the first-in first-out sequence.
Further, the data backup method provided by the embodiment of the present invention may further include:
and S605, after the data of the local disk is lost, sending the data in the backup disk to the local disk through the control module.
In the embodiment of the invention, when the host or the local disk in the host fails to cause the loss of the data of the local disk, the cloud management and control inform the control module, and the control module synchronizes the data in the backup disk of the cloud to the local disk. Therefore, the reliability of the local disk is improved to the same level as that of the cloud disk, the stability of the local disk is improved, the use scene of the local disk is enlarged, and a high-performance and high-reliability cloud service product is provided for a user.
According to the data backup method provided by the embodiment of the invention, the backup disc of the local disc is created at the cloud end, the control module is arranged in the host machine, so that the writing operation of the virtual machine on the local disc is monitored in real time, the real-time backup of the data of the local disc in the host machine is realized, when the host machine or the local disc in the host machine fails to cause the loss of the data of the local disc, the real-time data recovery can be carried out on the local disc through the backup data on the backup disc, so that the safety of the data of the local disc is improved, and meanwhile, the resource waste caused by the backup of the data of the cloud disc in the existing snapshot backup mode can be avoided.
EXAMPLE seven
The internal functions and structure of the data backup system, which can be implemented as an electronic device, are described above. Fig. 7 is a schematic structural diagram of an embodiment of an electronic device provided in the present invention. As shown in fig. 7, the electronic device includes a memory 71 and a processor 72.
The memory 71 stores programs. In addition to the above-described programs, the memory 71 may also be configured to store other various data to support operations on the electronic device. Examples of such data include instructions for any application or method operating on the electronic device, contact data, phonebook data, messages, pictures, videos, and so forth.
The memory 71 may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
A processor 72, coupled to the memory 71, that executes programs stored by the memory 71 to:
creating a backup disk of a local disk in a cloud storage module, wherein the local disk is a data disk used by a virtual machine on a host machine;
monitoring the write operation of the virtual machine on a local disk in real time through a control module arranged in a host machine;
and when the write operation is monitored, the data in the local disk is backed up to the backup disk through the control module.
Further, as shown in fig. 7, the electronic device may further include: communication components 73, power components 74, audio components 75, a display 76, and the like. Only some of the components are schematically shown in fig. 7, and the electronic device is not meant to include only the components shown in fig. 7.
The communication component 73 is configured to facilitate wired or wireless communication between the electronic device and other devices. The electronic device may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 73 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 73 further includes a Near Field Communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
A power supply component 74 provides power to the various components of the electronic device. The power components 74 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for an electronic device.
The audio component 75 is configured to output and/or input audio signals. For example, the audio component 75 includes a Microphone (MIC) configured to receive external audio signals when the electronic device is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in a memory 71 or transmitted via a communication component 73. In some embodiments, audio assembly 75 also includes a speaker for outputting audio signals.
The display 76 includes a screen, which may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (12)

1. A data backup system, comprising: the cloud storage system comprises a host machine used for deploying virtual machines and a cloud storage module used for providing cloud services, wherein a control module is arranged in the host machine, a backup disk of a local disk is created in the cloud storage module, the local disk is a data disk used by the virtual machines on the host machine,
the control module is used for monitoring the write operation of the virtual machine to the local disk in real time, and when the write operation is monitored, backing up the data in the local disk to the backup disk.
2. The data backup system of claim 1, wherein the control module comprises:
and the interface unit is used for monitoring and acquiring the write operation of the virtual machine to the local disk in real time.
3. The data backup system of claim 2, wherein the control module further comprises:
and the first backup unit is used for backing up the incremental data in the local disk to the backup disk according to the write operation acquired by the interface unit.
4. The data backup system of claim 2, wherein the control module further comprises:
and the second backup unit is used for acquiring the data blocks in the local disk for which the write operation is directed according to the write operation acquired by the interface unit, and backing up the data in the data blocks to the backup disk.
5. The data backup system of claim 2, wherein a buffer is disposed in the control module, the control module further comprising:
and the third backup unit is used for storing the data to be backed up in the local disk in the buffer in a queue form and backing up the data to be backed up in the queue to the backup disk in sequence when the write operation is monitored.
6. The data backup system according to any one of claims 1 to 5, wherein the control module further comprises:
and the data recovery unit is used for sending the data in the backup disk to the local disk after the data of the local disk is lost.
7. A method for data backup, comprising:
creating a backup disk of a local disk in a cloud storage module, wherein the local disk is a data disk used by a virtual machine on a host machine;
monitoring the writing operation of the virtual machine on the local disk in real time through a control module arranged in the host machine;
and when the write operation is monitored, backing up the data in the local disk to the backup disk through the control module.
8. The data backup method according to claim 7, wherein the backing up the data in the local disk to the backup disk by the control module when the write operation is monitored comprises:
when the write operation is monitored, the write operation is obtained through the control module;
and backing up the incremental data in the local disk to the backup disk according to the writing operation.
9. The data backup method according to claim 7, wherein the backing up the data in the local disk to the backup disk by the control module when the write operation is monitored comprises:
when the write operation is monitored, acquiring a data block in the local disk, to which the write operation aims, through the control module;
and backing up the data in the data blocks to the backup disk.
10. The data backup method according to claim 7, wherein the backing up the data in the local disk to the backup disk by the control module when the write operation is monitored comprises:
when the write operation is monitored, storing the data to be backed up in the local disk into a buffer in the control module in a queue form through the control module;
and backing up the data to be backed up in the queue to the backup disc in sequence.
11. The data backup method according to any one of claims 7 to 10, further comprising:
and when the data of the local disk is lost, sending the data in the backup disk to the local disk through the control module.
12. An electronic device, comprising:
a memory for storing a program;
a processor for executing the program stored in the memory for:
creating a backup disk of a local disk in a cloud storage module, wherein the local disk is a data disk used by a virtual machine on a host machine;
monitoring the writing operation of the virtual machine on the local disk in real time through a control module arranged in the host machine;
and when the write operation is monitored, backing up the data in the local disk to the backup disk through the control module.
CN201811446306.4A 2018-11-29 2018-11-29 Data backup system and method and electronic device Pending CN111240889A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811446306.4A CN111240889A (en) 2018-11-29 2018-11-29 Data backup system and method and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811446306.4A CN111240889A (en) 2018-11-29 2018-11-29 Data backup system and method and electronic device

Publications (1)

Publication Number Publication Date
CN111240889A true CN111240889A (en) 2020-06-05

Family

ID=70863732

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811446306.4A Pending CN111240889A (en) 2018-11-29 2018-11-29 Data backup system and method and electronic device

Country Status (1)

Country Link
CN (1) CN111240889A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014048869A (en) * 2012-08-31 2014-03-17 Hitachi Systems Ltd Disaster recovery method and disaster recovery system
CN105224391A (en) * 2015-10-12 2016-01-06 浪潮(北京)电子信息产业有限公司 A kind of online backup method and system of virtual machine
CN106708603A (en) * 2016-12-28 2017-05-24 平安科技(深圳)有限公司 Virtual machine quick recovery method and device
CN106802839A (en) * 2016-12-13 2017-06-06 龚平 A kind of virtual-machine data guard method driven based on block
CN106815095A (en) * 2016-12-13 2017-06-09 龚平 Virtual-machine data guard method under a kind of cloud platform environment
CN107092538A (en) * 2017-03-14 2017-08-25 平安科技(深圳)有限公司 Virtual-machine data backup method and system
CN108304281A (en) * 2018-02-28 2018-07-20 南京铱迅信息技术股份有限公司 A kind of method that virtual machine is backed up in realtime

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014048869A (en) * 2012-08-31 2014-03-17 Hitachi Systems Ltd Disaster recovery method and disaster recovery system
CN105224391A (en) * 2015-10-12 2016-01-06 浪潮(北京)电子信息产业有限公司 A kind of online backup method and system of virtual machine
CN106802839A (en) * 2016-12-13 2017-06-06 龚平 A kind of virtual-machine data guard method driven based on block
CN106815095A (en) * 2016-12-13 2017-06-09 龚平 Virtual-machine data guard method under a kind of cloud platform environment
CN106708603A (en) * 2016-12-28 2017-05-24 平安科技(深圳)有限公司 Virtual machine quick recovery method and device
CN107092538A (en) * 2017-03-14 2017-08-25 平安科技(深圳)有限公司 Virtual-machine data backup method and system
CN108304281A (en) * 2018-02-28 2018-07-20 南京铱迅信息技术股份有限公司 A kind of method that virtual machine is backed up in realtime

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
涂国义;胡晓勤;: "一种基于ESXi的虚拟机备份与恢复系统", no. 11 *
黄勤龙,杨义先: "云计算数据安全", 北京邮电大学出版社, pages: 18 - 19 *

Similar Documents

Publication Publication Date Title
EP3937426B1 (en) Master-slave server switching method, apparatus and storage medium
US11640247B2 (en) Providing service address space for diagnostics collection
CN105159795A (en) Data synchronization method, apparatus and system
CN112035298A (en) Data backup method and device, electronic equipment and storage medium
CN108762984B (en) Method and device for continuous data backup
US10922162B2 (en) Capturing video data and serial data during an information handling system failure
CN110837407A (en) Server-free cloud service system, resource management method thereof and electronic equipment
CN101937378B (en) Method for carrying out back-up protection on data of storage equipment and computer system
CN113473086B (en) Video playing method and device, electronic equipment and intelligent high-speed large screen
CN109495335B (en) Service monitoring method, device and system and electronic equipment
CN103929607A (en) Communication method based on screen recording, and application client-side
CN109271442A (en) Database synchronization restoration methods, device, computer readable storage medium and electronic equipment
CN107391312B (en) Data cloud backup method and system
CN102325171B (en) Data storage method in monitoring system and system
CN111240889A (en) Data backup system and method and electronic device
CN111475334A (en) TiDB database maintenance method and device, computer equipment and storage medium
CN110018987B (en) Snapshot creating method, device and system
CN113179145B (en) Time synchronization method, device and system
CN110018986B (en) Abnormal snapshot identification method and device
CN111831472B (en) Snapshot creation method and device and electronic equipment
CN111209342B (en) Distributed system, data synchronization and node management method, device and storage medium
CN108400881B (en) State machine based message engine dynamic adjustment method and device and electronic equipment
CN109213431A (en) The consistency detecting method and device and electronic equipment of more copy datas
CN110795318B (en) Data processing method and device and electronic equipment
CN109697110B (en) Transaction coordination processing system, method and device and electronic equipment

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