CN112000590A - Method and device for deleting volume mapping and computer readable storage medium - Google Patents

Method and device for deleting volume mapping and computer readable storage medium Download PDF

Info

Publication number
CN112000590A
CN112000590A CN202010851618.4A CN202010851618A CN112000590A CN 112000590 A CN112000590 A CN 112000590A CN 202010851618 A CN202010851618 A CN 202010851618A CN 112000590 A CN112000590 A CN 112000590A
Authority
CN
China
Prior art keywords
lun
scsi
request
target
processed
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
CN202010851618.4A
Other languages
Chinese (zh)
Other versions
CN112000590B (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.)
Inspur Electronic Information Industry Co Ltd
Original Assignee
Inspur Electronic Information Industry Co 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 Inspur Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN202010851618.4A priority Critical patent/CN112000590B/en
Publication of CN112000590A publication Critical patent/CN112000590A/en
Application granted granted Critical
Publication of CN112000590B publication Critical patent/CN112000590B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/08Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
    • G06F12/0802Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
    • G06F12/0866Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches for peripheral storage systems, e.g. disk cache
    • G06F12/0873Mapping of cache memory to specific storage devices or parts thereof
    • 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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5016Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory

Abstract

The embodiment of the invention discloses a method, a device and a medium for deleting volume mapping, which adjust luns corresponding to storage equipment identifications to be in an offline state according to the storage equipment identifications carried in an offline instruction. And when receiving the scsi request pointing to the lun, setting a blocking identifier for the scsi request, and caching the scsi request with the blocking identifier to a preset queue. When the number of scsi requests to be processed is zero, the storage resources of the lun for executing the disk read-write operation can be released, and the lun is deleted from the target list. By adjusting the lun to be in an offline state and setting the blocking identifier for the sci request pointing to the lun after the lun is adjusted to be in the offline state, the processing of the sci request and the orderly execution of the lun deleting operation can be ensured, the lun deleting operation does not need to be locked, and the influence of the lun deleting operation on the IO processing performance is effectively reduced.

Description

