WO2016023390A1 - Method and device for deploying virtual machine storage resource - Google Patents

Method and device for deploying virtual machine storage resource Download PDF

Info

Publication number
WO2016023390A1
WO2016023390A1 PCT/CN2015/078524 CN2015078524W WO2016023390A1 WO 2016023390 A1 WO2016023390 A1 WO 2016023390A1 CN 2015078524 W CN2015078524 W CN 2015078524W WO 2016023390 A1 WO2016023390 A1 WO 2016023390A1
Authority
WO
WIPO (PCT)
Prior art keywords
virtual machine
storage
description file
logical unit
storage resource
Prior art date
Application number
PCT/CN2015/078524
Other languages
French (fr)
Chinese (zh)
Inventor
阳代平
赖宝华
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2016023390A1 publication Critical patent/WO2016023390A1/en

Links

Images

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

Definitions

  • the present invention relates to the field of cloud computing technologies, and in particular, to a virtual machine storage resource deployment method and apparatus.
  • Cloud computing is a pay-as-you-go model that provides available, convenient, on-demand network access to a configurable pool of computing resources, including networks, servers, storage, and application software.
  • virtual machines share physical storage space of the IaaS layer, such as Solid State Drive (SSD) and Hard Disk Drive (HDD).
  • SSD Solid State Drive
  • HDD Hard Disk Drive
  • the cloud management system determines a corresponding data storage cluster according to the storage capacity requirement of the virtual machine.
  • the data storage cluster includes multiple logical units, and each logical unit has a logical unit number (Logic Unit Number, The LUN is identified, and then the logical unit number corresponding to the virtual machine is randomly assigned by the data storage cluster.
  • the virtual machine deployment method in the prior art is randomly allocated according to the capacity, which may cause the system disk and the data disk of the virtual machine to correspond to the same logical unit number, or the virtual machine corresponding to the active and standby virtual machines corresponds to the same logic in the data storage cluster.
  • the unit number reduces the reliability of the storage, so the prior art letter is to be improved.
  • the embodiment of the invention provides a virtual machine deployment method and related device for improving storage reliability.
  • an embodiment of the present invention provides a virtual machine deployment method, including: acquiring a virtual machine storage resource description file;
  • the IaaS layer management interface is invoked according to the storage performance requirement to set a logical unit number corresponding to the virtual machine.
  • the obtaining a storage performance requirement of the virtual machine specifically includes:
  • the calling the IaaS layer management interface according to the storage performance requirement to set the logical unit number corresponding to the virtual machine includes:
  • the first virtual machine and the second virtual machine respectively correspond to different logical unit numbers by calling the IaaS layer management interface according to the storage anti-affinity policy.
  • the parsing the storage resource description file to obtain the storage performance requirement of the virtual machine specifically includes:
  • the calling the IaaS layer management interface according to the storage performance requirement to set the logical unit number corresponding to the virtual machine includes:
  • the method further includes: receiving a virtual machine storage hot migration request;
  • the storage resource description file is a virtual network function descriptor.
  • the method further includes: before acquiring the virtual machine storage resource description file:
  • the storage devices are classified into different RAID groups according to the level of I/O performance.
  • Each of the RAID groups is divided into a plurality of logical units, each of which is identified by a logical unit number.
  • an embodiment of the present invention provides a virtual machine storage resource deployment apparatus, including:
  • a file obtaining unit configured to acquire a virtual machine storage resource description file
  • a parsing unit configured to parse the storage resource description file to obtain a storage performance requirement of the virtual machine
  • the calling unit is configured to invoke the IaaS layer management interface to set a logical unit number corresponding to the virtual machine according to the storage performance requirement.
  • the apparatus further includes:
  • a receiving unit configured to receive a virtual machine storage hot migration request
  • a policy obtaining unit configured to acquire current deployment information of the virtual machine and store a reverse affinity policy
  • a policy execution unit configured to set a logical unit number corresponding to the virtual machine according to the reverse affinity policy and the current deployment information.
  • the parsing unit parsing the storage resource description file to obtain the storage performance requirement of the virtual machine specifically includes:
  • the parsing unit parses the storage resource description file to obtain a storage I/O performance requirement of the virtual machine
  • the calling unit calls the IaaS layer management interface to set the logical unit number corresponding to the virtual machine according to the storage performance requirement, including:
  • the calling unit sets an IaaS layer management interface to set a logical unit number corresponding to the virtual machine according to the storage I/O performance requirement, and an I/O performance of the logical unit corresponding to the logical unit number is higher than the storage I/ O performance requirements.
  • the virtual machine storage resource description file is first obtained, the storage resource description file is parsed to obtain the storage performance requirement of the virtual machine, and then the IaaS layer management interface is invoked according to the storage performance requirement.
  • the logical unit number corresponding to the virtual machine is directly set according to the storage performance requirement, and the person skilled in the art further determines the corresponding data storage cluster according to the storage capacity requirement of the virtual machine.
  • FIG. 1 is a structural diagram of a storage resource in a cloud computing environment in a virtual machine storage resource deployment method according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a virtual machine storage resource deployment method according to Embodiment 1 of the present invention
  • FIG. 3 is a flowchart of a virtual machine storage resource deployment method according to Embodiment 2 of the present invention.
  • FIG. 4 is a flowchart of a virtual machine storage resource deployment method according to Embodiment 3 of the present invention.
  • FIG. 5 is a schematic structural diagram of a virtual machine storage resource deployment apparatus according to Embodiment 4 of the present invention.
  • FIG. 6 is a schematic structural diagram of a virtual machine storage resource deployment apparatus according to Embodiment 5 of the present invention.
  • the present invention provides a virtual machine storage resource deployment method and apparatus.
  • the virtual machine deployment needs to use the storage resources of the IaaS layer in the cloud computing.
  • the architecture of the storage resource in the cloud computing environment is shown in Figure 1.
  • the storage medium can be a physical solid state hard disk or a hard disk drive.
  • the cloud management system storage medium on the IaaS layer divides multiple logical units, and the logical unit passes through the logical unit. No. LUN to identify.
  • the logical unit is assigned to the data storage cluster.
  • the data storage cluster 1 includes LUN0 and LUN1
  • the data storage cluster 2 includes LUN2, LUN3, and LUN4.
  • a virtual machine storage resource deployment method provided by Embodiment 1 of the present invention includes:
  • Step 110 Obtain a virtual machine storage resource description file.
  • the storage resource description file carries the storage performance requirements of the virtual machine to be deployed. Save The storage resource description file may specifically be a Virtualized Network Function Descriptor (VNFD) or an Open Virtualized Format (OVF) description file.
  • VNFD Virtualized Network Function Descriptor
  • OVF Open Virtualized Format
  • the storage resource can be located in the Infrastructure as a Service (IaaS) layer in the cloud computing system.
  • Step 120 Parse the storage resource description file to obtain a storage performance requirement of the virtual machine.
  • the storage performance requirement may include a storage I/O performance requirement, a virtual machine system disk, a storage anti-affinity policy between the logical disks, and a storage reverse affinity policy of the first virtual machine and the second virtual machine (required
  • the storage resources of one virtual machine and the second virtual machine correspond to different logical unit numbers) and the like.
  • Step 130 Call the IaaS layer management interface to set a logical unit number corresponding to the virtual machine according to the storage performance requirement.
  • the embodiment of the present invention calls the IaaS layer management interface in the cloud computing system to set a logical unit number corresponding to the virtual machine according to the storage performance requirement, and the logical unit represented by the logical unit number is located in the data storage cluster.
  • the virtual machine storage resource description file is first obtained, the storage resource description file is parsed to obtain the storage performance requirement of the virtual machine, and then the IaaS layer management interface is invoked according to the storage performance requirement.
  • the IaaS layer management interface is invoked according to the storage performance requirement.
  • the logical unit number corresponding to the virtual machine is directly set according to the storage performance requirement, and the person skilled in the art further determines the corresponding data storage cluster according to the storage capacity requirement of the virtual machine.
  • the virtual machine storage resource description file can be flexibly configured to avoid the same logical unit number in the data storage cluster of the active and standby virtual machines, the data disk of the same virtual machine, and the system disk. This improves the reliability of the virtual machine storage resources and provides more efficient configuration. high.
  • the storage resource description file carries a storage anti-affinity policy of the primary virtual machine or the standby virtual machine or multiple logical disks of the virtual machine (for example, a system disk and a data disk)
  • the storage anti-affinity policy in the above step 130, the IaaS layer management interface is called according to the storage performance requirement, and the logical unit number corresponding to the virtual machine may be set as follows: the IaaS layer management interface is set according to the storage anti-affinity policy to set the primary virtual The machine and the standby virtual machine respectively correspond to different logical unit numbers in the data storage cluster or multiple logical disks in which the virtual machine is set respectively correspond to different logical unit numbers in the data storage cluster.
  • the embodiments of the present invention can improve the reliability and stability of data storage by deploying multiple logical disks of the active and standby virtual machines and virtual machines on different logical unit numbers.
  • FIG. 3 is a flowchart of a method for deploying a virtual machine storage resource according to Embodiment 2 of the present invention.
  • Step 210 Divide the storage device into different RAID groups according to the level of I/O performance.
  • the storage device has different I/O performance due to the storage medium and interface type it employs.
  • the IaaS layer cloud management system in the cloud computing environment divides the storage devices of the IaaS layer into different RAID groups according to the level of I/O performance.
  • Step 220 Divide each of the RAID groups into multiple logical units, and each logical unit is identified by a logical unit number.
  • the IaaS layer cloud management system in the cloud computing environment can divide the RAID group into multiple logical units, and then put the logical unit into the data storage cluster. Multiple logical units are included in the same data storage cluster. The logical units in the RAID group can be placed in different data storage clusters or in the same data storage cluster.
  • Step 230 Receive a virtual machine storage resource description file sent by the Saas layer application.
  • the step 110 of obtaining the virtual machine storage resource description file in the first embodiment includes: receiving the virtual machine storage resource description file sent by the Saas layer application. Because the application has requirements for I/O performance, the virtual machine storage resource description file carries the storage I/O performance requirements of the virtual machine.
  • the generating virtual machine storage resource description file may be automatically generated by the software-as-a-service SaaS layer application according to the storage resource requirement of the application, where the description file includes the storage space requirement of the application and the storage performance requirement (such as storage I/O performance requirement, storage). Anti-affinity strategy) and so on.
  • the virtual machine storage resource description file can also come from an open virtual format description file.
  • Step 240 Parse the storage resource description file to obtain a storage performance requirement of the virtual machine.
  • the storage resource description file is parsed to obtain a storage I/O performance requirement of the virtual machine.
  • the method for parsing the storage resource description file may also obtain the storage space requirement of the virtual machine, and allocate the storage space that meets the requirement for the virtual machine.
  • Step 250 Call an IaaS layer management interface to set a logical unit number corresponding to the virtual machine according to the storage I/O performance requirement, and an I/O performance of the logical unit corresponding to the logical unit number is higher than the storage I/O performance.
  • the IaaS layer management interface is invoked to set a logical unit number corresponding to the virtual machine according to the storage I/O performance requirement of the virtual machine, and the storage I/O performance of the logical unit corresponding to the logical unit number is higher than the foregoing.
  • Storage I/O performance requirements this logical unit is located in the data storage cluster.
  • the different logical units in the data storage cluster correspond to different storage I/O performances.
  • the virtual machine by configuring a virtual unit with a storage I/O performance higher than a requirement, the virtual machine can meet the requirement of high I/O performance, and the present invention is implemented.
  • the storage resources that meet the requirements can be configured according to the different storage I/O performance requirements of the virtual machine, and the utilization efficiency of the storage resources is improved.
  • the application of the Saas layer needs to establish two virtual machines VM1 and VM2.
  • the logical volumes of VM1 and VM2 need to be placed on different LUNs.
  • VM1 and VM2 belong to a storage I/O type virtual machine, and the number of input/output operations per second (Input/Output Operations Per Second, IOPS) is as high as 500 IOPS.
  • a virtual machine storage resource deployment method provided by Embodiment 3 of the present invention includes the following steps:
  • Step 310 The IaaS layer cloud management system divides the storage devices into different RAID groups according to the level of I/O performance.
  • the SSD, the SAS, and the SATA are divided into three disk arrays (Redundant Arrays of Independent Disks, RAID) according to the storage medium type, interface type, and I/O performance of the storage device.
  • the storage I/O performance of the three RAID groups is reduced in turn.
  • the SSD RAID group meets the high I/O performance requirements.
  • the SAS meets the common I/O performance requirements and the SATA performance is low. It is mainly used for system backup.
  • Step 320 The IaaS layer cloud management system divides each RAID into multiple logical units, and places the logical units into the data storage cluster.
  • LUNs with different I/O performance in the data storage cluster or data storage clusters with different I/O performance can meet the I/O performance requirements of different virtual machines.
  • the logical units in the RAID group can be placed in different data storage clusters or in the same data storage cluster.
  • LUN0, LUN1, and LUN2 correspond to SSD storage
  • LUN3 and LUN4 correspond to SAS storage
  • LUN5, and LUN6 correspond to SATA storage
  • LUN0, LUN1, and LUN2 are placed in the same data storage cluster
  • LUN3-LUN6 is placed in another data storage cluster.
  • Steps 310 and 320 are all implemented by an IaaS layer cloud management system.
  • the IaaS layer cloud management system is specifically VMware vCloud director.
  • Step 330 The VNF management system receives a virtual machine storage resource description file sent by the Saas layer application.
  • the virtual machine storage resource description file is specifically VNFD, and the application manufacturer describes the virtual machine storage requirement according to the application requirement, and uploads to the VNF management system through the WEB client network.
  • the VNF management system can be located in the PaaS layer of the cloud computing system.
  • Step 340 The VNF management system parses the VNFD to obtain a storage performance requirement of the virtual machine, and sends the storage performance requirement to the IaaS layer cloud management system.
  • the VNFD describes that the virtual machine VM1 and the virtual machine VM2 store have anti-affinity and are required to be placed on different LUNs.
  • I/O performance requirements are 500I/OPS.
  • Step 350 The IaaS layer cloud management system creates virtual machines VM1 and VM2.
  • the IaaS layer cloud management system allocates server resources and storage resources according to resource requirements (including computing resource requirements, network resource requirements, storage requirements, and the like) of the virtual machines VM1 and VM2.
  • the process of allocating storage resources by the IaaS layer cloud management system includes the steps of creating a storage mapping relationship, and the action of applying for the physical resources is implemented by step 360.
  • Step 360 The VNF management system invokes the IaaS layer management interface to select two logical units that meet the I/O performance requirements according to the storage requirements of the virtual machines VM1 and VM2, and sets the virtual machines VM1 and VM2 to correspond to different logical unit numbers.
  • the VMs VM1 and VM2 have I/O performance requirements and require storage anti-affinity.
  • the VNF management system calls the IaaS layer management interface to select two logical unit numbers LUN0 and LUN1 that meet the I/O performance requirements, and the settings are set.
  • the virtual machine VM1 corresponds to LUN0
  • VM2 corresponds to LUN1.
  • the IaaS layer cloud management system will store the I/O performance requirements and storage anti-affinity policies of the virtual machines VM1 and VM2.
  • the virtual machine creation process can be To meet the storage I/O performance and storage anti-affinity policies of the active and standby virtual machines, improve the reliability of the active and standby virtual machines, and select appropriate storage deployment based on the I/O defined by the virtual machine to improve storage resources. usage efficiency.
  • the IaaS layer cloud management system finds that the storage capacity and storage I/O performance of the LUN0 cannot meet the requirements of the virtual machine VM1, and the VM1 needs to be migrated from the LUN0 to the other LUN.
  • the cloud management system automatically triggers or manually triggers a VM1 hot migration request.
  • Step 370 The IaaS layer cloud management system receives the VM1 hot migration request, and obtains current deployment information of the virtual machine VM1.
  • the hot migration request is used to indicate that VM1 needs to be hot migrated, including the source LUN of VM1, that is, LUN0.
  • the IaaS cloud management system obtains the current deployment information of the virtual machine VM1.
  • the deployment information includes the location of the logical disk of the VM1, the I/O performance requirement, and the location of the logical disk of the virtual machine VM2.
  • the logical disk of the backup virtual machine VM2 is located on the LUN1, and the LUN2-LUN6 is idle, and the I/O performance of the LUN0 corresponding to the VM1 is high.
  • Step 380 The IaaS cloud management system sets the migration logical unit number corresponding to VM1 according to the current deployment information of VM1 and the storage anti-affinity policy.
  • the IaaS cloud management system determines that VM1 cannot be migrated to the logical unit LUN1 of VM2 according to the current deployment information of VM1 obtained in step 380, the previously stored storage reverse affinity policy, and the storage I/O performance, and finally sets LUN2.
  • the migration logical unit number corresponding to VM1 completes the hot migration process of VM1.
  • the storage resource is selected according to the I/O performance requirements of the virtual machine.
  • the virtual machine is hot-migrated and combined with hot migration.
  • the storage performance of a virtual machine requires the selection of target storage resources that meet the requirements.
  • the embodiment of the present invention can better meet the storage performance requirements of the virtual machine and improve the utilization efficiency of the storage resource.
  • FIG. 5 is a schematic diagram of a virtual machine storage resource deployment apparatus according to Embodiment 4 of the present invention.
  • the virtual machine storage resource deployment apparatus provided by the embodiment of the present invention mainly includes:
  • a file obtaining unit 410 configured to acquire a virtual machine storage resource description file, where the storage resource description file may be a virtual network function descriptor;
  • the parsing unit 420 is configured to parse the storage resource description file to obtain a storage performance requirement of the virtual machine
  • the calling unit 430 is configured to invoke the IaaS layer management interface to set a logical unit number corresponding to the virtual machine according to the storage performance requirement.
  • the virtual machine storage resource deployment apparatus provided in the fourth embodiment of the present invention can be used in the foregoing corresponding deployment method, the first embodiment, the second embodiment, and the third embodiment.
  • the usage process and the beneficial effects are the same as those in the foregoing embodiment. For example, it will not be described here.
  • the file storage unit 410 first obtains the virtual machine storage resource description file, and the parsing unit 420 parses the storage resource description file to obtain the storage performance requirement of the virtual machine, and then The calling unit 430 calls the IaaS layer management interface to set the logical unit number corresponding to the virtual machine according to the storage performance requirement, thereby satisfying the storage performance requirement of the virtual machine.
  • the logical unit number corresponding to the virtual machine is directly set according to the storage performance requirement, and the person skilled in the art further determines the corresponding data storage cluster according to the storage capacity requirement of the virtual machine.
  • the virtual machine storage resource description file can be flexibly configured to avoid the same logical unit number in the data storage cluster of the active and standby virtual machines, the data disk of the same virtual machine, and the system disk. This improves the reliability of the virtual machine storage resources and provides more efficient configuration. high.
  • the virtual machine storage resource deployment apparatus provided by the embodiment of the present invention further includes:
  • the receiving unit 440 is configured to receive a virtual machine storage hot migration request.
  • the policy obtaining unit 450 is configured to acquire current deployment information of the virtual machine and store a reverse affinity policy
  • the policy execution unit 460 is configured to set a logical unit number corresponding to the virtual machine according to the reverse affinity policy and the current deployment information.
  • the array dividing unit 470 is configured to store the virtual machine storage resource description file before acquiring the virtual machine storage resource description file.
  • the devices are classified into different RAID groups according to the level of I/O performance.
  • the unit number assigning unit 480 is configured to divide each of the RAID groups into a plurality of logical units, and each logical unit is identified by a logical unit number.
  • the virtual machine storage resource deployment device provided by the embodiment of the present invention may also be used in the application scenario of the virtual machine hot migration.
  • the parsing unit 420 parses the storage resource description file to obtain the storage performance requirement of the virtual machine, and specifically includes:
  • the parsing unit 420 parses the storage resource description file to obtain a storage I/O performance requirement of the virtual machine
  • the invoking unit 430 calls the IaaS layer management interface to set the logical unit number corresponding to the virtual machine according to the storage performance requirement, including:
  • the calling unit 430 calls the IaaS layer management interface to set a logical unit number corresponding to the virtual machine according to the storage I/O performance requirement, and the logical unit corresponding to the logical unit number has higher I/O performance than the storage I. /O performance requirements.
  • the parsing unit 420 parses the storage resource description file to obtain the storage performance requirement of the virtual machine, and specifically includes:
  • the parsing unit 420 parses the storage resource description file to obtain a storage anti-affinity policy of the primary virtual machine and the standby virtual machine;
  • the invoking unit 430 calls the IaaS layer management interface to set the logical unit number corresponding to the virtual machine according to the storage performance requirement, including:
  • the calling unit 430 calls the IaaS layer management interface according to the storage anti-affinity policy to set the primary virtual machine and the standby virtual machine respectively corresponding to different logical unit numbers.
  • the parsing unit 420 parsing the storage resource description file to obtain the storage performance requirement of the virtual machine specifically includes:
  • the parsing unit 420 parses the storage resource description file to obtain a storage anti-affinity policy between the plurality of logical disks of the virtual machine;
  • the invoking unit 430 calls the IaaS layer management interface to set the logical unit number corresponding to the virtual machine according to the storage performance requirement, including:
  • the calling unit 430 calls the IaaS layer management interface to set the virtual state according to the storage anti-affinity policy.
  • the multiple logical disks of the virtual machine correspond to different logical unit numbers.
  • FIG. 6 is a schematic diagram of a virtual machine storage resource deployment apparatus according to Embodiment 5 of the present invention.
  • the virtual machine storage resource deployment apparatus provided by the embodiment of the present invention mainly includes:
  • processor 510 a processor 510, a memory 520 for storing computer execution instructions, and a processor 510 coupled to the memory 520 via the bus 530, the processor 610 when the device is running Executing the computer to execute an instruction to cause the apparatus to perform the following method:
  • the IaaS layer management interface is invoked according to the storage performance requirement to set a logical unit number corresponding to the virtual machine.
  • the process of executing the foregoing method in the virtual machine storage resource deployment apparatus provided by the fifth embodiment of the present invention is the same as the implementation process of the first embodiment, the second embodiment, and the third embodiment, and has the same beneficial effects.
  • the foregoing implementation For example, it will not be described here.
  • aspects of the present invention, or possible implementations of various aspects may be embodied as a system, method, or computer program product.
  • aspects of the invention, or possible implementations of various aspects may be in the form of an entirely hardware embodiment, an entirely software embodiment (including firmware, resident software, etc.), or a combination of software and hardware aspects, They are collectively referred to herein as "circuits," “modules,” or “systems.”
  • aspects of the invention, or possible implementations of various aspects may take the form of a computer program product, which is a computer readable program code stored in a computer readable medium.
  • the computer readable medium can be a computer readable signal medium or a computer readable storage medium.
  • the computer readable storage medium includes, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing, such as random access memory (RAM), read only memory (ROM), Erase programmable read-only memory (EPROM or flash memory), optical fiber, portable read-only memory (CD-ROM).
  • a processor in a computer reads a computer readable program stored in a computer readable medium
  • the code enables the processor to perform the functional actions specified in each step or combination of steps in the flowchart; generating means for implementing the functional actions specified in each block of the block diagram or in a combination of blocks.
  • the computer readable program code can execute entirely on the user's computer, partly on the user's computer, as a separate software package, partly on the user's computer and partly on the remote computer, or entirely on the remote computer or server.
  • the functions noted in the various steps in the flowcharts or in the blocks in the block diagrams may not occur in the order noted. For example, two steps, or two blocks, shown in succession may be executed substantially concurrently or the blocks may be executed in the reverse order.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

