CN107807842A - A kind of online cloning process of virtual machine - Google Patents

A kind of online cloning process of virtual machine Download PDF

Info

Publication number
CN107807842A
CN107807842A CN201710991181.2A CN201710991181A CN107807842A CN 107807842 A CN107807842 A CN 107807842A CN 201710991181 A CN201710991181 A CN 201710991181A CN 107807842 A CN107807842 A CN 107807842A
Authority
CN
China
Prior art keywords
virtual machine
snapshot
data
online
disk
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.)
Withdrawn
Application number
CN201710991181.2A
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.)
G Cloud Technology Co Ltd
Original Assignee
G Cloud Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by G Cloud Technology Co Ltd filed Critical G Cloud Technology Co Ltd
Priority to CN201710991181.2A priority Critical patent/CN107807842A/en
Publication of CN107807842A publication Critical patent/CN107807842A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45562Creating, deleting, cloning virtual machine instances

Abstract

The present invention relates to virtual machine technique field, particularly a kind of online cloning process of virtual machine.Methods described comprises the following steps:Obtain the disk that inquiry virtual machine uses and online snapshot is carried out to disk, snapshot data is copied out from snapshot again, the snapshot data copied out is merged into new virtual machine with source data that snapshot relies on and uses data in magnetic disk, then the online snapshot of original virtual machine is deleted, the configuration file of new virtual machine is configured and starts new virtual machine.The online cloning process of virtual machine of the present invention, in the case where not influenceing the regular traffic running situation of original virtual machine, extends the virtual machine of same system and data online.

Description

A kind of online cloning process of virtual machine
Technical field
The present invention relates to virtual machine technique field, particularly a kind of online cloning process of virtual machine.
Background technology
With the popularization of cloud computing, many applications are migrated on virtual machine.Operation system on virtual machine is also continuous Development, many scenes need to expand the support capacity of original operation system.Traditional mode is to give virtual machine addition CPU, interior The resource such as deposit;But this can also run into the bottleneck limitation of host resource.If its operation system supports distributed architecture, extend New deploying virtual machine identical application system is a kind of better selection.Certain this deployment way, if from old void New virtual machine is cloned on plan machine, the workload of operation system operation maintenance personnel can be greatly reduced, without disposing business again from zero System, the cans such as the network parameter of local directed complete set virtual machine host are only needed to activate business the ability of system.It is and traditional virtual Machine clonal fashion, it is by virtual machine power-off operation, then copies out the disk file that virtual machine needs to use.This mode is certain The operation of original operation system can be influenceed in degree.
The content of the invention
Present invention solves the technical problem that being to provide a kind of virtual machine online cloning process, original virtual machine is not being influenceed Regular traffic running situation under, extend the virtual machine quantity of same system and data, lifted original business computing capability and Reliability.
The present invention solve above-mentioned technical problem technical scheme be:
Described method comprises the following steps:
(1) obtain the disk that virtual machine uses and online snapshot is carried out to disk;
(2) snapshot data is copied out from snapshot;
(3) source data that the snapshot data copied out and snapshot rely on is merged into operation, be merged into new virtual Machine uses data in magnetic disk;
(4) and then the online snapshot of original virtual machine is deleted, recovers the disc information of former virtual machine;
(5) configure the configuration file of new virtual machine and start new virtual machine.
The disk that virtual machine uses includes system disk and data disks, and the described disk used supports the COW of snapshot (copy-on-write) technology.It is convenient that online snapshot is carried out to data in magnetic disk.
The whole copy procedure that snapshot data is copied out from snapshot is continuous, and original snapshot data is protected in copy procedure Hold constant.
The data in magnetic disk that the new virtual machine uses is uses caused by the processes such as online snapping technique, its data in magnetic disk As the data in magnetic disk being cloned before virtual machine snapshot;Network card configuration in its configuration file with original virtual machine is become More, the network conflict of virtual machine for avoiding new virtual machine and being cloned.
The present invention proposes the online cloning process of virtual machine, is not influenceing the regular traffic system operation feelings of original virtual machine Under condition, the virtual machine quantity of same system and data is extended online, lifts the computing capability and reliability of original business.
Brief description of the drawings
The present invention is further described below in conjunction with the accompanying drawings:
Fig. 1 is the flow chart of the inventive method.
Embodiment
Cloned with KVM virtual machine, exemplified by the disk storages of KVM virtual machines is on distributed type assemblies, illustrated herein:
1st, inquire about the disk that virtual machine uses and online snapshot is carried out to disk
(1) disk that inquiry virtual machine uses
It can be seen that the disk file that virtual machine uses is /instances/disk/ from configuration file 28d0bac727c14e129aafceab52066ae7/i-FC3A3DFC/i-FC3A3D FC_snap。
(2) snapshot is carried out to disk file
ls-al/instances/disk/28d0bac727c14e129aafceab52066ae7/i-FC3A3DFC/i- FC3A3D FC_snap check that corresponding ceph file is
volumes/volume-6cfdac53-98b9-4882-a3c4-8cf25249fae4
Volumes/volume-6cfdac53-98b9-4882-a3c4-8cf25249fae4 is carried out using rbd orders The online disk snapshot of virtual machine, snapshot document are entitled
volumes/volume-6cfdac53-98b9-4882-a3c4-8cf25249fae4@snapshot
2nd, snapshot data is copied out
Using rbd orders from
Copied in volumes/volume-6cfdac53-98b9-4882-a3c4-8cf25249fae4@snapshot snapshots Shellfish goes out snapshot data, the entitled volumes/volume-1cfdac52-98b9-4882-a3c4- of snapshot new file 9cf25249faec
3rd, using rbd orders by snapshot data
Volumes/volume-1cfdac52-98b9-4882-a3c4-9cf25249faec and source data
Volumes/volume-6cfdac53-98b9-4882-a3c4-8cf25249fae4 is merged, and is merged and is produced New data in magnetic disk volumes/volume-1cfdac52-98b9-4882-a3c4-9cf25249faec.
4th, deleted using rbd orders
Volumes/volume-6cfdac53-98b9-4882-a3c4-8cf25249fae4@snapshot snapshots, recover The disk logical relation of former virtual machine.
5th, configure new virtual machine configuration and start virtual machine
Wherein/dev/rbd15 is ceph volumes/
Volume-1cfdac52-98b9-4882-a3c4-9cf25249faec maps block device.
Embodiments described above is only part of the embodiment of the present invention, rather than whole embodiments.Based on this hair Embodiment in bright, those of ordinary skill in the art are not making the obtained scheme of substantive creation, are belonging to the present invention The scope of protection.

