CN106648981A - Continuous data protection based virtual machine data protection method - Google Patents

Continuous data protection based virtual machine data protection method Download PDF

Info

Publication number
CN106648981A
CN106648981A CN201611148064.1A CN201611148064A CN106648981A CN 106648981 A CN106648981 A CN 106648981A CN 201611148064 A CN201611148064 A CN 201611148064A CN 106648981 A CN106648981 A CN 106648981A
Authority
CN
China
Prior art keywords
virtual
disk
data
machine
data protection
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
CN201611148064.1A
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN201611148064.1A priority Critical patent/CN106648981A/en
Publication of CN106648981A publication Critical patent/CN106648981A/en
Pending legal-status Critical Current

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/1458Management of the backup or restore process
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects

Abstract

The invention discloses a continuous data protection based virtual machine data protection method which includes the steps of 1, mounting a mirrored disk of a storage server to a host machine; 2, writing data into a virtual disk while synchronizing the data to the mirrored disk; 3, taking the mirrored disk as a master disk of the virtual machine when detecting that the virtual disk is damaged; 4, creating an auxiliary virtual disk, recovering data of the mirrored disk to the auxiliary virtual disk, and synchronizing the data, written into the mirrored disk in real time, of the virtual machine to the auxiliary virtual disk; 5, after finishing the recovery in the step 4, taking the auxiliary virtual disk as the master disk of the virtual machine. On the basis of the continuous data protection technology, by means of write operation awareness of the virtual disk, all changes of target data are captured or tracked continuously and the data are transmitted in real time without affecting running of the master data; thus, zero loss of the important data is realized for users.

Description