Provided are a virtual machine deployment method and device. The method comprises: firstly acquiring a virtual machine storage resource description file, parsing the storage resource description file to acquire the storage performance requirements of the virtual machine, then calling an IaaS-layer management interface according to the storage performance requirements to set a logic unit number corresponding to the virtual machine, thereby meeting the storage performance requirements of the virtual machine. Compared with determining a corresponding data storage cluster according to the storage capacity of a virtual machine in the prior art, in the embodiments of the present invention, when deploying a storage resource, a logic unit number corresponding to the virtual machine is directly set according to storage performance requirements, and thus a person skilled in the art could flexibly configure a virtual machine storage resource description file, to avoid the case where a main and a standby virtual machine, and a data disk and a system disk of the same virtual machine, correspond to the same logic unit number in a data storage cluster, thus improving reliability of virtual machine storage resources, and having a relatively high configuration efficiency.

Description

虚拟机存储资源部署方法和装置Virtual machine storage resource deployment method and device
本申请要求于2014年8月12日提交中国专利局、申请号为201410393130.6发明名称为“虚拟机存储资源部署方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. 201410393130.6, entitled "Virtual Machine Storage Resource Deployment Method and Apparatus", filed on August 12, 2014, the entire contents of which is incorporated herein by reference. .
技术领域Technical field
本发明涉及云计算技术领域,具体而言涉及一种虚拟机存储资源部署方法和装置。The present invention relates to the field of cloud computing technologies, and in particular, to a virtual machine storage resource deployment method and apparatus.
背景技术Background technique
云计算是一种按使用量付费的模式,这种模式提供可用的、便捷的、按需的网络访问,进入可配置的计算资源共享池,资源包括网络,服务器,存储,应用软件等。在云计算的环境下,虚拟机共享IaaS层的物理存储空间,例如固态硬盘(Solid State Drive,SSD)、硬盘驱动器(Hard Disk Drive,HDD)。Cloud computing is a pay-as-you-go model that provides available, convenient, on-demand network access to a configurable pool of computing resources, including networks, servers, storage, and application software. In a cloud computing environment, virtual machines share physical storage space of the IaaS layer, such as Solid State Drive (SSD) and Hard Disk Drive (HDD).
现有技术在进行虚拟机部署时,云管理系统根据虚拟机的存储容量要求确定对应的数据存储集群,数据存储集群中包含多个逻辑单元,每个逻辑单元以逻辑单元号(Logic Unit Number,LUN)为标识,然后由数据存储集群随机分配虚拟机对应的逻辑单元号。In the prior art, when the virtual machine is deployed, the cloud management system determines a corresponding data storage cluster according to the storage capacity requirement of the virtual machine. The data storage cluster includes multiple logical units, and each logical unit has a logical unit number (Logic Unit Number, The LUN is identified, and then the logical unit number corresponding to the virtual machine is randomly assigned by the data storage cluster.
但是,现有技术中的虚拟机部署方法是根据容量随机分配,可能导致虚拟机的系统盘、数据盘对应相同的逻辑单元号,或者互为主备的虚拟机对应数据存储集群中相同的逻辑单元号,降低了存储的可靠性,因此现有技术函待改进。However, the virtual machine deployment method in the prior art is randomly allocated according to the capacity, which may cause the system disk and the data disk of the virtual machine to correspond to the same logical unit number, or the virtual machine corresponding to the active and standby virtual machines corresponds to the same logic in the data storage cluster. The unit number reduces the reliability of the storage, so the prior art letter is to be improved.
发明内容Summary of the invention
本发明实施例提供了一种提高存储可靠性的虚拟机部署方法和相关设备。 The embodiment of the invention provides a virtual machine deployment method and related device for improving storage reliability.
第一方面,本发明实施例提供一种虚拟机部署方法,包括:获取虚拟机存储资源描述文件;In a first aspect, an embodiment of the present invention provides a virtual machine deployment method, including: acquiring a virtual machine storage resource description file;
解析所述存储资源描述文件获取所述虚拟机的存储性能要求;Parsing the storage resource description file to obtain a storage performance requirement of the virtual machine;
根据所述存储性能要求调用IaaS层管理接口设置所述虚拟机对应的逻辑单元号。The IaaS layer management interface is invoked according to the storage performance requirement to set a logical unit number corresponding to the virtual machine.
结合第一方面,在第一种可能的实现方式中,所述获取所述虚拟机的存储性能要求具体包括:With reference to the first aspect, in a first possible implementation, the obtaining a storage performance requirement of the virtual machine specifically includes:
获取第一虚拟机的存储反亲和策略,所述反亲和策略要求第一虚拟机和第二虚拟机的存储资源对应不同的逻辑单元号;Obtaining a storage anti-affinity policy of the first virtual machine, where the anti-affinity policy requires that the storage resources of the first virtual machine and the second virtual machine correspond to different logical unit numbers;
所述根据存储性能要求调用IaaS层管理接口设置所述虚拟机对应的逻辑单元号包括:The calling the IaaS layer management interface according to the storage performance requirement to set the logical unit number corresponding to the virtual machine includes:
根据存储反亲和策略调用IaaS层管理接口设置所述第一虚拟机和第二虚拟机分别对应不同的逻辑单元号。The first virtual machine and the second virtual machine respectively correspond to different logical unit numbers by calling the IaaS layer management interface according to the storage anti-affinity policy.
结合第一方面,在第二种可能的实现方式中,所述解析存储资源描述文件获取所述虚拟机的存储性能要求具体包括:With reference to the first aspect, in a second possible implementation manner, the parsing the storage resource description file to obtain the storage performance requirement of the virtual machine specifically includes:
解析所述存储资源描述文件获取所述虚拟机的多个逻辑盘之间的存储反亲和策略;Parsing the storage resource description file to obtain a storage anti-affinity policy between multiple logical disks of the virtual machine;
所述根据存储性能要求调用IaaS层管理接口设置所述虚拟机对应的逻辑单元号包括:The calling the IaaS layer management interface according to the storage performance requirement to set the logical unit number corresponding to the virtual machine includes:
根据所述存储反亲和策略调用IaaS层管理接口设置所述虚拟机的多个逻辑盘分别对应不同的逻辑单元号。And calling the IaaS layer management interface according to the storage anti-affinity policy to set a plurality of logical disks of the virtual machine to respectively correspond to different logical unit numbers.
结合第一方面的第二种可能的实现方式,在第三种可能的实现方式中,该方法还包括:接收虚拟机存储热迁移请求;In conjunction with the second possible implementation of the first aspect, in a third possible implementation, the method further includes: receiving a virtual machine storage hot migration request;
获取所述虚拟机的当前部署信息和存储反亲和策略;Obtaining current deployment information and storing a reverse affinity policy of the virtual machine;
根据所述反亲和策略和所述当前部署信息设置所述虚拟机对应的逻辑单元号。And setting a logical unit number corresponding to the virtual machine according to the reverse affinity policy and the current deployment information.
结合第一方面的第二种可能的实现方式,在第四种可能的实现方式中,所述存储资源描述文件为虚拟网络功能描述符。With reference to the second possible implementation of the first aspect, in a fourth possible implementation, the storage resource description file is a virtual network function descriptor.
结合第一方面的第二种可能的实现方式,在第五种可能的实现方式中,所述方法在获取虚拟机存储资源描述文件之前还包括: In conjunction with the second possible implementation of the first aspect, in a fifth possible implementation, the method further includes: before acquiring the virtual machine storage resource description file:
对存储设备按照I/O性能的高低划分为不同的RAID组;The storage devices are classified into different RAID groups according to the level of I/O performance.
将每个所述RAID组划分为多个逻辑单元,每个逻辑单元以逻辑单元号为标识。Each of the RAID groups is divided into a plurality of logical units, each of which is identified by a logical unit number.
第二方面,本发明实施例提供一种虚拟机存储资源部署装置,其包括:In a second aspect, an embodiment of the present invention provides a virtual machine storage resource deployment apparatus, including:
文件获取单元,用于获取虚拟机存储资源描述文件;a file obtaining unit, configured to acquire a virtual machine storage resource description file;
解析单元,用于解析所述存储资源描述文件获取所述虚拟机的存储性能要求;a parsing unit, configured to parse the storage resource description file to obtain a storage performance requirement of the virtual machine;
调用单元,用于根据所述存储性能要求调用IaaS层管理接口设置所述虚拟机对应的逻辑单元号。The calling unit is configured to invoke the IaaS layer management interface to set a logical unit number corresponding to the virtual machine according to the storage performance requirement.
结合第五方面的实现方式,在第一种可能的实现方式中,该装置还包括:In conjunction with the implementation of the fifth aspect, in a first possible implementation manner, the apparatus further includes:
接收单元,用于接收虚拟机存储热迁移请求;a receiving unit, configured to receive a virtual machine storage hot migration request;
策略获取单元,用于获取所述虚拟机的当前部署信息和存储反亲和策略;a policy obtaining unit, configured to acquire current deployment information of the virtual machine and store a reverse affinity policy;
策略执行单元,用于根据所述反亲和策略和所述当前部署信息设置所述虚拟机对应的逻辑单元号。And a policy execution unit, configured to set a logical unit number corresponding to the virtual machine according to the reverse affinity policy and the current deployment information.
结合第五方面的实现方式,在第二种可能的实现方式中,所述解析单元解析存储资源描述文件获取所述虚拟机的存储性能要求具体包括:With reference to the implementation of the fifth aspect, in a second possible implementation, the parsing unit parsing the storage resource description file to obtain the storage performance requirement of the virtual machine specifically includes:
所述解析单元解析所述存储资源描述文件获取所述虚拟机的存储I/O性能要求;The parsing unit parses the storage resource description file to obtain a storage I/O performance requirement of the virtual machine;
所述调用单元根据存储性能要求调用IaaS层管理接口设置所述虚拟机对应的逻辑单元号包括:The calling unit calls the IaaS layer management interface to set the logical unit number corresponding to the virtual machine according to the storage performance requirement, including:
所述调用单元根据所述存储I/O性能要求调用IaaS层管理接口设置所述虚拟机对应的逻辑单元号,所述逻辑单元号对应的逻辑单元的I/O性能高于所述存储I/O性能要求。The calling unit sets an IaaS layer management interface to set a logical unit number corresponding to the virtual machine according to the storage I/O performance requirement, and an I/O performance of the logical unit corresponding to the logical unit number is higher than the storage I/ O performance requirements.
在本发明实施例提供的虚拟机存储资源部署方法中,首先获取虚拟机存储资源描述文件,解析该存储资源描述文件获取所述虚拟机的存储性能要求,然后根据存储性能要求调用IaaS层管理接口设置所述虚拟机对应的逻辑单元号,进而满足虚拟机的存储性能要求。与现有技术根据虚拟机的存储容量要求确定对应的数据存储集群相比,本发明实施例在部署存储资源时,直接根据存储性能要求设置虚拟机对应的逻辑单元号,进而本领域普通技术人员可以灵活配置虚拟机存储资源描述文件,避免主备虚拟机、同一虚拟机的数 据盘和系统盘对应数据存储集群中相同的逻辑单元号,提高了虚拟机存储资源的可靠性,且配置效率较高。In the virtual machine storage resource deployment method provided by the embodiment of the present invention, the virtual machine storage resource description file is first obtained, the storage resource description file is parsed to obtain the storage performance requirement of the virtual machine, and then the IaaS layer management interface is invoked according to the storage performance requirement. Set the logical unit number corresponding to the virtual machine to meet the storage performance requirements of the virtual machine. Compared with the prior art, the logical unit number corresponding to the virtual machine is directly set according to the storage performance requirement, and the person skilled in the art further determines the corresponding data storage cluster according to the storage capacity requirement of the virtual machine. You can configure the virtual machine storage resource description file to avoid the number of active and standby virtual machines and the same virtual machine. According to the same logical unit number in the data storage cluster corresponding to the disk and the system disk, the reliability of the virtual machine storage resource is improved, and the configuration efficiency is high.
附图说明DRAWINGS
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。其中:In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present invention. Other drawings may also be obtained from those of ordinary skill in the art in light of the inventive work. among them:
图1是本发明实施例提供的虚拟机存储资源部署方法中云计算环境下的存储资源的架构图;1 is a structural diagram of a storage resource in a cloud computing environment in a virtual machine storage resource deployment method according to an embodiment of the present invention;
图2是本发明实施例一提供的虚拟机存储资源部署方法的流程图;2 is a flowchart of a virtual machine storage resource deployment method according to Embodiment 1 of the present invention;
图3是本发明实施例二提供的虚拟机存储资源部署方法的流程图;3 is a flowchart of a virtual machine storage resource deployment method according to Embodiment 2 of the present invention;
图4是本发明实施例三提供的虚拟机存储资源部署方法的流程图;4 is a flowchart of a virtual machine storage resource deployment method according to Embodiment 3 of the present invention;
图5是本发明实施例四提供的虚拟机存储资源部署装置的结构示意图;5 is a schematic structural diagram of a virtual machine storage resource deployment apparatus according to Embodiment 4 of the present invention;
图6是本发明实施例五提供的虚拟机存储资源部署装置的结构示意图。FIG. 6 is a schematic structural diagram of a virtual machine storage resource deployment apparatus according to Embodiment 5 of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性的劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without departing from the inventive scope are the scope of the present invention.
本发明提供一种虚拟机存储资源部署方法和装置,在本发明实施例中,虚拟机部署需要使用云计算中IaaS层的存储资源。云计算环境下的存储资源的架构图如图1所示,其中存储介质可以为物理的固态硬盘、硬盘驱动器,IaaS层的云管理系统存储介质上划分了多个逻辑单元,逻辑单元通过逻辑单元号LUN来标识。此外,逻辑单元被指定到数据存储集群中,例如数据存储集群1中包括LUN0和LUN1,数据存储集群2包括LUN2、LUN3和LUN4。The present invention provides a virtual machine storage resource deployment method and apparatus. In the embodiment of the present invention, the virtual machine deployment needs to use the storage resources of the IaaS layer in the cloud computing. The architecture of the storage resource in the cloud computing environment is shown in Figure 1. The storage medium can be a physical solid state hard disk or a hard disk drive. The cloud management system storage medium on the IaaS layer divides multiple logical units, and the logical unit passes through the logical unit. No. LUN to identify. In addition, the logical unit is assigned to the data storage cluster. For example, the data storage cluster 1 includes LUN0 and LUN1, and the data storage cluster 2 includes LUN2, LUN3, and LUN4.
如图2所示,本发明实施例一提供的虚拟机存储资源部署方法包括:As shown in FIG. 2, a virtual machine storage resource deployment method provided by Embodiment 1 of the present invention includes:
步骤110、获取虚拟机存储资源描述文件。Step 110: Obtain a virtual machine storage resource description file.
其中,存储资源描述文件中携带了待部署的虚拟机的存储性能要求。存 储资源描述文件具体可以为虚拟网络功能描述符(Virtualized Network Function Descriptor,VNFD)或开放虚拟格式(Open Virtualized Format,OVF)描述文件。存储资源可以位于云计算体系中的基础设施即服务(Infrastructure as a Service,IaaS)层。The storage resource description file carries the storage performance requirements of the virtual machine to be deployed. Save The storage resource description file may specifically be a Virtualized Network Function Descriptor (VNFD) or an Open Virtualized Format (OVF) description file. The storage resource can be located in the Infrastructure as a Service (IaaS) layer in the cloud computing system.
步骤120、解析所述存储资源描述文件获取所述虚拟机的存储性能要求。Step 120: Parse the storage resource description file to obtain a storage performance requirement of the virtual machine.
具体的,存储性能要求中可以包括存储I/O性能要求、虚拟机系统盘、逻辑盘之间的存储反亲和策略、第一虚拟机和第二虚拟机的存储反亲和策略(要求第一虚拟机和第二虚拟机的存储资源对应不同的逻辑单元号)等。Specifically, the storage performance requirement may include a storage I/O performance requirement, a virtual machine system disk, a storage anti-affinity policy between the logical disks, and a storage reverse affinity policy of the first virtual machine and the second virtual machine (required The storage resources of one virtual machine and the second virtual machine correspond to different logical unit numbers) and the like.
步骤130、根据所述存储性能要求调用IaaS层管理接口设置所述虚拟机对应的逻辑单元号。Step 130: Call the IaaS layer management interface to set a logical unit number corresponding to the virtual machine according to the storage performance requirement.
具体的,本发明实施例根据上述存储性能要求调用云计算体系中的IaaS层管理接口设置虚拟机对应的逻辑单元号,上述逻辑单元号表示的逻辑单元位于数据存储集群中。Specifically, the embodiment of the present invention calls the IaaS layer management interface in the cloud computing system to set a logical unit number corresponding to the virtual machine according to the storage performance requirement, and the logical unit represented by the logical unit number is located in the data storage cluster.
在本发明实施例提供的虚拟机存储资源部署方法中,首先获取虚拟机存储资源描述文件,解析该存储资源描述文件获取所述虚拟机的存储性能要求,然后根据存储性能要求调用IaaS层管理接口设置所述虚拟机对应的逻辑单元号,进而满足虚拟机的存储性能要求。与现有技术根据虚拟机的存储容量要求确定对应的数据存储集群相比,本发明实施例在部署存储资源时,直接根据存储性能要求设置虚拟机对应的逻辑单元号,进而本领域普通技术人员可以灵活配置虚拟机存储资源描述文件,避免主备虚拟机、同一虚拟机的数据盘和系统盘对应数据存储集群中相同的逻辑单元号,提高了虚拟机存储资源的可靠性,且配置效率较高。In the virtual machine storage resource deployment method provided by the embodiment of the present invention, the virtual machine storage resource description file is first obtained, the storage resource description file is parsed to obtain the storage performance requirement of the virtual machine, and then the IaaS layer management interface is invoked according to the storage performance requirement. Set the logical unit number corresponding to the virtual machine to meet the storage performance requirements of the virtual machine. Compared with the prior art, the logical unit number corresponding to the virtual machine is directly set according to the storage performance requirement, and the person skilled in the art further determines the corresponding data storage cluster according to the storage capacity requirement of the virtual machine. The virtual machine storage resource description file can be flexibly configured to avoid the same logical unit number in the data storage cluster of the active and standby virtual machines, the data disk of the same virtual machine, and the system disk. This improves the reliability of the virtual machine storage resources and provides more efficient configuration. high.
进一步的,本发明实施例提供的存储资源部署方法中,若存储资源描述文件中携带主虚拟机或备虚拟机的存储反亲和策略或虚拟机的多个逻辑盘(例如系统盘和数据盘)的存储反亲和策略,则上述步骤130中根据存储性能要求调用IaaS层管理接口设置所述虚拟机对应的逻辑单元号具体可以为:根据存储反亲和策略调用IaaS层管理接口设置主虚拟机和备虚拟机分别对应数据存储集群中不同的逻辑单元号或设置虚拟机的多个逻辑盘分别对应数据存储集群中不同的逻辑单元号。 Further, in the storage resource deployment method provided by the embodiment of the present invention, if the storage resource description file carries a storage anti-affinity policy of the primary virtual machine or the standby virtual machine or multiple logical disks of the virtual machine (for example, a system disk and a data disk) The storage anti-affinity policy, in the above step 130, the IaaS layer management interface is called according to the storage performance requirement, and the logical unit number corresponding to the virtual machine may be set as follows: the IaaS layer management interface is set according to the storage anti-affinity policy to set the primary virtual The machine and the standby virtual machine respectively correspond to different logical unit numbers in the data storage cluster or multiple logical disks in which the virtual machine is set respectively correspond to different logical unit numbers in the data storage cluster.
本发明实施例通过将主备虚拟机、虚拟机的多个逻辑盘分别部署在不同的逻辑单元号上,可以提高数据存储的可靠性和稳定性。The embodiments of the present invention can improve the reliability and stability of data storage by deploying multiple logical disks of the active and standby virtual machines and virtual machines on different logical unit numbers.
参见图3,图3为本发明实施例二提供的虚拟机存储资源部署方法的流程图。Referring to FIG. 3, FIG. 3 is a flowchart of a method for deploying a virtual machine storage resource according to Embodiment 2 of the present invention.
步骤210、对存储设备按照I/O性能的高低划分为不同的RAID组。Step 210: Divide the storage device into different RAID groups according to the level of I/O performance.
具体的,存储设备由于其采用的存储介质、接口类型而具有不同的I/O性能。本发明实施例可以由云计算环境中IaaS层云管理系统根据I/O性能的高低将IaaS层的存储设备划分为不同的RAID组。Specifically, the storage device has different I/O performance due to the storage medium and interface type it employs. In the embodiment of the present invention, the IaaS layer cloud management system in the cloud computing environment divides the storage devices of the IaaS layer into different RAID groups according to the level of I/O performance.
步骤220、将每个所述RAID组划分为多个逻辑单元,每个逻辑单元以逻辑单元号为标识。Step 220: Divide each of the RAID groups into multiple logical units, and each logical unit is identified by a logical unit number.
其中,云计算环境中的IaaS层云管理系统可以将RAID组划分为多个逻辑单元,然后将逻辑单元放入数据存储集群中。同一数据存储集群中包括多个逻辑单元。RAID组中的逻辑单元可以分别放入不同的数据存储集群中,也可以放入同一个数据存储集群中。The IaaS layer cloud management system in the cloud computing environment can divide the RAID group into multiple logical units, and then put the logical unit into the data storage cluster. Multiple logical units are included in the same data storage cluster. The logical units in the RAID group can be placed in different data storage clusters or in the same data storage cluster.
步骤230、接收Saas层应用发送的虚拟机存储资源描述文件。Step 230: Receive a virtual machine storage resource description file sent by the Saas layer application.
具体的,上述实施例一中获取虚拟机存储资源描述文件的步骤110具体包括:接收Saas层应用发送的虚拟机存储资源描述文件。由于该应用对I/O性能有要求,因而该虚拟机存储资源描述文件中携带虚拟机的存储I/O性能要求。其中,生成虚拟机存储资源描述文件可以由软件即服务SaaS层应用根据应用的存储资源需求自动生成,该描述文件中包括应用的存储空间要求、存储性能要求(例如存储I/O性能要求、存储反亲和策略)等。Specifically, the step 110 of obtaining the virtual machine storage resource description file in the first embodiment includes: receiving the virtual machine storage resource description file sent by the Saas layer application. Because the application has requirements for I/O performance, the virtual machine storage resource description file carries the storage I/O performance requirements of the virtual machine. The generating virtual machine storage resource description file may be automatically generated by the software-as-a-service SaaS layer application according to the storage resource requirement of the application, where the description file includes the storage space requirement of the application and the storage performance requirement (such as storage I/O performance requirement, storage). Anti-affinity strategy) and so on.
此外,虚拟机存储资源描述文件还可以来自于开放虚拟格式描述文件。In addition, the virtual machine storage resource description file can also come from an open virtual format description file.
步骤240、解析所述存储资源描述文件获取所述虚拟机的存储性能要求。Step 240: Parse the storage resource description file to obtain a storage performance requirement of the virtual machine.
在本实施例中,解析上述存储资源描述文件获取虚拟机的存储I/O性能要求。其中,解析存储资源描述文件还可以获取虚拟机的存储空间要求,对虚拟机分配满足要求的存储空间的方法In this embodiment, the storage resource description file is parsed to obtain a storage I/O performance requirement of the virtual machine. The method for parsing the storage resource description file may also obtain the storage space requirement of the virtual machine, and allocate the storage space that meets the requirement for the virtual machine.
步骤250、根据所述存储I/O性能要求调用IaaS层管理接口设置所述虚拟机对应的逻辑单元号,该逻辑单元号对应的逻辑单元的I/O性能高于所述存储I/O性能要求。 Step 250: Call an IaaS layer management interface to set a logical unit number corresponding to the virtual machine according to the storage I/O performance requirement, and an I/O performance of the logical unit corresponding to the logical unit number is higher than the storage I/O performance. Claim.
具体的,本实施例根据虚拟机的存储I/O性能要求调用IaaS层管理接口设置所述虚拟机对应的逻辑单元号,该逻辑单元号对应的逻辑单元的存储I/O性能高于所述存储I/O性能要求,该逻辑单元位于数据存储集群中。Specifically, in this embodiment, the IaaS layer management interface is invoked to set a logical unit number corresponding to the virtual machine according to the storage I/O performance requirement of the virtual machine, and the storage I/O performance of the logical unit corresponding to the logical unit number is higher than the foregoing. Storage I/O performance requirements, this logical unit is located in the data storage cluster.
其中,所述数据存储集群中不同的逻辑单元对应不同的存储I/O性能。The different logical units in the data storage cluster correspond to different storage I/O performances.
在本发明实施例二提供的虚拟机存储资源部署方法中,通过对虚拟机配置存储I/O性能高于要求的逻辑单元,可以满足虚拟机对高I/O性能的要求,进而本发明实施例可以根据虚拟机的不同存储I/O性能需求,配置满足需求的存储资源,提高了存储资源的利用效率。In the virtual machine storage resource deployment method provided by the second embodiment of the present invention, by configuring a virtual unit with a storage I/O performance higher than a requirement, the virtual machine can meet the requirement of high I/O performance, and the present invention is implemented. For example, the storage resources that meet the requirements can be configured according to the different storage I/O performance requirements of the virtual machine, and the utilization efficiency of the storage resources is improved.
为更详细的理解本发明实施例提供的虚拟机存储资源部署方法,下面给出具体的应用场景。For a more detailed understanding of the virtual machine storage resource deployment method provided by the embodiment of the present invention, a specific application scenario is given below.
在本应用场景中,Saas层的应用需要建立主备两个虚拟机VM1和VM2,为了保证可靠性,需要VM1与VM2的逻辑卷放在不同的LUN上。此外,VM1与VM2属于存储I/O型的虚拟机,每秒进行输入/输出操作的次数(Input/Output Operations Per Second,IOPS)要求较高如500IOPS。In this application scenario, the application of the Saas layer needs to establish two virtual machines VM1 and VM2. In order to ensure reliability, the logical volumes of VM1 and VM2 need to be placed on different LUNs. In addition, VM1 and VM2 belong to a storage I/O type virtual machine, and the number of input/output operations per second (Input/Output Operations Per Second, IOPS) is as high as 500 IOPS.
参见图4,本发明实施例三提供的虚拟机存储资源部署方法包括以下步骤:Referring to FIG. 4, a virtual machine storage resource deployment method provided by Embodiment 3 of the present invention includes the following steps:
步骤310、IaaS层云管理系统对存储设备按照I/O性能的高低划分为不同的RAID组。Step 310: The IaaS layer cloud management system divides the storage devices into different RAID groups according to the level of I/O performance.
作为实施例之一,本发明实施例根据存储设备的存储介质类型、接口类型与I/O性能之间的对应关系将SSD、SAS、SATA划分为三个磁盘阵列(Redundant Arrays of Independent Disks,RAID)组,三个RAID组的存储I/O性能依次降低。其中SSD的RAID组满足高I/O性能要求,SAS满足普通I/O性能要求,SATA性能较低,主要用作系统备份。As one of the embodiments, the SSD, the SAS, and the SATA are divided into three disk arrays (Redundant Arrays of Independent Disks, RAID) according to the storage medium type, interface type, and I/O performance of the storage device. The storage I/O performance of the three RAID groups is reduced in turn. The SSD RAID group meets the high I/O performance requirements. The SAS meets the common I/O performance requirements and the SATA performance is low. It is mainly used for system backup.
步骤320、IaaS层云管理系统对每个RAID划分为多个逻辑单元,将逻辑单元放入数据存储集群。Step 320: The IaaS layer cloud management system divides each RAID into multiple logical units, and places the logical units into the data storage cluster.
其中,数据存储集群中的不同I/O性能的LUN或不同I/O性能的数据存储集群可以满足不同虚拟机的I/O性能要求。RAID组中的逻辑单元可以分别放入不同的数据存储集群中,也可以放入同一个数据存储集群中。对应的,数据存储集群中可以存在I/O性能相同的LUN,也可以存在I/O性能高低不 同的LUN。Among them, LUNs with different I/O performance in the data storage cluster or data storage clusters with different I/O performance can meet the I/O performance requirements of different virtual machines. The logical units in the RAID group can be placed in different data storage clusters or in the same data storage cluster. Correspondingly, there may be LUNs with the same I/O performance in the data storage cluster, and the I/O performance may not exist. The same LUN.
在本应用场景中,例如LUN0、LUN1、LUN2对应SSD存储,LUN3、LUN4对应SAS存储、LUN5、LUN6对应SATA存储。LUN0、LUN1、LUN2放入同一数据存储集群中,LUN3-LUN6放入另一数据存储集群中。In this application scenario, for example, LUN0, LUN1, and LUN2 correspond to SSD storage, and LUN3 and LUN4 correspond to SAS storage, LUN5, and LUN6 correspond to SATA storage. LUN0, LUN1, and LUN2 are placed in the same data storage cluster, and LUN3-LUN6 is placed in another data storage cluster.
其中,步骤310、320均通过IaaS层云管理系统来实现。对于VMware场景,IaaS层云管理系统具体为VMware vCloud director。 Steps 310 and 320 are all implemented by an IaaS layer cloud management system. For the VMware scenario, the IaaS layer cloud management system is specifically VMware vCloud director.
步骤330、VNF管理系统接收Saas层应用发送的虚拟机存储资源描述文件。Step 330: The VNF management system receives a virtual machine storage resource description file sent by the Saas layer application.
其中,虚拟机存储资源描述文件具体为VNFD,应用厂商根据应用要求来描述虚拟机存储要求,并通过WEB客户端网络上传到VNF管理系统。VNF管理系统可以位于云计算系统中的PaaS层。The virtual machine storage resource description file is specifically VNFD, and the application manufacturer describes the virtual machine storage requirement according to the application requirement, and uploads to the VNF management system through the WEB client network. The VNF management system can be located in the PaaS layer of the cloud computing system.
步骤340、VNF管理系统解析所述VNFD获取所述虚拟机的存储性能要求,并将该存储性能要求发送给IaaS层云管理系统。Step 340: The VNF management system parses the VNFD to obtain a storage performance requirement of the virtual machine, and sends the storage performance requirement to the IaaS layer cloud management system.
其中,VNFD描述了虚拟机VM1与虚拟机VM2存储有反亲和性,要求放在不同的LUN上。此外,I/O性能要求为500I/OPS。Among them, the VNFD describes that the virtual machine VM1 and the virtual machine VM2 store have anti-affinity and are required to be placed on different LUNs. In addition, I/O performance requirements are 500I/OPS.
步骤350、IaaS层云管理系统创建虚拟机VM1和VM2。Step 350: The IaaS layer cloud management system creates virtual machines VM1 and VM2.
具体的,IaaS层云管理系统根据虚拟机VM1、VM2对资源的需求(包括计算资源需求、网络资源需求、存储需求等)分配服务器资源、存储资源。Specifically, the IaaS layer cloud management system allocates server resources and storage resources according to resource requirements (including computing resource requirements, network resource requirements, storage requirements, and the like) of the virtual machines VM1 and VM2.
其中,IaaS层云管理系统分配存储资源的过程包括创建存储映射关系的步骤,申请物理资源的动作通过步骤360来实现。The process of allocating storage resources by the IaaS layer cloud management system includes the steps of creating a storage mapping relationship, and the action of applying for the physical resources is implemented by step 360.
步骤360、VNF管理系统根据虚拟机VM1和VM2的存储需求调用IaaS层管理接口选择满足I/O性能需求的两个逻辑单元,且设置虚拟机VM1和VM2对应不同的逻辑单元号。Step 360: The VNF management system invokes the IaaS layer management interface to select two logical units that meet the I/O performance requirements according to the storage requirements of the virtual machines VM1 and VM2, and sets the virtual machines VM1 and VM2 to correspond to different logical unit numbers.
具体的,虚拟机VM1和VM2对I/O性能有要求,且要求存储反亲和,VNF管理系统调用IaaS层管理接口选择满足I/O性能需求的两个逻辑单元号LUN0、LUN1,且设置虚拟机VM1对应LUN0,VM2对应LUN1。此外,通过调用IaaS层管理接口,IaaS层云管理系统将会存储虚拟机VM1和VM2的I/O性能要求、存储反亲和策略。Specifically, the VMs VM1 and VM2 have I/O performance requirements and require storage anti-affinity. The VNF management system calls the IaaS layer management interface to select two logical unit numbers LUN0 and LUN1 that meet the I/O performance requirements, and the settings are set. The virtual machine VM1 corresponds to LUN0, and VM2 corresponds to LUN1. In addition, by calling the IaaS layer management interface, the IaaS layer cloud management system will store the I/O performance requirements and storage anti-affinity policies of the virtual machines VM1 and VM2.
在设置好虚拟机VM1和VM2对应的LUN后,通过IaaS层管理系统对虚拟机上电,完成虚拟机的创建过程。本应用场景提供的虚拟机创建过程可 以满足主备虚拟机的存储I/O性能、存储反亲和策略,提高主备虚拟机的可靠性,而且可以根据虚拟机定义的I/O情况选择合适的存储部署,提高了存储资源的利用效率。After the LUNs of VMs VM1 and VM2 are set up, the VMs are powered on through the IaaS layer management system to complete the VM creation process. The virtual machine creation process provided by this application scenario can be To meet the storage I/O performance and storage anti-affinity policies of the active and standby virtual machines, improve the reliability of the active and standby virtual machines, and select appropriate storage deployment based on the I/O defined by the virtual machine to improve storage resources. usage efficiency.
进一步的,在本应用场景中,后续运行时,通过IaaS层云管理系统发现LUN0上存储容量和存储I/O性能无法满足虚拟机VM1要求,需要把VM1从LUN0迁移到其它LUN上,IaaS层云管理系统自动触发或人工触发VM1热迁移请求。Further, in this application scenario, the IaaS layer cloud management system finds that the storage capacity and storage I/O performance of the LUN0 cannot meet the requirements of the virtual machine VM1, and the VM1 needs to be migrated from the LUN0 to the other LUN. The cloud management system automatically triggers or manually triggers a VM1 hot migration request.
本发明实施例三提供的虚拟机存储资源部署方法还包括以下步骤:The virtual machine storage resource deployment method provided by the third embodiment of the present invention further includes the following steps:
步骤370、IaaS层云管理系统接收VM1热迁移请求,获取虚拟机VM1的当前部署信息。Step 370: The IaaS layer cloud management system receives the VM1 hot migration request, and obtains current deployment information of the virtual machine VM1.
其中,热迁移请求用于表明VM1需要进行热迁移,其中包括VM1的源LUN,即LUN0。The hot migration request is used to indicate that VM1 needs to be hot migrated, including the source LUN of VM1, that is, LUN0.
IaaS云管理系统获取虚拟机VM1的当前部署信息,该部署信息中包括VM1的逻辑盘的位置,I/O性能要求,备份虚拟机VM2的逻辑盘的位置等。在本实施例中,其备份虚拟机VM2的逻辑盘位于LUN1上,LUN2-LUN6空闲,且VM1对应的LUN0的I/O性能较高。The IaaS cloud management system obtains the current deployment information of the virtual machine VM1. The deployment information includes the location of the logical disk of the VM1, the I/O performance requirement, and the location of the logical disk of the virtual machine VM2. In this embodiment, the logical disk of the backup virtual machine VM2 is located on the LUN1, and the LUN2-LUN6 is idle, and the I/O performance of the LUN0 corresponding to the VM1 is high.
步骤380、IaaS云管理系统根据VM1的当前部署信息、存储反亲和策略设置VM1对应的迁移逻辑单元号。Step 380: The IaaS cloud management system sets the migration logical unit number corresponding to VM1 according to the current deployment information of VM1 and the storage anti-affinity policy.
具体的,IaaS云管理系统根据步骤380中获取的VM1的当前部署信息、之前保存的存储反亲和策略和存储I/O性能,确定VM1不能迁移到在VM2的逻辑单元LUN1上,最后设置LUN2为VM1对应的迁移逻辑单元号,进而完成VM1的热迁移过程。Specifically, the IaaS cloud management system determines that VM1 cannot be migrated to the logical unit LUN1 of VM2 according to the current deployment information of VM1 obtained in step 380, the previously stored storage reverse affinity policy, and the storage I/O performance, and finally sets LUN2. The migration logical unit number corresponding to VM1 completes the hot migration process of VM1.
在本应用场景中,虚拟机部署时根据虚拟机的I/O性能要求选择合适的存储资源,并且在初始分配的虚拟机存储资源无法满足要求时,对虚拟机执行热迁移,热迁移时结合虚拟机的存储性能要求选择满足要求的目标存储资源。与现有技术相比,本发明实施例可以更好的满足虚拟机的存储性能要求,提高存储资源的利用效率。In this application scenario, when a virtual machine is deployed, the storage resource is selected according to the I/O performance requirements of the virtual machine. When the initially allocated virtual machine storage resource cannot meet the requirements, the virtual machine is hot-migrated and combined with hot migration. The storage performance of a virtual machine requires the selection of target storage resources that meet the requirements. Compared with the prior art, the embodiment of the present invention can better meet the storage performance requirements of the virtual machine and improve the utilization efficiency of the storage resource.
参见图5,图5是本发明实施例四提供的虚拟机存储资源部署装置的示意图。 Referring to FIG. 5, FIG. 5 is a schematic diagram of a virtual machine storage resource deployment apparatus according to Embodiment 4 of the present invention.
如图所示,本发明实施例提供的虚拟机存储资源部署装置主要包括:As shown in the figure, the virtual machine storage resource deployment apparatus provided by the embodiment of the present invention mainly includes:
文件获取单元410,用于获取虚拟机存储资源描述文件;其中,存储资源描述文件可以为虚拟网络功能描述符;a file obtaining unit 410, configured to acquire a virtual machine storage resource description file, where the storage resource description file may be a virtual network function descriptor;
解析单元420,用于解析所述存储资源描述文件获取所述虚拟机的存储性能要求;The parsing unit 420 is configured to parse the storage resource description file to obtain a storage performance requirement of the virtual machine;
调用单元430,用于根据所述存储性能要求调用IaaS层管理接口设置所述虚拟机对应的逻辑单元号。The calling unit 430 is configured to invoke the IaaS layer management interface to set a logical unit number corresponding to the virtual machine according to the storage performance requirement.
本发明实施例四提供的虚拟机存储资源部署装置可以使用在前述对应的部署方法实施例一、实施例二和实施例三中,其使用过程和有益效果和上述实施例相同,详情参见上述实施例,在此不再赘述。The virtual machine storage resource deployment apparatus provided in the fourth embodiment of the present invention can be used in the foregoing corresponding deployment method, the first embodiment, the second embodiment, and the third embodiment. The usage process and the beneficial effects are the same as those in the foregoing embodiment. For example, it will not be described here.
在本发明实施例提供的虚拟机存储资源部署装置中,首先由文件获取单元410获取虚拟机存储资源描述文件,解析单元420解析该存储资源描述文件获取所述虚拟机的存储性能要求,然后由调用单元430根据存储性能要求调用IaaS层管理接口设置所述虚拟机对应的逻辑单元号,进而满足虚拟机的存储性能要求。与现有技术根据虚拟机的存储容量要求确定对应的数据存储集群相比,本发明实施例在部署存储资源时,直接根据存储性能要求设置虚拟机对应的逻辑单元号,进而本领域普通技术人员可以灵活配置虚拟机存储资源描述文件,避免主备虚拟机、同一虚拟机的数据盘和系统盘对应数据存储集群中相同的逻辑单元号,提高了虚拟机存储资源的可靠性,且配置效率较高。In the virtual machine storage resource deployment apparatus provided by the embodiment of the present invention, the file storage unit 410 first obtains the virtual machine storage resource description file, and the parsing unit 420 parses the storage resource description file to obtain the storage performance requirement of the virtual machine, and then The calling unit 430 calls the IaaS layer management interface to set the logical unit number corresponding to the virtual machine according to the storage performance requirement, thereby satisfying the storage performance requirement of the virtual machine. Compared with the prior art, the logical unit number corresponding to the virtual machine is directly set according to the storage performance requirement, and the person skilled in the art further determines the corresponding data storage cluster according to the storage capacity requirement of the virtual machine. The virtual machine storage resource description file can be flexibly configured to avoid the same logical unit number in the data storage cluster of the active and standby virtual machines, the data disk of the same virtual machine, and the system disk. This improves the reliability of the virtual machine storage resources and provides more efficient configuration. high.
进一步参见图5,本发明实施例提供的虚拟机存储资源部署装置还包括:Referring to FIG. 5, the virtual machine storage resource deployment apparatus provided by the embodiment of the present invention further includes:
接收单元440,用于接收虚拟机存储热迁移请求;The receiving unit 440 is configured to receive a virtual machine storage hot migration request.
策略获取单元450,用于获取所述虚拟机的当前部署信息和存储反亲和策略;The policy obtaining unit 450 is configured to acquire current deployment information of the virtual machine and store a reverse affinity policy;
策略执行单元460,用于根据所述反亲和策略和所述当前部署信息设置所述虚拟机对应的逻辑单元号。The policy execution unit 460 is configured to set a logical unit number corresponding to the virtual machine according to the reverse affinity policy and the current deployment information.
为管理IaaS层的存储设备,本发明实施例提供的虚拟机存储资源部署装置还包括:The device for deploying the virtual machine storage resource provided by the embodiment of the present invention further includes:
阵列划分单元470,用于在获取虚拟机存储资源描述文件之前,对存储 设备按照I/O性能的高低划分为不同的RAID组;The array dividing unit 470 is configured to store the virtual machine storage resource description file before acquiring the virtual machine storage resource description file. The devices are classified into different RAID groups according to the level of I/O performance.
单元号分配单元480,用于将每个所述RAID组划分为多个逻辑单元,每个逻辑单元以逻辑单元号为标识。The unit number assigning unit 480 is configured to divide each of the RAID groups into a plurality of logical units, and each logical unit is identified by a logical unit number.
本发明实施例提供的虚拟机存储资源部署装置还可以使用在虚拟机热迁移的应用场景,具体使用过程参见上述实施例三的描述。The virtual machine storage resource deployment device provided by the embodiment of the present invention may also be used in the application scenario of the virtual machine hot migration. For the specific use process, refer to the description in the third embodiment.
进一步的,在本发明实施例提供的虚拟机存储资源部署装置中,解析单元420解析存储资源描述文件获取所述虚拟机的存储性能要求具体包括:Further, in the virtual machine storage resource deployment apparatus provided by the embodiment of the present invention, the parsing unit 420 parses the storage resource description file to obtain the storage performance requirement of the virtual machine, and specifically includes:
所述解析单元420解析所述存储资源描述文件获取所述虚拟机的存储I/O性能要求;The parsing unit 420 parses the storage resource description file to obtain a storage I/O performance requirement of the virtual machine;
所述调用单元430根据存储性能要求调用IaaS层管理接口设置所述虚拟机对应的逻辑单元号包括:The invoking unit 430 calls the IaaS layer management interface to set the logical unit number corresponding to the virtual machine according to the storage performance requirement, including:
所述调用单元430根据所述存储I/O性能要求调用IaaS层管理接口设置所述虚拟机对应的逻辑单元号,所述逻辑单元号对应的逻辑单元的I/O性能高于所述存储I/O性能要求。The calling unit 430 calls the IaaS layer management interface to set a logical unit number corresponding to the virtual machine according to the storage I/O performance requirement, and the logical unit corresponding to the logical unit number has higher I/O performance than the storage I. /O performance requirements.
在另一实施例中,解析单元420解析存储资源描述文件获取所述虚拟机的存储性能要求具体包括:In another embodiment, the parsing unit 420 parses the storage resource description file to obtain the storage performance requirement of the virtual machine, and specifically includes:
解析单元420解析所述存储资源描述文件获取所述主虚拟机和备虚拟机的存储反亲和策略;The parsing unit 420 parses the storage resource description file to obtain a storage anti-affinity policy of the primary virtual machine and the standby virtual machine;
所述调用单元430根据存储性能要求调用IaaS层管理接口设置所述虚拟机对应的逻辑单元号包括:The invoking unit 430 calls the IaaS layer management interface to set the logical unit number corresponding to the virtual machine according to the storage performance requirement, including:
调用单元430根据存储反亲和策略调用IaaS层管理接口设置所述主虚拟机和备虚拟机分别对应不同的逻辑单元号。The calling unit 430 calls the IaaS layer management interface according to the storage anti-affinity policy to set the primary virtual machine and the standby virtual machine respectively corresponding to different logical unit numbers.
在另一实施例中,所述解析单元420解析存储资源描述文件获取所述虚拟机的存储性能要求具体包括:In another embodiment, the parsing unit 420 parsing the storage resource description file to obtain the storage performance requirement of the virtual machine specifically includes:
解析单元420解析所述存储资源描述文件获取所述虚拟机的多个逻辑盘之间的存储反亲和策略;以及The parsing unit 420 parses the storage resource description file to obtain a storage anti-affinity policy between the plurality of logical disks of the virtual machine;
所述调用单元430根据存储性能要求调用IaaS层管理接口设置所述虚拟机对应的逻辑单元号包括:The invoking unit 430 calls the IaaS layer management interface to set the logical unit number corresponding to the virtual machine according to the storage performance requirement, including:
调用单元430根据所述存储反亲和策略调用IaaS层管理接口设置所述虚 拟机的多个逻辑盘分别对应不同的逻辑单元号。The calling unit 430 calls the IaaS layer management interface to set the virtual state according to the storage anti-affinity policy. The multiple logical disks of the virtual machine correspond to different logical unit numbers.
参见图6,图6是本发明实施例五提供的虚拟机存储资源部署装置的示意图。Referring to FIG. 6, FIG. 6 is a schematic diagram of a virtual machine storage resource deployment apparatus according to Embodiment 5 of the present invention.
如图所示,本发明实施例提供的虚拟机存储资源部署装置主要包括:As shown in the figure, the virtual machine storage resource deployment apparatus provided by the embodiment of the present invention mainly includes:
处理器510、存储器520和总线530,所述存储器520用于存储计算机执行指令,所述处理器510与所述存储器520通过所述总线530连接,当所述装置运行时,所述处理器610执行所述计算机执行指令,以使所述装置执行如下方法:a processor 510, a memory 520 for storing computer execution instructions, and a processor 510 coupled to the memory 520 via the bus 530, the processor 610 when the device is running Executing the computer to execute an instruction to cause the apparatus to perform the following method:
获取虚拟机存储资源描述文件;Obtain a virtual machine storage resource description file;
解析所述存储资源描述文件获取所述虚拟机的存储性能要求;Parsing the storage resource description file to obtain a storage performance requirement of the virtual machine;
根据所述存储性能要求调用IaaS层管理接口设置所述虚拟机对应的逻辑单元号。The IaaS layer management interface is invoked according to the storage performance requirement to set a logical unit number corresponding to the virtual machine.
本发明实施例五提供的虚拟机存储资源部署装置执行上述方法的过程和前述对应的部署方法实施例一、实施例二和实施例三的执行过程相同,具有相同的有益效果,详情参见上述实施例,在此不再赘述。The process of executing the foregoing method in the virtual machine storage resource deployment apparatus provided by the fifth embodiment of the present invention is the same as the implementation process of the first embodiment, the second embodiment, and the third embodiment, and has the same beneficial effects. For details, refer to the foregoing implementation. For example, it will not be described here.
本领域普通技术人员将会理解,本发明的各个方面、或各个方面的可能实现方式可以被具体实施为系统、方法或者计算机程序产品。因此,本发明的各方面、或各个方面的可能实现方式可以采用完全硬件实施例、完全软件实施例(包括固件、驻留软件等等),或者组合软件和硬件方面的实施例的形式,在这里都统称为“电路”、“模块”或者“系统”。此外,本发明的各方面、或各个方面的可能实现方式可以采用计算机程序产品的形式,计算机程序产品是指存储在计算机可读介质中的计算机可读程序代码。Those of ordinary skill in the art will appreciate that various aspects of the present invention, or possible implementations of various aspects, may be embodied as a system, method, or computer program product. Thus, aspects of the invention, or possible implementations of various aspects, may be in the form of an entirely hardware embodiment, an entirely software embodiment (including firmware, resident software, etc.), or a combination of software and hardware aspects, They are collectively referred to herein as "circuits," "modules," or "systems." Furthermore, aspects of the invention, or possible implementations of various aspects, may take the form of a computer program product, which is a computer readable program code stored in a computer readable medium.
计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质。计算机可读存储介质包含但不限于电子、磁性、光学、电磁、红外或半导体系统、设备或者装置,或者前述的任意适当组合,如随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或者快闪存储器)、光纤、便携式只读存储器(CD-ROM)。The computer readable medium can be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium includes, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing, such as random access memory (RAM), read only memory (ROM), Erase programmable read-only memory (EPROM or flash memory), optical fiber, portable read-only memory (CD-ROM).
计算机中的处理器读取存储在计算机可读介质中的计算机可读程序代 码,使得处理器能够执行在流程图中每个步骤、或各步骤的组合中规定的功能动作;生成实施在框图的每一块、或各块的组合中规定的功能动作的装置。A processor in a computer reads a computer readable program stored in a computer readable medium The code enables the processor to perform the functional actions specified in each step or combination of steps in the flowchart; generating means for implementing the functional actions specified in each block of the block diagram or in a combination of blocks.
计算机可读程序代码可以完全在用户的计算机上执行、部分在用户的计算机上执行、作为单独的软件包、部分在用户的计算机上并且部分在远程计算机上,或者完全在远程计算机或者服务器上执行。也应该注意,在某些替代实施方案中,在流程图中各步骤、或框图中各块所注明的功能可能不按图中注明的顺序发生。例如,依赖于所涉及的功能,接连示出的两个步骤、或两个块实际上可能被大致同时执行,或者这些块有时候可能被以相反顺序执行。The computer readable program code can execute entirely on the user's computer, partly on the user's computer, as a separate software package, partly on the user's computer and partly on the remote computer, or entirely on the remote computer or server. . It should also be noted that in some alternative implementations, the functions noted in the various steps in the flowcharts or in the blocks in the block diagrams may not occur in the order noted. For example, two steps, or two blocks, shown in succession may be executed substantially concurrently or the blocks may be executed in the reverse order.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods for implementing the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present invention.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应所述以权利要求的保护范围为准。 The above is only a specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope of the present invention. It should be covered by the scope of the present invention. Therefore, the scope of the invention should be determined by the scope of the claims.

