WO2017148382A1 - Method and apparatus for accessing storage device by virtual machine in cloud computing management platform - Google Patents

Method and apparatus for accessing storage device by virtual machine in cloud computing management platform Download PDF

Info

Publication number
WO2017148382A1
WO2017148382A1 PCT/CN2017/075301 CN2017075301W WO2017148382A1 WO 2017148382 A1 WO2017148382 A1 WO 2017148382A1 CN 2017075301 W CN2017075301 W CN 2017075301W WO 2017148382 A1 WO2017148382 A1 WO 2017148382A1
Authority
WO
WIPO (PCT)
Prior art keywords
storage device
virtual machine
virtual
machine
accessed
Prior art date
Application number
PCT/CN2017/075301
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 WO2017148382A1 publication Critical patent/WO2017148382A1/en
Priority to US16/121,080 priority Critical patent/US10782989B2/en
Priority to US16/378,076 priority patent/US20190235777A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/067Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/061Improving I/O performance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0629Configuration or reconfiguration of storage systems
    • G06F3/0635Configuration or reconfiguration of storage systems by changing the path, e.g. traffic rerouting, path reconfiguration
    • 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
    • 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
    • G06F9/45533Hypervisors; Virtual machine monitors

Definitions

  • FIG. 1 shows a conventional architecture of a computing node connected storage device provided by the prior art.
  • each virtual machine located on physical machine A (computing node) must communicate with the iSCSI server in another physical machine B (storage node) through an iSCSI client and further pass the iSCSI
  • the server connects to the corresponding storage device (physical disk).
  • FIG. 2 Another architecture of the computing node connected storage device provided by the prior art shown in FIG. 2 is shown in FIG. 2.
  • the storage node and the compute node are all located on the same physical machine A.
  • the file is still read and written by the iscsi protocol, it is not optimized.
  • the virtual machine can directly connect to the corresponding local storage device without going through the iSCSI protocol, there will be a significant improvement in read and write performance.
  • the embodiment of the present invention provides a method and an apparatus for a virtual machine to access a storage device in a cloud computing management platform, which solves the problem that the virtual machine cannot directly connect to the local storage device in the prior art, but must be connected through the iSCSI protocol. The problem.
  • a virtual machine accessing storage device in a cloud computing management platform according to an embodiment of the invention
  • the methods include:
  • Determining whether the storage device to be accessed by the virtual machine and the virtual machine are in the same physical machine includes:
  • the global unique name of the storage device to be accessed by the virtual machine includes:
  • the directly mounting the storage device by the virtual machine includes:
  • a file system associated with the virtual machine for connecting the target link of the storage device to a physical machine where the virtual machine is located corresponds to a virtual storage device created by the storage device.
  • the virtual storage device created by the storage device that is associated with the target device that is connected to the storage device and is connected to the physical device of the virtual device includes:
  • the target link used by the virtual machine to connect to the storage device is changed to an address of the virtual storage device created by the file system corresponding to the storage device.
  • the address of the virtual storage device that is used to connect the storage device to the storage device is changed to:
  • the virtual machine is connected to the storage device via an iSCSI protocol.
  • the connecting the virtual machine to the storage device by using an iSCSI protocol includes:
  • the target link used by the virtual machine to connect to the storage device is associated with a virtual storage device created by the storage device corresponding to the iSCSI.
  • the cloud computing management platform is OpenStack, CloudStack, VMware vCloud, Microsoft Azure Pack, OpenNebula or Eucalyptus.
  • a determining module configured to determine whether the storage device to be accessed by the virtual machine is in the same physical machine as the virtual machine
  • the mounting module is configured to enable the virtual machine to directly mount the storage device when the result returned by the determining module is YES.
  • An obtaining module configured to obtain a global unique name of a storage device to be accessed by the virtual machine
  • the determining module is further configured to: in the file system of the physical machine where the virtual machine is located, find out whether the name of the storage device includes a global unique name of the storage device to be accessed.
  • the obtaining module is further configured to:
  • the mounting module is further configured to:
  • the file link that the virtual machine uses to connect the target link of the storage device to the physical machine where the virtual machine is located corresponds to the virtual storage created by the storage device. device.
  • the mounting module is further configured to:
  • the virtual machine is connected to the storage device through an iSCSI protocol.
  • the connecting the virtual machine to the storage device by using an iSCSI protocol includes:
  • the target link used by the virtual machine to connect to the storage device is associated with a virtual storage device created by the storage device corresponding to the iSCSI.
  • the method and device for accessing a storage device by a virtual machine in a cloud computing management platform are provided by the embodiment of the present invention.
  • the virtual machine When the virtual machine is connected to the storage device, it is first determined whether the storage device is in the same physical machine as the storage device.
  • the physical machine is directly attached to the storage device. Thereby, the direct connection between the virtual machine and the storage device in the same physical machine is realized, without the network communication based on the iSCSI protocol, thereby greatly improving the data read and write speed of the virtual machine.
  • FIG. 1 shows a conventional architecture of a computing node connected storage device provided by the prior art.
  • FIG. 2 Another architecture of the computing node connected storage device provided by the prior art shown in FIG. 2 is shown in FIG. 2.
  • FIG. 3 is a flowchart of a method for a virtual machine to access a storage device in a cloud computing management platform according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram showing the principle of a method for a virtual machine to access a storage device in a cloud computing management platform according to an embodiment of the present invention.
  • FIG. 3 is a flowchart of a method for a virtual machine to access a storage device in a cloud computing management platform according to an embodiment of the present invention. As shown in FIG. 3, the method includes:
  • Step 301 Determine whether the storage device to be accessed by the virtual machine is in the same physical state as the virtual machine. machine.
  • whether the storage device is in the same physical machine as the virtual machine may be determined according to a globally unique name of the storage device in the cloud computing management platform. Specifically, first obtain the global unique name of the storage device to be accessed by the virtual machine, and then find in the file system of the physical machine where the virtual machine is located whether the name of the storage device contains the global unique name of the storage device to be accessed. . If the global unique name is found in the storage device information registered in the file system, the storage device is a registered device in the file system of the physical machine where the virtual machine is located, that is, the storage device is the same as the virtual device. On the same physical machine.
  • Step 302 If yes, the virtual machine directly mounts the storage device.
  • the virtual machine directly mounts the storage device, thereby implementing a direct connection between the virtual machine and the storage device in the same physical machine, without The network communication of the iSCSI protocol greatly improves the data read and write speed of the virtual machine. If it is determined that the virtual machine and the storage device are not in the same physical machine, the virtual machine is connected to the storage device through the iSCSI protocol.
  • the virtual machine in the physical machine where the virtual machine is located, there are two virtual storage devices corresponding to each storage device, and the two virtual storage devices are respectively created by iSCSI and the file system of the physical machine. At this time, mounting the virtual machine to a storage device actually associates a target link of the virtual machine for connecting to the storage device to one of two virtual storage devices corresponding to the storage device.
  • the virtual machine When it is determined that the virtual machine is in the same physical machine as the storage device to be accessed, the virtual machine needs to be directly connected to the file system of the physical machine where the virtual machine is located, as shown in FIG. 4, and further finds the file system through the file system. Registered storage device and read and write data for the storage device. At this time, the process of mounting the virtual machine to the storage device is actually associated with the target link connecting the virtual machine to the storage device to the virtual storage device created by the storage device. Specifically, the virtual storage device created by the file system corresponding to the storage device may be found according to the global unique name of the storage device to be accessed by the virtual machine; and then the target link used by the virtual machine to connect to the storage device is changed to the file.
  • the system corresponds to the address of the virtual storage device created by the storage device.
  • the target link parameter used to connect the storage device is replaced with the virtual storage created by the file system corresponding to the storage device in a namespace of a virtual machine.
  • the address of the device For example, in the Linux operating system, the above-mentioned namespace setting of the virtual machine can be completed by calling libvirt, and the setting process should follow the libvirt parameter rule. In this way, the direct mount between the virtual machine and the storage device can be realized, without the network communication based on the iSCSI protocol, thereby greatly improving the data read and write speed of the virtual machine.
  • the virtual machine When it is determined that the virtual machine is not in the same physical machine as the storage device to be accessed, the virtual machine needs to be connected to the storage device through the iSCSI protocol. In this case, the target link connecting the virtual machine to the storage device needs to be associated with the iSCSI.
  • the virtual machine may be connected to the virtual storage device created by the iSCSI by default, and when it is determined that the virtual machine and the storage device to be connected are in the same physical machine, the virtual machine and the storage are The device is directly mounted.
  • the present invention does not limit the default mounting manner of the virtual machine and the storage device.
  • a virtual machine instance 001 is located on a physical machine of a computing node in the cloud computing management platform, and the virtual machine instance 001 needs to access a storage device whose volume is named volume-123456, and each of the cloud computing management platforms The volume names of the storage devices are unique. If the storage device named volume-123456 is mounted on the virtual machine instance001, the following steps are required on the compute node where the virtual machine instance001 is located:
  • volume name volume-123456 Search for the corresponding storage device in the /dev directory of the local Linux operating system of the computing node according to the obtained volume name volume-123456.
  • the name of the storage device may be volume-123456 or 123456 in the /dev directory.
  • volume-123456 or 123456 If a storage device named volume-123456 or 123456 is found in the /dev directory The storage device named volume-123456 and the virtual machine instance001 must be on the same physical machine, so modify the disk_info parameter passed to libvirt, and connect the virtual machine instance001 to the iSCSI-target link address by default. Replace the cost of the local file system with the address of the virtual storage device created by the storage device volume-123456 (for example, /dev/xxx/volume name). This achieves direct interconnection between the virtual machine instance001 and the local storage device volume-123456.
  • volume-123456 or 123456 is not found in the /dev directory, the storage device whose volume is named volume-123456 is not on the same physical machine as the virtual machine instance001, so the virtual machine instance001 is retained. The original iSCSI-target link address is not modified. In this way, the virtual machine instance001 will connect to the storage device volume-123456 through the iSCSI protocol in the default manner.
  • the method for accessing a storage device by a virtual machine in a cloud computing management platform is applied to a cloud computing management platform adopting an Openstack architecture.
  • the storage management module of the Openstack architecture is Cinder.
  • the storage device attached to the compute node through the storage management module Cinder is named as a full-length unique long-character code; when the compute node names the iSCSI target connection of the storage device that the virtual machine wants to access, The unique long character code of the entire platform will also be attached; and at each physical machine terminal, the name of the storage device is registered with the local file system of the physical machine through the iSCSI protocol, and the unique long character code of the entire platform is also attached. . Therefore, the unique long character code of the entire platform can be used as a global unique name to determine whether the virtual machine is on the same physical machine as the storage device to be accessed.
  • the global unique name of the storage device (a long-length unique character code of the entire platform) may be obtained according to the target link that the virtual machine uses to connect to the storage device, and then searched in the file system of the local physical machine of the virtual machine.
  • the globally unique name If the global unique name is found in the device information registered in the file system, the storage device is a registered device in the file system of the physical machine where the virtual machine is located, that is, the storage device is in the same virtual machine as the virtual machine. The same physical machine, and then the virtual machine and the local storage device are mounted.
  • the method for accessing a storage device by using a virtual machine may also be applied to other cloud computing management platforms other than Openstack, such as CloudStack, VMware vCloud, Microsoft Azure Pack, OpenNebula, or Eucalyptus, etc. Not limited.
  • the foregoing storage device may be a physical disk, and is also a storage medium of other forms.
  • the specific implementation form of the storage device is not limited in the present invention.
  • An embodiment of the present invention provides an apparatus for accessing a storage device by a virtual machine in a cloud computing management platform, including:
  • a judging module configured to determine whether the storage device to be accessed by the virtual machine is in the same physical machine as the virtual machine
  • the mounting module is configured to enable the virtual machine to directly mount the storage device when the result returned by the determining module is YES.
  • the global unique name of the storage device in the cloud computing management platform may be used to determine whether the storage device and the virtual machine are located in the same physical machine, and the device further includes:
  • An acquisition module configured to obtain a globally unique name of a storage device to be accessed by the virtual machine
  • the judging module is further configured to: in the file system of the physical machine where the virtual machine is located, find out whether the name of the storage device contains the global unique name of the storage device to be accessed.
  • the obtaining module is further configured to:
  • the mounting module is further configured to:
  • the target link used by the virtual machine to connect to the storage device is associated with the virtual storage device created by the file system corresponding to the storage device of the physical machine where the virtual machine is located.
  • the mounting module is further configured to: when the result returned by the determining module is negative, the virtual machine is connected to the storage device through the iSCSI protocol. Specifically, it can be virtual The target link used to connect the storage device is associated with the virtual storage device created by the iSCSI corresponding storage device.