A kind of virtual-machine data guard method based on continuous data protection
Technical field
The present invention relates to virtual machine technique field, specifically for, the present invention relates to a kind of be based on continuous data protection Virtual-machine data guard method.
Background technology
Through the development of several years, cloud computing service was increasingly becoming every profession and trade and realizes informationalized basic sex service, and virtual Change is then the basic technology of cloud computing service.At present, business-like virtualization product and technology almost by VMWare, Citrix and The companies of Microsoft tri- monopolize, and the Intel Virtualization Technology increased income then gradually presents the trend of KVM dominances, receive and From the support energetically of global software companys, hardware company, applied company in a large number, so as to swift and violent in software, hardware, application Development, define the ecological chain of a maturation, it has also become enterprise carries out the important selection of system virtualization and cloud platform.
At present, for the protected mode of virtual machine mainly carries out backup, incremental backup completely to virtual machine.But, on The backup mode stated cannot realize zero-data loss after disaster generation, i.e. above-mentioned backup mode cannot realize RPO=0, because This, obtaining a kind of virtual-machine data guard method for realizing zero-data loss zero-data loss after disaster generation becomes this area The emphasis of technical staff's research and the target pursued all the time.
The content of the invention
To solve the phenomenon that existing virtual-machine data guard method yet suffers from loss of data, the invention provides a kind of base In the virtual-machine data guard method of continuous data protection, on the premise of not affecting key data to run, it is possible to achieve continue Any change that target data occurs is caught or tracks, real-time transmission data realizes zero loss of user's significant data.
To realize above-mentioned technical purpose, the invention discloses a kind of virtual-machine data protection side based on continuous data protection Method, the guard method comprises the steps,
Step 1, by the mirrored disk carry of storage server on host;
Step 2, while virtual disk is write data into, by data syn-chronization to the mirrored disk;
Step 3, when detecting virtual disk and being damaged, using mirrored disk as virtual machine master.
When virtual machine is to its virtual disk write data, the present invention writes the data syn-chronization to storage server mapping In the mirrored disk for going out, due to being to be synchronously written, so the no matter injury for causing to virtual disk under any circumstance, can lead to The mirrored disk for crossing the present invention is protected to virtual-machine data.
Further, the guard method comprises the steps,
Step 4, newly-built auxiliary virtual disk extremely aids in data recovery in mirrored disk in virtual disk, and will be virtual Machine writes in real time the data syn-chronization of mirrored disk into the auxiliary virtual disk.
Present invention additionally comprises resuming work to virtual disk, completed to the extensive of Backup Data using auxiliary virtual disk It is multiple.
Further, the guard method comprises the steps,
After the completion of recovering step and synchronizing step are equal in step 5, step 4, using auxiliary virtual disk as virtual machine master, Normally worked by aiding in virtual disk to complete virtual machine.
Further, in step 1, the storage server is to set relative to the external storage of host internal storage device Standby, External memory equipment maps mirrored disk to virtual machine.
The present invention by the External memory equipment of carry on host map out come mirrored disk be used as protect storage set Standby mode, reaches the higher technique effect of protection storage equipment security, and External memory equipment is difficult to by web influence, therefore, The present invention has the advantages that good reliability, stability are strong, easy to use.
Further, in step 2, writing copy by way of by data syn-chronization to the mirrored disk.By this Mode, the present invention can realize reaching the purposes such as lossless backup, carrying out safety backup.
Further, in step 4, writing copy by way of by data syn-chronization to it is described auxiliary virtual disk in.Pass through This mode, the present invention can realize reaching the purposes such as Distortionless, security recovery.
Further, in step 2, the block of mirrored disk is called to drive journey using continuous data protection block device driver The mode of sequence is by data syn-chronization to the mirrored disk.
Further, in step 4, when data full recovery is into auxiliary virtual disk in mirrored disk, virtual machine will Receive the end signal that continuous data protection block device driver sends.
Further, virtual machine is under cloud platform environment.
Further, cloud platform environment is built by distributed file system.
Beneficial effects of the present invention are:The present invention by the use of External memory equipment as alternate device, based on sustainable protection skill Art, is perceived by the write operation of virtual disk, on the premise of not affecting key data to run, persistently catches or track number of targets According to any change for occurring, real-time transmission data, zero loss of user's significant data is realized.
Maximum advantage of the invention is to complete to shunt the write operation of virtual machine in real time, and a data trnascription is written to original In having storage system, another data trnascription is written to protection storage device, and the two synchronization is carried out, the data protection backed up in realtime Data, improve Backup and Restore efficiency.
Description of the drawings
Fig. 1 is based on the virtual-machine data guard method schematic flow sheet of continuous data protection.
Fig. 2 is based on the virtual-machine data backup method schematic flow sheet of continuous data protection.
Fig. 3 is based on the virtual-machine data restoration methods schematic flow sheet of continuous data protection.
Fig. 4 is virtual-machine data protection architecture schematic diagram under the medium cloud platform environment of embodiment one.
Fig. 5 is virtual-machine data protection architecture schematic diagram under the medium cloud platform environment of embodiment two.
Specific embodiment
Detailed explanation and explanation is carried out to the present invention with reference to Figure of description.
Embodiment one:
As shown in Figures 1 to 4, the present invention is based on write operation sense of the QEMU-KVM virtual machines to the virtual disk of virtual machine Know, under cloud computing environment, by operating in host in block driver (Block Driver) complete in virtual machine Virtual disk parallel write operation, complete the in real time shunting of the write operation to virtual machine and shunt it is synchronous carry out, realize to backup Data protection, and then realize protection to virtual-machine data, the virtual-machine data based on continuous data protection of the present invention is protected It is higher that maintaining method backs up, efficiency preferable with recovery effects.
In general, virtual machine calls virtual disk files using standard driver, realizes the write operation control to data System.The present invention is different to virtual-machine data write operation control mode from tradition, the invention discloses one kind is protected based on duration data The virtual-machine data guard method of shield, the guard method comprises the steps,
Step 1, the present invention is loaded into continuous data protection block device driver (QEMU-CDP-Block-Driver) In virtual platform, by the mirrored disk carry of storage server on host;Storage server in the present invention is relative In the External memory equipment of host internal storage device, External memory equipment maps mirrored disk to virtual machine, this enforcement The virtual machine being related in example may be under cloud platform environment, and cloud platform environment can be built by distributed file system.
Step 2, as shown in Figure 1, 2, while virtual disk is write data into, by data syn-chronization to the mirrored disk In, the present invention writing copy by way of by data syn-chronization to the mirrored disk.In the present embodiment, protected using duration data Protecting block device driver calls the mode of the block driver of mirrored disk by data syn-chronization to the mirrored disk.
Original device block is being called using continuous data protection block device driver (QEMU-CDP-Block-Driver) While driver (Original Device Block Driver), the virtual disk write data into virtual machine, profit Protection equipment block driver is called with continuous data protection block device driver (QEMU-CDP-Block-Driver) (Protect Device Block Driver), mirrored disk is write data into, mirrored disk as protects storage device In (Protect Storage), so as to realize the real-time shunting to data write operation, reach the write of a part of data is original In storage device or storage system, another part data are written in mirrored disk, and this two parts data content is identical. It should be noted that in the case of original storage device (Original Storage) normal work, carrying out digital independent behaviour When making, data still read from original storage device (Original Storage).
Step 3, when detecting virtual disk and being damaged, using mirrored disk as virtual machine master.
Step 4, as shown in Figure 1,3, newly-built auxiliary virtual disk, by data recovery in mirrored disk to aiding in virtual disk In, and virtual machine is write in real time the data syn-chronization of mirrored disk into the auxiliary virtual disk, the present invention is by writing copy Mode by data syn-chronization to it is described auxiliary virtual disk in;In the present embodiment, when in mirrored disk data full recovery to auxiliary When helping in virtual disk, in other words, after the completion of data recovery, virtual machine will receive continuous data protection block device driver and send out The end signal for going out.
After the completion of recovering step and synchronizing step are equal in step 5, step 4, using auxiliary virtual disk as virtual machine master.
Embodiment two:
As shown in Fig. 1,2,3,5, virtual-machine data guard method base under the cloud platform environment of the present embodiment and embodiment one This is identical, and its difference is:In the present embodiment, cloud platform, in step 1, QEMU- are built based on Ceph distributed file systems KVM virtual machines map out the mirror of External memory equipment (External Storage) by iSCSI block driver relevant links As disk, by the use of the mirrored disk as backup disk;In step 2, when QEMU-KVM virtual machines are started, virtual magnetic is selected Used as master, carry iSCSI mirrored disks are, from disk, after starting virtual machine, virtual disk data to be passed through into iSCSI links same to disk Mirrored disk is walked, specifically, after virtual machine is opened, continuous data protection block device driver (QEMU-CDP- Block-Driver now write operation of the QEMU-KVM virtual machines to virtual disk) can be perceived, RBD block driver (RBD are called Block Driver) virtual disk in write Ceph distributed file systems, and using writing the mode synchronization call of copy ISCSI block drivers (iSCSI Block Driver) write mirrored disk, to ensure data consistency.Complete initial mirror As after synchronization, continuous data protection block device driver (QEMU-CDP-Block-Driver) continues to perceive virtual machine to void Intend the write operation of disk, complete the real-time shunting of data and call different masses to drive write different storage device.In the present embodiment, It is same also by the mode for writing copy during using continuous data protection block device driver (QEMU-CDP-Block-Driver) In walking the data write mirrored disk by write virtual disk.
In step 3, when virtual disk damage needs to recover data, newly-built one piece of auxiliary virtual disk is mounted to QEMU- Under KVM virtual machines, start virtual machine specify newly-built auxiliary virtual disk for mirror image from disk, by the former mirror image of iSCSI carries Disk is master.After QEMU-KVM virtual machines start, newly-built auxiliary virtual disk will receive to come by the former mirror of iSCSI carries As data in magnetic disk, recovery process is completed, be recovered rear continuous data protection block device driver (QEMU-CDP-Block- Driver signal) can be sent and notifies QEMU-KVM virtual machines.In recovery process, the write operation of the disk hung over by iSCSI By writing copy mode RBD block drivers (RBD Block Driver) will be called synchronously to write newly-built auxiliary virtual magnetic Disk, realization is resumed work to data;In the present embodiment, cloud platform environment is built by distributed file system, duration data Protection block device driver (QEMU-CDP-Block-Driver) is developed under QEMU.
It should be noted that under the technology enlightenment of the present invention, protection storage device can be by building local data center Or special remote service station, then the protection data of virtual machine are put into local data center or special remote service station.
Presently preferred embodiments of the present invention is the foregoing is only, it is all in essence of the invention not to limit the present invention Any modification, equivalent and simple modifications for being made in content etc., should be included within the scope of the present invention.