Method and device for deleting volume mapping and computer readable storage medium
Technical Field
The present invention relates to the field of storage device technologies, and in particular, to a method and an apparatus for deleting a volume map, and a computer-readable storage medium.
Background
Current Small Computer System Interface (iSCSI) service usage requires a target (target) service, i.e., an iSCSI server program, to be launched on the storage side. An iSCSI initiator service, i.e., an iSCSI client program, is initiated on the client. It is generally necessary to create a target at the server program and add the storage device provided by the storage to the target map. After an iSCSI client connects to a target, all volume maps (luns) under the target, i.e., storage device maps provided by the storage side, may be accessed.
After the client is connected, the mapping of the storage device in the target cannot be deleted online, and the mapping of the storage device provided by the storage terminal can be released after the client actively disconnects the target link. When executing lun delete operation, locking operation is needed, and the processing of IO read-write request also needs locking operation, so that resource competition exists between lun delete operation and the processing of IO read-write request, and IO processing performance is affected.
Therefore, how to reduce the influence of lun delete operation on IO processing performance is a problem to be solved by those skilled in the art.
Disclosure of Invention
Embodiments of the present invention provide a method and an apparatus for deleting a volume map, and a computer-readable storage medium, which can reduce an influence of a lun delete operation on IO processing performance.
To solve the foregoing technical problem, an embodiment of the present invention provides a method for deleting a volume map, including:
adjusting luns corresponding to storage equipment identifiers to be in an offline state according to the storage equipment identifiers carried in the offline instructions;
when an scsi request pointing to the lun is received, setting a blocking identifier for the scsi request, and caching the scsi request with the blocking identifier to a preset queue;
judging whether the number of scsi requests to be processed is zero or not; wherein, the scsi request to be processed is a scsi request which has been received before the lun is adjusted to an offline state;
and when the number of the scsi requests to be processed is zero, releasing the storage resources of the lun for executing the disk read-write operation, and deleting the lun from the target list.
Optionally, after the deleting the lun from the target list, the method further includes:
feeding back the response information of the request leaving no reason to the client corresponding to each scsi request with the blocking identifier in the preset queue;
judging whether the number of scsi requests with blocking identifiers set in the preset queue is zero or not;
and when the number of the scsi requests for setting the blocking identifier in the preset queue is zero, releasing the corresponding resources of the lun in the memory.
Optionally, after the deleting the lun from the target list, the method further includes:
and when receiving the scsi request pointing to the lun, feeding back response information of which the request is not managed to a client corresponding to the scsi request.
Optionally, after the deleting the lun from the target list, the method further includes:
when a lun adding instruction is received, adding a target lun carried in the lun adding instruction to the target list;
when a target scsi request pointing to the target lun is received, caching the target scsi request to a preset queue, and updating the number of scsi requests to be processed according to the number of the target scsi requests;
and calling a preset service process to sequentially process the scsi requests to be processed in the preset queue, and reducing the number of the scsi requests to be processed by one every time one scsi request to be processed is executed.
Optionally, when receiving a target sci request directed to the target lun, caching the target sci request in a preset queue, and updating the number of sci requests to be processed according to the number of the target sci requests further includes:
judging whether the number of the scsi requests to be processed reaches a preset threshold value or not;
and when the number of the scsi requests to be processed reaches a preset threshold value, setting a pause identifier for the preset queue, and performing alarm prompt.
The embodiment of the invention also provides a device for deleting the volume mapping, which comprises an adjusting unit, a setting unit, a judging unit, a releasing unit and a deleting unit;
the adjusting unit is used for adjusting luns corresponding to the storage device identifiers to be in an offline state according to the storage device identifiers carried in the offline instruction;
the setting unit is used for setting a blocking identifier for the scsi request when the scsi request pointing to the lun is received, and caching the scsi request with the blocking identifier to a preset queue;
the judging unit is used for judging whether the number of the scsi requests to be processed is zero or not; wherein, the scsi request to be processed is a scsi request which has been received before the lun is adjusted to an offline state;
the release unit is configured to release the storage resource used by the lun to execute the disk read-write operation when the number of the to-be-processed scsi requests is zero;
and the deleting unit is used for deleting the lun from the target list.
Optionally, a feedback unit is further included;
the feedback unit is used for feeding back the response information of the request leaving no reason to the client corresponding to each scsi request with the blocking identifier in the preset queue;
the judging unit is also used for judging whether the number of the scsi requests with the blocking identifiers in the preset queue is zero or not;
the releasing unit is further configured to release the resource corresponding to the lun in the memory when the number of the sci requests for setting the blocking identifier in the preset queue is zero.
Optionally, the feedback unit is further configured to, after the lun is deleted from the target list, when a sci request directed to the lun is received, feed back response information that a request is not managed to a client corresponding to the sci request.
Optionally, the method further includes an adding unit, a caching unit, and a calling unit after the lun is deleted from the target list;
the adding unit is configured to add, when receiving a lun addition instruction, a target lun carried in the lun addition instruction to the target list;
the cache unit is used for caching the target scsi request to a preset queue when receiving the target scsi request pointing to the target lun, and updating the number of scsi requests to be processed according to the number of the target scsi requests;
the calling unit is used for calling a preset service process to sequentially process the scsi requests to be processed in the preset queue, and the number of the scsi requests to be processed is reduced by one every time one scsi request to be processed is executed.
Optionally, a prompt unit is further included;
the judging unit is also used for judging whether the number of the scsi requests to be processed reaches a preset threshold value;
and the prompting unit is used for setting a pause identifier for the preset queue and carrying out alarm prompting when the number of the scsi requests to be processed reaches a preset threshold value.
An embodiment of the present invention further provides a device for deleting a volume map, including:
a memory for storing a computer program;
a processor for executing the computer program to implement the steps of the volume mapped deletion method as described in any of the above.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the steps of the method for deleting a volume map according to any of the above items.
According to the technical scheme, the lun corresponding to the storage device identifier is adjusted to be in the offline state according to the storage device identifier carried in the offline instruction. After the lun is adjusted to the offline state, if the sci request pointing to the lun is received, a blocking identifier may be set for the sci request, and the sci request with the blocking identifier set may be cached in a preset queue. By setting a lun to an offline state, a scsi request directed to that lun will not be able to be sent to the storage device. Considering that the sci request is often received before the lun is adjusted to the offline state, in order to ensure normal processing of the sci request received before the lun is adjusted to the offline state, before the deleting operation is performed on the lun, it may be determined whether the number of sci requests to be processed is zero. When the number of the scsi requests to be processed is zero, it indicates that the scsi requests received before the lun is adjusted to the offline state are processed, at this time, the storage resources used by the lun for executing the disk read-write operation can be released, and the lun is deleted from the target list. In the technical scheme, the lun is adjusted to be in the offline state, and the blocking identifier is set for the sci request pointing to the lun after the lun is adjusted to be in the offline state, so that the processing of the sci request and the orderly execution of the lun deleting operation can be ensured, the lun deleting operation does not need to be locked, and the influence of the lun deleting operation on the IO processing performance is effectively reduced.
Drawings
In order to illustrate the embodiments of the present invention more clearly, the drawings that are needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings can be obtained by those skilled in the art without inventive effort.
Fig. 1 is a flowchart of a method for deleting a volume map according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a deletion apparatus for volume mapping according to an embodiment of the present invention;
fig. 3 is a schematic hardware structure diagram of a deletion apparatus for volume mapping according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and 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 a person of ordinary skill in the art based on the embodiments of the present invention without any creative work belong to the protection scope of the present invention.
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
Next, a method for deleting a volume map according to an embodiment of the present invention will be described in detail. Fig. 1 is a flowchart of a method for deleting a volume map according to an embodiment of the present invention, where the method includes:
s101: and adjusting luns corresponding to the storage equipment identifiers to be in an offline state according to the storage equipment identifiers carried in the offline instructions.
The server program can create a target, the storage end comprises a plurality of storage devices, the storage end can add the mapping of the storage devices to a target list, and the mapping of one storage device is a lun.
In a normal operation state, the client can establish connection with the server, the scsi request is sent to the server through the established connection, and when an lun exists in the target list, the server can access the storage device according to the lun, so that interaction between the client and the storage device is realized.
When the mapping of a certain storage device or certain storage devices needs to be deleted, the user can set the lun to be deleted to the offline state by inputting an offline instruction at the server.
Each lun has its corresponding storage device, and each storage device has its corresponding storage device identifier. Thus, in embodiments of the present invention, luns may be indicated by storage device identifications.
By setting a lun to an offline state, a scsi request directed to that lun will not be able to be sent to the storage device.
S102: and when receiving the scsi request pointing to the lun, setting a blocking identifier for the scsi request, and caching the scsi request with the blocking identifier to a preset queue.
In the embodiment of the present invention, the scsi request with the blocking flag set may be buffered to a preset queue.
Since the connection between the client and the server still exists, the client sends the sci request to the server through the connection. In the embodiment of the present invention, a blocking flag may be set for a scsi request directed to a lun. The scsi request for setting the blocking identifier is in an inactivated state, and the resources of the storage device do not need to be occupied for processing, so that the purpose of releasing the storage device can be achieved.
S103: and judging whether the number of the scsi requests to be processed is zero or not.
In the embodiment of the present invention, the scsi request to be processed refers to a scsi request that has been received before lun is adjusted to an offline state.
Considering that the sci request is often received before the lun is adjusted to the offline state, in order to ensure normal processing of the sci request received before the lun is adjusted to the offline state, before the deleting operation is performed on the lun, it may be determined whether the number of sci requests to be processed is zero.
When the number of the scsi requests to be processed is not zero, the server side can call the corresponding storage device to process the scsi requests to be processed according to the lun according to the conventional processing mode, and feeds back the processing result to the client side.
When the number of scsi requests to be processed is zero, which indicates that the scsi requests received before the lun has been adjusted to the offline state have completed processing, S104 may be executed.
S104: and releasing the storage resources used by the lun for executing disk read-write operation, and deleting the lun from the target list.
Often, the sci request sent by the client performs read-write operation, that is, disk read-write operation, on data of a disk on the storage device. The server creates temporary resources for executing disk read-write operations aiming at the received scsi request. After the scsi request received before the lun is adjusted to the offline state is processed, the storage resource used by the lun to execute the disk read-write operation can be released, and the lun is deleted from the target list.
After the lun is deleted from the target list, the server side does not process the sci request pointing to the lun, and can directly feed back response information that the request is not managed to the client side corresponding to the sci request.
According to the technical scheme, the lun corresponding to the storage device identifier is adjusted to be in the offline state according to the storage device identifier carried in the offline instruction. After the lun is adjusted to the offline state, if the sci request pointing to the lun is received, a blocking identifier may be set for the sci request, and the sci request with the blocking identifier set may be cached in a preset queue. By setting a lun to an offline state, a scsi request directed to that lun will not be able to be sent to the storage device. Considering that the sci request is often received before the lun is adjusted to the offline state, in order to ensure normal processing of the sci request received before the lun is adjusted to the offline state, before the deleting operation is performed on the lun, it may be determined whether the number of sci requests to be processed is zero. When the number of the scsi requests to be processed is zero, it indicates that the scsi requests received before the lun is adjusted to the offline state are processed, at this time, the storage resources used by the lun for executing the disk read-write operation can be released, and the lun is deleted from the target list. In the technical scheme, the lun is adjusted to be in the offline state, and the blocking identifier is set for the sci request pointing to the lun after the lun is adjusted to be in the offline state, so that the processing of the sci request and the orderly execution of the lun deleting operation can be ensured, the lun deleting operation does not need to be locked, and the influence of the lun deleting operation on the IO processing performance is effectively reduced.
When receiving the scsi request sent by the client, the server creates a temporary resource for executing disk read-write operation. The temporary resources include the storage resources used by the lun to execute the read-write operation of the disk, and also include the resources corresponding to the lun in the memory. The resource corresponding to the lun in the memory may be used to support the server to send the feedback information to the client.
In order to fully release resources occupied by luns, after luns are deleted from the target list, feedback of response information that requests are not managed to clients corresponding to scsi requests with blocking identifiers in a preset queue can be performed; judging whether the number of scsi requests with blocking identifiers set in a preset queue is zero or not; and when the number of the scsi requests for setting the blocking identifier in the preset queue is zero, releasing the corresponding resources of the lun in the memory.
All scsi requests corresponding to lun can be completed by feeding back the response information of the request irrational to the client corresponding to the scsi request with the blocking identifier, so that all resources occupied by lun can be released, and the utilization rate of the resources of the server is improved.
In the embodiment of the present invention, in addition to deleting a lun from the target list, a new lun may be added to the target list, and the newly added lun may be referred to as a target lun in order to be distinguished from an original lun in the target list.
In a specific implementation, when a lun addition instruction is received, a target lun carried in the lun addition instruction may be added to a target list; when a target scsi request pointing to a target lun is received, caching the target scsi request to a preset queue, and updating the number of scsi requests to be processed according to the number of the target scsi requests; and calling a preset service process to sequentially process the scsi requests to be processed in the preset queue, and reducing the number of the scsi requests to be processed by one every time one scsi request to be processed is executed.
Each scsi request has a lun to which it points, and a scsi request that points to a target lun may be referred to as a target scsi request. When the number of the received target scsi requests is large, the server often cannot process the received target scsi requests in time, so that the server can cache the received target scsi requests to a preset queue.
The number of scsi requests to be processed refers to the number of scsi requests which are received by the server and are not processed, and the server can record the number of scsi requests to be processed through a register.
By caching the target scsi request into the preset queue, the ordered processing of the target scsi request can be ensured, the condition that the scsi request is lost is avoided, and the performance of processing the scsi request by the server is effectively improved.
Considering that in practical application, there may be a situation that the scsi requests cached in the preset queue are not processed in time, which results in more and more scsi requests cached in the preset queue, and the caching capacity of the preset queue is limited, in order to ensure effective work of the preset queue, a target scsi request may be cached in the preset queue, and after the number of the scsi requests to be processed is updated according to the number of the target scsi requests, whether the number of the scsi requests to be processed reaches a preset threshold value is judged; and when the number of the scsi requests to be processed reaches a preset threshold value, setting a pause identifier for a preset queue, and performing alarm prompt.
The value of the preset threshold may be set according to the caching capacity of the preset queue, for example, the preset queue may cache 1000 scsi requests at most, and then the preset threshold may be set to 1000.
The pause identifier is set for the preset queue, and at the moment, the server side can not store the scsi request in the preset queue any more, so that the overload condition of the preset queue is effectively avoided, and the effective work of the preset queue is ensured.
By detecting the number of the scsi requests to be processed and giving an alarm when the number of the scsi requests to be processed reaches a preset threshold value, managers can find out the situation that the scsi requests are stacked in a preset queue in time conveniently, and therefore the stacked scsi requests are processed in time.
Fig. 2 is a schematic structural diagram of a deletion apparatus for a volume map according to an embodiment of the present invention, including an adjusting unit 21, a setting unit 22, a determining unit 23, a releasing unit 24, and a deleting unit 25;
an adjusting unit 21, configured to adjust a lun corresponding to a storage device identifier to an offline state according to the storage device identifier carried in the offline instruction;
the setting unit 22 is configured to set a blocking identifier for a sci request when the sci request pointing to the lun is received, and cache the sci request with the blocking identifier in a preset queue;
a judging unit 23, configured to judge whether the number of scsi requests to be processed is zero; wherein, the scsi request to be processed is the scsi request which is received before lun is adjusted to be in an offline state;
a releasing unit 24, configured to release, when the number of scsi requests to be processed is zero, a storage resource used by the lun to perform a disk read-write operation;
and a deleting unit 25, configured to delete luns from the target list.
Optionally, a feedback unit is further included;
the feedback unit is used for feeding back the response information of the request leaving no reason to the client corresponding to each scsi request with the blocking identifier in the preset queue;
the judging unit is also used for judging whether the number of the scsi requests with the blocking identifiers in the preset queue is zero or not;
the releasing unit is further configured to release the resource corresponding to the lun in the memory when the number of the sci requests for setting the blocking identifier in the preset queue is zero.
Optionally, the feedback unit is further configured to, after deleting the lun from the target list, when receiving a sci request directed to the lun, feed back response information that the request is not managed to a client corresponding to the sci request.
Optionally, the method further includes an adding unit, a caching unit and a calling unit after the lun is deleted from the target list;
the adding unit is used for adding the target lun carried in the lun adding instruction to the target list when the lun adding instruction is received;
the cache unit is used for caching the target scsi requests to a preset queue when receiving the target scsi requests pointing to the target lun, and updating the number of the scsi requests to be processed according to the number of the target scsi requests;
and the calling unit is used for calling a preset service process to sequentially process the scsi requests to be processed in the preset queue, and the number of the scsi requests to be processed is reduced by one every time one scsi request to be processed is executed.
Optionally, a prompt unit is further included;
the judging unit is also used for judging whether the number of the scsi requests to be processed reaches a preset threshold value;
and the prompting unit is used for setting a pause identifier for the preset queue and carrying out alarm prompting when the number of the scsi requests to be processed reaches a preset threshold value.
The description of the features in the embodiment corresponding to fig. 2 may refer to the related description of the embodiment corresponding to fig. 1, and is not repeated here.
According to the technical scheme, the lun corresponding to the storage device identifier is adjusted to be in the offline state according to the storage device identifier carried in the offline instruction. After the lun is adjusted to the offline state, if the sci request pointing to the lun is received, a blocking identifier may be set for the sci request, and the sci request with the blocking identifier set may be cached in a preset queue. By setting a lun to an offline state, a scsi request directed to that lun will not be able to be sent to the storage device. Considering that the sci request is often received before the lun is adjusted to the offline state, in order to ensure normal processing of the sci request received before the lun is adjusted to the offline state, before the deleting operation is performed on the lun, it may be determined whether the number of sci requests to be processed is zero. When the number of the scsi requests to be processed is zero, it indicates that the scsi requests received before the lun is adjusted to the offline state are processed, at this time, the storage resources used by the lun for executing the disk read-write operation can be released, and the lun is deleted from the target list. In the technical scheme, the lun is adjusted to be in the offline state, and the blocking identifier is set for the sci request pointing to the lun after the lun is adjusted to be in the offline state, so that the processing of the sci request and the orderly execution of the lun deleting operation can be ensured, the lun deleting operation does not need to be locked, and the influence of the lun deleting operation on the IO processing performance is effectively reduced.
Fig. 3 is a schematic hardware structure diagram of a deletion apparatus 30 for volume mapping according to an embodiment of the present invention, including:
a memory 31 for storing a computer program;
a processor 32 for executing a computer program to implement the steps of the volume mapped deletion method as described in any of the embodiments above.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method for deleting a volume map according to any of the above embodiments are implemented.
The foregoing describes a method, an apparatus, and a computer-readable storage medium for deleting a volume map according to embodiments of the present invention in detail. The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