Claims (5)

1. a kind of online cloning process of virtual machine, it is characterised in that described method comprises the following steps:
(1) obtain the disk that virtual machine uses and online snapshot is carried out to disk;
(2) snapshot data is copied out from snapshot;
(3) source data that the snapshot data copied out and snapshot rely on is merged into operation, being merged into new virtual machine makes Use data in magnetic disk;
(4) and then the online snapshot of original virtual machine is deleted, recovers the disc information of former virtual machine;
(5) configure the configuration file of new virtual machine and start new virtual machine.
2. according to the method for claim 1, it is characterised in that the disk that virtual machine uses includes system disk and data disks, The described disk used supports the COW technologies of snapshot.
3. according to the method for claim 1, it is characterised in that the whole copy procedure of snapshot data is copied out from snapshot To be continuous, original snapshot data is kept constant in copy procedure.
4. according to the method for claim 2, it is characterised in that the whole copy procedure of snapshot data is copied out from snapshot To be continuous, original snapshot data is kept constant in copy procedure.
5. according to the method described in any one of Claims 1-4, it is characterised in that the new virtual machine configuration neutralizes The network card configuration of original virtual machine is changed, the network conflict of virtual machine for avoiding new virtual machine and being cloned.
CN201710991181.2A 2017-10-23 2017-10-23 A kind of online cloning process of virtual machine Withdrawn CN107807842A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710991181.2A CN107807842A (en) 2017-10-23 2017-10-23 A kind of online cloning process of virtual machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710991181.2A CN107807842A (en) 2017-10-23 2017-10-23 A kind of online cloning process of virtual machine

Publications (1)

Publication Number Publication Date
CN107807842A true CN107807842A (en) 2018-03-16

Family

ID=61585149

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710991181.2A Withdrawn CN107807842A (en) 2017-10-23 2017-10-23 A kind of online cloning process of virtual machine

Country Status (1)

