CN109739615A - A kind of mapping method of virtual hard disk, equipment and cloud computing platform - Google Patents

A kind of mapping method of virtual hard disk, equipment and cloud computing platform Download PDF

Info

Publication number
CN109739615A
CN109739615A CN201811471746.5A CN201811471746A CN109739615A CN 109739615 A CN109739615 A CN 109739615A CN 201811471746 A CN201811471746 A CN 201811471746A CN 109739615 A CN109739615 A CN 109739615A
Authority
CN
China
Prior art keywords
rdma
block device
target
dms
mapping
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811471746.5A
Other languages
Chinese (zh)
Other versions
CN109739615B (en
Inventor
柯克
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201811471746.5A priority Critical patent/CN109739615B/en
Publication of CN109739615A publication Critical patent/CN109739615A/en
Application granted granted Critical
Publication of CN109739615B publication Critical patent/CN109739615B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the invention discloses the mapping method of virtual hard disk, this method is applied to virtual machine VM, this method comprises: obtaining the first identifier of the remote direct data access arrangement management system RDMA DMS of cloud computing platform publication;RDMA DMS is searched based on first identifier, and obtains the target RDMA block device that RDMA DMS is directed to VM distribution;Wherein, RDMA DMS includes target RDMA block device;The mapping between VM and target RDMA block device is established, and data communication is carried out based on mapping and target RDMA block device.The embodiment of the present invention also discloses a kind of equipment and cloud computing platform simultaneously.

Description

A kind of mapping method of virtual hard disk, equipment and cloud computing platform
Technical field
The present invention relates to, but not limited to field of computer technology more particularly to a kind of mapping methods of virtual hard disk, equipment And cloud computing platform.
Background technique
Currently, be widely used cloud computing base platform (Infrastructure as a Service Platform, IaaS Platform) Lai Guanli public cloud or private clound (public cloud or private clound can be referred to as Cloud), in Cloud Face has numerous virtual machines (Virtual Machine, VM).When IaaS Platform starts VM, generally by VM institute In the void that the virtual machine simulator Hypervisor of cloud platform calculate node is empty machine the resource impact in IaaS Platform Quasi- hard disk (Virtual Hard Disk, VHD), to provide a user " simulation " hard disk that can be seen for virtual machine.However, Since the user of virtual machine does not operate the permission of the resource of cloud platform calculate node, directly cloud platform can not be calculated The resource impact of node at VM VHD.
Summary of the invention
In order to solve the above technical problems, an embodiment of the present invention is intended to provide a kind of mapping method of virtual hard disk, equipment and Cloud computing platform solves in the related technology since the user of virtual machine does not operate the power of the resource of cloud platform calculate node Limit, thus can not directly by the resource impact of cloud platform calculate node at VM VHD the problem of, realize VM voluntarily carry target RDMA block device, and calculate node physical machine kernel resources are not take up, memory copying is reduced, while target RDMA can be fully utilized The physical characteristic of block device.
The technical scheme of the present invention is realized as follows:
A kind of mapping method of virtual hard disk is applied to virtual machine VM, which comprises
Obtain the first identifier of the remote direct data access arrangement management system RDMA DMS of cloud computing platform publication;
The RDMA DMS is searched based on the first identifier, and obtains the mesh that the RDMA DMS is directed to VM distribution Mark RDMA block device;Wherein, the RDMA DMS includes the target RDMA block device;
The mapping between the VM and the target RDMA block device is established, and based on the mapping and the target RDMA Block device carries out data communication.
Optionally, before the acquisition RDMA DMS is for the target RDMA block device of VM distribution, the side Method further include:
Obtain the block device identification list for the RDMA block device that the RDMA DMS is sent;Wherein, the block device mark List includes the mark of at least one RDMA block device;
Correspondingly, the target RDMA block device for obtaining the RDMA DMS and being directed to VM distribution, comprising:
Selection target identifies from the block device identification list, and sends the request message for carrying the target identification To the RDMA DMS;
It receives the RDMA DMS and is directed to the response message that the request message is sent;
If the response message indicates that the target identification is proved to be successful, determine that the corresponding RDMA block device of target identification is The target RDMA block device.
Optionally, the method also includes:
If the response message indicates the target identification authentication failed, determines and do not carried out with the target RDMA block device Data communication.
It is optionally, described that data communication is carried out with the target RDMA block device based on the mapping, comprising:
Based on rdma protocol and the mapping, data communication is carried out with the target RDMA block device.
A kind of mapping method of virtual hard disk is applied to remote direct data access arrangement management system RDMA DMS, institute Stating RDMA DMS includes at least one RDMA block device, which comprises
The first identifier of the RDMA DMS is sent to VM by cloud computing platform;
Target RDMA block device is distributed for the VM;Wherein, at least one described RDMA block device includes the target RDMA block device;
It is mapping through from the mapping read in the VM between the target RDMA block device and the VM, and based on described The target RDMA block device and the VM carry out data communication.
It is optionally, described to distribute target RDMA block device for the VM, comprising:
The block device identification list of RDMA block device is generated, and sends the block device identification list to the VM;Wherein, The block device identification list includes the mark of at least one RDMA block device;
Receive the request message for carrying target identification that the VM is sent;
Response message is generated based on the request message, and sends the response message to the VM;Wherein, the response Message be used to indicate the RDMA DMS target identification is proved to be successful or the response message be used to indicate it is described RDMA DMS is to the target identification authentication failed.
Optionally, described to be mapping through the target RDMA block device and VM progress data communication, packet based on described It includes:
Data communication is carried out based on rdma protocol and the target RDMA block device and the VM of being mapping through.
A kind of VM, which is characterized in that the VM includes:
First memory, for storing executable instruction;
First processor is realized above-mentioned applied to void for executing the executable instruction stored in the first memory The step of mapping method of the virtual hard disk of quasi- machine VM.
A kind of RDMA DMS, which is characterized in that the RDMA DMS includes:
Second memory, for storing executable instruction;
Second processor realizes above-mentioned be applied to for executing the executable instruction stored in the second memory The step of mapping method of the virtual hard disk of RDMA DMS.
A kind of cloud computing platform, the platform include:
RDMA DMS, the RDMA DMS include at least one RDMA block device, for sending institute by cloud computing platform The first identifier of RDMA DMS is stated to VM;Target RDMA block device is distributed for the VM;The target is read from the VM Mapping between RDMA block device and the VM, and the target RDMA block device and VM progress are mapping through based on described Data communication;Wherein, at least one described RDMA block device includes the target RDMA block device;
VM, for obtaining the first identifier of the RDMA DMS;The RDMA DMS is searched based on the first identifier, and Obtain the target RDMA block device that the RDMA DMS is directed to VM distribution;Establish the VM and the target RDMA block device Between mapping, and based on it is described mapping with the target RDMA block device carry out data communication.
Mapping method, equipment and the cloud computing platform of virtual hard disk provided in an embodiment of the present invention obtain cloud computing platform The first identifier of the remote direct data access arrangement management system RDMA DMS of publication;RDMA is searched based on first identifier DMS, and obtain the target RDMA block device that RDMA DMS is directed to VM distribution;Wherein, RDMA DMS includes target RDMA block device; The mapping between VM and target RDMA block device is established, and data communication is carried out based on mapping and target RDMA block device, in this way, VM can use first identifier and find RDMA DMS, and obtain the target RDMA block device that RDMA DMS is VM distribution, into one The physical hard disk of target RDMA block device is mapped as the VHD of VM by step ground, VM voluntarily carry target RDMA block device;It solves In the related technology since the user of virtual machine does not operate the permission of the resource of cloud platform calculate node, can not directly by The resource impact of cloud platform calculate node at VM VHD the problem of;It realizes VM voluntarily carry target RDMA block device, and is not take up Calculate node physical machine kernel resources reduce memory copying, while the physical characteristic of target RDMA block device can be fully utilized.
Detailed description of the invention
Fig. 1 is the configuration diagram of cloud computing platform in the related technology;
Fig. 2 is a kind of flow diagram of the mapping method for virtual hard disk that the embodiment of the present invention provides;
Fig. 3 is the flow diagram of the mapping method for another virtual hard disk that the embodiment of the present invention provides;
Fig. 4 is the flow diagram of the mapping method for another virtual hard disk that the embodiment of the present invention provides;
Fig. 5 is a kind of flow diagram of the mapping method for virtual hard disk that another embodiment of the present invention provides;
Fig. 6 is a kind of structural schematic diagram for virtual machine that the embodiment of the present invention provides;
Fig. 7 is a kind of structural representation for remote direct data access arrangement management system that the embodiment of the present invention provides Figure;
Fig. 8 is a kind of configuration diagram for cloud computing platform that the embodiment of the present invention provides.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description.
In the related technology, providing VHD at present for VM can be realized by the following two kinds mode: the first, cloud platform meter The local block device (Local Block Device) or local data file (Local File) of operator node physical machine, pass through VM is mapped to the virtual hard disk (VHD) of VHD;Second, by network protocol, such as Network File System (Network File System, NFS) agreement, small computer system interface (Internet Small Computer System Interface, ISCSI) agreement, librbd agreement etc. are mapped to network control techology the VHD of VM.
Problem and shortage existing for above-mentioned first method is: the typically no cloud platform of the user owner of VM calculates section The local block device of point physical machine or the operating right of data file, cannot be directly the calculate node physics of cloud computing platform The local block device or data file of machine are mapped to the VHD of VM.VM cannot obtain the local block device of calculate node physical machine Physical characteristic, be also just unable to give full play the ability of the physical characteristic of this plot hard disk;Moreover, calculate node occupies where VM Resource is more, such as kernel resources, memory copying etc..
Problem and shortage existing for above-mentioned second method is: the typically no modification of VM user or increase cloud computing platform Calculate node physical machine network control techology agreement permission.The agreements such as NFS/iSCSI cannot give full play to remote hardware block The characteristic of equipment;Moreover, calculate node occupancy resource is more where VM, such as kernel computing resource, memory copying etc..
Shown in Figure 1, existing cloud computing platform is to the VM method for providing VHD: method one, calculate node object where VM Local file (Local File) or local block device (Local Block) are mapped to VM's by the Hypervisor of reason machine VHD;Method two, Hypervisor are mapped to telecommunication network block device the VHD of VM.
Concrete scheme step:
User with calculate node physical machine administration authority is that calculate node physical machine adds local file or this plot Equipment;User with calculate node physical machine administration authority modifies the definition file of VM, is set as the VHD of VM.
It can be seen from the above, in the related technology this atural object in the physical server where empty machine, that is, calculate node physical machine Hard disk or local file are managed, the administration authority of cloud computing platform is needed when being added to inside empty machine as a virtual hard disk.
The embodiment of the present invention provides a kind of mapping method of virtual hard disk, and this method is applied to VM, shown in Figure 2, should Method includes:
Step 101, obtain cloud computing platform publication remote direct data access arrangement management system RDMA DMS the One mark.
In the embodiment of the present invention, first identifier is used for unique identification RDMA DMS.Illustratively, first identifier can be The IP address of RDMA DMS.
In practical applications, the first identifier of the available RDMA DMS to cloud computing platform publication of VM.
Step 102 searches RDMA DMS based on first identifier, and obtains the target RDMA block that RDMA DMS is directed to VM distribution Equipment.
Wherein, RDMA DMS includes target RDMA block device.
In the embodiment of the present invention, target RDMA block device refers to the target device of the wanted carry of VM.VM gets RDMA After the first identifier of DMS, the RDMA DMS of its mark can be found based on first identifier, and then is got RDMA DMS and be The target RDMA block device of VM distribution.
Step 103 establishes mapping between VM and target RDMA block device, and based on mapping and target RDMA block device into Row data communication.
In the embodiment of the present invention, establishes mapping and refer to that target RDMA block device is mapped to the VHD of oneself by VM;Namely It says, in the embodiment of the present invention, physics block device is directly mapped the VHD for being known as oneself by VM, is passed through in the related technology in this way Hypervisor compares the VHD that physical equipment is mapped as oneself, the mapping side of virtual hard disk provided by the embodiment of the present invention Method can obtain the physical characteristic of local block device, to give full play to the physical characteristic of local block device;Moreover, the present invention is real The mapping method for applying virtual hard disk provided by example is not directed to calculate node physical machine, then, calculate node object would not be occupied The resource of reason machine such as kernel computing resource, memory copying etc. do not need the permission of the resource of manipulation calculate node physical machine more, real Show VM voluntarily carry target RDMA block device.
The mapping method of virtual hard disk provided by the embodiment of the present invention obtains the long-range direct number of cloud computing platform publication According to the first identifier of access arrangement management system RDMA DMS;RDMA DMS is searched based on first identifier, and obtains RDMA DMS For the target RDMA block device of VM distribution;Wherein, RDMA DMS includes target RDMA block device;Establish VM and target RDMA block Mapping between equipment, and data communication is carried out based on mapping and target RDMA block device;In this way, VM can use first identifier RDMA DMS is found, and obtains the target RDMA block device that RDMA DMS is VM distribution, further, VM voluntarily carry target The physical hard disk of target RDMA block device is mapped as the VHD of VM by RDMA block device;It solves in the related technology due to virtual machine User do not operate cloud platform calculate node resource permission, therefore can not be directly by the resource of cloud platform calculate node The problem of being mapped to the VHD of VM;It realizes VM voluntarily carry target RDMA block device, and is not take up calculate node physical machine kernel money Memory copying is reduced, while the physical characteristic of target RDMA block device can be fully utilized in source.
The embodiment of the present invention provides a kind of mapping method of virtual hard disk, and this method is applied to VM, shown in Figure 3, should Method includes:
Step 201, obtain cloud computing platform publication remote direct data access arrangement management system RDMA DMS the One mark.
Step 202 searches RDMA DMS based on first identifier.
Step 203, the block device identification list for obtaining the RDMA block device that RDMA DMS is sent.
Wherein, block device identification list includes the mark of at least one RDMA block device.
In the embodiment of the present invention, the block device identification list of RDMA block device includes the RDMA block device that VM can authorize access Device identification.
Step 204, selection target identifies from block device identification list, and sends the request message for carrying target identification To RDMA DMS.
In the embodiment of the present invention, request message is for requesting block device corresponding with target identification to establish mapping.VM is obtained After the block device identification list of RDMA block device, selection target it can be identified from block device identification list, and send carrying There is the request message of target identification to RDMA DMS.
Step 205 receives the response message that RDMA DMS is directed to request message transmission.
In the embodiment of the present invention, after VM has sent the request message for carrying target identification to RDMA DMS, receive The response message of RDMA DMS feedback.Response message is whether the VM of RDMA DMS feedback can RDMA corresponding with target identification Block device establishes the message of mapping.
If step 206, response message instruction target identification are proved to be successful, determine that the corresponding RDMA block device of target identification is Target RDMA block device.
In the embodiment of the present invention, VM analyzes response message, however, it is determined that response message instruction target identification is proved to be successful, and is determined The corresponding RDMA block device of target identification is target RDMA block device.
Step 207 establishes mapping between VM and target RDMA block device, and based on mapping and target RDMA block device into Row data communication.
In the embodiment of the present invention, it is proved to be successful in the response message instruction target identification that VM receives RDMA DMS transmission Afterwards, VM establishes the mapping between target RDMA block device corresponding with target identification automatically, and based on mapping and target RDMA block Equipment carries out data communication.
In the embodiment of the present invention, data communication is carried out based on mapping and target RDMA block device in step 207, can wrap It includes:
Based on rdma protocol and mapping, data communication is carried out with target RDMA block device.
In the embodiment of the present invention, the above-mentioned mapping that VM can be established based on rdma protocol and VM, with target RDMA block device Carry out data communication.In this way, VM not only accessible long-range physical equipment, including mechanical hard disk, SSD, NVME, tape, also The long-range physical equipment that can be accessed based on rdma protocol.
In another embodiment of the present invention, after step 205 receives the response message that RDMA DMS is sent for request message, If can also include the following steps:, response message indicates target identification authentication failed, determines and does not carry out with target RDMA block device Data communication.
Here, target identification authentication failed is indicated in the response message that VM receives RDMA DMS transmission, show that VM is sent Request message in the target identification that carries be not present in above-mentioned block device identification list, that is to say, that VM wants and RDMA DMS unauthorized, which is given, establishes mapping between its RDMA block device, at this point, RDMA DMS then rejects the request, and feed back instruction mesh Mark the response message of identity verification failure, inform VM its can not corresponding with target identification RDMA block device establish mapping, VM Then incompetent target RDMA block device corresponding with target identification carries out data communication.
It should be noted that in the present embodiment with the explanation of same steps in other embodiments and identical content, Ke Yican According to the description in other embodiments, details are not described herein again.
The embodiment of the present invention provides a kind of mapping method of virtual hard disk, and this method is applied to RDMA DMS, RDMA DMS It is shown in Figure 4 including at least one RDMA block device, this method comprises:
Step 301 sends the first identifier of RDMA DMS to VM by cloud computing platform.
In the embodiment of the present invention, RDMA DMS sends the first identifier of RDMA DMS to VM, to refer to by cloud computing platform Show that VM is based on first identifier and searches RDMA DMS.
In practical application, the RDMA DMS of cloud computing platform can manage at least one above-mentioned RDMA block device, and management refers to Be the device name such as PCI title for recording at least one RDMA block device, the IP address of equipment of at least one RDMA block device, Authorized user ID, authorized user's password or client public key.Further, authorized user can be authorized by authorized user ID User password or client public key log in RDMA DMS, and then addition/deletion/modification RDMA block device IP address and title are come Manage the RDMA block device in RDMA DMS.
Step 302 distributes target RDMA block device for VM.
Wherein, at least one RDMA block device includes target RDMA block device.
In the embodiment of the present invention, RDMA DMS can distribute one or more target RDMA block devices for VM, so that VM Realization establishes VM to the mapping between target RDMA block device automatically.
Step 303, from the mapping read in VM between target RDMA block device and VM, and based on being mapping through target RDMA Block device and VM carry out data communication.
In the embodiment of the present invention, after the mapping that VM establishes between target RDMA block device and VM, RDMA DMS Can from the mapping read in VM between target RDMA block device and VM, and based on be mapping through target RDMA block device and VM into Row data communication.
The mapping method of virtual hard disk provided by the embodiment of the present invention sends the RDMA DMS by cloud computing platform First identifier to VM;Target RDMA block device is distributed for the VM;Wherein, at least one described RDMA block device includes institute State target RDMA block device;From the mapping read between the target RDMA block device and the VM in the VM, and it is based on institute It states and is mapping through the target RDMA block device and VM progress data communication;In this way, VM is getting cloud computing platform hair After the first identifier of cloth, RDMA DMS can be found based on first identifier, and obtain the target that RDMA DMS is VM distribution RDMA block device, further, the physical hard disk of target RDMA block device is mapped as by VM voluntarily carry target RDMA block device The VHD of VM;It solves in the related technology since the user of virtual machine does not operate the permission of the resource of cloud platform calculate node, Therefore can not directly by the resource impact of cloud platform calculate node at VM VHD the problem of;Realize VM voluntarily carry target RDMA Block device, and calculate node physical machine kernel resources are not take up, memory copying is reduced, while target RDMA block can be fully utilized and set Standby physical characteristic.
The embodiment of the present invention provides a kind of mapping method of virtual hard disk, and this method is applied to RDMA DMS, RDMA DMS It is shown in Figure 5 including at least one RDMA block device, this method comprises:
Step 401 sends the first identifier of RDMA DMS to VM by cloud computing platform.
Step 402, the block device identification list for generating RDMA block device, and block device identification list is sent to VM.
Wherein, block device identification list includes the mark of at least one RDMA block device.
In the embodiment of the present invention, the block device identification list of RDMA block device includes the RDMA block device that VM can authorize access Device identification, illustratively, device identification can be IP address, which can be IP v4/IP v6 format;Certainly, The block device identification list of RDMA block device can also include other information, and the peripheral components of physical machine are mutual as where RDMA equipment Connection mark (Peripheral Component Interconnect identification, PCIID) and/or physical machine PCI name information is not done the content of the block device identification list of RDMA block device in the embodiment of the present invention specifically defined.
Step 403 receives the request message for carrying target identification that VM is sent.
In the embodiment of the present invention, RDMA DMS sends the block device mark for the RDMA block device that it can authorize access to VM After list, the request message for carrying target identification of VM transmission can receive.It should be noted that the carrying that VM is sent The request message for having target identification may be carry request of the VM for the RDMA block device in block device identification list, it is also possible to It is the carry request that RDMA block device in block device identification list is not included in for other.
Step 404 generates response message based on request message, and sends response message to VM.
In the embodiment of the present invention, after RDMA DMS receives request, response message is generated based on request message, and send Response message is to VM, to indicate that target identification is proved to be successful or failure.
That is, in the embodiment of the present invention, response message can serve to indicate that RDMA DMS to target identification verifying at Function, or can serve to indicate that RDMA DMS to target identification authentication failed.
Step 405, from the mapping read in VM between target RDMA block device and VM, and based on being mapping through target RDMA Block device and VM carry out data communication.
In the embodiment of the present invention, above-mentioned steps 405 are based on being mapping through target RDMA block device and VM carries out data communication, Include:
Based on rdma protocol and it is mapping through target RDMA block device and VM progress data communication.
In the embodiment of the present invention, RDMA DMS can be mapping through target RDMA block based on rdma protocol and the above-mentioned of foundation Equipment and VM carry out data communication.So, it is ensured that in long-range physical equipment, that is, RDMA DMS that VM is accessed based on rdma protocol RDMA block device.
It should be noted that in the present embodiment with the explanation of same steps in other embodiments and identical content, Ke Yican According to the description in other embodiments, details are not described herein again.
Based on previous embodiment, the embodiment of the present invention provides a kind of VM, shown in Figure 6, which includes:
First memory 61, for storing executable instruction.
First processor 62, for executing the executable instruction stored in first memory 61, to perform the steps of
Obtain the first identifier of the remote direct data access arrangement management system RDMA DMS of cloud computing platform publication;
The RDMA DMS is searched based on the first identifier, and obtains the mesh that the RDMA DMS is directed to VM distribution Mark RDMA block device;Wherein, the RDMA DMS includes the target RDMA block device;
The mapping between the VM and the target RDMA block device is established, and based on the mapping and the target RDMA Block device carries out data communication.
In other embodiments of the invention, first processor 62, for executing holding of storing in first memory 61 Row instruction, also to perform the steps of
Obtain the block device identification list for the RDMA block device that the RDMA DMS is sent;Wherein, the block device mark List includes the mark of at least one RDMA block device;
Correspondingly, the target RDMA block device for obtaining the RDMA DMS and being directed to VM distribution, comprising:
Selection target identifies from the block device identification list, and sends the request message for carrying the target identification To the RDMA DMS;
It receives the RDMA DMS and is directed to the response message that the request message is sent;
If the response message indicates that the target identification is proved to be successful, the corresponding RDM A block device of target identification is determined For the target RDMA block device.
In other embodiments of the invention, first processor 62, for executing holding of storing in first memory 61 Row instruction, also to perform the steps of
If the response message indicates the target identification authentication failed, determines and do not carried out with the target RDMA block device Data communication.
In other embodiments of the invention, first processor 62 are reflected for executing in first memory 61 based on described When penetrating with target RDMA block device progress data communication, it can be realized by following steps:
Based on rdma protocol and the mapping, data communication is carried out with the target RDMA block device.
It should be noted that in the present embodiment step performed by first processor 62 specific implementation process, Ke Yican According to the realization process in the mapping method of the virtual hard disk of the corresponding embodiment offer in Fig. 2~3, details are not described herein again.
VM provided by the embodiment of the present invention obtains the remote direct data access arrangement management system of cloud computing platform publication The first identifier of system RDMA DMS;RDMA DMS is searched based on first identifier, and obtains the target that RDMA DMS is directed to VM distribution RDMA block device;Wherein, RDMA DMS includes target RDMA block device;The mapping between VM and target RDMA block device is established, And data communication is carried out based on mapping and target RDMA block device;In this way, VM, which can use first identifier, finds RDMA DMS, And obtain the target RDMA block device that RDMA DMS is VM distribution, further, VM voluntarily carry target RDMA block device, by mesh The physical hard disk of mark RDMA block device is mapped as the VHD of VM;It solves in the related technology since the user of virtual machine does not grasp Make the permission of the resource of cloud platform calculate node, therefore can not be directly by the resource impact of cloud platform calculate node at the VHD of VM The problem of;It realizes VM voluntarily carry target RDMA block device, and is not take up calculate node physical machine kernel resources, reduce memory and copy Shellfish, while the physical characteristic of target RDMA block device can be fully utilized.
It should be noted that in the present embodiment with the explanation of same steps in other embodiments and identical content, Ke Yican According to the description in other embodiments, details are not described herein again.
The embodiment of the present invention provides a kind of RDMA DMS, shown in Figure 7, which includes:
Second memory 71, for storing executable instruction.
Second processor 72, for executing the executable instruction stored in second memory 71, to perform the steps of
The first identifier of the RDMA DMS is sent to VM by cloud computing platform;
Target RDMA block device is distributed for the VM;Wherein, at least one described RDMA block device includes the target RDMA block device;
It is mapping through from the mapping read in the VM between the target RDMA block device and the VM, and based on described The target RDMA block device and the VM carry out data communication.
In other embodiments of the invention, second processor 72, for executing holding of storing in second memory 71 Row instruction, also to perform the steps of
The block device identification list of RDMA block device is generated, and sends the block device identification list to the VM;Wherein, The block device identification list includes the mark of at least one RDMA block device;
Receive the request message for carrying target identification that the VM is sent;
Response message is generated based on the request message, and sends the response message to the VM;Wherein, the response Message be used to indicate the RDMA DMS target identification is proved to be successful or the response message be used to indicate it is described RDMA DMS is to the target identification authentication failed.
In other embodiments of the invention, second processor 72 are reflected for executing in second memory 71 based on described When penetrating through the target RDMA block device and VM progress data communication, it can be realized by following steps:
Data communication is carried out based on rdma protocol and the target RDMA block device and the VM of being mapping through.
It should be noted that in the present embodiment step performed by second processor 72 specific implementation process, Ke Yican According to the realization process in the mapping method of the virtual hard disk of the corresponding embodiment offer in Fig. 4~5, details are not described herein again.
RDMA DMS provided by the embodiment of the present invention sends the first identifier of the RDMA DMS by cloud computing platform To VM;Target RDMA block device is distributed for the VM;Wherein, at least one described RDMA block device includes the target RDMA Block device;It is mapping through from the mapping read in the VM between the target RDMA block device and the VM, and based on described The target RDMA block device and the VM carry out data communication;In this way, VM is in the first mark for getting cloud computing platform publication After knowledge, RDMA DMS can be found based on first identifier, and obtain the target RDMA block device that RDMA DMS is VM distribution, into The physical hard disk of target RDMA block device, is mapped as the VHD of VM by one step, VM voluntarily carry target RDMA block device;It solves It, can not be direct in the related technology since the user of virtual machine does not operate the permission of the resource of cloud platform calculate node By the resource impact of cloud platform calculate node at VM VHD the problem of;It realizes VM voluntarily carry target RDMA block device, and does not account for With calculate node physical machine kernel resources, memory copying is reduced, while the physical characteristic of target RDMA block device can be fully utilized.
It should be noted that in the present embodiment with the explanation of same steps in other embodiments and identical content, Ke Yican According to the description in other embodiments, details are not described herein again.
The embodiment of the present invention provides a kind of cloud computing platform, shown in Figure 8, which includes:
RDMA DMS81, RDMA DMS81 include at least one RDMA block device 801, for being sent by cloud computing platform The first identifier of RDMA DMS81 is to VM;Target RDMA block device is distributed for VM;From VM read target RDMA block device with Mapping between VM, and data communication is carried out with VM based on target RDMA block device is mapping through.
Wherein, at least one RDMA block device 801 includes target RDMA block device.
In the embodiment of the present invention, the RDMA DMS81 in Fig. 8 is corresponding with the RDMA DMS7 in Fig. 7.
VM82, for obtaining the first identifier of RDMA DMS81;RDMA DMS81 is searched based on first identifier, and is obtained RDMA DMS81 is directed to the target RDMA block device of VM distribution;Establish the mapping between VM82 and target RDMA block device, and base Data communication is carried out in mapping and target RDMA block device.
In the embodiment of the present invention, the VM82 in Fig. 8 is corresponding with the VM6 in Fig. 6.
Cloud computing platform provided by the embodiment of the present invention solves in the related technology since the user of virtual machine does not have The permission of the resource of cloud platform calculate node is operated, therefore can not be directly by the resource impact of cloud platform calculate node at VM's The problem of VHD, realizes VM voluntarily carry target RDMA block device, and is not take up calculate node physical machine kernel resources, in reduction Copy is deposited, while the physical characteristic of target RDMA block device can be fully utilized.
It should be noted that in the present embodiment step performed by VM and RDMA DMS specific implementation process, Ke Yican Realization process in the mapping method of the virtual hard disk provided according to Fig. 2~3,4~5 corresponding embodiments, details are not described herein again.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program Product.Therefore, the shape of hardware embodiment, software implementation or embodiment combining software and hardware aspects can be used in the present invention Formula.Moreover, the present invention, which can be used, can use storage in the computer that one or more wherein includes computer usable program code The form for the computer program product implemented on medium (including but not limited to magnetic disk storage and optical memory etc.).
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the scope of the present invention.

Claims (10)

1. a kind of mapping method of virtual hard disk is applied to virtual machine VM, which comprises
Obtain the first identifier of the remote direct data access arrangement management system RDMA DMS of cloud computing platform publication;
The RDMA DMS is searched based on the first identifier, and obtains the target that the RDMA DMS is directed to VM distribution RDMA block device;Wherein, the RDMA DMS includes the target RDMA block device;
The mapping between the VM and the target RDMA block device is established, and is set based on the mapping with the target RDMA block It is standby to carry out data communication.
2. the method according to claim 1, wherein described obtain the RDMA DMS for VM distribution Before target RDMA block device, the method also includes:
Obtain the block device identification list for the RDMA block device that the RDMA DMS is sent;Wherein, the block device identification list Mark including at least one RDMA block device;
Correspondingly, the target RDMA block device for obtaining the RDMA DMS and being directed to VM distribution, comprising:
Selection target identifies from the block device identification list, and sends and carry the request message of the target identification to institute State RDMA DMS;
It receives the RDMA DMS and is directed to the response message that the request message is sent;
If the response message indicates that the target identification is proved to be successful, determine that the corresponding RDMA block device of target identification is described Target RDMA block device.
3. according to the method described in claim 2, it is characterized in that, the method also includes:
If the response message indicates the target identification authentication failed, determines and do not carry out data with the target RDMA block device Communication.
4. the method according to claim 1, wherein described based on the mapping and the target RDMA block device Carry out data communication, comprising:
Based on rdma protocol and the mapping, data communication is carried out with the target RDMA block device.
5. a kind of mapping method of virtual hard disk is applied to remote direct data access arrangement management system RDMA DMS, described RDMA DMS includes at least one RDMA block device, which comprises
The first identifier of the RDMA DMS is sent to VM by cloud computing platform;
Target RDMA block device is distributed for the VM;Wherein, at least one described RDMA block device includes the target RDMA Block device;
From the mapping read in the VM between the target RDMA block device and the VM, and based on described in described be mapping through Target RDMA block device and the VM carry out data communication.
6. according to the method described in claim 5, it is characterized in that, described distribute target RDMA block device, packet for the VM It includes:
The block device identification list of RDMA block device is generated, and sends the block device identification list to the VM;Wherein, described Block device identification list includes the mark of at least one RDMA block device;
Receive the request message for carrying target identification that the VM is sent;
Response message is generated based on the request message, and sends the response message to the VM;Wherein, the response message It is used to indicate that the RDMA DMS is proved to be successful the target identification or the response message is used to indicate the RDMA DMS is to the target identification authentication failed.
7. according to the method described in claim 5, it is characterized in that, described be mapping through the target RDMA block and set based on described It is standby to carry out data communication with the VM, comprising:
Data communication is carried out based on rdma protocol and the target RDMA block device and the VM of being mapping through.
8. a kind of VM, which is characterized in that the VM includes:
First memory, for storing executable instruction;
First processor is realized for executing the executable instruction stored in the first memory as in Claims 1-4 The mapping method of described in any item virtual hard disks.
9. a kind of RDMA DMS, which is characterized in that the RDMA DMS includes:
Second memory, for storing executable instruction;
Second processor is realized for executing the executable instruction stored in the second memory as in claim 5 to 7 The mapping method of described in any item virtual hard disks.
10. a kind of cloud computing platform, the platform include:
RDMA DMS, the RDMA DMS include at least one RDMA block device, described in being sent by cloud computing platform The first identifier of RDMA DMS is to VM;Target RDMA block device is distributed for the VM;The target is read from the VM Mapping between RDMA block device and the VM, and the target RDMA block device and VM progress are mapping through based on described Data communication;Wherein, at least one described RDMA block device includes the target RDMA block device;
VM, for obtaining the first identifier of the RDMA DMS;The RDMA DMS is searched based on the first identifier, and is obtained The RDMA DMS is directed to the target RDMA block device of VM distribution;It establishes between the VM and the target RDMA block device Mapping, and based on it is described mapping with the target RDMA block device carry out data communication.
CN201811471746.5A 2018-12-04 2018-12-04 Mapping method and device of virtual hard disk and cloud computing platform Active CN109739615B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811471746.5A CN109739615B (en) 2018-12-04 2018-12-04 Mapping method and device of virtual hard disk and cloud computing platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811471746.5A CN109739615B (en) 2018-12-04 2018-12-04 Mapping method and device of virtual hard disk and cloud computing platform

Publications (2)

Publication Number Publication Date
CN109739615A true CN109739615A (en) 2019-05-10
CN109739615B CN109739615B (en) 2020-07-24

Family

ID=66358493

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811471746.5A Active CN109739615B (en) 2018-12-04 2018-12-04 Mapping method and device of virtual hard disk and cloud computing platform

Country Status (1)

Country Link
CN (1) CN109739615B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111274176A (en) * 2020-01-15 2020-06-12 联想(北京)有限公司 Information processing method, electronic equipment, system and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1940805A (en) * 2005-09-30 2007-04-04 联想(北京)有限公司 Computer system and its safety encryption
US20120159486A1 (en) * 2008-02-12 2012-06-21 International Business Machines Corporation System, method and computer program product for accessing a memory space allocated to a virtual machine
US8225330B2 (en) * 2006-12-14 2012-07-17 Intel Corporation RDMA (remote direct memory access) data transfer in a virtual environment
CN102915285A (en) * 2011-09-14 2013-02-06 微软公司 Application acceleration in a virtualized environment
CN103051687A (en) * 2012-12-10 2013-04-17 浪潮(北京)电子信息产业有限公司 System and method for deploying application service to cloud-storage virtual machine
CN103377330A (en) * 2012-04-23 2013-10-30 佛山市智慧岛信息技术有限公司 Virtual resource distribution method and virtual resource distribution system
US20140201302A1 (en) * 2013-01-16 2014-07-17 International Business Machines Corporation Method, apparatus and computer programs providing cluster-wide page management
US20150012776A1 (en) * 2013-07-02 2015-01-08 International Business Machines Corporation Using rdma for fast system recovery in virtualized environments
CN104468803A (en) * 2014-12-12 2015-03-25 华为技术有限公司 Virtual data center resource mapping method and equipment
US20150178242A1 (en) * 2013-12-25 2015-06-25 Cavium, Inc. System and a method for a remote direct memory access over converged ethernet

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1940805A (en) * 2005-09-30 2007-04-04 联想(北京)有限公司 Computer system and its safety encryption
US8225330B2 (en) * 2006-12-14 2012-07-17 Intel Corporation RDMA (remote direct memory access) data transfer in a virtual environment
US20120159486A1 (en) * 2008-02-12 2012-06-21 International Business Machines Corporation System, method and computer program product for accessing a memory space allocated to a virtual machine
CN102915285A (en) * 2011-09-14 2013-02-06 微软公司 Application acceleration in a virtualized environment
CN103377330A (en) * 2012-04-23 2013-10-30 佛山市智慧岛信息技术有限公司 Virtual resource distribution method and virtual resource distribution system
CN103051687A (en) * 2012-12-10 2013-04-17 浪潮(北京)电子信息产业有限公司 System and method for deploying application service to cloud-storage virtual machine
US20140201302A1 (en) * 2013-01-16 2014-07-17 International Business Machines Corporation Method, apparatus and computer programs providing cluster-wide page management
US20150012776A1 (en) * 2013-07-02 2015-01-08 International Business Machines Corporation Using rdma for fast system recovery in virtualized environments
US20150178242A1 (en) * 2013-12-25 2015-06-25 Cavium, Inc. System and a method for a remote direct memory access over converged ethernet
CN104468803A (en) * 2014-12-12 2015-03-25 华为技术有限公司 Virtual data center resource mapping method and equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111274176A (en) * 2020-01-15 2020-06-12 联想(北京)有限公司 Information processing method, electronic equipment, system and storage medium
CN111274176B (en) * 2020-01-15 2022-04-22 联想(北京)有限公司 Information processing method, electronic equipment, system and storage medium

Also Published As

Publication number Publication date
CN109739615B (en) 2020-07-24

Similar Documents

Publication Publication Date Title
CN108683747B (en) Resource obtaining, distributing and downloading method, device, equipment and storage medium
US8495356B2 (en) System for securing virtual machine disks on a remote shared storage subsystem
CN113438289A (en) Block chain data processing method and device based on cloud computing
CN109144961A (en) Authority sharing method and device
US20120311575A1 (en) System and method for enforcing policies for virtual machines
US20120042162A1 (en) Cloud Data Management
US9270703B1 (en) Enhanced control-plane security for network-accessible services
CN103780607B (en) The method of the data de-duplication based on different rights
WO2014194494A1 (en) Method, server, host and system for protecting data security
JP2009540408A (en) System, method, and computer program for secure access control to storage device
US20230031297A1 (en) Binding secure keys of secure guests to a hardware security module
KR101401794B1 (en) Method and apparatus for providing data sharing
US10348702B1 (en) Command parameter resolution for command invocations
US20120311574A1 (en) System and method for providing evidence of the physical presence of virtual machines
JP2022177828A (en) Method, apparatus and computer program for federated learning with reduced information leakage (federated learning with partitioned and dynamically-shuffled model updates)
CN112835977A (en) Database management method and system based on block chain
JP4875781B1 (en) Distributed data storage system
US10673827B1 (en) Secure access to user data
KR101563292B1 (en) Cloud virtualization system and method using virtual session manager
CN108521424A (en) Distributed data processing method towards heterogeneous terminals equipment
Jayapandian Cloud Dynamic Scheduling for Multimedia Data Encryption Using Tabu Search Algorithm
CN117242463A (en) Trusted and decentralised aggregation of joint learning
CN112311830A (en) Cloud storage-based Hadoop cluster multi-tenant authentication system and method
CN109739615A (en) A kind of mapping method of virtual hard disk, equipment and cloud computing platform
CN110493175A (en) A kind of information processing method, electronic equipment and storage medium

Legal Events

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