Method and device for dynamically compressing virtual machine disk data by host system

A virtual machine disk, dynamic compression technology, applied in the field of disk virtualization, to achieve the effect of saving storage space

Active Publication Date: 2020-04-03
ZTE CORP
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The purpose of the present invention is to provide a method and device for dynamically compressing virtual machine disk data by a host system, to solve the problem that the virtual machine disk image can only be compressed when the virtual machine is closed

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 and device for dynamically compressing virtual machine disk data by host system
  • Method and device for dynamically compressing virtual machine disk data by host system
  • Method and device for dynamically compressing virtual machine disk data by host system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0032] In order to make the technical problems, technical solutions and advantages to be solved by the present invention clearer, the following will describe in detail with reference to the drawings and specific embodiments.

[0033] Aiming at the problem in the prior art that the disk image of a virtual machine needs to be compressed only when the virtual machine is closed, the present invention provides a method and device for dynamically compressing the disk data of a virtual machine by a host system, by scanning the virtual disk file Each sector, and then immediately scans the empty sector of the preset identification field, controls the virtual machine to suspend, and replaces the preset identification field of the empty sector with the preset data, so as to complete the compression of the virtual disk.

[0034] Such as Figures 1 to 5 As shown, the host system in the embodiment of the present invention dynamically compresses the disk data of the virtual machine, which in...

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

A method and device for a host system to dynamically compress virtual machine disk data, solving the problem that the virtual machine disk mirror image can be compressed only when the virtual machine is turned off. The dynamic compression method comprises: sequentially scanning every sector of virtual disk files of a virtual machine; if the currently scanned sector is an empty sector, then controlling the virtual machine to pause, the empty sector being a sector only comprising preset identification fields; obtaining the preset data of the virtual disk of the virtual machine, and replacing the preset identification fields of the empty sector after migrating the preset data; after moving the preset data and finishing the replacement of the preset identification fields, controlling the virtual machine to return to work and continuously scan the next sector until finishing the scanning of the remaining sectors of the virtual disk files. In the method, data is moved when empty sectors are scanned, realizing real-time compression, and ensuring that the virtual machine completes disk compression without interrupting services to save storage space.

Description

technical field [0001] The invention relates to a disk virtualization technology of an open source code virtual machine monitor Xen platform, in particular to a method and a device for dynamically compressing virtual machine disk data by a host system. Background technique [0002] With the rapid growth of computer processing power, the scale and types of hardware resources are constantly expanding. At the same time, in the data center, applications and requirements are becoming more and more complex and flexible, and the utilization efficiency of traditional servers is decreasing. Therefore, virtualization Technology becomes an important solution. Virtualization technology can run multiple isolated virtual machines on a single computer, dynamically provide transparent and scalable computer hardware resources, and flexibly build a computer software and hardware environment that meets the needs. At present, virtualization technology has become a supporting technology for dat...

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 Patents(China)
IPC IPC(8): G06F12/02
CPCG06F12/02
Inventor 佘文魁
Owner ZTE CORP
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