Landscapes

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

Abstract

Embodiments of the present invention provide a method and apparatus for accessing a storage device by a virtual machine in a cloud computing management platform. The method comprises: determining whether a storage device to be accessed by a virtual machine is located a same physical machine where the virtual machine is located; and if yes, directly mounting the virtual machine to the storage device. By means of the method and apparatus for accessing a storage device by a virtual machine in a cloud computing management platform provided in the embodiments of the present invention, the problem of the prior art is resolved in which a virtual machine cannot be directly connected to a local storage device and the connection must be performed by means of an iSCSI protocol.

Description

在云计算管理平台中虚拟机访问存储设备的方法和装置Method and device for virtual machine accessing storage device in cloud computing management platform 技术领域Technical field
本发明涉及云存储技术领域,具体涉及一种在云计算管理平台中虚拟机访问存储设备的方法和装置。The present invention relates to the field of cloud storage technologies, and in particular, to a method and apparatus for accessing a storage device by a virtual machine in a cloud computing management platform.
背景技术Background technique
在云计算系统中,虚拟机要通过访问存储网络中的存储设备来读写数据。以采用openstack框架的云计算系统为例,其中的计算节点都是通过iSCSI协议与存储网络中的存储设备连接。图1所示为现有技术提供的计算节点连接存储设备的一种常规架构。如图1所示,位于物理机A(计算节点)上的每个虚拟机都必须通过一个iSCSI客户端与另一物理机B(存储节点)中的iSCSI服务端进行通信,并进一步通过该iSCSI服务端连接对应的存储设备(物理磁盘)。In a cloud computing system, a virtual machine reads and writes data by accessing a storage device in the storage network. Take the cloud computing system adopting the openstack framework as an example. The computing nodes are connected to the storage devices in the storage network through the iSCSI protocol. FIG. 1 shows a conventional architecture of a computing node connected storage device provided by the prior art. As shown in Figure 1, each virtual machine located on physical machine A (computing node) must communicate with the iSCSI server in another physical machine B (storage node) through an iSCSI client and further pass the iSCSI The server connects to the corresponding storage device (physical disk).
图2所示现有技术提供的计算节点连接存储设备的另一种架构。如图2所示,存储节点和计算节点都位于同一物理机A上,此时如果还是通过iscsi协议去进行读写,就显得很不优化。如果虚拟机能够直接连接对应的本地存储设备,不经过iSCSI协议,则在读写性能上会有显著的提升。由此可见,急需一种能够实现虚拟机直连本地存储设备的方法。Another architecture of the computing node connected storage device provided by the prior art shown in FIG. 2 is shown in FIG. 2. As shown in Figure 2, the storage node and the compute node are all located on the same physical machine A. At this time, if the file is still read and written by the iscsi protocol, it is not optimized. If the virtual machine can directly connect to the corresponding local storage device without going through the iSCSI protocol, there will be a significant improvement in read and write performance. Thus, there is an urgent need for a method for enabling a virtual machine to directly connect to a local storage device.
发明内容Summary of the invention
有鉴于此,本发明实施例提供了一种在云计算管理平台中虚拟机访问存储设备的方法和装置,解决了现有技术中虚拟机无法直接连接本地存储设备,而必须通过iSCSI协议进行连接的问题。In view of this, the embodiment of the present invention provides a method and an apparatus for a virtual machine to access a storage device in a cloud computing management platform, which solves the problem that the virtual machine cannot directly connect to the local storage device in the prior art, but must be connected through the iSCSI protocol. The problem.
本发明一实施例提供的一种在云计算管理平台中虚拟机访问存储设备 的方法包括:A virtual machine accessing storage device in a cloud computing management platform according to an embodiment of the invention The methods include:
判断所述虚拟机要访问的存储设备是否和所述虚拟机处于同一台物理机;以及Determining whether the storage device to be accessed by the virtual machine is in the same physical machine as the virtual machine;
如果是,则所述虚拟机直接挂载所述存储设备。If yes, the virtual machine directly mounts the storage device.
其中,进一步包括:Among them, further includes:
获取所述虚拟机要访问的存储设备的全局唯一名称;其中Obtaining a globally unique name of the storage device to be accessed by the virtual machine;
判断所述虚拟机要访问的存储设备是否和所述虚拟机处于同一台物理机包括:Determining whether the storage device to be accessed by the virtual machine and the virtual machine are in the same physical machine includes:
在所述虚拟机所处的物理机的文件系统中寻找是否有存储设备的名称包含了所述要访问的存储设备的全局唯一名称。Looking in the file system of the physical machine where the virtual machine is located, whether the name of the storage device contains the global unique name of the storage device to be accessed.
其中,获取所述虚拟机要访问的存储设备的全局唯一名称包括:The global unique name of the storage device to be accessed by the virtual machine includes:
根据所述虚拟机用于连接所述存储设备的目标链接获取所述存储设备的全局唯一名称。Obtaining a globally unique name of the storage device according to a target link of the virtual machine for connecting to the storage device.
其中,所述虚拟机直接挂载所述存储设备包括:The directly mounting the storage device by the virtual machine includes:
将所述虚拟机用于连接所述存储设备的目标链接关联到所述虚拟机所处的物理机的文件系统对应所述存储设备创建的虚拟存储设备。A file system associated with the virtual machine for connecting the target link of the storage device to a physical machine where the virtual machine is located corresponds to a virtual storage device created by the storage device.
其中,将所述虚拟机用于连接所述存储设备的目标链接关联到所述虚拟机所处的物理机的文件系统对应所述存储设备创建的虚拟存储设备包括:The virtual storage device created by the storage device that is associated with the target device that is connected to the storage device and is connected to the physical device of the virtual device includes:
根据所述虚拟机要访问的存储设备的全局唯一名称,找到所述文件系统对应所述存储设备创建的虚拟存储设备;Defining, according to the global unique name of the storage device that the virtual machine is to access, the virtual storage device created by the file system corresponding to the storage device;
将所述虚拟机用于连接所述存储设备的目标链接更改为所述文件系统对应所述存储设备创建的虚拟存储设备的地址。The target link used by the virtual machine to connect to the storage device is changed to an address of the virtual storage device created by the file system corresponding to the storage device.
其中,将所述虚拟机用于连接所述存储设备的目标链接更改为所述文件系统对应所述存储设备创建的虚拟存储设备的地址包括:The address of the virtual storage device that is used to connect the storage device to the storage device is changed to:
在所述虚拟机的命名空间中,将用于连接所述存储设备的目标链接参数替换为所述文件系统对应所述存储设备创建的虚拟存储设备的地址。 In the namespace of the virtual machine, replace the target link parameter used to connect the storage device with the address of the virtual storage device created by the file system corresponding to the storage device.
其中,进一步包括:Among them, further includes:
如果否,则所述虚拟机通过iSCSI协议连接到所述存储设备。If not, the virtual machine is connected to the storage device via an iSCSI protocol.
其中,所述虚拟机通过iSCSI协议连接到所述存储设备包括:The connecting the virtual machine to the storage device by using an iSCSI protocol includes:
将所述虚拟机用于连接所述存储设备的目标链接关联到iSCSI对应所述存储设备创建的虚拟存储设备。The target link used by the virtual machine to connect to the storage device is associated with a virtual storage device created by the storage device corresponding to the iSCSI.
其中,所述云计算管理平台为OpenStack、CloudStack、VMware vCloud、Microsoft Azure Pack、OpenNebula或Eucalyptus。The cloud computing management platform is OpenStack, CloudStack, VMware vCloud, Microsoft Azure Pack, OpenNebula or Eucalyptus.
本发明一实施例提供的一种在云计算管理平台中虚拟机访问存储设备的装置,包括:An apparatus for accessing a storage device by a virtual machine in a cloud computing management platform according to an embodiment of the present invention includes:
判断模块,配置为判断所述虚拟机要访问的存储设备是否和所述虚拟机处于同一台物理机;以及a determining module, configured to determine whether the storage device to be accessed by the virtual machine is in the same physical machine as the virtual machine;
挂载模块,配置为当所述判断模块返回的结果为是时,使得所述虚拟机直接挂载所述存储设备。The mounting module is configured to enable the virtual machine to directly mount the storage device when the result returned by the determining module is YES.
其中,进一步包括:Among them, further includes:
获取模块,用于获取所述虚拟机要访问的存储设备的全局唯一名称;其中An obtaining module, configured to obtain a global unique name of a storage device to be accessed by the virtual machine;
所述判断模块进一步配置为:在所述虚拟机所处的物理机的文件系统中寻找是否有存储设备的名称包含了所述要访问的存储设备的全局唯一名称。The determining module is further configured to: in the file system of the physical machine where the virtual machine is located, find out whether the name of the storage device includes a global unique name of the storage device to be accessed.
其中,所述获取模块进一步配置为:The obtaining module is further configured to:
根据所述虚拟机用于连接所述存储设备的目标链接获取所述存储设备的全局唯一名称。Obtaining a globally unique name of the storage device according to a target link of the virtual machine for connecting to the storage device.
其中,所述挂载模块进一步配置为:The mounting module is further configured to:
当所述判断模块返回的结果为是时,将所述虚拟机用于连接所述存储设备的目标链接关联到所述虚拟机所处的物理机的文件系统对应所述存储设备创建的虚拟存储设备。When the result returned by the determining module is yes, the file link that the virtual machine uses to connect the target link of the storage device to the physical machine where the virtual machine is located corresponds to the virtual storage created by the storage device. device.
其中,所述挂载模块进一步配置为: The mounting module is further configured to:
当所述判断模块返回的结果为否时,则使得所述虚拟机通过iSCSI协议连接到所述存储设备。When the result returned by the determining module is no, the virtual machine is connected to the storage device through an iSCSI protocol.
其中,使得所述虚拟机通过iSCSI协议连接到所述存储设备包括:The connecting the virtual machine to the storage device by using an iSCSI protocol includes:
将所述虚拟机用于连接所述存储设备的目标链接关联到iSCSI对应所述存储设备创建的虚拟存储设备。The target link used by the virtual machine to connect to the storage device is associated with a virtual storage device created by the storage device corresponding to the iSCSI.
本发明实施例提供的一种在云计算管理平台中虚拟机访问存储设备的方法和装置,虚拟机在与存储设备连接时先要判断是否与该存储设备处于同一台物理机,如果处于同一台物理机则直接挂在该存储设备。由此实现了处于同一物理机的虚拟机与存储设备的直接连接,而不用经过基于iSCSI协议的网络通信,从而大大提升了虚拟机的数据读写速度。The method and device for accessing a storage device by a virtual machine in a cloud computing management platform are provided by the embodiment of the present invention. When the virtual machine is connected to the storage device, it is first determined whether the storage device is in the same physical machine as the storage device. The physical machine is directly attached to the storage device. Thereby, the direct connection between the virtual machine and the storage device in the same physical machine is realized, without the network communication based on the iSCSI protocol, thereby greatly improving the data read and write speed of the virtual machine.
附图说明DRAWINGS
图1所示为现有技术提供的计算节点连接存储设备的一种常规架构。FIG. 1 shows a conventional architecture of a computing node connected storage device provided by the prior art.
图2所示现有技术提供的计算节点连接存储设备的另一种架构。Another architecture of the computing node connected storage device provided by the prior art shown in FIG. 2 is shown in FIG. 2.
图3所示为本发明一实施例提供的一种在云计算管理平台中虚拟机访问存储设备的方法流程图。FIG. 3 is a flowchart of a method for a virtual machine to access a storage device in a cloud computing management platform according to an embodiment of the present invention.
图4所示为本发明一实施例提供的一种在云计算管理平台中虚拟机访问存储设备的方法的原理示意图。FIG. 4 is a schematic diagram showing the principle of a method for a virtual machine to access a storage device in a cloud computing management platform according to an embodiment 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, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
图3所示为本发明一实施例提供的一种在云计算管理平台中虚拟机访问存储设备的方法流程图。如图3所示,该方法包括:FIG. 3 is a flowchart of a method for a virtual machine to access a storage device in a cloud computing management platform according to an embodiment of the present invention. As shown in FIG. 3, the method includes:
步骤301:判断虚拟机要访问的存储设备是否和虚拟机处于同一台物理 机。Step 301: Determine whether the storage device to be accessed by the virtual machine is in the same physical state as the virtual machine. machine.
在本发明一实施例中,可根据存储设备在该云计算管理平台中的全局唯一名称来判断存储设备是否与虚拟机同处于同一台物理机。具体而言,先要获取虚拟机要访问的存储设备的全局唯一名称,然后在虚拟机所处的物理机的文件系统中寻找是否有存储设备的名称包含了要访问的存储设备的全局唯一名称。如果在该文件系统已注册的存储设备信息中找到了该全局唯一名称,则说明该存储设备为虚拟机所处的物理机的文件系统中已注册的设备,即该存储设备与该虚拟机同处于同一台物理机。In an embodiment of the present invention, whether the storage device is in the same physical machine as the virtual machine may be determined according to a globally unique name of the storage device in the cloud computing management platform. Specifically, first obtain the global unique name of the storage device to be accessed by the virtual machine, and then find in the file system of the physical machine where the virtual machine is located whether the name of the storage device contains the global unique name of the storage device to be accessed. . If the global unique name is found in the storage device information registered in the file system, the storage device is a registered device in the file system of the physical machine where the virtual machine is located, that is, the storage device is the same as the virtual device. On the same physical machine.
步骤302:如果是,则虚拟机直接挂载存储设备。当判断为虚拟机与存储设备同处于同一台物理机时,则虚拟机直接挂载该存储设备,由此实现了处于同一物理机的虚拟机与存储设备之间的直接连接,而不用经过基于iSCSI协议的网络通信,从而大大提升了虚拟机的数据读写速度。如果判断为虚拟机与存储设备并不处于同一台物理机时,虚拟机则通过iSCSI协议连接到存储设备。Step 302: If yes, the virtual machine directly mounts the storage device. When it is determined that the virtual machine and the storage device are in the same physical machine, the virtual machine directly mounts the storage device, thereby implementing a direct connection between the virtual machine and the storage device in the same physical machine, without The network communication of the iSCSI protocol greatly improves the data read and write speed of the virtual machine. If it is determined that the virtual machine and the storage device are not in the same physical machine, the virtual machine is connected to the storage device through the iSCSI protocol.
在本发明一实施例中,在虚拟机所处的物理机中,对应每个存储设备有两个虚拟存储设备,该两个虚拟存储设备分别由iSCSI和该物理机的文件系统创建。此时,将虚拟机挂载到一存储设备其实是将虚拟机用于连接该存储设备的目标链接关联到与该存储设备对应的两个虚拟存储设备中的一个。In an embodiment of the present invention, in the physical machine where the virtual machine is located, there are two virtual storage devices corresponding to each storage device, and the two virtual storage devices are respectively created by iSCSI and the file system of the physical machine. At this time, mounting the virtual machine to a storage device actually associates a target link of the virtual machine for connecting to the storage device to one of two virtual storage devices corresponding to the storage device.
当判断为虚拟机与要访问的存储设备处于同一台物理机时,虚拟机需要直接连接到虚拟机所处的物理机的文件系统,如图4所示,并进一步通过该文件系统找到该已注册的存储设备,并针对该存储设备进行数据读写。此时该虚拟机挂载到存储设备的过程其实是将该虚拟机用于连接该存储设备的目标链接关联到文件系统对应该存储设备创建的虚拟存储设备。具体而言,可先根据虚拟机要访问的存储设备的全局唯一名称,找到文件系统对应该存储设备创建的虚拟存储设备;然后将虚拟机用于连接该存储设备的目标链接更改为所述文件系统对应所述存储设备创建的虚拟存储设备的地址。在一实 施例中,更具体的实现方式可为:在虚拟机的命名空间(namespace)中,将用于连接所述存储设备的目标链接参数替换为所述文件系统对应所述存储设备创建的虚拟存储设备的地址。例如在linux操作系统中,就可通过调用libvirt完成上述对虚拟机的命名空间的设置,设置的过程要遵循libvirt参数规则。这样便可实现虚拟机与该存储设备之间的直接挂载,不用经过基于iSCSI协议的网络通信,从而大大提升了虚拟机的数据读写速度。When it is determined that the virtual machine is in the same physical machine as the storage device to be accessed, the virtual machine needs to be directly connected to the file system of the physical machine where the virtual machine is located, as shown in FIG. 4, and further finds the file system through the file system. Registered storage device and read and write data for the storage device. At this time, the process of mounting the virtual machine to the storage device is actually associated with the target link connecting the virtual machine to the storage device to the virtual storage device created by the storage device. Specifically, the virtual storage device created by the file system corresponding to the storage device may be found according to the global unique name of the storage device to be accessed by the virtual machine; and then the target link used by the virtual machine to connect to the storage device is changed to the file. The system corresponds to the address of the virtual storage device created by the storage device. In a real In a specific implementation manner of the embodiment, the target link parameter used to connect the storage device is replaced with the virtual storage created by the file system corresponding to the storage device in a namespace of a virtual machine. The address of the device. For example, in the Linux operating system, the above-mentioned namespace setting of the virtual machine can be completed by calling libvirt, and the setting process should follow the libvirt parameter rule. In this way, the direct mount between the virtual machine and the storage device can be realized, without the network communication based on the iSCSI protocol, thereby greatly improving the data read and write speed of the virtual machine.
当判断为虚拟机与要访问的存储设备不处于同一台物理机时,虚拟机需要通过iSCSI协议连接到存储设备,此时则需要将该虚拟机用于连接该存储设备的目标链接关联到iSCSI对应该存储设备创建的虚拟存储设备。When it is determined that the virtual machine is not in the same physical machine as the storage device to be accessed, the virtual machine needs to be connected to the storage device through the iSCSI protocol. In this case, the target link connecting the virtual machine to the storage device needs to be associated with the iSCSI. A virtual storage device created for the storage device.
在本发明一实施例中,虚拟机可默认与iSCSI创建的虚拟存储设备相连接,而当判断出虚拟机与要连接的该存储设备同处于同一台物理机时,再将虚拟机与该存储设备直接挂载。然而,本发明对虚拟机与存储设备的默认挂载方式并不做限定。In an embodiment of the present invention, the virtual machine may be connected to the virtual storage device created by the iSCSI by default, and when it is determined that the virtual machine and the storage device to be connected are in the same physical machine, the virtual machine and the storage are The device is directly mounted. However, the present invention does not limit the default mounting manner of the virtual machine and the storage device.
在本发明一实施例中,一虚拟机instance001位于云计算管理平台中一个计算节点的物理机上,该虚拟机instance001需要访问卷命名为volume-123456的存储设备,且在该云计算管理平台中每个存储设备的卷命名都是唯一的。此时若要将该卷命名为volume-123456的存储设备挂载到虚拟机instance001上,在该虚拟机instance001所在的计算节点中需要执行如下步骤:In an embodiment of the present invention, a virtual machine instance 001 is located on a physical machine of a computing node in the cloud computing management platform, and the virtual machine instance 001 needs to access a storage device whose volume is named volume-123456, and each of the cloud computing management platforms The volume names of the storage devices are unique. If the storage device named volume-123456 is mounted on the virtual machine instance001, the following steps are required on the compute node where the virtual machine instance001 is located:
1)从该计算节点的数据库中找到该虚拟机instance001默认挂载信息里的iSCSI链接参数,从该iSCSI链接参数中获取要访问的存储设备的卷命名volume-123456。1) Find the iSCSI link parameter in the default mount information of the virtual machine instance001 from the database of the compute node, and obtain the volume named volume-123456 of the storage device to be accessed from the iSCSI link parameter.
2)根据该获取的卷命名volume-123456在该计算节点本地Linux操作系统的/dev目录下搜寻对应的存储设备,在/dev目录下该存储设备的命名可能为volume-123456或123456。2) Search for the corresponding storage device in the /dev directory of the local Linux operating system of the computing node according to the obtained volume name volume-123456. The name of the storage device may be volume-123456 or 123456 in the /dev directory.
3)如果在/dev目录下找到了命名为volume-123456或123456的存储设 备,则说明卷命名为volume-123456的存储设备与该虚拟机instance001必定是在同一台物理机上,如此则修改传递给libvirt的disk_info参数,将虚拟机instance001原来默认连接iSCSI-target的链接地址,替换成本地文件系统对应该存储设备volume-123456创建的虚拟存储设备的地址(格式例如,/dev/xxx/卷名)。这样便实现了虚拟机instance001与本地存储设备volume-123456的直接互联。3) If a storage device named volume-123456 or 123456 is found in the /dev directory The storage device named volume-123456 and the virtual machine instance001 must be on the same physical machine, so modify the disk_info parameter passed to libvirt, and connect the virtual machine instance001 to the iSCSI-target link address by default. Replace the cost of the local file system with the address of the virtual storage device created by the storage device volume-123456 (for example, /dev/xxx/volume name). This achieves direct interconnection between the virtual machine instance001 and the local storage device volume-123456.
如果在/dev目录下没有找到命名为volume-123456或123456的存储设备,则说明卷命名为volume-123456的存储设备与该虚拟机instance001并没有处于同一台物理机上,如此则保留该虚拟机instance001原有的iSCSI-target的链接地址,不做任何修改。这样该虚拟机instance001将按照默认的方式通过iSCSI协议连接到存储设备volume-123456。If the storage device named volume-123456 or 123456 is not found in the /dev directory, the storage device whose volume is named volume-123456 is not on the same physical machine as the virtual machine instance001, so the virtual machine instance001 is retained. The original iSCSI-target link address is not modified. In this way, the virtual machine instance001 will connect to the storage device volume-123456 through the iSCSI protocol in the default manner.
在本发明一实施例中,该在云计算管理平台中虚拟机访问存储设备的方法应用于一种采用Openstack架构的云计算管理平台。该Openstack架构的存储管理模块为Cinder。由于在Openstack架构中,通过存储管理模块Cinder挂接到计算节点的存储设备都会被命名为一个全平台唯一的长字符码;计算节点在命名虚拟机想要访问的存储设备的iSCSI目标连接时,也会附上该全平台唯一的长字符码;且在每个物理机终端,通过iSCSI协议向该物理机本地的文件系统注册存储设备的名称时也会附上该全平台唯一的长字符码。因此,该全平台唯一的长字符码便可作为全局唯一名称用来判断虚拟机是否与要访问的存储设备位于同一台物理机。In an embodiment of the present invention, the method for accessing a storage device by a virtual machine in a cloud computing management platform is applied to a cloud computing management platform adopting an Openstack architecture. The storage management module of the Openstack architecture is Cinder. In the Openstack architecture, the storage device attached to the compute node through the storage management module Cinder is named as a full-length unique long-character code; when the compute node names the iSCSI target connection of the storage device that the virtual machine wants to access, The unique long character code of the entire platform will also be attached; and at each physical machine terminal, the name of the storage device is registered with the local file system of the physical machine through the iSCSI protocol, and the unique long character code of the entire platform is also attached. . Therefore, the unique long character code of the entire platform can be used as a global unique name to determine whether the virtual machine is on the same physical machine as the storage device to be accessed.
具体而言,可先根据虚拟机用于连接该存储设备的目标链接获取该存储设备的全局唯一名称(全平台唯一的长字符码),然后再到该虚拟机本地物理机的文件系统中搜寻该全局唯一名称。如果在该文件系统已注册的设备信息中搜寻到了该全局唯一名称,则说明该存储设备为虚拟机所处的物理机的文件系统中已注册的设备,即该存储设备与该虚拟机同处于同一台物理机,然后再执行虚拟机与该本地存储设备的挂载过程。 Specifically, the global unique name of the storage device (a long-length unique character code of the entire platform) may be obtained according to the target link that the virtual machine uses to connect to the storage device, and then searched in the file system of the local physical machine of the virtual machine. The globally unique name. If the global unique name is found in the device information registered in the file system, the storage device is a registered device in the file system of the physical machine where the virtual machine is located, that is, the storage device is in the same virtual machine as the virtual machine. The same physical machine, and then the virtual machine and the local storage device are mounted.
应当理解,本发明实施例所提供的虚拟机访问存储设备的方法还可适用于除了Openstack外的其他云计算管理平台,例如CloudStack、VMware vCloud、Microsoft Azure Pack、OpenNebula或Eucalyptus等,本发明对此不做限定。It should be understood that the method for accessing a storage device by using a virtual machine according to an embodiment of the present invention may also be applied to other cloud computing management platforms other than Openstack, such as CloudStack, VMware vCloud, Microsoft Azure Pack, OpenNebula, or Eucalyptus, etc. Not limited.
应当理解,以上所述的存储设备可以是物理磁盘,也还以是其他形式的存储介质,本发明对存储设备的具体实现形式并不做限定。It should be understood that the foregoing storage device may be a physical disk, and is also a storage medium of other forms. The specific implementation form of the storage device is not limited in the present invention.
本发明一实施例提供一种在云计算管理平台中虚拟机访问存储设备的装置,包括:An embodiment of the present invention provides an apparatus for accessing a storage device by a virtual machine in a cloud computing management platform, including:
判断模块,配置为判断虚拟机要访问的存储设备是否和虚拟机处于同一台物理机;以及a judging module configured to determine whether the storage device to be accessed by the virtual machine is in the same physical machine as the virtual machine;
挂载模块,配置为当判断模块返回的结果为是时,使得虚拟机直接挂载存储设备。The mounting module is configured to enable the virtual machine to directly mount the storage device when the result returned by the determining module is YES.
在本发明一实施例中,可利用存储设备在该云计算管理平台中的全局唯一名称来判断存储设备与虚拟机是否位于同一物理机,此时该装置进一步包括:In an embodiment of the present invention, the global unique name of the storage device in the cloud computing management platform may be used to determine whether the storage device and the virtual machine are located in the same physical machine, and the device further includes:
获取模块,用于获取虚拟机要访问的存储设备的全局唯一名称;其中An acquisition module, configured to obtain a globally unique name of a storage device to be accessed by the virtual machine;
判断模块进一步配置为:在虚拟机所处的物理机的文件系统中寻找是否有存储设备的名称包含了所述要访问的存储设备的全局唯一名称。The judging module is further configured to: in the file system of the physical machine where the virtual machine is located, find out whether the name of the storage device contains the global unique name of the storage device to be accessed.
在本发明一实施例中,获取模块进一步配置为:In an embodiment of the invention, the obtaining module is further configured to:
根据虚拟机用于连接存储设备的目标链接获取存储设备的全局唯一名称。Get the globally unique name of the storage device based on the target link that the virtual machine uses to connect to the storage device.
在本发明一实施例中,挂载模块进一步配置为:In an embodiment of the invention, the mounting module is further configured to:
当判断模块返回的结果为是时,将虚拟机用于连接存储设备的目标链接关联到虚拟机所处的物理机的文件系统对应存储设备创建的虚拟存储设备。When the result returned by the determining module is yes, the target link used by the virtual machine to connect to the storage device is associated with the virtual storage device created by the file system corresponding to the storage device of the physical machine where the virtual machine is located.
在本发明一实施例中,挂载模块进一步配置为:当判断模块返回的结果为否时,则使得虚拟机通过iSCSI协议连接到存储设备。具体而言,可将虚 拟机用于连接存储设备的目标链接关联到iSCSI对应存储设备创建的虚拟存储设备。In an embodiment of the invention, the mounting module is further configured to: when the result returned by the determining module is negative, the virtual machine is connected to the storage device through the iSCSI protocol. Specifically, it can be virtual The target link used to connect the storage device is associated with the virtual storage device created by the iSCSI corresponding storage device.
以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换等,均应包含在本发明的保护范围之内。 The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention. Any modifications, equivalent substitutions, etc., which are within the spirit and principles of the present invention, should be included in the scope of the present invention. within.