Claims (10)

1. A method for deleting a volume map, comprising:
adjusting luns corresponding to storage equipment identifiers to be in an offline state according to the storage equipment identifiers carried in the offline instructions;
when an scsi request pointing to the lun is received, setting a blocking identifier for the scsi request, and caching the scsi request with the blocking identifier to a preset queue;
judging whether the number of scsi requests to be processed is zero or not; wherein, the scsi request to be processed is a scsi request which has been received before the lun is adjusted to an offline state;
and when the number of the scsi requests to be processed is zero, releasing the storage resources of the lun for executing the disk read-write operation, and deleting the lun from the target list.
2. The method for deleting a volume map according to claim 1, further comprising, after the deleting the lun from the target list:
feeding back the response information of the request leaving no reason to the client corresponding to each scsi request with the blocking identifier in the preset queue;
judging whether the number of scsi requests with blocking identifiers set in the preset queue is zero or not;
and when the number of the scsi requests for setting the blocking identifier in the preset queue is zero, releasing the corresponding resources of the lun in the memory.
3. The method for deleting a volume map according to claim 2, further comprising, after the deleting the lun from the target list:
and when receiving the scsi request pointing to the lun, feeding back response information of which the request is not managed to a client corresponding to the scsi request.
4. The method for deleting a volume map according to claim 1, further comprising, after the deleting the lun from the target list:
when a lun adding instruction is received, adding a target lun carried in the lun adding instruction to the target list;
when a target scsi request pointing to the target lun is received, caching the target scsi request to a preset queue, and updating the number of scsi requests to be processed according to the number of the target scsi requests;
and calling a preset service process to sequentially process the scsi requests to be processed in the preset queue, and reducing the number of the scsi requests to be processed by one every time one scsi request to be processed is executed.
5. The method for deleting a volume map according to claim 4, wherein after the caching the target scsi request to a preset queue and updating the number of scsi requests to be processed according to the number of the target scsi requests when the target scsi request directed to the target lun is received, the method further comprises:
judging whether the number of the scsi requests to be processed reaches a preset threshold value or not;
and when the number of the scsi requests to be processed reaches a preset threshold value, setting a pause identifier for the preset queue, and performing alarm prompt.
6. The deleting device of the volume mapping is characterized by comprising an adjusting unit, a setting unit, a judging unit, a releasing unit and a deleting unit;
the adjusting unit is used for adjusting luns corresponding to the storage device identifiers to be in an offline state according to the storage device identifiers carried in the offline instruction;
the setting unit is used for setting a blocking identifier for the scsi request when the scsi request pointing to the lun is received, and caching the scsi request with the blocking identifier to a preset queue;
the judging unit is used for judging whether the number of the scsi requests to be processed is zero or not; wherein, the scsi request to be processed is a scsi request which has been received before the lun is adjusted to an offline state;
the release unit is configured to release the storage resource used by the lun to execute the disk read-write operation when the number of the to-be-processed scsi requests is zero;
and the deleting unit is used for deleting the lun from the target list.
7. The volume mapped deletion apparatus according to claim 6, further comprising a feedback unit;
the feedback unit is used for feeding back the response information of the request leaving no reason to the client corresponding to each scsi request with the blocking identifier in the preset queue;
the judging unit is also used for judging whether the number of the scsi requests with the blocking identifiers in the preset queue is zero or not;
the releasing unit is further configured to release the resource corresponding to the lun in the memory when the number of the sci requests for setting the blocking identifier in the preset queue is zero.
8. The deletion apparatus of the volume map according to claim 6, further comprising an adding unit, a buffering unit, and a calling unit after the deletion of the lun from the target list;
the adding unit is configured to add, when receiving a lun addition instruction, a target lun carried in the lun addition instruction to the target list;
the cache unit is used for caching the target scsi request to a preset queue when receiving the target scsi request pointing to the target lun, and updating the number of scsi requests to be processed according to the number of the target scsi requests;
the calling unit is used for calling a preset service process to sequentially process the scsi requests to be processed in the preset queue, and the number of the scsi requests to be processed is reduced by one every time one scsi request to be processed is executed.
9. A volume map deletion apparatus, comprising:
a memory for storing a computer program;
a processor for executing the computer program to implement the steps of the volume mapped deletion method according to any of claims 1 to 5.
10. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the method for deleting a volume map according to any one of claims 1 to 5.
CN202010851618.4A 2020-08-21 2020-08-21 Method and device for deleting volume mapping and computer readable storage medium Active CN112000590B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010851618.4A CN112000590B (en) 2020-08-21 2020-08-21 Method and device for deleting volume mapping and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010851618.4A CN112000590B (en) 2020-08-21 2020-08-21 Method and device for deleting volume mapping and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN112000590A true CN112000590A (en) 2020-11-27
CN112000590B CN112000590B (en) 2022-07-08