Claims (10)

1. a kind of virtual-machine data guard method based on continuous data protection, it is characterised in that the guard method includes as follows Step,
Step 1, by the mirrored disk carry of storage server on host;
Step 2, while virtual disk is write data into, by data syn-chronization to the mirrored disk;
Step 3, when detecting virtual disk and being damaged, using mirrored disk as virtual machine master.
2. the virtual-machine data guard method based on continuous data protection according to claim 1, it is characterised in that the guarantor Maintaining method comprises the steps,
Step 4, newly-built auxiliary virtual disk, by data recovery in mirrored disk to aiding in virtual disk, and by virtual machine reality When write mirrored disk data syn-chronization to it is described auxiliary virtual disk in.
3. the virtual-machine data guard method based on continuous data protection according to claim 2, it is characterised in that the guarantor Maintaining method comprises the steps,
After the completion of recovering step and synchronizing step are equal in step 5, step 4, using auxiliary virtual disk as virtual machine master.
4. the virtual-machine data guard method based on continuous data protection according to claim 1, it is characterised in that
In step 1, the storage server is the External memory equipment relative to host internal storage device, and external storage sets Standby mapping mirrored disk is to virtual machine.
5. the virtual-machine data guard method based on continuous data protection according to claim 1, it is characterised in that
In step 2, writing copy by way of by data syn-chronization to the mirrored disk.
6. the virtual-machine data guard method based on continuous data protection according to claim 2, it is characterised in that
In step 4, writing copy by way of by data syn-chronization to it is described auxiliary virtual disk in.
7. the virtual-machine data guard method based on continuous data protection according to claim 3, it is characterised in that
In step 2, the mode of block driver of mirrored disk is called using continuous data protection block device driver by number According to being synchronized in the mirrored disk.
8. the virtual-machine data guard method based on continuous data protection according to claim 7, it is characterised in that
In step 4, when data full recovery is into auxiliary virtual disk in mirrored disk, virtual machine will receive duration data guarantor The end signal that protecting block device driver sends.
9. the virtual-machine data guard method based on continuous data protection according to claim 1, it is characterised in that described Virtual machine is under cloud platform environment.
10. the virtual-machine data guard method based on continuous data protection according to claim 9, it is characterised in that institute State cloud platform environment to build by distributed file system.
CN201611148064.1A 2016-12-13 2016-12-13 Continuous data protection based virtual machine data protection method Pending CN106648981A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611148064.1A CN106648981A (en) 2016-12-13 2016-12-13 Continuous data protection based virtual machine data protection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611148064.1A CN106648981A (en) 2016-12-13 2016-12-13 Continuous data protection based virtual machine data protection method

