Method for obtaining mirror image of damaged system disk of virtual machine

A virtual machine and system disk technology, applied in the field of cloud computing, can solve the problems of virtual machine hardware damage, poor versatility, inconvenient transfer, etc., and achieve the effect of high speed and strong versatility

Inactive Publication Date: 2015-03-11
G CLOUD TECH
View PDF4 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0009] 1. The versatility is not strong, and it relies too much on the virtual CD-ROM drive. In some cases, the virtual machine hardware is also damaged, and the virtual machine cannot be started with the CD-ROM drive. This method is not applicable;
[0010] 2. It is inconvenient to transfer the data after obtaining the data. Since the system disk itself started by the LiveCD system is not writable, the data of the original system disk needs to be copied to another virtual disk of the virtual machine first, and then copied from this virtual disk to the new virtual machine. In the system disk, the normal operation of the original business system can be restored at last

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for obtaining mirror image of damaged system disk of virtual machine
  • Method for obtaining mirror image of damaged system disk of virtual machine
  • Method for obtaining mirror image of damaged system disk of virtual machine

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0027] See figure 1 , is a flowchart of the present invention, and the specific implementation process is as follows:

[0028] 1. Create a virtual machine in the form of an external snapshot, as follows

[0029] #qemu-img create / instance / cache / emi-12345-f qcow2 / instance / i-ab234 / emi-12345.snap

[0030] Among them, emi-123456 is the parent image; emi-12345.snap is the snapshot image

[0031] The virtual machine configuration file libvirt.xml is as follows:

[0032]

[0033]

[0034] 2. Create a virtual machine and write data to the second file

[0035] #virsh create libvirt.xml

[0036] 3. Shut down the virtual machine and re-snapshot the parent image

[0037] #virsh destroy i-ab234

[0038] #mv / instance / i-ab234 / emi-12345.snap / instance / i-ab234 / emi-12345.snap.old

[0039] #qemu-img create / instance / cache / emi-12345-f qcow2 / instance / i-ab234 / emi-12345.snap

[0040] 4. Remount the original system image as the second hard disk

[0041] Add the configuration file disk.xm...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to the field of cloud computing, in particular to a method for obtaining a mirror image of a damaged system disk of a virtual machine. According to the method, firstly, an external snapshot mode is adopted for creating the virtual machine, so that the system disk of the virtual machine is divided into two parts including a mother mirror image A and a son mirror image B, and the B is the external snapshot of the A; when the system disk of the virtual machine is damaged, firstly, the virtual machine is switched off, and then, an external snapshot C is re-generated for the mother mirror image A; next, the snapshot C is used for replacing the son mirror image B as the system disk in a configuration file of the virtual machine, and the sub mirror image B is mounted into a data disk; finally, data in the original system disk is copied into the new system disk in the virtual machine, and a service system runs again; or the shutdown is firstly carried out, the original system disk is cleared and then starting is carried out, and next, the service system operates again. The method provided by the invention realizes the recovery effect when the system disk of the virtual machine is damaged, and can be used for the recovery of the damaged system disk of the virtual machine.

Description

technical field [0001] The invention relates to the field of cloud computing, in particular to a method for obtaining a damaged system disk image of a virtual machine. Background technique [0002] In the cloud platform, if the system disk of the virtual machine is damaged, it is necessary to try to obtain the data saved in the system disk of the virtual machine, and copy the data to the virtual machine that can run normally, and continue to run the application of the business system. The system disk damage of a virtual machine is different from that of a physical machine in that the system disk of a virtual machine will not have physical damage such as bad sectors on the hard disk, but the virtual machine operating system cannot be started due to damage to system files. Therefore, data can be obtained through The idea of ​​mounting the system disk as a non-system disk is realized. At present, the steps to obtain the damaged system disk data are as follows: [0003] 1. Pre...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/14G06F9/455
Inventor 张瑜科杨松莫展鹏季统凯
Owner G CLOUD TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products