Claims (15)

  1. 一种在云计算管理平台中虚拟机访问存储设备的方法,其特征在于,包括:A method for a virtual machine to access a storage device in a cloud computing management platform, comprising:
    判断所述虚拟机要访问的存储设备是否和所述虚拟机处于同一台物理机;以及Determining whether the storage device to be accessed by the virtual machine is in the same physical machine as the virtual machine;
    如果是,则所述虚拟机直接挂载所述存储设备。If yes, the virtual machine directly mounts the storage device.
  2. 根据权利要求1所述的方法,其特征在于,进一步包括:The method of claim 1 further comprising:
    获取所述虚拟机要访问的存储设备的全局唯一名称;其中Obtaining a globally unique name of the storage device to be accessed by the virtual machine;
    判断所述虚拟机要访问的存储设备是否和所述虚拟机处于同一台物理机包括:Determining whether the storage device to be accessed by the virtual machine and the virtual machine are in the same physical machine includes:
    在所述虚拟机所处的物理机的文件系统中寻找是否有存储设备的名称包含了所述要访问的存储设备的全局唯一名称。Looking in the file system of the physical machine where the virtual machine is located, whether the name of the storage device contains the global unique name of the storage device to be accessed.
  3. 根据权利要求2所述的方法,其特征在于,获取所述虚拟机要访问的存储设备的全局唯一名称包括:The method according to claim 2, wherein the obtaining a global unique name of the storage device to be accessed by the virtual machine comprises:
    根据所述虚拟机用于连接所述存储设备的目标链接获取所述存储设备的全局唯一名称。Obtaining a globally unique name of the storage device according to a target link of the virtual machine for connecting to the storage device.
  4. 根据权利要求3所述的方法,其特征在于,所述虚拟机直接挂载所述存储设备包括:The method of claim 3, wherein the directly mounting the storage device by the virtual machine comprises:
    将所述虚拟机用于连接所述存储设备的目标链接关联到所述虚拟机所处的物理机的文件系统对应所述存储设备创建的虚拟存储设备。A file system associated with the virtual machine for connecting the target link of the storage device to a physical machine where the virtual machine is located corresponds to a virtual storage device created by the storage device.
  5. 根据权利要求4所述的方法,其特征在于,将所述虚拟机用于连接所述存储设备的目标链接关联到所述虚拟机所处的物理机的文件系统对应所述存储设备创建的虚拟存储设备包括:The method according to claim 4, wherein the file system associated with the virtual machine for connecting the target link of the storage device to the physical machine where the virtual machine is located corresponds to the virtual file created by the storage device Storage devices include:
    根据所述虚拟机要访问的存储设备的全局唯一名称,找到所述文件系统对应所述存储设备创建的虚拟存储设备;Defining, according to the global unique name of the storage device that the virtual machine is to access, the virtual storage device created by the file system corresponding to the storage device;
    将所述虚拟机用于连接所述存储设备的目标链接更改为所述文件系统 对应所述存储设备创建的虚拟存储设备的地址。Changing a target link of the virtual machine for connecting the storage device to the file system Corresponding to the address of the virtual storage device created by the storage device.
  6. 根据权利要求5所述的方法,其特征在于,将所述虚拟机用于连接所述存储设备的目标链接更改为所述文件系统对应所述存储设备创建的虚拟存储设备的地址包括:The method of claim 5, wherein changing the target link of the virtual machine for connecting the storage device to the address of the virtual storage device created by the file system corresponding to the storage device comprises:
    在所述虚拟机的命名空间中,将用于连接所述存储设备的目标链接参数替换为所述文件系统对应所述存储设备创建的虚拟存储设备的地址。In the namespace of the virtual machine, replace the target link parameter used to connect the storage device with the address of the virtual storage device created by the file system corresponding to the storage device.
  7. 根据权利要求1所述的方法,其特征在于,进一步包括:The method of claim 1 further comprising:
    如果否,则所述虚拟机通过iSCSI协议连接到所述存储设备。If not, the virtual machine is connected to the storage device via an iSCSI protocol.
  8. 根据权利要求7所述的方法,其特征在于,所述虚拟机通过iSCSI协议连接到所述存储设备包括:The method according to claim 7, wherein the connecting the virtual machine to the storage device by using an iSCSI protocol comprises:
    将所述虚拟机用于连接所述存储设备的目标链接关联到iSCSI对应所述存储设备创建的虚拟存储设备。The target link used by the virtual machine to connect to the storage device is associated with a virtual storage device created by the storage device corresponding to the iSCSI.
  9. 根据权利要求1所述的方法,其特征在于,所述云计算管理平台为OpenStack、CloudStack、VMware vCloud、Microsoft Azure Pack、OpenNebula或Eucalyptus。The method according to claim 1, wherein the cloud computing management platform is OpenStack, CloudStack, VMware vCloud, Microsoft Azure Pack, OpenNebula or Eucalyptus.
  10. 一种在云计算管理平台中虚拟机访问存储设备的装置,其特征在于,包括:An apparatus for accessing a storage device by a virtual machine in a cloud computing management platform, comprising:
    判断模块,配置为判断所述虚拟机要访问的存储设备是否和所述虚拟机处于同一台物理机;以及a determining module, configured to determine whether the storage device to be accessed by the virtual machine is in the same physical machine as the virtual machine;
    挂载模块,配置为当所述判断模块返回的结果为是时,使得所述虚拟机直接挂载所述存储设备。The mounting module is configured to enable the virtual machine to directly mount the storage device when the result returned by the determining module is YES.
  11. 根据权利要求10所述的装置,其特征在于,进一步包括:The device according to claim 10, further comprising:
    获取模块,用于获取所述虚拟机要访问的存储设备的全局唯一名称;其中An obtaining module, configured to obtain a global unique name of a storage device to be accessed by the virtual machine;
    所述判断模块进一步配置为:在所述虚拟机所处的物理机的文件系统中寻找是否有存储设备的名称包含了所述要访问的存储设备的全局唯一名称。 The determining module is further configured to: in the file system of the physical machine where the virtual machine is located, find out whether the name of the storage device includes a global unique name of the storage device to be accessed.
  12. 根据权利要求11所述的装置,其特征在于,所述获取模块进一步配置为:The apparatus according to claim 11, wherein the obtaining module is further configured to:
    根据所述虚拟机用于连接所述存储设备的目标链接获取所述存储设备的全局唯一名称。Obtaining a globally unique name of the storage device according to a target link of the virtual machine for connecting to the storage device.
  13. 根据权利要求10所述的装置,其特征在于,所述挂载模块进一步配置为:The device according to claim 10, wherein the mounting module is further configured to:
    当所述判断模块返回的结果为是时,将所述虚拟机用于连接所述存储设备的目标链接关联到所述虚拟机所处的物理机的文件系统对应所述存储设备创建的虚拟存储设备。When the result returned by the determining module is yes, the file link that the virtual machine uses to connect the target link of the storage device to the physical machine where the virtual machine is located corresponds to the virtual storage created by the storage device. device.
  14. 根据权利要求13所述的装置,其特征在于,所述挂载模块进一步配置为:The device according to claim 13, wherein the mounting module is further configured to:
    当所述判断模块返回的结果为否时,则使得所述虚拟机通过iSCSI协议连接到所述存储设备。When the result returned by the determining module is no, the virtual machine is connected to the storage device through an iSCSI protocol.
  15. 根据权利要求14所述的装置,其特征在于,使得所述虚拟机通过iSCSI协议连接到所述存储设备包括:The device according to claim 14, wherein the connecting the virtual machine to the storage device through an iSCSI protocol comprises:
    将所述虚拟机用于连接所述存储设备的目标链接关联到iSCSI对应所述存储设备创建的虚拟存储设备。 The target link used by the virtual machine to connect to the storage device is associated with a virtual storage device created by the storage device corresponding to the iSCSI.