Publications (1)

Publication Number Publication Date
CN106648981A true CN106648981A (en) 2017-05-10

Family

ID=58825249

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611148064.1A Pending CN106648981A (en) 2016-12-13 2016-12-13 Continuous data protection based virtual machine data protection method

Country Status (1)

Country Link
CN (1) CN106648981A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108255643A (en) * 2017-12-25 2018-07-06 南京壹进制信息技术股份有限公司 A kind of continuous data protection method of no agency
CN108804038A (en) * 2018-05-29 2018-11-13 新华三技术有限公司 Method, apparatus, server and the computer-readable medium of daily record data migration
CN109271341A (en) * 2018-08-31 2019-01-25 黄疆 A kind of mirrored disk file filter method
CN109710377A (en) * 2018-12-14 2019-05-03 国云科技股份有限公司 A method of restoring kvm virtual machine in the distributed storage of failure
CN111858164A (en) * 2020-07-03 2020-10-30 苏州浪潮智能科技有限公司 Continuous data protection method, device, equipment and readable storage medium
CN112000282A (en) * 2020-08-07 2020-11-27 北京浪潮数据技术有限公司 Storage double-live method, device and related components
CN112416527A (en) * 2020-11-30 2021-02-26 深信服科技股份有限公司 Data recovery method, device, equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7971015B2 (en) * 2003-12-31 2011-06-28 Vmware, Inc. Generating and using checkpoints in a virtual computer system
CN102831036A (en) * 2012-08-30 2012-12-19 天津火星科技有限公司 Continuous data protection method based on disk partition
CN103516736A (en) * 2012-06-20 2014-01-15 中兴通讯股份有限公司 Data recovery method of distributed cache system and a data recovery device of distributed cache system
CN103795742A (en) * 2012-10-30 2014-05-14 中国电信股份有限公司 Heterogeneous storage disaster recovery management system and heterogeneous storage disaster recovery management method
US20140229697A1 (en) * 2007-07-31 2014-08-14 Vmware, Inc. Online virtual machine disk migration
CN105224391A (en) * 2015-10-12 2016-01-06 浪潮(北京)电子信息产业有限公司 A kind of online backup method and system of virtual machine
CN105550063A (en) * 2015-12-03 2016-05-04 上海爱数信息技术股份有限公司 Continuous data protection and kvm virtualization based disaster recovery method
CN105912428A (en) * 2016-05-20 2016-08-31 上海数腾软件科技股份有限公司 System and method for converting source data into mirror image of virtual machine in real time

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7971015B2 (en) * 2003-12-31 2011-06-28 Vmware, Inc. Generating and using checkpoints in a virtual computer system
US20140229697A1 (en) * 2007-07-31 2014-08-14 Vmware, Inc. Online virtual machine disk migration
CN103516736A (en) * 2012-06-20 2014-01-15 中兴通讯股份有限公司 Data recovery method of distributed cache system and a data recovery device of distributed cache system
CN102831036A (en) * 2012-08-30 2012-12-19 天津火星科技有限公司 Continuous data protection method based on disk partition
CN103795742A (en) * 2012-10-30 2014-05-14 中国电信股份有限公司 Heterogeneous storage disaster recovery management system and heterogeneous storage disaster recovery management method
CN105224391A (en) * 2015-10-12 2016-01-06 浪潮(北京)电子信息产业有限公司 A kind of online backup method and system of virtual machine
CN105550063A (en) * 2015-12-03 2016-05-04 上海爱数信息技术股份有限公司 Continuous data protection and kvm virtualization based disaster recovery method
CN105912428A (en) * 2016-05-20 2016-08-31 上海数腾软件科技股份有限公司 System and method for converting source data into mirror image of virtual machine in real time

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108255643A (en) * 2017-12-25 2018-07-06 南京壹进制信息技术股份有限公司 A kind of continuous data protection method of no agency
CN108804038A (en) * 2018-05-29 2018-11-13 新华三技术有限公司 Method, apparatus, server and the computer-readable medium of daily record data migration
CN109271341A (en) * 2018-08-31 2019-01-25 黄疆 A kind of mirrored disk file filter method
CN109710377A (en) * 2018-12-14 2019-05-03 国云科技股份有限公司 A method of restoring kvm virtual machine in the distributed storage of failure
CN109710377B (en) * 2018-12-14 2023-06-30 国云科技股份有限公司 Method for recovering kvm virtual machine from faulty distributed storage
CN111858164A (en) * 2020-07-03 2020-10-30 苏州浪潮智能科技有限公司 Continuous data protection method, device, equipment and readable storage medium
CN111858164B (en) * 2020-07-03 2022-05-24 苏州浪潮智能科技有限公司 Continuous data protection method, device and equipment and readable storage medium
CN112000282A (en) * 2020-08-07 2020-11-27 北京浪潮数据技术有限公司 Storage double-live method, device and related components
CN112416527A (en) * 2020-11-30 2021-02-26 深信服科技股份有限公司 Data recovery method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN106648981A (en) Continuous data protection based virtual machine data protection method
US10467109B2 (en) Replication based security
US8600945B1 (en) Continuous data replication
US11604708B2 (en) Memory first live snapshot
US8862546B1 (en) Virtual access roll
US10042579B1 (en) Crash consistent snapshot
US10120925B1 (en) Data synchronization
US9959061B1 (en) Data synchronization
US9128628B1 (en) Dynamic replication mode switching
US9535800B1 (en) Concurrent data recovery and input/output processing
US9740880B1 (en) Encrypted virtual machines in a cloud
US9917854B2 (en) Security detection
CN110188000B (en) Application disaster recovery method and system based on virtualization and iSCSI or FC
US9875042B1 (en) Asynchronous replication
US9235632B1 (en) Synchronization of replication
US9329941B2 (en) System and method for virtualizing backup images
US8898112B1 (en) Write signature command
US9256605B1 (en) Reading and writing to an unexposed device
CN106547641B (en) CDP backup method based on volume
CN106815095A (en) Virtual-machine data guard method under a kind of cloud platform environment
CN103810058A (en) Backup method, equipment and system for virtual machine
US10725967B1 (en) Continuous data protection snapshots
CN108255638B (en) Snapshot rollback method and device
WO2014079028A1 (en) Data processing method and storage device
US11386070B2 (en) Method and system for secure data replication data integrity verification

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170510