Country Link
CN (1) CN107807842A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112181596A (en) * 2020-10-10 2021-01-05 济南浪潮数据技术有限公司 Virtual machine cloning method, device, equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010056748A1 (en) * 2008-11-11 2010-05-20 Netapp, Inc. Cloning virtual machines
CN103425550A (en) * 2013-07-11 2013-12-04 济南万联信息科技有限公司 System cloning method and device
CN104375877A (en) * 2014-10-15 2015-02-25 国云科技股份有限公司 Virtual machine online snapshot generating and deleting method
CN104468734A (en) * 2014-11-18 2015-03-25 国云科技股份有限公司 Virtual cluster expanding method based on cloning
CN104486392A (en) * 2014-12-05 2015-04-01 国云科技股份有限公司 Virtual machine image packaging method with low storage space
CN106354547A (en) * 2016-08-31 2017-01-25 浪潮电子信息产业股份有限公司 BS (browser/server) based virtual machine establishment realizing method
CN106775957A (en) * 2017-01-20 2017-05-31 郑州云海信息技术有限公司 A kind of virtual machine snapshot implementation method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010056748A1 (en) * 2008-11-11 2010-05-20 Netapp, Inc. Cloning virtual machines
CN103425550A (en) * 2013-07-11 2013-12-04 济南万联信息科技有限公司 System cloning method and device
CN104375877A (en) * 2014-10-15 2015-02-25 国云科技股份有限公司 Virtual machine online snapshot generating and deleting method
CN104468734A (en) * 2014-11-18 2015-03-25 国云科技股份有限公司 Virtual cluster expanding method based on cloning
CN104486392A (en) * 2014-12-05 2015-04-01 国云科技股份有限公司 Virtual machine image packaging method with low storage space
CN106354547A (en) * 2016-08-31 2017-01-25 浪潮电子信息产业股份有限公司 BS (browser/server) based virtual machine establishment realizing method
CN106775957A (en) * 2017-01-20 2017-05-31 郑州云海信息技术有限公司 A kind of virtual machine snapshot implementation method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112181596A (en) * 2020-10-10 2021-01-05 济南浪潮数据技术有限公司 Virtual machine cloning method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
US11347408B2 (en) Shared network-available storage that permits concurrent data access
US11366723B2 (en) Data storage management system for holistic protection and migration of serverless applications across multi-cloud computing environments
US11042446B2 (en) Application-level live synchronization across computing platforms such as cloud platforms
US20220245037A1 (en) Hypervisor-independent reference copies of virtual machine payload data based on block-level pseudo-mount
US11513922B2 (en) Systems and methods for change block tracking for backing up changed data
US8738883B2 (en) Snapshot creation from block lists
US10360110B2 (en) Point-in-time backups of a production application made accessible over fibre channel and/or iSCSI as data sources to a remote application by representing the backups as pseudo-disks operating apart from the production application and its host
CN102594849B (en) Data backup and recovery method and device, virtual machine snapshot deleting and rollback method and device
EP2731013B1 (en) Backing up method, device, and system for virtual machine
US20170235649A1 (en) Container aware networked data layer
US20220004464A1 (en) Point-in-time backups of a production application made accessible as data sources over iscsi protocol to a remote application by representing the backups as pseudo-disks operating apart from the production application and its host
US8468316B2 (en) Apparatus and method for data backup
US8700570B1 (en) Online storage migration of replicated storage arrays
US20110145816A1 (en) Managing remote deployment of a virtual machine in a network environment
US20210064486A1 (en) Access arbitration to a shared cache storage area in a data storage management system for live browse, file indexing, backup and/or restore operations
US20200065005A1 (en) Using storage managers in data storage management systems for license distribution, compliance, and updates
CN103761168B (en) It is a kind of that the method for carrying backup virtual machine is wrapping with based on nfs
JP2013520747A (en) System and method for enabling a replication target to reuse unused storage space on a thin provisioning storage system
CN107656797A (en) The method and apparatus of across virtual platform migration virtual machine
US8566541B2 (en) Storage system storing electronic modules applied to electronic objects common to several computers, and storage control method for the same
CN107807842A (en) A kind of online cloning process of virtual machine
CN106598787A (en) Xen-based agent-free backup and recovery method and system
US20200073551A1 (en) Moving outdated data from a multi-volume virtual disk to a backup storage device
US20240045770A1 (en) Techniques for using data backup and disaster recovery configurations for application management
US20230297403A1 (en) Live mounting a virtual machine in a public cloud based on accessing a simulated virtual disk as an internet small computer systems interface (iscsi) target

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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20180316