Family

ID=73472342

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010851618.4A Active CN112000590B (en) 2020-08-21 2020-08-21 Method and device for deleting volume mapping and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112000590B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101931650A (en) * 2010-08-23 2010-12-29 浪潮(北京)电子信息产业有限公司 Method and device for managing storage resource configuration information
CN103731508A (en) * 2014-01-23 2014-04-16 易桂先 Cloud-storage-based network hard disk device and management method thereof
US20150006846A1 (en) * 2013-06-28 2015-01-01 Saratoga Speed, Inc. Network system to distribute chunks across multiple physical nodes with disk support for object storage
US20170031774A1 (en) * 2015-07-31 2017-02-02 Netapp, Inc. Snapshot restore workflow
CN108810110A (en) * 2018-05-25 2018-11-13 广东美的制冷设备有限公司 Facility information delet method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101931650A (en) * 2010-08-23 2010-12-29 浪潮(北京)电子信息产业有限公司 Method and device for managing storage resource configuration information
US20150006846A1 (en) * 2013-06-28 2015-01-01 Saratoga Speed, Inc. Network system to distribute chunks across multiple physical nodes with disk support for object storage
CN103731508A (en) * 2014-01-23 2014-04-16 易桂先 Cloud-storage-based network hard disk device and management method thereof
US20170031774A1 (en) * 2015-07-31 2017-02-02 Netapp, Inc. Snapshot restore workflow
CN108810110A (en) * 2018-05-25 2018-11-13 广东美的制冷设备有限公司 Facility information delet method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
周江 等: "面向大数据分析的分布式文件系统关键技术", 《计算机研究与发展》 *

Also Published As

Publication number Publication date
CN112000590B (en) 2022-07-08

Similar Documents

Publication Publication Date Title
CN109343963B (en) Application access method and device for container cluster and related equipment
US10645152B2 (en) Information processing apparatus and memory control method for managing connections with other information processing apparatuses
US7975268B2 (en) Grid computing system, management server, processing server, control method, control program and recording medium
US10313452B2 (en) Migrating a chat message service provided by a chat server to a new chat server
CN110471749B (en) Task processing method, device, computer readable storage medium and computer equipment
CN110737388A (en) Data pre-reading method, client, server and file system
CN103607312A (en) Data request processing method and system for server system
CN110650209B (en) Method and device for realizing load balancing
CN113517985B (en) File data processing method and device, electronic equipment and computer readable medium
US20170308546A1 (en) File storage method and electronic device
CN110830535B (en) Processing method of super-hot file, load balancing equipment and download server
CN113238861A (en) Task execution method and device
CN110399329B (en) RDMA data processing method and related device
CN108595574B (en) Database cluster connection method, device, equipment and storage medium
CN112000590B (en) Method and device for deleting volume mapping and computer readable storage medium
JP5544521B2 (en) State management method, processing device, and state management program
CN109656939B (en) Cache updating method, device, equipment and storage medium
CN112925472A (en) Request processing method and device, electronic equipment and computer storage medium
CN112532628A (en) Cross-application login management method, device and system
US10621148B1 (en) Maintaining multiple object stores in a distributed file system
CN111680237B (en) Object processing method and device, electronic equipment and storage medium
US11150947B2 (en) Determining a deletion deadline for a staging environment
CN108399078B (en) Message frequency limiting method, system, server and storage medium
US9240998B2 (en) Management apparatus and control method of management apparatus
CN109710179B (en) Storage service quality control method and device

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