CN105955674B - The quick assemble method of magnetic disk of virtual machine mirror moduleization, device and system - Google Patents

The quick assemble method of magnetic disk of virtual machine mirror moduleization, device and system Download PDF

Info

Publication number
CN105955674B
CN105955674B CN201610431619.7A CN201610431619A CN105955674B CN 105955674 B CN105955674 B CN 105955674B CN 201610431619 A CN201610431619 A CN 201610431619A CN 105955674 B CN105955674 B CN 105955674B
Authority
CN
China
Prior art keywords
component
virtual machine
magnetic disk
machine mirror
software
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.)
Active
Application number
CN201610431619.7A
Other languages
Chinese (zh)
Other versions
CN105955674A (en
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.)
Beihang University
Original Assignee
Beihang University
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 Beihang University filed Critical Beihang University
Priority to CN201610431619.7A priority Critical patent/CN105955674B/en
Publication of CN105955674A publication Critical patent/CN105955674A/en
Application granted granted Critical
Publication of CN105955674B publication Critical patent/CN105955674B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0608Saving storage space on storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots
    • G06F16/116Details of conversion of file system types or formats
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/13File access structures, e.g. distributed indices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/0643Management of files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0662Virtualisation aspects
    • G06F3/0667Virtualisation aspects at data level, e.g. file, record or object virtualisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0674Disk device
    • G06F3/0676Magnetic disk device

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention provides a kind of quick assemble method of magnetic disk of virtual machine mirror moduleization, device and system, wherein the quick assemble method of magnetic disk of virtual machine mirror moduleization includes: to receive magnetic disk of virtual machine mirror request;Module information corresponding with magnetic disk of virtual machine mirror request is obtained in component database according to OS Type and component description information;It is identified between corresponding component according to component label detection various components with the presence or absence of conflict;If it is not, then according to component storage location from component repository securing component, component is assembled into magnetic disk of virtual machine image file corresponding with magnetic disk of virtual machine mirror request.The quick assemble method of magnetic disk of virtual machine mirror moduleization provided by the invention, magnetic disk of virtual machine image file is assembled in the form of component, saves file storage, improves the assembling flexibility of magnetic disk of virtual machine image file.

Description