Claims (12)

  1. 一种虚拟机存储资源部署方法,其特征在于,所述方法包括:A method for deploying a virtual machine storage resource, the method comprising:
    获取虚拟机存储资源描述文件;Obtain a virtual machine storage resource description file;
    解析所述存储资源描述文件获取所述虚拟机的存储性能要求;Parsing the storage resource description file to obtain a storage performance requirement of the virtual machine;
    根据所述存储性能要求调用IaaS层管理接口设置所述虚拟机对应的逻辑单元号。The IaaS layer management interface is invoked according to the storage performance requirement to set a logical unit number corresponding to the virtual machine.
  2. 根据权利要求1所述的方法,其特征在于,所述获取所述虚拟机的存储性能要求具体包括:The method according to claim 1, wherein the obtaining the storage performance requirement of the virtual machine specifically comprises:
    获取第一虚拟机的存储反亲和策略,所述反亲和策略要求第一虚拟机和第二虚拟机的存储资源对应不同的逻辑单元号;Obtaining a storage anti-affinity policy of the first virtual machine, where the anti-affinity policy requires that the storage resources of the first virtual machine and the second virtual machine correspond to different logical unit numbers;
    所述根据存储性能要求调用IaaS层管理接口设置所述虚拟机对应的逻辑单元号包括:The calling the IaaS layer management interface according to the storage performance requirement to set the logical unit number corresponding to the virtual machine includes:
    根据存储反亲和策略调用IaaS层管理接口设置所述第一虚拟机和第二虚拟机分别对应不同的逻辑单元号。The first virtual machine and the second virtual machine respectively correspond to different logical unit numbers by calling the IaaS layer management interface according to the storage anti-affinity policy.
  3. 根据权利要求1所述的方法,其特征在于,所述解析存储资源描述文件获取所述虚拟机的存储性能要求具体包括:The method according to claim 1, wherein the parsing the storage resource description file to obtain the storage performance requirement of the virtual machine specifically includes:
    解析所述存储资源描述文件获取所述虚拟机的多个逻辑盘之间的存储反亲和策略;Parsing the storage resource description file to obtain a storage anti-affinity policy between multiple logical disks of the virtual machine;
    所述根据存储性能要求调用IaaS层管理接口设置所述虚拟机对应的逻辑单元号包括:The calling the IaaS layer management interface according to the storage performance requirement to set the logical unit number corresponding to the virtual machine includes:
    根据所述存储反亲和策略调用IaaS层管理接口设置所述虚拟机的多个逻辑盘分别对应不同的逻辑单元号。And calling the IaaS layer management interface according to the storage anti-affinity policy to set a plurality of logical disks of the virtual machine to respectively correspond to different logical unit numbers.
  4. 根据权利要求1到3任一项所述的方法,其特征在于,所述解析存储资源描述文件获取所述虚拟机的存储性能要求具体包括:The method according to any one of claims 1 to 3, wherein the parsing the storage resource description file to obtain the storage performance requirement of the virtual machine specifically includes:
    解析所述存储资源描述文件获取所述虚拟机的存储I/O性能要求; Parsing the storage resource description file to obtain a storage I/O performance requirement of the virtual machine;
    所述根据存储性能要求调用IaaS层管理接口设置所述虚拟机对应的逻辑单元号包括:The calling the IaaS layer management interface according to the storage performance requirement to set the logical unit number corresponding to the virtual machine includes:
    根据所述存储I/O性能要求调用IaaS层管理接口设置所述虚拟机对应的逻辑单元号,所述逻辑单元号对应的逻辑单元的I/O性能高于所述存储I/O性能要求。The logical unit number corresponding to the virtual machine is set according to the storage I/O performance requirement, and the logical unit corresponding to the logical unit has higher I/O performance than the storage I/O performance requirement.
  5. 根据权利要求1到3任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 3, further comprising:
    接收虚拟机存储热迁移请求;Receiving a virtual machine storage hot migration request;
    获取所述虚拟机的当前部署信息和存储反亲和策略;Obtaining current deployment information and storing a reverse affinity policy of the virtual machine;
    根据所述反亲和策略和所述当前部署信息设置所述虚拟机对应的逻辑单元号。And setting a logical unit number corresponding to the virtual machine according to the reverse affinity policy and the current deployment information.
  6. 根据权利要求4所述的方法,其特征在于,所述存储资源描述文件为虚拟网络功能描述符。The method according to claim 4, wherein the storage resource description file is a virtual network function descriptor.
  7. 根据权利要求1或6所述的方法,其特征在于,所述获取虚拟机存储资源描述文件包括:The method according to claim 1 or claim 6, wherein the obtaining the virtual machine storage resource description file comprises:
    接收SaaS层应用发送的虚拟机存储资源描述文件。Receive a virtual machine storage resource description file sent by the SaaS layer application.
  8. 根据权利要求1所述的方法,其特征在于,所述方法在获取虚拟机存储资源描述文件之前还包括:The method according to claim 1, wherein the method further comprises: before acquiring the virtual machine storage resource description file:
    对存储设备按照I/O性能的高低划分为不同的RAID组;The storage devices are classified into different RAID groups according to the level of I/O performance.
    将每个所述RAID组划分为多个逻辑单元,每个逻辑单元以逻辑单元号为标识。Each of the RAID groups is divided into a plurality of logical units, each of which is identified by a logical unit number.
  9. 一种虚拟机存储资源部署装置,其特征在于,包括:A virtual machine storage resource deployment device, comprising:
    文件获取单元,用于获取虚拟机存储资源描述文件;a file obtaining unit, configured to acquire a virtual machine storage resource description file;
    解析单元,用于解析所述存储资源描述文件获取所述虚拟机的存储性能要求; a parsing unit, configured to parse the storage resource description file to obtain a storage performance requirement of the virtual machine;
    调用单元,用于根据所述存储性能要求调用IaaS层管理接口设置所述虚拟机对应的逻辑单元号。The calling unit is configured to invoke the IaaS layer management interface to set a logical unit number corresponding to the virtual machine according to the storage performance requirement.
  10. 根据权利要求9所述的装置,其特征在于,还包括:The device according to claim 9, further comprising:
    接收单元,用于接收虚拟机存储热迁移请求;a receiving unit, configured to receive a virtual machine storage hot migration request;
    策略获取单元,用于获取所述虚拟机的当前部署信息和存储反亲和策略;a policy obtaining unit, configured to acquire current deployment information of the virtual machine and store a reverse affinity policy;
    策略执行单元,用于根据所述反亲和策略和所述当前部署信息设置所述虚拟机对应的逻辑单元号。And a policy execution unit, configured to set a logical unit number corresponding to the virtual machine according to the reverse affinity policy and the current deployment information.
  11. 根据权利要求9所述的装置,其特征在于,还包括:The device according to claim 9, further comprising:
    阵列划分单元,用于在获取虚拟机存储资源描述文件之前,对存储设备按照I/O性能的高低划分为不同的RAID组;The array dividing unit is configured to divide the storage device into different RAID groups according to the I/O performance level before acquiring the virtual machine storage resource description file.
    单元号分配单元,用于将每个所述RAID组划分为多个逻辑单元,每个逻辑单元以逻辑单元号为标识。A unit number allocation unit is configured to divide each of the RAID groups into a plurality of logical units, each logical unit being identified by a logical unit number.
  12. 根据权利要求9到11任一项所述的装置,其特征在于,所述解析单元解析存储资源描述文件获取所述虚拟机的存储性能要求具体包括:The device according to any one of claims 9 to 11, wherein the parsing unit parsing the storage resource description file to obtain the storage performance requirement of the virtual machine specifically includes:
    所述解析单元解析所述存储资源描述文件获取所述虚拟机的存储I/O性能要求;The parsing unit parses the storage resource description file to obtain a storage I/O performance requirement of the virtual machine;
    所述调用单元根据存储性能要求调用IaaS层管理接口设置所述虚拟机对应的逻辑单元号包括:The calling unit calls the IaaS layer management interface to set the logical unit number corresponding to the virtual machine according to the storage performance requirement, including:
    所述调用单元根据所述存储I/O性能要求调用IaaS层管理接口设置所述虚拟机对应的逻辑单元号,所述逻辑单元号对应的逻辑单元的I/O性能高于所述存储I/O性能要求。 The calling unit sets an IaaS layer management interface to set a logical unit number corresponding to the virtual machine according to the storage I/O performance requirement, and an I/O performance of the logical unit corresponding to the logical unit number is higher than the storage I/ O performance requirements.
