Unlock instant, AI-driven research and patent intelligence for your innovation.

Volume mapping method and device of distributed block storage system based on iSCSI

A technology of storage system and mapping method, which is applied in the computer field and can solve problems such as probabilistic blocking

Active Publication Date: 2021-01-26
SUZHOU LANGCHAO INTELLIGENT TECH CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The purpose of this application is to provide a volume mapping method, device, device, and readable storage medium of an iSCSI-based distributed block storage system, to solve the current tgt service processing mapping tasks in serial mode, which is prone to probabilistic blocking The problem

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Volume mapping method and device of distributed block storage system based on iSCSI
  • Volume mapping method and device of distributed block storage system based on iSCSI
  • Volume mapping method and device of distributed block storage system based on iSCSI

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 2

[0061] The second embodiment of the volume mapping method for an iSCSI-based distributed block storage system provided by the present application will be introduced in detail below, see figure 2 , embodiment two specifically includes:

[0062] S201. The user passes in the name of the storage pool, the name of the volume or the snapshot of the storage system through the mapping command line provided by the iscsi target, and generates a mapping creation request.

[0063] S202. The tgt service connects to the storage system cluster, obtains the cluster handle rados, and then connects to the storage pool where the volume is located according to the cluster handle, and obtains the storage pool context ioctx.

[0064] S203. Query the directory object of the storage system, and check whether the target volume exists. If it exists, proceed to the next step; otherwise, the client prompts that the target volume does not exist, and the mapping cannot be created.

[0065] S204. Constru...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a volume mapping method for a distributed block storage system based on iSCSI, and the method comprises the steps of opening a target volume through asynchronously calling a volume opening interface at the bottom layer of a storage system after a mapping request is received, thereby avoiding a process of waiting for the opening of the target volume, continuing to process other requests after the asynchronous calling, and avoiding the problem that subsequent request processing is affected due to the fact that one mapping is stuck. Moreover, according to the method, a callback pointer can also be used as a parameter to be transmitted to the volume opening interface, so that the callback can be automatically triggered after the volume opening interface finishes the opening operation on the target volume, and finally, the mapping creation operation is finished by utilizing a target thread. According to the method, the final mapping operation is completed by using the single thread, so that the asynchronous callback thread can be effectively prevented from being blocked, and the mapping creation efficiency is improved. In addition, the invention further providesa volume mapping device of the distributed block storage system based on iSCSI, an apparatus and a readable storage medium which have the technical effects corresponding to the technical effects of the above method.

Description

technical field [0001] The present application relates to the field of computer technology, in particular to a volume mapping method, device, device and readable storage medium of an iSCSI-based distributed block storage system. Background technique [0002] iSCSI mainly uses TCP / IP technology to make the storage device (RBD) end into a server that can provide disks through the iSCSI target function, and then through the iSCSI initiator function to make it into a client that can mount and use the iSCSI target. In this way, disk applications can be performed through the iSCSI protocol. [0003] The client can establish a connection with the tgt service through the above methods to access the underlying librbd, and realize the operation of the block storage. Multiple block devices can be mapped on one target, and multiple targets can be created on one tgt service, and the client can connect to the tgt service. One or more of the above targets can be accessed separately, and t...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F3/06
CPCG06F3/061G06F3/0638G06F3/067
Inventor 白战豪胡永刚
Owner SUZHOU LANGCHAO INTELLIGENT TECH CO LTD