CN106598692A - Method for creating mirror image file in logical volume and starting virtual machine, and server - Google Patents

Method for creating mirror image file in logical volume and starting virtual machine, and server Download PDF

Info

Publication number
CN106598692A
CN106598692A CN201510683647.3A CN201510683647A CN106598692A CN 106598692 A CN106598692 A CN 106598692A CN 201510683647 A CN201510683647 A CN 201510683647A CN 106598692 A CN106598692 A CN 106598692A
Authority
CN
China
Prior art keywords
server
logical volume
mapping
magnetic
clouds
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.)
Pending
Application number
CN201510683647.3A
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201510683647.3A priority Critical patent/CN106598692A/en
Priority to PCT/CN2016/101772 priority patent/WO2017067404A1/en
Publication of CN106598692A publication Critical patent/CN106598692A/en
Pending 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer And Data Communications (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a method for creating a mirror image file in a logical volume and starting a virtual machine, and a server. The technical problem of relatively high requirements on local hardware resources for creating the mirror image file in the logical volume is solved. The method for creating the mirror image file in the logical volume comprises the following steps: the server sends a creation request to a cloud magnetic array, wherein the creation request is used for requesting the cloud magnetic array to create a first logical volume; the server initiates an operation of adding the first logical volume to a mapping group to the cloud magnetic array so as to add the first logical volume to a first mapping group, wherein the first mapping group is a mapping relation group between the server and the logical volume created by the cloud magnetic array; the server maps the first logical volume in the first mapping group to the server; and the server directly writes the obtained mirror image file in the first logical volume.

Description

Image file, virtual machine are created in logical volume and starts method and server
Technical field
The present invention relates to communication technical field, more particularly to one kind creates image file, virtual in logical volume Machine starts method and server.
Background technology
For various SAN (Storage Area Network and SAN Protocols, storage area network And its agreement) do in the system for storing, can be with cloud disk (such as positioned at the logical volume in high in the clouds) as virtual The system disk of machine, can create image file in cloud disk, such that it is able to start VM from the image file (Virtual Machine, virtual machine), reaches rapid deployment, starts the purpose of virtual machine, it is also possible to save Save local resource, and using it is shared store be used as virtual machine system disk it is more safe and reliable, using spirit It is living.
But, it is general in cloud in a kind of current Openstack (cloud computing management platform project increased income) The method that image file is created in the logical volume at end, is all image file first locally downloading one Under temp directory, the image file is copied to cloud disk again then.So, if image file than it is larger when, Just need to locally taking larger memory space, if the local insufficient memory if cannot create mirror image File is higher to local hardware resource requirements.
The content of the invention
The embodiment of the present invention provides one kind and image file, virtual machine startup method and service is created in logical volume Device is higher to local hardware resource requirements during image file for solving to create in logical volume beyond the clouds Technical problem.
A kind of first aspect, there is provided method that image file is created in logical volume, including:
Server send request to create, the request to create to be used to ask the high in the clouds magnetic battle array wound to high in the clouds magnetic paroxysm Build the first logical volume;
The server plays the operation that first logical volume is added mapping group to high in the clouds magnetic paroxysm, with First logical volume is added into the first mapping group;First mapping group is the institute that the high in the clouds magnetic battle array is created State the mapping relations group between server and logical volume;
First logical volume in first mapping group is mapped to the server by the server;
The image file of acquisition is write direct first logical volume by the server.
Optionally, first logical volume in first mapping group is mapped to the clothes by the server Business device, including:
First logical volume is mapped to institute with ISCSI agreements by TCP/IP passages by the server State server.
Optionally, in the server by TCP/IP passages, with ISCSI agreements by first logic Volume mapping also includes to after the server:
First logical volume is carried out file system format by the server;
The server by formatting after first logical volume be mounted to the first file of the server Under catalogue.
Optionally, after the image file of acquisition to be write direct the server first logical volume, Also include:
The server disconnect and format after first logical volume and between the long-range magnetic battle array Connection.
Optionally, the server disconnect and first logical volume and with the company between the long-range magnetic battle array After connecing, also include:
The server send startup request to the high in the clouds magnetic paroxysm, described to start request for request from described Image file in the first logical volume in the magnetic battle array of high in the clouds starts the first virtual machine in the server;
The server plays the operation that first logical volume is added mapping group to high in the clouds magnetic paroxysm, with First logical volume is added into first mapping group;
First logical volume in first mapping group is mapped to the server by the server;
The server is mounted to first logical volume under the first file directory of the server;
Path of the server by the image file on first logical volume on the server Write libvirt, to start first virtual machine from the image file.
Second aspect, there is provided a kind of virtual machine starts method, including:
Server send startup request to high in the clouds magnetic paroxysm, described to start request for request from the high in the clouds magnetic battle array In the first logical volume in image file start the first virtual machine in the server;
The server plays the operation that first logical volume is added mapping group to high in the clouds magnetic paroxysm, with First logical volume is added into the first mapping group;First mapping group is the institute that the high in the clouds magnetic battle array is created State the mapping relations group between server and logical volume;
First logical volume in first mapping group is mapped to the server by the server;
Path of the server by the image file on first logical volume on the server Write libvirt, to start first virtual machine from the image file.
Optionally, first logical volume in first mapping group is mapped to the clothes by the server Business device, including:
First logical volume is mapped to institute with ISCSI agreements by TCP/IP passages by the server State server.
Optionally, first logical volume in first mapping group is mapped in the server described After server, also include:
The server is mounted to first logical volume under the first file directory of the server;Wherein, First logical volume is the logical volume after carrying out file system format.
A kind of third aspect, there is provided server, including:
Sending module, for sending request to create, the request to create to be used to ask the cloud to high in the clouds magnetic paroxysm End magnetic battle array creates the first logical volume;
The sending module, is additionally operable to high in the clouds magnetic paroxysm rise first logical volume is added mapping group Operation, by first logical volume add the first mapping group;First mapping group is the high in the clouds magnetic Mapping relations group between the server and logical volume of battle array establishment;
Mapping block, for first logical volume in first mapping group is mapped to the server;
Writing module, for the image file of acquisition is write direct first logical volume.
Optionally, the mapping block is used for:
By TCP/IP passages, first logical volume is mapped to into the server with ISCSI agreements.
Optionally, the server also includes formatting module and carry module;
The formatting module, uses ISCSI agreements in the mapping block by TCP/IP passages After first logical volume is mapped to the server, first logical volume is carried out into file system lattice Formula;
The carry module, is mounted to the of the server for first logical volume after by formatting Under one file directory.
Optionally, the server also includes disconnection module, for the mirror image text that will be obtained in the writing module Part writes direct after first logical volume, disconnect with formatting after first logical volume and with it is described Connection between long-range magnetic battle array.
Optionally,
The sending module is additionally operable to:Disconnect in the disconnection module with first logical volume and remote with described After connection between journey magnetic battle array, startup request is sent to the high in the clouds magnetic paroxysm, the startup request is used for please Ask the image file in the first logical volume from the high in the clouds magnetic battle array starts in the server first empty Plan machine;And, the operation that first logical volume is added mapping group is played to high in the clouds magnetic paroxysm, by institute State the first logical volume and add first mapping group;
The mapping block is additionally operable to:First logical volume in first mapping group is mapped to described Server;
The carry module is additionally operable to:First logical volume is mounted to into the first file mesh of the server Under record;
The writing module is additionally operable to:By the image file on first logical volume on the server Path write libvirt, to start first virtual machine from the image file.
A kind of fourth aspect, there is provided server, including:
Sending module, it is for sending startup request to high in the clouds magnetic paroxysm, described to start request for request from described Image file in the first logical volume in the magnetic battle array of high in the clouds starts the first virtual machine in the server;
The sending module, is additionally operable to high in the clouds magnetic paroxysm rise first logical volume is added mapping group Operation, by first logical volume add the first mapping group;First mapping group is the high in the clouds magnetic Mapping relations group between the server and logical volume of battle array establishment;
Mapping block, for first logical volume in first mapping group is mapped to the server;
Writing module, for the path by the image file on first logical volume on the server Write libvirt, to start first virtual machine from the image file.
Optionally, the mapping block is used for:
By TCP/IP passages, first logical volume is mapped to into the server with ISCSI agreements.
Optionally, the server also includes carry module, for reflecting described first in the mapping block After first logical volume penetrated in group is mapped to the server, first logical volume is mounted to into institute State under the first file directory of server;Wherein, first logical volume is for after carrying out file system format Logical volume.
In the embodiment of the present invention, can first magnetic battle array (or referred to as distal end magnetic battle array, it will be appreciated that deposit for shared beyond the clouds Storage area domain) create the first logical volume, i.e., first magnetic battle array determines cloud disk to be used beyond the clouds, then by cloud disk (i.e. First logical volume) it is mapped to host (server) locally, the mirror image that server will directly can be obtained afterwards File write the first logical volume, such as image file can server download from other electronic equipments, Then image file directly can be downloaded to the first logical volume by server, and without the need for storing in server local, The memory space of server is saved, the requirement of the hardware resource to server is reduced.
Description of the drawings
In order to be illustrated more clearly that the technical scheme of the embodiment of the present invention, below will be to institute in the embodiment of the present invention The accompanying drawing that needs are used is briefly described, it should be apparent that, accompanying drawing described below is only the present invention Some embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, Can be with according to these other accompanying drawings of accompanying drawings acquisition.
The flow chart of methods of the Fig. 1 for image file is created in logical volume in the embodiment of the present invention;
Fig. 2 is the flow chart of virtual machine startup method in the embodiment of the present invention;
Fig. 3 is the annexation between the host at IPSAN magnetic battle array and cinder places in the embodiment of the present invention Schematic diagram;
Fig. 4 is the company between the host at IPSAN magnetic battle array and nova-computer places in the embodiment of the present invention Connect relation schematic diagram;
Fig. 5 is the structured flowchart of the first server in the embodiment of the present invention;
Fig. 6 is the structured flowchart of second server in the embodiment of the present invention.
Specific embodiment
To make purpose, technical scheme and the advantage of the embodiment of the present invention clearer, below in conjunction with the present invention Accompanying drawing in embodiment, is clearly and completely described to the technical scheme in the embodiment of the present invention, it is clear that Described embodiment is a part of embodiment of the invention, rather than the embodiment of whole.Based in the present invention Embodiment, those of ordinary skill in the art obtained under the premise of creative work is not made it is all its His embodiment, belongs to the scope of protection of the invention.
The preferred embodiments of the present invention are introduced below in conjunction with accompanying drawing.
Fig. 1 is referred to, the embodiment of the present invention provides a kind of method that image file is created in logical volume, should The flow process of method is described as follows.
Step 101:Server send request to create, request to create to be used to ask high in the clouds magnetic battle array to high in the clouds magnetic paroxysm Create the first logical volume;
Step 102:Server plays the operation that the first logical volume is added mapping group to high in the clouds magnetic paroxysm, will First logical volume adds the first mapping group;First mapping group be high in the clouds magnetic the battle array server and logical volume that create it Between mapping relations group;
Step 103:The first logical volume in first mapping group is mapped to server by server;
Step 104:The image file of acquisition is write direct the first logical volume by server.
After server send request to create, high in the clouds magnetic battle array to receive the request to create to high in the clouds magnetic paroxysm first, in cloud The first logical volume is created in the magnetic battle array of end, after the completion of establishment, high in the clouds magnetic battle array has notified the first logical volume of server Establishment is completed.Then, server for example can by TCP (Transmission Control Protocol, Transmission control protocol)/IP (Internet Protocol, Internet protocol) passage, rises the to the paroxysm of high in the clouds magnetic One logical volume adds the operation of mapping group, then the first logical volume and the server are added first to reflect by high in the clouds magnetic battle array Group is penetrated, wherein, what mapping group was characterized is the corresponding relation between logical volume and server in the magnetic battle array of high in the clouds, One server and a logical volume are added into a mapping group, that is, is shown between the server and the logical volume With corresponding relation, the such as server can use the logical volume.
Magnetic battle array adds the first logical volume and the server after the first mapping group beyond the clouds, can notify server, Then the first logical volume in the first mapping group can be mapped to server local by server.
Optionally, in an alternative embodiment of the invention, the first logical volume in the first mapping group is reflected by server Server is mapped to, including:
Server passes through TCP/IP passages, with ISCSI (Internet Small Computer System Interface, internet small computer system interface) the first logical volume is mapped to server by agreement.
That is, the first logical volume volume mapping can be connected with ISCSI agreements by server by TCP/IP passages Be connected on server, so, server /dev/ under can see the first logical volume that connection comes, this When the first logical volume for seeing be block storage device.
Optionally, in an alternative embodiment of the invention, ISCSI is used by TCP/IP passages in server After first logical volume is mapped to server by agreement, also include:
First logical volume is carried out file system format by server;
Server by formatting after the first logical volume be mounted under the first file directory of server.
In prior art, as data do not have file system or data consistency etc. to carry out calibration protection, if Virtual machine ceaselessly power-down rebooting etc. of the logical volume in high in the clouds, system has been used to be easy to be damaged, may The image file stored in logical volume beyond the clouds can be caused to make a mistake, so as to subsequently possibly cannot again from this Image file in logical volume starts virtual machine.
So to solve the problem, in the embodiment of the present invention, the first logical volume can be carried out file system by server System format, afterwards by formatting after the first logical volume be mounted under the first file directory in server, Thus the access to block storage device can be converted into file read-write.Because adding the guarantor of file system Shield, can prevent mirror image data to be damaged with effective protection mirror image data, it is ensured that the normal startup of virtual machine.
Optionally, in an alternative embodiment of the invention, server can download image file from other equipment, The first logical volume after because of formatting has been mounted under the first file directory of server, then server can be with Directly image file is downloaded in the first logical volume under the first file directory, such image file without the need for Server local is stored, and saves the memory space of server.And lacked the transfer process of server, directly Image file is stored in the first logical volume, the mistake occurred during transfer is also reduced as far as possible.
In addition, in prior art, image file is entered after image file is locally downloading by server Row format is changed, will the form of image file be converted to raw forms, afterwards again by the mirror image of raw forms File copy is to cloud disk.And the data of raw forms are not pass through compression, and in copy raw forms During data, usually by the way of block formula copy, i.e., monoblock is copied, and may be had in one block Effect data, it is also possible to have invalid data, according to copy mode of the prior art, data will not be distinguished actually It is effective or invalid, can be copied all, like this, need the data volume of copy larger, reduce Data transmission efficiency, needs the longer operating time, and the past image file of copy will be also accounted in cloud disk With larger memory space.And in the embodiment of the present invention, directly the image file storage of download is patrolled to first Volume is collected, in general the image file of download is the file after compression, for the file of raw forms Data volume is less, and invalid data is also less, so as to reduce the data volume for needing copy, improves data biography Defeated efficiency, operating time are shorter, and copy past image file in the first logical volume without take compared with Big memory space, saves the memory space of the first logical volume.
Optionally, in an alternative embodiment of the invention, the image file of acquisition is write direct in server After one logical volume, also include:
Server disconnect and format after the first logical volume and with the connection between long-range magnetic battle array.
After the image file for obtaining is write the first logical volume by server, it is believed that image file has been created Finish, then server can solve the mount point of the first logical volume after hanging the formatting, and disconnect and long-range magnetic battle array Functional area data cube computation, i.e., server disconnect with format after the first logical volume and with long-range magnetic battle array it Between connection.Equivalent to, the first logical volume and image file that establishment is finished is an independent space, Do not use for the server is proprietary, follow-up, in addition to the server, other servers having permission The first logical volume can also be used.
In general, the form of the image file that virtual machine is given tacit consent on startup is raw forms, then according to Mode in the embodiment of the present invention is directly stored in image file after the first logical volume, subsequently if virtual Machine is started using the image file, then on startup, and the system for starting the virtual machine first can determine The form of image file, if the form of image file is not raw forms, the system for starting the virtual machine can Can be started according to the form of image file, or be started the system of the virtual machine and be likely to mirror image first The form of file is converted to raw forms, restart afterwards, etc..
Previously described is the process that image file is created in logical volume, is described below and creates in logical volume After image file, start the process of virtual machine from the image file.
Optionally, in an alternative embodiment of the invention, server disconnect with the first logical volume and with long-range magnetic After connection between battle array, also include:
Server send startup request to high in the clouds magnetic paroxysm, and starting request is used for request from the magnetic battle array of high in the clouds first Image file in logical volume starts the first virtual machine in server;
Server plays the operation that the first logical volume is added mapping group to high in the clouds magnetic paroxysm, by the first logical volume Add the first mapping group;
The first logical volume in first mapping group is mapped to server by server;
Server is mounted to the first logical volume under the first file directory of server;
Path write libvirt of the server by the image file on the first logical volume on the server, with from mirror As the first virtual machine of file start.
Such as server will start the first virtual machine in the server, then server can be to high in the clouds magnetic paroxysm Send startup request, high in the clouds magnetic battle array to receive after starting request, the first logical volume is added to the first virtual machine place The corresponding mapping group of server in, for example, the first mapping group, then server pass through TCP/IP passages The first logical volume mapping link can be seen corresponding on that server to local using ISCSI agreements Block storage device.Because the first logical volume carried out file system formatization process when creating, then should Server can be mounted to the block storage device under certain catalogue of the file system of oneself, at this moment server On can see with uuid name the first logical volume on image file, the image file is exactly first empty Plan machine starts required system file, then absolute path of the server the image file on that server The libvirt (being used for managing the software assembly of virtual machine or virtualization) in server is passed to, so Libvirt just can start virtual machine from the path.
Fig. 2 is referred to, based on same inventive concept and the various embodiments described above, the embodiment of the present invention provides a kind of Virtual machine starts method, and the flow process of the method is described below.
Step 201:Server send startup request to high in the clouds magnetic paroxysm, starts request for request from high in the clouds magnetic The image file in the first logical volume in battle array starts the first virtual machine in server;
Step 202:Server plays the operation that the first logical volume is added mapping group to high in the clouds magnetic paroxysm, will First logical volume adds the first mapping group;First mapping group be high in the clouds magnetic the battle array server and logical volume that create it Between mapping relations group;
Step 203:The first logical volume in first mapping group is mapped to server by server;
Step 204:Path write of the server by the image file on the first logical volume on the server Libvirt, to start the first virtual machine from image file.
Such as server will start the first virtual machine in the server, then server can be to high in the clouds magnetic paroxysm Send startup request, high in the clouds magnetic battle array to receive after starting request, the first logical volume is added to the first virtual machine place The corresponding mapping group of server in, for example, the first mapping group, then server pass through TCP/IP passages The first logical volume mapping link can be seen corresponding on that server to local using ISCSI agreements Block storage device.Then absolute path of the server the image file in the first logical volume on that server is passed To the libvirt (being used for managing the software assembly of virtual machine or virtualization) in server, such libvirt Just virtual machine can be started from the path.
Optionally, in an alternative embodiment of the invention, the first logical volume in the first mapping group is reflected by server Server is mapped to, including:
First logical volume is mapped to server with ISCSI agreements by TCP/IP passages by server.
Optionally, in an alternative embodiment of the invention, in server by the first logical volume in the first mapping group After being mapped to server, also include:
Server is mounted to the first logical volume under the first file directory of server;Wherein, the first logical volume To carry out the logical volume after file system format.
Use ISCSI agreement by first logical volume mapping link to locally by TCP/IP passages in server Afterwards, corresponding piece of storage device can be seen on that server.Because the first logical volume create when be into File system formatization of going process, then the block storage device can be mounted to the text of oneself by the server Under certain catalogue of part system, at this moment can see on server on the first logical volume named with uuid Image file, the image file are exactly the system file required for the first virtual machine starts, then server is this Image file absolute path on that server pass to libvirt in server (be used for managing virtual machine or The software assembly of virtualization), such libvirt just can start virtual machine from the path.
Citing individually below creates the process that the process and virtual machine of mirror image start in introducing the embodiment of the present invention, As a example by using IPSAN (Internet protocol storage area network) as high in the clouds magnetic battle array.
Example 1, creates the process of image file in logical volume:
In the basic framework of Openstack, using cinder components as its basic block storage management.IPSAN Magnetic battle array as cinder storage rear end when, the line between the host that IPSAN magnetic battle array and cinder are located As shown in figure 3, logical by TCP/IP network connections between the host at cinder places and the functional area of magnetic battle array Letter, when cinder ends initiate to ask, and ask to create an image file in IPSAN magnetic battle arrays, first The management mouth that the Hub (hub) of chain of command can be first passed through send one to create volume to IPSAN magnetic paroxysms Order, IPSAN magnetic battle arrays create volume (for example, the first logical volume) and return afterwards.
Then cinder is initiated the first logic to the management mouth of IPSAN magnetic battle arrays by TCP/IP passages Volume adds the operation of mapping group, the host that cinder is located can be added to mapping group (example in IPSAN magnetic battle arrays Such as it is the first mapping group) in, then returned by medium surface Hub and tell cinder, the industry of IPSAN magnetic battle arrays The IP address of business mouth.
Then, the IP address of the functional area that cinder is returned by IPSAN magnetic battle array, by the visitor of ISCSI Family sort command is interacted with target (target) ends of IPSAN magnetic battle arrays, the first of IPSAN magnetic battle arrays Logic volume mapping is connected on the host at cinder ends, host /dev/ under can see what connection came Block storage device.
Then cinder carries out file system format operation to the block storage device, then block storage device Under certain file directory at carry cinder ends, mirror image is write to the block storage device by functional area network File.After image file write is finished, the data in file system cache are also synchronously brushed into depositing to the block Storage equipment.Then cinder solution hang the block storage device, by the Client command of ISCSI again with IPSAN The target ends of magnetic battle array interact, and disconnect the connection with IPSAN magnetic battle arrays.
Example 2, virtual machine start-up course:
In the basic framework of Openstack, it is used as its basic block storage management using cinder components. Storage rear end and nova-compute (computation module, or referred to as calculating of the IPSAN magnetic battle array as cinder Server) also use IPSAN magnetic battle array as virtual machine storage rear end when, IPSAN magnetic battle array with Line between the host that the service of nova-compute is located is as shown in figure 4, what nova-compute was located Communicated by TCP/IP network connections between host and the functional area of IPSAN magnetic battle arrays.
When request is initiated at nova-compute ends starts a virtual machine from cloud disk, nova-compute first By TCP/IP passages, initiating to the management mouth of IPSAN magnetic battle arrays will volume (for example, the first logical volume) at end The operation of mapping group is added, in magnetic battle array, the host that nova-compute is located mapping group (example can be added to Such as it is the first mapping group) in, it is then back to tell nova-compute, the functional area of IPSAN magnetic battle arrays IP address.
Then, the IP address of the functional area that nova-compute is returned by IPSAN magnetic battle array, by ISCSI Client command interact with the target ends of IPSAN magnetic battle arrays, the first logic of IPSAN magnetic battle arrays Volume mapping is connected on the host at nova-compute ends, host /dev/ under can see that connection comes Block storage device.
As the storage block device has been carried out file system format when creating, then nova-compute Under certain catalogue for the host that the block storage device can be mounted to nova-compute ends, at this moment in host On can see image file in the first logical volume, the image file is the system required for virtual machine starts File.Then nova-compute is the write libvirt wounds of the absolute path on this host that the image file is located Build in the template of virtual machine, such libvirt just can start virtual machine from the path.
The equipment in the embodiment of the present invention is introduced below in conjunction with accompanying drawing.
Fig. 5 is referred to, based on same inventive concept and the various embodiments described above, the embodiment of the present invention provides a kind of Server, the server can include sending module 501, mapping block 502 and writing module 503.
Sending module 501, for sending request to create, request to create to be used to ask high in the clouds magnetic to high in the clouds magnetic paroxysm Battle array creates the first logical volume;
Further, sending module 501, are additionally operable to high in the clouds magnetic paroxysm rise the first logical volume is added mapping group Operation, by the first logical volume add the first mapping group;First mapping group is the service that high in the clouds magnetic battle array is created Mapping relations group between device and logical volume;
Mapping block 502, for the first logical volume in the first mapping group is mapped to server;
Writing module 503, for the image file of acquisition is write direct the first logical volume.
Optionally, in an alternative embodiment of the invention, mapping block 502 is used for:
By TCP/IP passages, the first logical volume is mapped to into server with ISCSI agreements.
Optionally, in an alternative embodiment of the invention, server also includes formatting module and carry module;
Formatting module, in mapping block 502 by TCP/IP passages, with ISCSI agreements by the After one logical volume is mapped to server, the first logical volume is carried out into file system format;
Carry module, is mounted under the first file directory of server for the first logical volume after by formatting.
Optionally, in an alternative embodiment of the invention, server also includes disconnecting module, in writing module 503 write direct the image file of acquisition after the first logical volume, disconnect with format after the first logic Volume and with the connection between long-range magnetic battle array.
Optionally, in an alternative embodiment of the invention,
Sending module 501 is additionally operable to:In the disconnection of disconnection module and the first logical volume and between long-range magnetic battle array After connection, startup request is sent to high in the clouds magnetic paroxysm, starting request is used for request from the magnetic battle array of high in the clouds first Image file in logical volume starts the first virtual machine in server;And, rise first to high in the clouds magnetic paroxysm Logical volume adds the operation of mapping group, and the first logical volume is added the first mapping group;
Mapping block 502 is additionally operable to:The first logical volume in first mapping group is mapped to into server;
Carry module is additionally operable to:First logical volume is mounted under the first file directory of server;
Writing module 503 is additionally operable to:By the path write on the server of the image file on the first logical volume Libvirt, to start the first virtual machine from image file.
Server shown in Fig. 5 is the server corresponding with the server in Fig. 1 flow processs, in the server The contents such as step and implementation procedure performed by modules refer to the description in Fig. 1 flow processs.
Fig. 6 is referred to, based on same inventive concept and the various embodiments described above, the embodiment of the present invention provides another Server is planted, the server can include sending module 601, mapping block 602 and writing module 603.
Sending module 601, for sending startup request to high in the clouds magnetic paroxysm, starts request for request from high in the clouds Image file in the first logical volume in magnetic battle array starts the first virtual machine in server;
Further, the sending module 601, is additionally operable to high in the clouds magnetic paroxysm rise to add the first logical volume reflect The operation of group is penetrated, the first logical volume is added into the first mapping group;First mapping group is that high in the clouds magnetic battle array is created Mapping relations group between server and logical volume;
Mapping block 602, for the first logical volume in the first mapping group is mapped to server;
Writing module 603, for the path write by the image file on the first logical volume on the server Libvirt, to start the first virtual machine from image file.
Optionally, in an alternative embodiment of the invention, mapping block 602 is used for:
By TCP/IP passages, the first logical volume is mapped to into server with ISCSI agreements.
Optionally, in an alternative embodiment of the invention, server also includes carry module, in mapping mould After the first logical volume in first mapping group is mapped to server by block 602, the first logical volume is mounted to Under first file directory of server;Wherein, the first logical volume is the logic after carrying out file system format Volume.
Server shown in Fig. 6 can be same server with the server shown in Fig. 5, or can also be Different servers.
Server shown in Fig. 6 is the server corresponding with the server in Fig. 2 flow processs, in the server The contents such as step and implementation procedure performed by modules refer to the description in Fig. 2 flow processs.
In the embodiment of the present invention, can first magnetic battle array (or referred to as distal end magnetic battle array, it will be appreciated that deposit for shared beyond the clouds Storage area domain) create the first logical volume, i.e., first magnetic battle array determines cloud disk to be used beyond the clouds, then by cloud disk (i.e. First logical volume) it is mapped to host (server) locally, the mirror image that server will directly can be obtained afterwards File write the first logical volume, such as image file can server download from other electronic equipments, Then image file directly can be downloaded to the first logical volume by server, and without the need for storing in server local, The memory space of server is saved, the requirement of the hardware resource to server is reduced.
Those skilled in the art can be understood that, for convenience and simplicity of description, only with above-mentioned The division of each functional unit is illustrated, in practical application, can as desired by above-mentioned functions point With being completed by different functional units, will the internal structure of device be divided into different functional units, with complete Into all or part of function described above.The specific works mistake of the system, apparatus, and unit of foregoing description Journey, may be referred to the corresponding process in preceding method embodiment, will not be described here.
In several embodiments provided herein, it should be understood that disclosed apparatus and method, can To realize by another way.For example, device embodiment described above is only schematic, example Such as, the division of the unit or unit, only a kind of division of logic function can have another when actually realizing Outer dividing mode, such as multiple units or component can with reference to or be desirably integrated into another system, or Some features can be ignored, or not perform.It is another, shown or discussed coupling each other or straight It can be INDIRECT COUPLING or communication connection by some interfaces, device or unit to connect coupling or communication connection, Can be electrical, mechanical or other forms.
It is described as separating component explanation unit can be or may not be it is physically separate, as The part that unit shows can be or may not be physical location, you can local to be located at one, or Can also be distributed on multiple NEs.Can select according to the actual needs therein some or all of Unit is realizing the purpose of this embodiment scheme.
In addition, each functional unit in the application each embodiment can be integrated in a processing unit, Can also be that unit is individually physically present, it is also possible to which two or more units are integrated in a unit In.Above-mentioned integrated unit both can be realized in the form of hardware, it would however also be possible to employ SFU software functional unit Form is realized.
If the integrated unit is realized and as independent production marketing using in the form of SFU software functional unit Or when using, can be stored in a computer read/write memory medium.Based on such understanding, this Shen Part that technical scheme please is substantially contributed to prior art in other words or the technical scheme it is complete Portion or part can be embodied in the form of software product, and the computer software product is stored in a storage In medium, use including some instructions so that computer equipment (can be personal computer, server, Or the network equipment etc.) or processor (processor) perform the complete of the application each embodiment methods described Portion or part steps.And aforesaid storage medium includes:USB flash disk, portable hard drive, ROM, RAM, magnetic Dish or CD etc. are various can be with the medium of store program codes.
The above, above example is only described in detail to the technical scheme to the application, but with The explanation of upper embodiment is only intended to help the method for understanding the embodiment of the present invention, should not be construed as to the present invention The restriction of embodiment.Those skilled in the art, can in the technical scope that the embodiment of the present invention is disclosed The change or replacement for readily occurring in, should all cover within the protection domain of the embodiment of the present invention.

Claims (16)

1. it is a kind of in logical volume create image file method, it is characterised in that include:
Server send request to create, the request to create to be used to ask the high in the clouds magnetic battle array wound to high in the clouds magnetic paroxysm Build the first logical volume;
The server plays the operation that first logical volume is added mapping group to high in the clouds magnetic paroxysm, with First logical volume is added into the first mapping group;First mapping group is the institute that the high in the clouds magnetic battle array is created State the mapping relations group between server and logical volume;
First logical volume in first mapping group is mapped to the server by the server;
The image file of acquisition is write direct first logical volume by the server.
2. the method for claim 1, it is characterised in that the server is by the described first mapping First logical volume in group is mapped to the server, including:
The transmission control protocol server TCP/ Internet protocol IP tunnel, is calculated with internet small First logical volume is mapped to the server by machine system interface ISCSI agreements.
3. method as claimed in claim 2, it is characterised in that logical by TCP/IP in the server Road, after first logical volume is mapped to the server with ISCSI agreements, also includes:
First logical volume is carried out file system format by the server;
The server by formatting after first logical volume be mounted to the first file of the server Under catalogue.
4. method as claimed in claim 3, it is characterised in that in the mirror image that the server will be obtained File writes direct after first logical volume, also includes:
The server disconnect and format after first logical volume and between the long-range magnetic battle array Connection.
5. method as claimed in claim 4, it is characterised in that disconnect and described the in the server One logical volume and with the connection between the long-range magnetic battle array after, also include:
The server send startup request to the high in the clouds magnetic paroxysm, described to start request for request from described Image file in the first logical volume in the magnetic battle array of high in the clouds starts the first virtual machine in the server;
The server plays the operation that first logical volume is added mapping group to high in the clouds magnetic paroxysm, with First logical volume is added into first mapping group;
First logical volume in first mapping group is mapped to the server by the server;
The server is mounted to first logical volume under the first file directory of the server;
Path of the server by the image file on first logical volume on the server Write libvirt, to start first virtual machine from the image file.
6. a kind of virtual machine starts method, it is characterised in that include:
Server send startup request to high in the clouds magnetic paroxysm, described to start request for request from the high in the clouds magnetic battle array In the first logical volume in image file start the first virtual machine in the server;
The server plays the operation that first logical volume is added mapping group to high in the clouds magnetic paroxysm, with First logical volume is added into the first mapping group;First mapping group is the institute that the high in the clouds magnetic battle array is created State the mapping relations group between server and logical volume;
First logical volume in first mapping group is mapped to the server by the server;
Path of the server by the image file on first logical volume on the server Write libvirt, to start first virtual machine from the image file.
7. method as claimed in claim 6, it is characterised in that the server is by the described first mapping First logical volume in group is mapped to the server, including:
First logical volume is mapped to institute with ISCSI agreements by TCP/IP passages by the server State server.
8. method as claimed in claims 6 or 7, it is characterised in that in the server by described After first logical volume in one mapping group is mapped to the server, also include:
The server is mounted to first logical volume under the first file directory of the server;Wherein, First logical volume is the logical volume after carrying out file system format.
9. a kind of server, it is characterised in that include:
Sending module, for sending request to create, the request to create to be used to ask the cloud to high in the clouds magnetic paroxysm End magnetic battle array creates the first logical volume;
The sending module, is additionally operable to high in the clouds magnetic paroxysm rise first logical volume is added mapping group Operation, by first logical volume add the first mapping group;First mapping group is the high in the clouds magnetic Mapping relations group between the server and logical volume of battle array establishment;
Mapping block, for first logical volume in first mapping group is mapped to the server;
Writing module, for the image file of acquisition is write direct first logical volume.
10. server as claimed in claim 9, it is characterised in that the mapping block is used for:
By TCP/IP passages, first logical volume is mapped to into the server with ISCSI agreements.
11. servers as claimed in claim 10, it is characterised in that the server also includes form Change module and carry module;
The formatting module, uses ISCSI agreements in the mapping block by TCP/IP passages After first logical volume is mapped to the server, first logical volume is carried out into file system lattice Formula;
The carry module, is mounted to the of the server for first logical volume after by formatting Under one file directory.
12. servers as claimed in claim 11, it is characterised in that the server also includes disconnecting Module, after the image file of acquisition to be write direct first logical volume in the writing module, breaks Open with first logical volume after formatting and with the connection between the long-range magnetic battle array.
13. servers as claimed in claim 12, it is characterised in that
The sending module is additionally operable to:Disconnect in the disconnection module with first logical volume and remote with described After connection between journey magnetic battle array, startup request is sent to the high in the clouds magnetic paroxysm, the startup request is used for please Ask the image file in the first logical volume from the high in the clouds magnetic battle array starts in the server first empty Plan machine;And, the operation that first logical volume is added mapping group is played to high in the clouds magnetic paroxysm, by institute State the first logical volume and add first mapping group;
The mapping block is additionally operable to:First logical volume in first mapping group is mapped to described Server;
The carry module is additionally operable to:First logical volume is mounted to into the first file mesh of the server Under record;
The writing module is additionally operable to:By the image file on first logical volume on the server Path write libvirt, to start first virtual machine from the image file.
14. a kind of servers, it is characterised in that include:
Sending module, it is for sending startup request to high in the clouds magnetic paroxysm, described to start request for request from described Image file in the first logical volume in the magnetic battle array of high in the clouds starts the first virtual machine in the server;
The sending module, is additionally operable to high in the clouds magnetic paroxysm rise first logical volume is added mapping group Operation, by first logical volume add the first mapping group;First mapping group is the high in the clouds magnetic Mapping relations group between the server and logical volume of battle array establishment;
Mapping block, for first logical volume in first mapping group is mapped to the server;
Writing module, for the path by the image file on first logical volume on the server Write libvirt, to start first virtual machine from the image file.
15. servers as claimed in claim 14, it is characterised in that the mapping block is used for:
By TCP/IP passages, first logical volume is mapped to into the server with ISCSI agreements.
16. servers as described in claims 14 or 15, it is characterised in that the server also includes Carry module, for being mapped to first logical volume in first mapping group in the mapping block After the server, first logical volume is mounted under the first file directory of the server;Its In, first logical volume is the logical volume after carrying out file system format.
CN201510683647.3A 2015-10-20 2015-10-20 Method for creating mirror image file in logical volume and starting virtual machine, and server Pending CN106598692A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510683647.3A CN106598692A (en) 2015-10-20 2015-10-20 Method for creating mirror image file in logical volume and starting virtual machine, and server
PCT/CN2016/101772 WO2017067404A1 (en) 2015-10-20 2016-10-11 Method of creating mirror file in logical volume, method of initiating virtual machine, and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510683647.3A CN106598692A (en) 2015-10-20 2015-10-20 Method for creating mirror image file in logical volume and starting virtual machine, and server

Publications (1)

Publication Number Publication Date
CN106598692A true CN106598692A (en) 2017-04-26

Family

ID=58555340

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510683647.3A Pending CN106598692A (en) 2015-10-20 2015-10-20 Method for creating mirror image file in logical volume and starting virtual machine, and server

Country Status (2)

Country Link
CN (1) CN106598692A (en)
WO (1) WO2017067404A1 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107566511A (en) * 2017-09-20 2018-01-09 郑州云海信息技术有限公司 A kind of method and cloud storage system for realizing cloud storage
CN108804201A (en) * 2018-06-07 2018-11-13 郑州云海信息技术有限公司 A kind of expansion method and device of the virtual-machine data volume based on cloud platform
CN109672714A (en) * 2017-10-17 2019-04-23 中移(苏州)软件技术有限公司 A kind of data processing method and distributed memory system of distributed memory system
CN110046026A (en) * 2019-04-22 2019-07-23 无锡华云数据技术服务有限公司 Cloud host specifies virtual disk method for limiting speed, calculates equipment and cloud platform
CN110399248A (en) * 2018-04-25 2019-11-01 阿里巴巴集团控股有限公司 A kind of image file creation, acquisition methods, device and server
CN111240807A (en) * 2020-01-21 2020-06-05 山东汇贸电子口岸有限公司 Volume-started virtual machine reconstruction method, terminal and readable storage medium
WO2020228377A1 (en) * 2019-05-16 2020-11-19 华为技术有限公司 Method and device for configuring mirror memory and computer storage medium

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109871252B (en) * 2019-01-28 2022-04-01 国云科技股份有限公司 Cloud classroom universal disk implementation method
CN112068931B (en) * 2020-08-28 2023-05-12 苏州浪潮智能科技有限公司 Method and system for rapidly manufacturing virtual machine mirror image
CN114185491B (en) * 2021-12-13 2024-01-19 惠州Tcl移动通信有限公司 Partition file downloading method and device, storage medium and computer equipment
CN115509590B (en) * 2022-11-09 2023-03-21 安超云软件有限公司 Continuous deployment method and computer equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102325179B (en) * 2011-09-07 2014-12-24 深圳市硅格半导体有限公司 Mobile storage equipment and cloud content sharing method thereof
CN103714229B (en) * 2012-09-29 2018-04-06 西门子公司 A kind of medical resource and system of information sharing, server and application method
US9262090B2 (en) * 2013-02-26 2016-02-16 Lenovo Enterprise Solutions (Singapore) Pte. Ltd. Asynchronous data mirroring in memory controller
CN103617003B (en) * 2013-11-20 2017-05-10 浪潮电子信息产业股份有限公司 Organization method and architecture for storage resources in cloud storage environment
CN104778129B (en) * 2014-01-14 2021-08-27 中兴通讯股份有限公司 Method and device for realizing virtual storage of mobile terminal

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107566511A (en) * 2017-09-20 2018-01-09 郑州云海信息技术有限公司 A kind of method and cloud storage system for realizing cloud storage
CN109672714A (en) * 2017-10-17 2019-04-23 中移(苏州)软件技术有限公司 A kind of data processing method and distributed memory system of distributed memory system
CN109672714B (en) * 2017-10-17 2022-02-25 中移(苏州)软件技术有限公司 Data processing method of distributed storage system and distributed storage system
CN110399248A (en) * 2018-04-25 2019-11-01 阿里巴巴集团控股有限公司 A kind of image file creation, acquisition methods, device and server
CN110399248B (en) * 2018-04-25 2023-08-15 阿里巴巴集团控股有限公司 Image file creation and acquisition method, device and server
CN108804201A (en) * 2018-06-07 2018-11-13 郑州云海信息技术有限公司 A kind of expansion method and device of the virtual-machine data volume based on cloud platform
CN110046026A (en) * 2019-04-22 2019-07-23 无锡华云数据技术服务有限公司 Cloud host specifies virtual disk method for limiting speed, calculates equipment and cloud platform
CN110046026B (en) * 2019-04-22 2020-05-12 无锡华云数据技术服务有限公司 Method for specifying virtual disk speed limit by cloud host, computing equipment and cloud platform
US11740810B2 (en) 2019-05-16 2023-08-29 Huawei Technologies Co., Ltd. Mirrored memory configuration method and apparatus, and computer storage medium
WO2020228377A1 (en) * 2019-05-16 2020-11-19 华为技术有限公司 Method and device for configuring mirror memory and computer storage medium
US12086430B2 (en) 2019-05-16 2024-09-10 Huawei Technologies Co., Ltd. Mirrored memory configuration method and apparatus, and computer storage medium
CN111240807A (en) * 2020-01-21 2020-06-05 山东汇贸电子口岸有限公司 Volume-started virtual machine reconstruction method, terminal and readable storage medium
CN111240807B (en) * 2020-01-21 2023-03-28 山东汇贸电子口岸有限公司 Volume-started virtual machine reconstruction method, terminal and readable storage medium

Also Published As

Publication number Publication date
WO2017067404A1 (en) 2017-04-27

Similar Documents

Publication Publication Date Title
CN106598692A (en) Method for creating mirror image file in logical volume and starting virtual machine, and server
CN104020961B (en) Distributed data storage method, apparatus and system
CN109818934B (en) Method and device for automatically processing logs and computing equipment
US20180123968A1 (en) Method and system for securely transmitting volumes into cloud
US9448901B1 (en) Remote direct memory access for high availability nodes using a coherent accelerator processor interface
CN106933648B (en) Method and system for multi-tenant container resource management
JP2008542887A5 (en)
CN105335309B (en) A kind of data transmission method and computer
CN107580011B (en) Data sharing method and desktop cloud server
CN103607428A (en) Method of accessing shared memory and apparatus thereof
CN112130748A (en) Data access method, network card and server
CN106648838B (en) Resource pool management configuration method and device
CN111158851B (en) Rapid deployment method of virtual machine
CN106873970A (en) The installation method and device of a kind of operating system
CN115080479B (en) Transmission method, server, device, bare metal instance and baseboard management controller
CN109324908A (en) The vessel isolation method and device of Netlink resource
CN115309545A (en) Access processing method and computer equipment
CN102833334A (en) Logical volume management method
WO2016095644A1 (en) High availability solution method and device for database
CN111459619A (en) Method and device for realizing service based on cloud platform
CN105554096A (en) Method and system for realizing cloud game cloud service
CN112257736A (en) Model training system, method, equipment and storage medium based on multiple clusters
CN115774701B (en) Data sharing method and device, electronic equipment and storage medium
CN108829340B (en) Storage processing method, device, storage medium and processor
US8892613B1 (en) Method and system for efficiently reading a partitioned directory incident to a serialized process

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20170426