PCT/CN2015/078524 2014-08-12 2015-05-08 Method and device for deploying virtual machine storage resource WO2016023390A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410393130.6 2014-08-12
CN201410393130.6A CN104142853B (en) 2014-08-12 2014-08-12 Virtual machine storage resource dispositions method and device

Publications (1)

Publication Number Publication Date
WO2016023390A1 true WO2016023390A1 (en) 2016-02-18

Family

ID=51852034

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/078524 WO2016023390A1 (en) 2014-08-12 2015-05-08 Method and device for deploying virtual machine storage resource

Country Status (2)

Country Link
CN (1) CN104142853B (en)
WO (1) WO2016023390A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106161603A (en) * 2016-06-28 2016-11-23 华为技术有限公司 A kind of method of networking, equipment and framework
CN110677499A (en) * 2019-10-30 2020-01-10 北京普瑞华夏国际教育科技有限公司 Cloud resource management application system

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104142853B (en) * 2014-08-12 2018-02-09 华为技术有限公司 Virtual machine storage resource dispositions method and device
CN104598316B (en) * 2014-12-25 2018-06-05 华为技术有限公司 A kind of storage resource distribution method and device
CN104468836B (en) * 2014-12-29 2019-01-18 成都极驰科技有限公司 Virtual disk creation method and device and distributed memory system
CN106030537B (en) * 2015-01-30 2019-06-21 华为技术有限公司 A kind of virtual resource acquisition methods, apparatus and system
US10002014B2 (en) * 2015-07-10 2018-06-19 International Business Machines Corporation Management of a virtual machine in a virtualized computing environment based on a fabric limit
CN105607950A (en) * 2015-10-30 2016-05-25 浪潮(北京)电子信息产业有限公司 Virtual machine resource configuration method and apparatus
CN105468449A (en) * 2015-12-22 2016-04-06 内蒙古农业大学 Delivery method capable of supporting dynamic cloud service by using reusable working load mode
CN107844304B (en) * 2016-09-18 2021-03-19 阿里巴巴集团控股有限公司 Virtual machine hot upgrading method and device
CN106648462B (en) * 2016-11-21 2019-10-25 华为技术有限公司 Date storage method and device
US10296367B2 (en) * 2017-02-03 2019-05-21 Microsoft Technology Licensing, Llc Resource management for virtual machines in cloud computing systems
CN108667864B (en) * 2017-03-29 2020-07-28 华为技术有限公司 Method and device for scheduling resources
CN109426547B (en) 2017-09-04 2022-05-17 华为技术有限公司 Thermal migration method, device and system of virtual machine
WO2019227483A1 (en) 2018-06-01 2019-12-05 Huawei Technologies Co., Ltd. Multiple server-architecture cluster for providing a virtual network function
CN110661641B (en) * 2018-06-29 2021-07-16 华为技术有限公司 Virtual network function VNF deployment method and device
CN111221620B (en) * 2018-11-27 2024-02-09 华为技术有限公司 Storage method, device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102103518A (en) * 2011-02-23 2011-06-22 运软网络科技(上海)有限公司 System for managing resources in virtual environment and implementation method thereof
CN103699428A (en) * 2013-12-20 2014-04-02 华为技术有限公司 Method and computer device for affinity binding of interrupts of virtual network interface card
CN103795804A (en) * 2014-02-24 2014-05-14 华为技术有限公司 Storage resource scheduling method and storage calculation system
CN104142853A (en) * 2014-08-12 2014-11-12 华为技术有限公司 Virtual machine storage resource deployment method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8479194B2 (en) * 2007-04-25 2013-07-02 Microsoft Corporation Virtual machine migration

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102103518A (en) * 2011-02-23 2011-06-22 运软网络科技(上海)有限公司 System for managing resources in virtual environment and implementation method thereof
CN103699428A (en) * 2013-12-20 2014-04-02 华为技术有限公司 Method and computer device for affinity binding of interrupts of virtual network interface card
CN103795804A (en) * 2014-02-24 2014-05-14 华为技术有限公司 Storage resource scheduling method and storage calculation system
CN104142853A (en) * 2014-08-12 2014-11-12 华为技术有限公司 Virtual machine storage resource deployment method and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106161603A (en) * 2016-06-28 2016-11-23 华为技术有限公司 A kind of method of networking, equipment and framework
CN106161603B (en) * 2016-06-28 2019-09-20 华为技术有限公司 A kind of method of networking, equipment and framework
CN110677499A (en) * 2019-10-30 2020-01-10 北京普瑞华夏国际教育科技有限公司 Cloud resource management application system