The quick assemble method of magnetic disk of virtual machine mirror moduleization, device and system
Technical field
The present invention relates to the quick sides of assembling of field of computer technology more particularly to a kind of magnetic disk of virtual machine mirror moduleization Method, device and system.
Background technique
With the development of computer technology, computing resource is greatly enriched and is integrated, still, in available computational resources It is but increasingly serious the problem of underutilization of resources while growth.By taking the computing resource of conventional data centers as an example, central processing The utilization rate of device (Central Processing Unit, abbreviation CPU) is less than 20%.Therefore, efficiently integration utilizes resource As particularly significant problem.
In order to promote resource utilization, virtualization technology is proposed in computer technology.Virtualization technology is a kind of resource Administrative skill is added to virtualization layer between computer physical hardware and software, shields the isomerism of bottom hardware, is upper The virtual machine of layer provides independent running environment, due to realizing shared and multiplexing to hardware resource, improves hardware The utilization rate of resource.Wherein, virtual machine is the special software operated on physical machine, and each virtual machine has oneself A set of virtual hardware, such as: the disk of virtualization, network interface card of virtualization, etc..Wherein, the disk of virtualization is substantially one A image file, referred to as magnetic disk of virtual machine image file, mirror image are a kind of document forms, it will a series of specific files according to Certain format is fabricated to single file, to facilitate user to download and use.
Currently, magnetic disk of virtual machine image file is typically stored with the data and configuration of operating system and each software, that is, every One magnetic disk of virtual machine image file is all that All Files are stored a formation from operating system, and this results in virtual It is big that machine disk mirroring file occupies memory space, and transmission consumption is big.
Summary of the invention
The present invention provides a kind of quick assemble method of magnetic disk of virtual machine mirror moduleization, device and system, by virtual machine magnetic Disk mirroring file is assembled in the form of component, saves file storage, improves magnetic disk of virtual machine image file Assembling flexibility.
The quick assemble method of magnetic disk of virtual machine mirror moduleization provided by the invention, comprising:
Receive magnetic disk of virtual machine mirror request;The magnetic disk of virtual machine mirror request includes: OS Type and component Description information;
It is obtained in component database and the virtual machine according to the OS Type and the component description information Disk mirroring requests corresponding module information;Wherein, the module information include: at least one component mark and with each group Part identifies corresponding component storage location;
It is identified between corresponding component according to each component of the component label detection with the presence or absence of conflict;If it is not, Then according to the component storage location from component repository securing component, the component is assembled into and the magnetic disk of virtual machine The corresponding magnetic disk of virtual machine image file of mirror request.
Magnetic disk of virtual machine mirror module Rapid-assembling apparatus provided by the invention, comprising:
Assembly management module, for receiving magnetic disk of virtual machine mirror request, the magnetic disk of virtual machine mirror request includes behaviour Make system type and component description information;According to the OS Type and the component description information in component database Module information corresponding with the magnetic disk of virtual machine mirror request is obtained, the module information is sent to component combination die Block;Wherein, the module information includes: at least one component mark and component corresponding with each component mark storage position It sets;
The component composite module, for according to each component of the component label detection identify corresponding component it Between with the presence or absence of conflict;If it is not, then according to the component storage location from component repository securing component, by the component group Dress is magnetic disk of virtual machine image file corresponding with the magnetic disk of virtual machine mirror request.
The quick package system of magnetic disk of virtual machine mirror moduleization provided by the invention, comprising: mirror image management module and at least The magnetic disk of virtual machine mirror module Rapid-assembling apparatus that two any embodiments of the present invention provide;
The mirror image management module is used for:
Receive mirror request;Wherein, the mirror request includes the magnetic disk of virtual machine mirror request and destination apparatus mark Know, the destination device identification is used to indicate at least one first magnetic disk of virtual machine mirror module Rapid-assembling apparatus;
Mirror database is searched for according to the magnetic disk of virtual machine mirror request and the destination device identification, judges described the Whether one magnetic disk of virtual machine mirror module Rapid-assembling apparatus lacks and corresponding group of the magnetic disk of virtual machine mirror request Part;
If all first magnetic disk of virtual machine mirror module Rapid-assembling apparatus lack and the magnetic disk of virtual machine The corresponding component of mirror request, then to the second magnetic disk of virtual machine mirror module Rapid-assembling apparatus transmission group of missing component Part inquiry request, so that the second magnetic disk of virtual machine mirror module Rapid-assembling apparatus is according to component inquiry request confirmation It is no to lack component corresponding with the magnetic disk of virtual machine mirror request;And receive the second magnetic disk of virtual machine mirror module The acknowledgment of your inquiry message that Rapid-assembling apparatus is sent, the acknowledgment of your inquiry message include missing instruction or the instruction of non-missing;
If the acknowledgment of your inquiry message includes the missing instruction, the mirror image data is searched for according to missing instruction Library, determination include the third magnetic disk of virtual machine mirror module Rapid-assembling apparatus of component corresponding with the missing instruction, And transmission request is sent to the third magnetic disk of virtual machine mirror module Rapid-assembling apparatus, so that the third virtual machine magnetic Component corresponding with the missing instruction is sent to second magnetic disk of virtual machine by disk mirroring modularization Rapid-assembling apparatus Mirror module Rapid-assembling apparatus;And to described in the second magnetic disk of virtual machine mirror module Rapid-assembling apparatus transmission Magnetic disk of virtual machine mirror request.
The present invention provides a kind of quick assemble methods of magnetic disk of virtual machine mirror moduleization, device and system, wherein virtual The quick assemble method of machine disk mirroring modularization includes: to receive magnetic disk of virtual machine mirror request, according to OS Type and group Part description information obtains module information corresponding with magnetic disk of virtual machine mirror request in component database, is identified according to component Various components are detected to identify between corresponding component with the presence or absence of conflict;If it is not, then being stored according to component storage location from component Component is assembled into magnetic disk of virtual machine image file corresponding with magnetic disk of virtual machine mirror request by securing component in library.This hair The quick assemble method of magnetic disk of virtual machine mirror moduleization of bright offer carries out magnetic disk of virtual machine image file in the form of component Assembling, saves file storage, improves the assembling flexibility of magnetic disk of virtual machine image file.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hair Bright some embodiments for those of ordinary skill in the art without creative efforts, can be with root Other attached drawings are obtained according to these attached drawings.
Fig. 1 is the flow chart for the quick assemble method of magnetic disk of virtual machine mirror moduleization that the embodiment of the present invention one provides;
Fig. 2 is the flow chart of the quick assemble method of magnetic disk of virtual machine mirror moduleization provided by Embodiment 2 of the present invention;
Fig. 3 is the structural representation for the magnetic disk of virtual machine mirror module Rapid-assembling apparatus that the embodiment of the present invention one provides Figure;
Fig. 4 is the structural representation for the quick package system of magnetic disk of virtual machine mirror moduleization that the embodiment of the present invention one provides Figure.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art Every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
Fig. 1 is the flow chart for the quick assemble method of magnetic disk of virtual machine mirror moduleization that the embodiment of the present invention one provides.This The quick assemble method of magnetic disk of virtual machine mirror moduleization that embodiment provides, executing subject can be magnetic disk of virtual machine mirror module Change Rapid-assembling apparatus, magnetic disk of virtual machine mirror module Rapid-assembling apparatus can be set in be equipped with virtual machine arbitrarily set Standby upper, for example, being arranged in cloud platform, cloud platform can be public cloud platform or be privately owned cloud platform.As shown in Figure 1, this Embodiment provide the quick assemble method of magnetic disk of virtual machine mirror moduleization, may include:
Step 101 receives magnetic disk of virtual machine mirror request.
Specifically, magnetic disk of virtual machine mirror request is used to indicate request and establishes a magnetic disk of virtual machine image file, this reality It is without restriction for the specific implementation of magnetic disk of virtual machine mirror request to apply example, such as: magnetic disk of virtual machine mirror request can To be program instruction.
Magnetic disk of virtual machine mirror request is received, can be by way of different receipt sources and reception, the present embodiment is to this It is without restriction, such as: magnetic disk of virtual machine mirror request can be what user inputted on human-computer interaction interface, magnetic disk of virtual machine Mirror module Rapid-assembling apparatus receives in such a way that front end page is requested, and magnetic disk of virtual machine mirror request can also be logical Cross what other cloud platforms passed over, magnetic disk of virtual machine mirror module Rapid-assembling apparatus receives the request, etc..
Wherein, magnetic disk of virtual machine mirror request may include: OS Type and component description information.
OS Type is used to indicate the operating system that the magnetic disk of virtual machine image file that request is established is relied on, example Such as: Windows operating system, linux operating system, etc..Component description information is used to illustrate the virtual machine magnetic that request is established Component required for disk mirroring file, the present embodiment are without restriction for the specific implementation of component description information, such as: Component description information can be the descriptive language information of description assembly function, and component description information can also be specific component Title, etc..
It should be noted that the component in the present embodiment, refer to have the software package an of function and its configuration file Set, component may include one or several software packages for having dependence.Wherein, component is corresponding with component mark, component Mark can uniquely distinguish different components, and each software package is corresponding with software package mark, and software package mark can be distinguished uniquely Different software package in component, the present embodiment are without restriction for the specific implementation of component mark and software package mark, Such as: component mark can be component Name, and component Name can be Chinese or English name, and component mark can also be with For by number, letter, a string of character strings forming of character, software package mark can be software package title, and software package title can be with For Chinese or English name, software package mark or a string of character strings being made of number, letter, character, etc. Deng.
Step 102 obtains in component database and magnetic disk of virtual machine according to OS Type and component description information The corresponding module information of mirror request.
Wherein, the device related information of component is stored in component database, the present embodiment is for device related information Specific implementation is without restriction, such as: device related information may include: component mark, component storage location, component institute Component mark of the other assemblies of dependence, etc..
Component storage location is used to indicate the specific storage path of component.Dependence in component between each software package For indicating that the dependence in component between each software package and other software packages, so-called dependence refer in software work Semantic connection relationship in journey model between two model elements, model element may be independent, it is also possible to be to rely on it Its model element, when a model element depend on another model element when, then between the two model elements exist according to The relationship of relying, such as: software package A needs to operate normally under the premise of software package B installation, then software package A depends on software Wrap B.The corresponding software dependent tree of component is used to specifically indicate that the dependence in component between each software package is closed by tree structure It is that each node in software dependent tree indicates a software package.
Wherein, module information may include: that at least one component mark and component corresponding with each component mark are deposited Storage space is set.
As it can be seen that the component of available all components corresponding with magnetic disk of virtual machine mirror request is believed by this step Breath.
Step 103 identifies between corresponding component according to component label detection various components with the presence or absence of conflict;If it is not, Then according to component storage location from component repository securing component, component is assembled into opposite with magnetic disk of virtual machine mirror request The magnetic disk of virtual machine image file answered.
Specifically, it after the module information for getting all components corresponding with magnetic disk of virtual machine mirror request, needs Whether there is conflict between detection various components.So-called conflict, refers in soft project, the same luck of two or more software packages When row, existing conflict the case where leading to one or more software cisco unity malfunction between program, such as: software package A and software package B cannot be run simultaneously, then software package A and software package B has conflict.
It, then can be by all components group when conflict is not present in all components corresponding with magnetic disk of virtual machine mirror request Dress up a magnetic disk of virtual machine image file, specifically, according to the storage location of various components from component repository acquisition group Component is assembled into magnetic disk of virtual machine image file corresponding with magnetic disk of virtual machine mirror request by part.
Wherein, various components are stored in component repository.
Optionally, magnetic disk of virtual machine image file can be the entity file including various components, and user can be to the reality Body file carries out the operation such as copying, and magnetic disk of virtual machine image file is also possible to the only directory index text including component carry position Part, the virtual machine in cloud platform can run the magnetic disk of virtual machine image file.
As it can be seen that the quick assemble method of magnetic disk of virtual machine mirror moduleization provided in this embodiment, by operating system and has The software of specific function is stored in advance in component repository in the form of component, when needing to establish a magnetic disk of virtual machine mirror image When file, clearly required OS Type and component description information in magnetic disk of virtual machine mirror request, then magnetic disk of virtual machine Mirror module Rapid-assembling apparatus may be selected by corresponding component, and component is assembled into and magnetic disk of virtual machine mirror request phase Corresponding magnetic disk of virtual machine image file.Due to being to form magnetic disk of virtual machine image file by basic unit of component, do not need From operating system therefore an All Files time formation magnetic disk of virtual machine image file of storage is saved into file storage, Improve the assembling flexibility of magnetic disk of virtual machine image file.
Optionally, step 103 can also include:
If so, publication warning information, stops the assembling to component.
Optionally, can also include: before receiving magnetic disk of virtual machine mirror request in step 101
Formation component.
Component is stored into component repository, the corresponding component mark of component and component storage location are stored to component In database.
It should be noted that the present embodiment does not limit the specific implementation of above-mentioned formation component and storage assembly System, such as: formation component can be the New Parent generated by new component template, be also possible to existing component and its letter Breath is stored into component repository and component database, etc..
Present embodiments provide a kind of quick assemble method of magnetic disk of virtual machine mirror moduleization, comprising: receive virtual machine magnetic Disk mirroring request, obtains in component database according to OS Type and component description information and asks with magnetic disk of virtual machine mirror image Corresponding module information is sought, is identified between corresponding component according to component label detection various components with the presence or absence of conflict;If It is no, then according to component storage location from component repository securing component, component is assembled into and magnetic disk of virtual machine mirror request Corresponding magnetic disk of virtual machine image file.The quick assemble method of magnetic disk of virtual machine mirror moduleization provided in this embodiment, will Magnetic disk of virtual machine image file is assembled in the form of component, saves file storage, improves magnetic disk of virtual machine mirror As the assembling flexibility of file.
Fig. 2 is the flow chart of the quick assemble method of magnetic disk of virtual machine mirror moduleization provided by Embodiment 2 of the present invention, this Embodiment on the basis of example 1, provides another realization side of the quick assemble method of magnetic disk of virtual machine mirror moduleization Formula.As shown in Fig. 2, the quick assemble method of magnetic disk of virtual machine mirror moduleization provided in this embodiment, wherein formation component, it will Component is stored into component repository, and the corresponding component mark of component and component storage location are stored into component database, May include:
Step 201 receives magnetic disk of virtual machine mirror image source file.
Wherein, magnetic disk of virtual machine mirror image source file refers to that existing is not the virtual machine magnetic formed using component as basic unit Disk mirroring file, magnetic disk of virtual machine mirror image source file are usually the entity that All Files are stored to a formation from operating system File.
Step 202 handles magnetic disk of virtual machine mirror image source file, obtains software the package list, wraps in software the package list It includes multiple software package marks and each software package identifies corresponding software information.It is calculated according to software package mark and software information Each software package identifies the dependence between corresponding software package.At least one software dependent tree is obtained according to dependence.
Optionally, magnetic disk of virtual machine mirror image source file is handled, obtains software the package list, a kind of implementation can be with Are as follows:
Obtain preset software the package list in magnetic disk of virtual machine mirror image source file.
Optionally, magnetic disk of virtual machine mirror image source file is handled, obtains software the package list, another implementation can With are as follows:
The All Files scanned in magnetic disk of virtual machine mirror image source file generate listed files, generate software according to listed files The package list.
Wherein, the corresponding component of each software dependent tree.
Step 203 successively judges that each software dependent tree whether there is in component database.
In this step, whether the software dependent tree for needing to judge to arrive by magnetic disk of virtual machine image source file acquisition Exist in component database.If it is present illustrate the corresponding component of software dependent tree in component repository and There is storage in component database, therefore does not need that the corresponding component of software dependent tree is carried out to repeat storage.If it does not, Then illustrate the corresponding component of software dependent tree in component repository and is not stored in component database, the software dependent tree By a corresponding new component, it is therefore desirable to be stored to the corresponding component of software dependent tree.
Step 204, if it does not exist, then store software dependent tree into component database, is generated according to software dependent tree Component stores component into component repository, and the corresponding component mark of component and component storage location are stored to package count According in library.
As it can be seen that the quick assemble method of magnetic disk of virtual machine mirror moduleization provided in this embodiment, mainly provides generation group A kind of specific implementation of part, specifically, by the way that existing magnetic disk of virtual machine mirror image source file is split into more particulate The software dependent tree of degree illustrates that the software dependent tree corresponds to one if software dependent tree is not present in component database New component, therefore processing is carried out to the software dependent tree, new component can be generated, and component mark and component are stored into position It sets and stores into component database, component is stored into component repository, and then gradually improve Component Gallery, it is gradually complete based on this Kind Component Gallery can establish new virtual machine magnetic according to the component in Component Gallery when receiving magnetic disk of virtual machine mirror request Disk mirroring file, to improve the assembling success rate of magnetic disk of virtual machine image file.
Optionally, in step 204, according to software dependent tree formation component, may include:
All nodes in traversal dependent tree are generated according to the corresponding package data of each node and configuration file Component.
A kind of quick assemble method of magnetic disk of virtual machine mirror moduleization is present embodiments provided, by magnetic disk of virtual machine mirror image text Part is assembled in the form of component, saves file storage, and the assembling for improving magnetic disk of virtual machine image file is flexible Property, and further promote the assembling success rate of magnetic disk of virtual machine image file.
Fig. 3 is the structural representation for the magnetic disk of virtual machine mirror module Rapid-assembling apparatus that the embodiment of the present invention one provides Figure, magnetic disk of virtual machine mirror module Rapid-assembling apparatus provided in this embodiment, for executing Fig. 1 or embodiment illustrated in fig. 2 The quick assemble method of magnetic disk of virtual machine mirror moduleization of offer.As shown in figure 3, magnetic disk of virtual machine mirror image provided in this embodiment Modularization Rapid-assembling apparatus may include:
Assembly management module 11, for receiving magnetic disk of virtual machine mirror request, magnetic disk of virtual machine mirror request includes operation System type and component description information.It is obtained in component database 12 according to OS Type and component description information and void Quasi- machine disk mirroring requests corresponding module information, and module information is sent to component composite module 13.Wherein, module information It include: at least one component mark and component storage location corresponding with each component mark.
Component composite module 13 whether there is between corresponding component for being identified according to component label detection various components Conflict.If it is not, then according to component storage location from component repository 14 securing component, component is assembled into and magnetic disk of virtual machine The corresponding magnetic disk of virtual machine image file of mirror request.
It optionally, can also include: component generation module 15.
Component generation module 15 is used for formation component, component is stored into component repository 14.
Assembly management module 11, for storing the corresponding component mark of component and component storage location to component database In 12.
Optionally, component generation module 15 is specifically used for: receiving magnetic disk of virtual machine mirror image source file.To magnetic disk of virtual machine mirror Image source file is handled, and software the package list is obtained, and includes multiple software packages mark and each software package in software the package list Identify corresponding software information.Each software package is calculated according to software package mark and software information to identify between corresponding software package Dependence.At least one software dependent tree is obtained according to dependence.
Assembly management module 11 is specifically used for, and successively judges whether each software dependent tree is deposited in component database 12 ?.If it does not exist, then software dependent tree is stored into component database 12.
Component generation module 15 is also particularly useful for if software dependent tree is not present in component database 12, according to soft Part dependent tree formation component.Component is stored into component repository 14, and the corresponding component mark of component and component are stored Position is sent to assembly management module 11.
Assembly management module 11 is also particularly useful for storing component corresponding component mark and component storage location to component In database 12.
Optionally, component generation module 15 is specifically used for:
All nodes in traversal dependent tree are generated according to the corresponding package data of each node and configuration file Component.
Present embodiments provide a kind of magnetic disk of virtual machine mirror module Rapid-assembling apparatus, comprising: assembly management module, Component composite module, component generation module, component database and component repository.Magnetic disk of virtual machine mirror image provided in this embodiment Modularization Rapid-assembling apparatus assembles magnetic disk of virtual machine image file in the form of component, and it is empty to save file storage Between, improve the assembling flexibility of magnetic disk of virtual machine image file.
Fig. 4 is the structural representation for the quick package system of magnetic disk of virtual machine mirror moduleization that the embodiment of the present invention one provides Figure, the quick package system of magnetic disk of virtual machine mirror moduleization provided in this embodiment can be set empty in having cross-platform management In the arbitrary equipment of quasi- machine function, for example, setting is in mixing cloud platform.As shown in figure 4, virtual machine magnetic provided in this embodiment The quick package system of disk mirroring modularization may include:
The magnetic disk of virtual machine mirror moduleization that mirror image management module 22 and at least two embodiments as shown in Figure 3 provide is quick Assembling device 21.
Mirror image management module 22 is used for:
Receive mirror request.
Wherein, mirror request may include magnetic disk of virtual machine mirror request and destination device identification, and destination device identification is used In at least one first magnetic disk of virtual machine mirror module Rapid-assembling apparatus of instruction.
Wherein, magnetic disk of virtual machine mirror request is similar with the principle in embodiment of the present invention method and Installation practice, This is repeated no more.
Optionally, destination device identification may include: that security level or magnetic disk of virtual machine mirror moduleization quickly assemble The mark of device.
Wherein, security level is used to identify the safe coefficient of magnetic disk of virtual machine mirror module Rapid-assembling apparatus, different Security level it is corresponding at least one magnetic disk of virtual machine mirror module Rapid-assembling apparatus respectively.Such as: public cloud is flat The magnetic disk of virtual machine mirror moduleization on magnetic disk of virtual machine mirror module Rapid-assembling apparatus and privately owned cloud platform on platform is fast Fast assembling device, security level are different.
Wherein, the mark of magnetic disk of virtual machine mirror module Rapid-assembling apparatus, for uniquely distinguishing different virtual machines Disk mirroring modularization Rapid-assembling apparatus, the mark of different magnetic disk of virtual machine mirror module Rapid-assembling apparatus, only with One magnetic disk of virtual machine mirror module Rapid-assembling apparatus is corresponding.The present embodiment is fast for magnetic disk of virtual machine mirror moduleization The specific implementation of the mark of fast assembling device is without restriction, for example, magnetic disk of virtual machine mirror moduleization quickly assembles dress The mark set can be the title of magnetic disk of virtual machine mirror module Rapid-assembling apparatus, or magnetic disk of virtual machine mirror image mould The serial number of block Rapid-assembling apparatus can also be the address, etc. of magnetic disk of virtual machine mirror module Rapid-assembling apparatus.
In one implementation, mirror image management module 22 receives mirror request, can be user in human-computer interaction interface Upper input, mirror image management module 22 receives in such a way that front end page is requested.Specifically, mirror request may include virtual The request of machine disk mirroring and security level.
In another implementation, mirror image management module 22 receives mirror request, can be magnetic disk of virtual machine mirror image mould What any one magnetic disk of virtual machine mirror module Rapid-assembling apparatus in the quick package system of blockization was sent, such as: when certain Cloud platform needs the scene of elastic dilatation or autonomous migration virtual machine to other cloud platforms when, specifically, if certain cloud platform need When wanting elastic dilatation to other cloud platforms, mirror request may include magnetic disk of virtual machine mirror request and security level, if certain cloud When platform needs autonomous migration virtual machine to other cloud platforms, mirror request may include magnetic disk of virtual machine mirror request and migration The address of magnetic disk of virtual machine mirror module Rapid-assembling apparatus in purpose cloud platform.
Mirror database 23 is searched for according to magnetic disk of virtual machine mirror request and destination device identification, judges the first virtual machine magnetic Whether disk mirroring modularization Rapid-assembling apparatus lacks component corresponding with magnetic disk of virtual machine mirror request.
Wherein, it is stored on each magnetic disk of virtual machine mirror module Rapid-assembling apparatus 21 and stores in mirror database 23 Component relevant information, can by mirror image management module 22 and magnetic disk of virtual machine mirror module Rapid-assembling apparatus 21 it Between interaction real-time update.
At least one first magnetic disk of virtual machine mirror module Rapid-assembling apparatus includes and magnetic disk of virtual machine mirror if it exists As requesting corresponding component, then to the 4th magnetic disk of virtual machine mirror for including component corresponding with magnetic disk of virtual machine mirror request As modularization Rapid-assembling apparatus, magnetic disk of virtual machine mirror request is sent.
It should be noted that selecting party of the present embodiment for the 4th magnetic disk of virtual machine mirror module Rapid-assembling apparatus Formula is without restriction, can send magnetic disk of virtual machine mirror to the 4th all magnetic disk of virtual machine mirror module Rapid-assembling apparatus As request, magnetic disk of virtual machine mirror image can also be sent to any one the 4th magnetic disk of virtual machine mirror module Rapid-assembling apparatus Request.
If all first magnetic disk of virtual machine mirror module Rapid-assembling apparatus lack and magnetic disk of virtual machine mirror request Corresponding component, then the second magnetic disk of virtual machine mirror module Rapid-assembling apparatus sending assembly inquiry to missing component is asked Ask so that the second magnetic disk of virtual machine mirror module Rapid-assembling apparatus according to component inquiry request be confirmed whether missing with it is virtual Machine disk mirroring requests corresponding component;And receive looking into for the second magnetic disk of virtual machine mirror module Rapid-assembling apparatus transmission Confirmation message is ask, acknowledgment of your inquiry message includes missing instruction or the instruction of non-missing.
Wherein, missing instruction is used to indicate the second magnetic disk of virtual machine mirror module Rapid-assembling apparatus missing and virtual machine Disk mirroring requests corresponding component, and non-missing instruction is used to indicate the second magnetic disk of virtual machine mirror moduleization and quickly assembles dress It sets including all components corresponding with magnetic disk of virtual machine mirror request.
It optionally, may include the component mark of the component lacked in component inquiry request.
It optionally, may include the component mark of the component lacked in missing instruction.
If acknowledgment of your inquiry message include missing instruction, according to missing indicate search mirror database 23, determination include with Missing indicates the third magnetic disk of virtual machine mirror module Rapid-assembling apparatus of corresponding component, and to third magnetic disk of virtual machine Mirror module Rapid-assembling apparatus sends transmission request, so that third magnetic disk of virtual machine mirror module Rapid-assembling apparatus root Component corresponding with missing instruction is sent to the second magnetic disk of virtual machine mirror module Rapid-assembling apparatus according to transmission request; And magnetic disk of virtual machine mirror request is sent to the second magnetic disk of virtual machine mirror module Rapid-assembling apparatus.
It optionally, may include the component mark of the component lacked in transmission request.
It should be noted that in the present embodiment, being sent to third magnetic disk of virtual machine mirror module Rapid-assembling apparatus Transmission request can send transmission request to all third magnetic disk of virtual machine mirror module Rapid-assembling apparatus, can also be with Transmission request is sent to any one third magnetic disk of virtual machine mirror module Rapid-assembling apparatus.
If acknowledgment of your inquiry message includes non-missing instruction, directly quickly assembled to the second magnetic disk of virtual machine mirror moduleization Device sends magnetic disk of virtual machine mirror request.
It should be noted that the first, second, third and fourth magnetic disk of virtual machine mirror moduleization in the present embodiment is quick Assembling device, structure is identical, is the magnetic disk of virtual machine mirror module Rapid-assembling apparatus that embodiment as shown in Figure 3 provides, " first " therein, " second ", " third " and " the 4th " are only for distinguishing the magnetic disk of virtual machine mirror image mould including different components Block Rapid-assembling apparatus.Specifically, magnetic disk of virtual machine mirror moduleization corresponding with destination device identification is quickly assembled Device is labeled as the first magnetic disk of virtual machine mirror module Rapid-assembling apparatus, opposite with magnetic disk of virtual machine mirror request by lacking The magnetic disk of virtual machine mirror module Rapid-assembling apparatus for the component answered is quick labeled as the second magnetic disk of virtual machine mirror moduleization Assembling device will include being labeled as with the magnetic disk of virtual machine mirror module Rapid-assembling apparatus of the corresponding component of missing instruction Third magnetic disk of virtual machine mirror module Rapid-assembling apparatus will include all groups corresponding with magnetic disk of virtual machine mirror request The magnetic disk of virtual machine mirror module Rapid-assembling apparatus of part quickly assembles dress labeled as the 4th magnetic disk of virtual machine mirror moduleization It sets.
It should be noted that the magnetic disk of virtual machine mirror module Rapid-assembling apparatus in the present embodiment, fills with the present invention The principle set in embodiment is similar, and details are not described herein.
The quick package system of magnetic disk of virtual machine mirror moduleization provided in this embodiment, when across the cloud transfer of virtual machine magnetic of needs When disk mirroring file, do not need to transmit entire magnetic disk of virtual machine image file, it is only necessary to according to magnetic disk of virtual machine mirror image Request, the component of transmission deletion, that is, only need to lack in the request of transfer of virtual machine disk mirroring between different cloud platforms The corresponding component lost, magnetic disk of virtual machine mirror module Rapid-assembling apparatus can be according to the magnetic disk of virtual machine mirror request Magnetic disk of virtual machine image file is established, and then quickly assembles magnetic disk of virtual machine image file under across cloud scene, completes virtual machine Migration or resilient expansion, saved the utilization rate of network bandwidth so that network service it is more smooth.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent Pipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according to So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into Row equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution The range of scheme.