PCT/CN2017/075301 2011-10-11 2017-03-01 Method and apparatus for accessing storage device by virtual machine in cloud computing management platform WO2017148382A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
US16/121,080 US10782989B2 (en) 2016-02-03 2018-09-04 Method and device for virtual machine to access storage device in cloud computing management platform
US16/378,076 US20190235777A1 (en) 2011-10-11 2019-04-08 Redundant storage system

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610120933.3A CN105808165B (en) 2016-03-03 2016-03-03 Method and device for accessing storage device by virtual machine in cloud computing management platform
CN201610120933.3 2016-03-03

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
US16/054,536 Continuation-In-Part US20180341419A1 (en) 2011-10-11 2018-08-03 Storage System

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US16/121,080 Continuation-In-Part US10782989B2 (en) 2011-10-11 2018-09-04 Method and device for virtual machine to access storage device in cloud computing management platform

Publications (1)

Publication Number Publication Date
WO2017148382A1 true WO2017148382A1 (en) 2017-09-08

Family

ID=56466616

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/075301 WO2017148382A1 (en) 2011-10-11 2017-03-01 Method and apparatus for accessing storage device by virtual machine in cloud computing management platform

Country Status (2)

Country Link
CN (1) CN105808165B (en)
WO (1) WO2017148382A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113504872A (en) * 2021-05-14 2021-10-15 济南浪潮数据技术有限公司 Method, system, equipment and medium for mounting virtual disk on cloud physical machine
CN113806086A (en) * 2021-09-10 2021-12-17 济南浪潮数据技术有限公司 Openstack storage method, device and medium using iSCSI multipath balance docking

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105808165B (en) * 2016-03-03 2019-03-15 天津书生云科技有限公司 Method and device for accessing storage device by virtual machine in cloud computing management platform
CN106506636A (en) * 2016-11-04 2017-03-15 武汉噢易云计算股份有限公司 A kind of cloud platform cluster method and system based on OpenStack
CN106648838B (en) * 2016-12-31 2021-01-01 云宏信息科技股份有限公司 Resource pool management configuration method and device
CN111399973B (en) * 2019-01-03 2023-07-28 阿里巴巴集团控股有限公司 FPGA remote mounting structure, network management and control method and device and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102307206A (en) * 2010-09-25 2012-01-04 广东电子工业研究院有限公司 Caching system and caching method for rapidly accessing virtual machine images based on cloud storage
US20140297782A1 (en) * 2009-02-04 2014-10-02 Citrix Systems, Inc. Methods and systems for dynamically switching between communications protocols
CN105808165A (en) * 2016-03-03 2016-07-27 天津书生云科技有限公司 Method and device for accessing storage device by virtual machine in cloud computing management platform

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140297782A1 (en) * 2009-02-04 2014-10-02 Citrix Systems, Inc. Methods and systems for dynamically switching between communications protocols
CN102307206A (en) * 2010-09-25 2012-01-04 广东电子工业研究院有限公司 Caching system and caching method for rapidly accessing virtual machine images based on cloud storage
CN105808165A (en) * 2016-03-03 2016-07-27 天津书生云科技有限公司 Method and device for accessing storage device by virtual machine in cloud computing management platform

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113504872A (en) * 2021-05-14 2021-10-15 济南浪潮数据技术有限公司 Method, system, equipment and medium for mounting virtual disk on cloud physical machine
CN113504872B (en) * 2021-05-14 2023-11-03 济南浪潮数据技术有限公司 Method, system, equipment and medium for mounting virtual disk on cloud physical machine
CN113806086A (en) * 2021-09-10 2021-12-17 济南浪潮数据技术有限公司 Openstack storage method, device and medium using iSCSI multipath balance docking

Also Published As

Publication number Publication date
CN105808165A (en) 2016-07-27
CN105808165B (en) 2019-03-15

Similar Documents

Publication Publication Date Title
WO2017148382A1 (en) Method and apparatus for accessing storage device by virtual machine in cloud computing management platform
US20190141022A1 (en) On-premise and off-premise communication
US20130019089A1 (en) Applying settings in a cloud computing environment based on geographical region
US10834173B2 (en) On-premises and off-premises communication
WO2023024629A1 (en) Service access across kubernetes clusters
CN108427677B (en) Object access method and device and electronic equipment
US10348516B2 (en) On-premise and off-premise communication
US11336588B2 (en) Metadata driven static determination of controller availability
CN108287894B (en) Data processing method, device, computing equipment and storage medium
US20200344112A1 (en) On-premise and off-premise debugging
US11785082B2 (en) Domain replication across regions
US20220138220A1 (en) Dedicated replication channels for replicating records between regions
US11093477B1 (en) Multiple source database system consolidation
US11385905B2 (en) Managing boot device orders for computing devices
US11200200B2 (en) Merging directory information from a user directory to a common directory
US20230055129A1 (en) Techniques for utilizing patterns and logical entities
US20230098484A1 (en) Techniques for backwards compatibility in an identity management cloud service
US10169029B2 (en) Pattern based migration of integration applications
US8650548B2 (en) Method to derive software use and software data object use characteristics by analyzing attributes of related files
CN109739615B (en) Mapping method and device of virtual hard disk and cloud computing platform
US11695765B2 (en) Techniques for selective container access to cloud services based on hosting node
US20240146543A1 (en) Obtaining a domain certificate utilizing a proxy server
US20230126922A1 (en) Host container mounting
US20240214380A1 (en) Techniques for managing requests in a multi-tenant environment
CN116506282A (en) Method and system for realizing OPENSTACK NAT session log

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

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

Ref document number: 17759233

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 17759233

Country of ref document: EP

Kind code of ref document: A1