Dynamic compression method and apparatus for virtual machine disk data by host system

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

Active Publication Date: 2016-04-13
ZTE CORP
View PDF8 Cites 11 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
  • Dynamic compression method and apparatus for virtual machine disk data by host system
  • Dynamic compression method and apparatus for virtual machine disk data by host system
  • Dynamic compression method and apparatus for 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

The invention provides a dynamic compression method and apparatus for virtual machine disk data by a host system, and solves the problem that a virtual machine disk image can be compressed only when a virtual machine is switched off. The dynamic compression method comprises: sequentially scanning each sector of a virtual machine disk file of the virtual machine, and if it is scanned that a current sector is a hole sector, controlling the virtual machine to be paused, wherein the hole sector is a sector only containing a preset identifier field; obtaining preset data of a virtual disk of the virtual machine, migrating the preset data, and replacing the preset identifier field of the hole sector; and after the preset data are migrated and the preset identifier field is replaced, controlling the virtual machine to return to work, and continuing to scan a next sector until the scanning of the residual sectors of the virtual disk file is finished. According to the dynamic compression method and apparatus, the data are migrated while the hole sectors are scanned, so that the real-time compression is realized, the virtual machine is ensured to finish disk compression without business interruption, and the storage space is saved.

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 VirtualMachine on a single computer, dynamically provide transparent and scalable computer hardware resources, so as to flexibly build a computer software and hardware environment that meets the needs. At present, virtualization technology has become the support...

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): 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