Claims (6)

1. a kind of quick assemble method of magnetic disk of virtual machine mirror moduleization characterized by comprising
Receive magnetic disk of virtual machine mirror request;The magnetic disk of virtual machine mirror request includes: OS Type and component description Information;
It is obtained in component database and the magnetic disk of virtual machine according to the OS Type and the component description information The corresponding module information of mirror request;Wherein, the module information include: at least one component mark and with each component mark Sensible corresponding component storage location;
It is identified between corresponding component according to each component of the component label detection with the presence or absence of conflict;If it is not, then root According to the component storage location from component repository securing component, the component is assembled into and the magnetic disk of virtual machine mirror image Request corresponding magnetic disk of virtual machine image file;
Before the reception magnetic disk of virtual machine mirror request, further includes:
Formation component;
The component is stored into the component repository, the corresponding component mark of the component and component storage location are deposited Storage is into the component database;
The formation component stores the component into the component repository, by the component corresponding component mark and Component storage location is stored into the component database, comprising:
Receive magnetic disk of virtual machine mirror image source file;
The magnetic disk of virtual machine mirror image source file is handled, software the package list is obtained, includes more in described software the package list A software package mark and each software package identify corresponding software information;According to software package mark and the software Information calculates each software package and identifies dependence between corresponding software package;It is obtained at least according to the dependence One software dependent tree;
Successively judge that each software dependent tree whether there is in the component database;
If it does not exist, then the software dependent tree is stored into the component database;It is generated according to the software dependent tree The component;The component is stored into the component repository, the corresponding component mark of the component and component are stored Position is stored into the component database.
2. the method according to claim 1, wherein described generate the component according to the software dependent tree, Include:
All nodes in the software dependent tree are traversed, according to the corresponding package data of each node and configuration file Generate the component.
3. a kind of magnetic disk of virtual machine mirror module Rapid-assembling apparatus characterized by comprising
Assembly management module, for receiving magnetic disk of virtual machine mirror request, the magnetic disk of virtual machine mirror request includes operation system Type of uniting and component description information;It is obtained in component database according to the OS Type and the component description information Module information corresponding with the magnetic disk of virtual machine mirror request, is sent to component composite module for the module information;Its In, the module information includes: at least one component mark and component storage location corresponding with each component mark;
The component composite module is for being identified between corresponding component according to each component of the component label detection It is no to there is conflict;If it is not, then according to the component storage location from component repository securing component, the component is assembled into Magnetic disk of virtual machine image file corresponding with the magnetic disk of virtual machine mirror request;
Component generation module is used for formation component, the component is stored into the component repository;
The assembly management module, for storing the corresponding component mark of the component and component storage location to the component In database;
The component generation module is specifically used for: receiving magnetic disk of virtual machine mirror image source file;To the magnetic disk of virtual machine image source File is handled, and is obtained software the package list, is identified in described software the package list including multiple software packages and each described soft Part packet identifies corresponding software information;Each software package mark is calculated according to software package mark and the software information Dependence between corresponding software package;At least one software dependent tree is obtained according to the dependence;
The assembly management module is specifically used for, successively judge each software dependent tree in the component database whether In the presence of;If it does not exist, then the software dependent tree is stored into the component database;
The component generation module also particularly useful for, if the software dependent tree is not present in the component database, root The component is generated according to the software dependent tree;The component is stored into the component repository, and by the component pair The component mark and component storage location answered are sent to the assembly management module;
The assembly management module is also particularly useful for storing the component corresponding component mark and component storage location to institute It states in component database.
4. device according to claim 3, which is characterized in that the component generation module is specifically used for:
All nodes in the software dependent tree are traversed, according to the corresponding package data of each node and configuration file Generate the component.
5. a kind of quick package system of magnetic disk of virtual machine mirror moduleization characterized by comprising mirror image management module and at least Two magnetic disk of virtual machine mirror module Rapid-assembling apparatus as described in claim 3 to 4 is any;
The mirror image management module is used for:
Receive mirror request;Wherein, the mirror request includes the magnetic disk of virtual machine mirror request and destination device identification, institute It states destination device identification and is used to indicate at least one first magnetic disk of virtual machine mirror module Rapid-assembling apparatus;
Mirror database is searched for according to the magnetic disk of virtual machine mirror request and the destination device identification, judges that described first is empty Whether quasi- machine disk mirroring modularization Rapid-assembling apparatus lacks component corresponding with the magnetic disk of virtual machine mirror request;
If all first magnetic disk of virtual machine mirror module Rapid-assembling apparatus lack and the magnetic disk of virtual machine mirror image Corresponding component is requested, then is looked into the second magnetic disk of virtual machine mirror module Rapid-assembling apparatus sending assembly of missing component Request is ask, so that the second magnetic disk of virtual machine mirror module Rapid-assembling apparatus is confirmed whether to lack according to the component inquiry request Lose component corresponding with the magnetic disk of virtual machine mirror request;And it is quick to receive the second magnetic disk of virtual machine mirror moduleization The acknowledgment of your inquiry message that assembling device is sent, the acknowledgment of your inquiry message include missing instruction or the instruction of non-missing;
If the acknowledgment of your inquiry message includes the missing instruction, the mirror database is searched for according to missing instruction, Determination includes the third magnetic disk of virtual machine mirror module Rapid-assembling apparatus of component corresponding with the missing instruction, and to The third magnetic disk of virtual machine mirror module Rapid-assembling apparatus sends transmission request, so that the third magnetic disk of virtual machine mirror As component corresponding with the missing instruction is sent to described the according to transmission request by modularization Rapid-assembling apparatus Two magnetic disk of virtual machine mirror module Rapid-assembling apparatus;And it is quickly assembled to the second magnetic disk of virtual machine mirror moduleization Device sends the magnetic disk of virtual machine mirror request.
6. system according to claim 5, which is characterized in that the destination device identification includes: security level or void The mark of quasi- machine disk mirroring modularization Rapid-assembling apparatus.
CN201610431619.7A 2016-06-16 2016-06-16 The quick assemble method of magnetic disk of virtual machine mirror moduleization, device and system Active CN105955674B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610431619.7A CN105955674B (en) 2016-06-16 2016-06-16 The quick assemble method of magnetic disk of virtual machine mirror moduleization, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610431619.7A CN105955674B (en) 2016-06-16 2016-06-16 The quick assemble method of magnetic disk of virtual machine mirror moduleization, device and system