Also Published As

Publication number Publication date
CN104142853B (en) 2018-02-09
CN104142853A (en) 2014-11-12

Similar Documents

Publication Publication Date Title
WO2016023390A1 (en) Method and device for deploying virtual machine storage resource
US10120720B2 (en) Dynamic resource allocation based on data transferring to a tiered storage
US9766945B2 (en) Virtual resource scheduling for containers with migration
US11573714B2 (en) Compressibility instrumented dynamic volume provisioning
US20170031699A1 (en) Multiprocessing Within a Storage Array System Executing Controller Firmware Designed for a Uniprocessor Environment
US20150121371A1 (en) Multi-tenant distributed computing and database
US20130219390A1 (en) Cloud server and method for creating virtual machines
US20130227558A1 (en) Provisioning of distributed computing clusters
US9735984B2 (en) Bursting cloud resources to affect state change performance
JP6316895B2 (en) Technology to make the capacity of the host-side flash storage device available to virtual machines
KR20140111589A (en) System, method and computer-readable medium for dynamic cache sharing in a flash-based caching solution supporting virtual machines
US10592268B2 (en) Management computer and resource management method configured to combine server resources and storage resources and allocate the combined resources to virtual machines
US10425352B2 (en) Policy driven storage hardware allocation
US9755986B1 (en) Techniques for tightly-integrating an enterprise storage array into a distributed virtualized computing environment
US20130185531A1 (en) Method and apparatus to improve efficiency in the use of high performance storage resources in data center
US9870242B2 (en) Parallel mapping of client partition memory to multiple physical adapters
US10831554B2 (en) Cohesive clustering in virtualized computing environment
KR20130080587A (en) Dynamically reconfigurable apparatus for operating system in manycore system and method of the same
US11080079B2 (en) Autonomously reproducing and destructing virtual machines
US11880606B2 (en) Moving virtual volumes among storage nodes of a storage cluster based on determined likelihood of designated virtual machine boot conditions
US20230333871A1 (en) Host-controlled service levels
US11803425B2 (en) Managing storage resources allocated to copies of application workloads
US10983820B2 (en) Fast provisioning of storage blocks in thin provisioned volumes for supporting large numbers of short-lived applications
WO2016160041A2 (en) Scalabale cloud storage solution

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15832537

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15832537

Country of ref document: EP

Kind code of ref document: A1