Publications (2)

Publication Number Publication Date
CN105955674A CN105955674A (en) 2016-09-21
CN105955674B true CN105955674B (en) 2019-02-12

Family

ID=56905781

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610431619.7A Active CN105955674B (en) 2016-06-16 2016-06-16 The quick assemble method of magnetic disk of virtual machine mirror moduleization, device and system

Country Status (1)

Country Link
CN (1) CN105955674B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022222809A1 (en) * 2021-04-21 2022-10-27 阿里巴巴(中国)有限公司 Functional component processing method, medium, device and operating system

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107357674B (en) * 2017-06-29 2021-02-19 联想(北京)有限公司 Information processing method, device and storage medium
CN107704593B (en) * 2017-10-12 2020-11-27 成都知道创宇信息技术有限公司 Method for detecting and solving conflict between Docker local mirror image and remote warehouse mirror image
CN107888695B (en) * 2017-11-23 2019-09-13 新华三云计算技术有限公司 The method and cloud platform equipment of cloud platform creation mirror image
CN110995768B (en) * 2019-12-31 2022-04-15 奇安信科技集团股份有限公司 Method, device and medium for constructing and generating firewall
CN111367571A (en) * 2020-02-27 2020-07-03 中国建设银行股份有限公司 Equipment assembling method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102214118A (en) * 2010-04-08 2011-10-12 中国移动通信集团公司 Method, system and device for controlling virtual machine (VM)
CN102902770A (en) * 2012-09-26 2013-01-30 东软集团股份有限公司 Method and system for assembling mirror image files
CN103795759A (en) * 2012-10-31 2014-05-14 北京搜狐新媒体信息技术有限公司 Method and system for scheduling virtual machine mirror image file

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050229175A1 (en) * 2004-04-13 2005-10-13 Surgient, Inc. Hardware agnostic manipulation and management of image resources

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102214118A (en) * 2010-04-08 2011-10-12 中国移动通信集团公司 Method, system and device for controlling virtual machine (VM)
CN102902770A (en) * 2012-09-26 2013-01-30 东软集团股份有限公司 Method and system for assembling mirror image files
CN103795759A (en) * 2012-10-31 2014-05-14 北京搜狐新媒体信息技术有限公司 Method and system for scheduling virtual machine mirror image file

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022222809A1 (en) * 2021-04-21 2022-10-27 阿里巴巴(中国)有限公司 Functional component processing method, medium, device and operating system

Also Published As

Publication number Publication date
CN105955674A (en) 2016-09-21

Similar Documents

Publication Publication Date Title
CN105955674B (en) The quick assemble method of magnetic disk of virtual machine mirror moduleization, device and system
CN109416643B (en) Application program migration system
US10394792B1 (en) Data storage in a graph processing system
AU2014346369B2 (en) Managed service for acquisition, storage and consumption of large-scale data streams
CA2930026C (en) Data stream ingestion and persistence techniques
US9858322B2 (en) Data stream ingestion and persistence techniques
US9276959B2 (en) Client-configurable security options for data streams
US10635644B2 (en) Partition-based data stream processing framework
US11294758B2 (en) Automated methods and systems to classify and troubleshoot problems in information technology systems and services
CN106294713A (en) The method of data synchronization resolved based on Incremental Log and data synchronization unit
US20150370885A1 (en) Method and system for clustering event messages and managing event-message clusters
US11429568B2 (en) Global namespace for a hierarchical set of file systems
US20180189124A1 (en) Rebuilding the namespace in a hierarchical union mounted file system
US10579587B2 (en) Space management for a hierarchical set of file systems
CN114374701B (en) Transparent sharing device for sample model of multistage linkage artificial intelligent platform
US8930967B2 (en) Shared versioned workload partitions
US20230055511A1 (en) Optimizing clustered filesystem lock ordering in multi-gateway supported hybrid cloud environment
CN106575296B (en) Dynamic N-dimensional cube for hosted analytics
US10592479B2 (en) Space management for a hierarchical set of file systems
US10579598B2 (en) Global namespace for a hierarchical set of file systems
CN112328697A (en) Data synchronization method based on big data
Zhang et al. An optimal container update method for edge‐cloud collaboration
US11693742B2 (en) Backing up data for a namespace assigned to a tenant
CN107704618A (en) A kind of heat based on aufs file system migrates method and system
US8386732B1 (en) Methods and apparatus for storing collected network management data

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant