CN112684978B - Storage path selection method, system and device of storage device - Google Patents
Storage path selection method, system and device of storage device Download PDFInfo
- Publication number
- CN112684978B CN112684978B CN202011543592.3A CN202011543592A CN112684978B CN 112684978 B CN112684978 B CN 112684978B CN 202011543592 A CN202011543592 A CN 202011543592A CN 112684978 B CN112684978 B CN 112684978B
- Authority
- CN
- China
- Prior art keywords
- storage
- virtual disk
- target
- host
- storage device
- 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.)
- Active
Links
- 238000010187 selection method Methods 0.000 title claims abstract description 37
- 230000005540 biological transmission Effects 0.000 claims abstract description 160
- 238000000034 method Methods 0.000 claims abstract description 20
- 230000008859 change Effects 0.000 claims description 12
- 230000036541 health Effects 0.000 claims description 8
- 238000004590 computer program Methods 0.000 claims description 6
- 238000005457 optimization Methods 0.000 claims description 4
- 230000009471 action Effects 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 230000003862 health status Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000000638 solvent extraction Methods 0.000 description 1
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a storage path selection method, a system and a device of storage equipment, which only consider the transmission path of a storage node which can be monitored by a host, can avoid the situation that the host fails to transmit data to the storage node due to the fact that the transmission path is not communicated, and ensure the reliability of data transmission; in addition, the method and the device allocate a preferred storage node for the virtual disk, so that a more appropriate data transmission path can be preferentially selected, and the rapidity of data transmission is ensured.
Description
Technical Field
The present invention relates to the field of storage, and in particular, to a storage path selection method, system and apparatus for a storage device.
Background
The storage device comprises a plurality of storage nodes, and virtual division is carried out on storage spaces of the storage nodes to obtain a plurality of virtual disks. The host transmits data to each virtual disk via a transmission line connected to each storage node in the storage device. Currently, the partitioning of virtual disks is not limited to storage nodes, i.e., the same virtual disk may span storage nodes, such that a host may sometimes access the same virtual disk through multiple transmission lines. In the prior art, a host randomly selects a transmission line to access a virtual disk, but if the selected transmission line cannot connect the host with a storage node, the host cannot transmit data to the virtual disk, and the reliability of data transmission is affected.
Therefore, how to provide a solution to the above technical problem is a problem that a person skilled in the art needs to solve at present.
Disclosure of Invention
The invention aims to provide a storage path selection method, a system and a device of storage equipment, which only consider the transmission path of a storage node which can be monitored by a host, can avoid the condition that the host fails to transmit data to the storage node due to the fact that the transmission path is not communicated, and ensure the reliability of data transmission; in addition, the method and the device allocate a preferred storage node for the virtual disk, so that a more appropriate data transmission path can be preferentially selected, and the rapidity of data transmission is ensured.
In order to solve the above technical problems, the present invention provides a storage path selection method of a storage device, including:
the method comprises the steps of obtaining transmission paths between a host and storage nodes in storage equipment in advance, obtaining virtual disks of the storage equipment which can be accessed by the host under each transmission path, and distributing a preferred storage node for each virtual disk of the storage equipment;
when the host computer pre-transmits data to a target virtual disk, determining a target transmission path corresponding to the target virtual disk according to the corresponding relation between the virtual disk and the transmission path;
determining a first storage node which can be monitored by a host and a second storage node which cannot be monitored by the host from storage nodes corresponding to the target transmission path;
judging whether the first storage node contains a preferred storage node of the target virtual disk or not;
if yes, selecting a target transmission path corresponding to the preferred storage node of the target virtual disk, and enabling the host to transmit data to the target virtual disk;
if not, selecting a target transmission path corresponding to one storage node from the first storage nodes for the host to transmit data to a target virtual disk.
Preferably, the storage path selection method of the storage device further includes:
under the path marking of the target virtual disk, marking a target transmission path corresponding to the second storage node as an inprocessable state, marking a target transmission path corresponding to a preferred storage node of the target virtual disk contained in the first storage node as an optimized state, and marking a target transmission path corresponding to a non-preferred storage node of the target virtual disk contained in the first storage node as a non-optimized state;
when the host computer transmits data to the target virtual disk again, acquiring a path marking state corresponding to the target virtual disk, and directly selecting a target transmission path according to the path marking state to transmit the data to the target virtual disk by the host computer.
Preferably, the storage path selection method of the storage device further includes:
when deleting the virtual disk of the storage device or adding the virtual disk, re-acquiring the virtual disk of the storage device which can be accessed by the host under each transmission path, and re-distributing a preferred storage node for each current virtual disk of the storage device.
Preferably, the storage path selection method of the storage device further includes:
when deleting the virtual disk of the storage device or adding the virtual disk, updating a virtual disk id list according to the changed virtual disk id;
and returning the updated virtual disk id list to the host, so that the host inquires and displays the detailed information of the corresponding virtual disk according to the returned virtual disk id list.
Preferably, the storage path selection method of the storage device further includes:
generating a multi-storage path related log according to the storage path selection of the storage device;
and generating a virtual disk change related log according to the virtual disk change of the storage equipment, and reading and viewing by a user.
Preferably, the storage path selection method of the storage device further includes:
generating an error information log according to the storage errors of the storage device;
generating a health information log according to the health state of the storage equipment;
and generating a firmware version log according to the firmware version of the physical disk installed in the slot in the storage device.
In order to solve the above technical problem, the present invention further provides a storage path selection system of a storage device, including:
the system comprises an acquisition module, a storage device and a storage device, wherein the acquisition module is used for acquiring transmission paths between a host and storage nodes in the storage device in advance, acquiring virtual disks of the storage device which can be accessed by the host under each transmission path, and distributing a preferred storage node for each virtual disk of the storage device;
the determining module is used for determining a target transmission path corresponding to the target virtual disk according to the corresponding relation between the virtual disk and the transmission path when the host computer pre-transmits data to the target virtual disk;
the distinguishing module is used for determining a first storage node which can be monitored by the host and a second storage node which cannot be monitored by the host from storage nodes corresponding to the target transmission path;
the judging module is used for judging whether the first storage node contains a preferred storage node of the target virtual disk or not; if yes, executing a preferred module; if not, executing an optional module;
the optimization module is used for selecting a target transmission path corresponding to the optimized storage node of the target virtual disk and transmitting data to the target virtual disk by the host;
and the optional module is used for selecting a target transmission path corresponding to one storage node from the first storage nodes and transmitting data to a target virtual disk by the host.
Preferably, the storage path selection system of the storage device further includes:
the marking module is used for marking a target transmission path corresponding to the second storage node as an inprocessable state under the path marking of the target virtual disk, marking a target transmission path corresponding to a preferred storage node of the target virtual disk contained in the first storage node as an optimized state, and marking a target transmission path corresponding to a non-preferred storage node of the target virtual disk contained in the first storage node as a non-optimized state;
and the selection module is used for acquiring a path marking state corresponding to the target virtual disk when the host computer transmits data to the target virtual disk again in advance, so as to directly select a target transmission path according to the path marking state, and provide the host computer with data transmission to the target virtual disk.
Preferably, the acquiring module is further configured to:
when deleting the virtual disk of the storage device or adding the virtual disk, re-acquiring the virtual disk of the storage device which can be accessed by the host under each transmission path, and re-distributing a preferred storage node for each current virtual disk of the storage device.
In order to solve the technical problem, the present invention further provides a storage path selecting device of a storage device, including:
a memory for storing a computer program;
a processor for implementing the steps of the storage path selection method of any one of the storage devices described above when executing the computer program.
The invention provides a storage path selection method of storage equipment, which comprises the steps of acquiring transmission paths between a host and storage nodes in the storage equipment in advance, acquiring virtual disks of the storage equipment which can be accessed by the host under each transmission path, and distributing a preferred storage node for each virtual disk of the storage equipment; when a host computer pre-transmits data to a target virtual disk, determining a target transmission path corresponding to the target virtual disk; determining a first storage node which can be monitored by a host and a second storage node which cannot be monitored by the host from storage nodes corresponding to the target transmission path; judging whether the first storage node contains a preferred storage node of the target virtual disk or not; if yes, selecting a target transmission path corresponding to the preferred storage node of the target virtual disk; if not, selecting a target transmission path corresponding to one storage node in the first storage nodes for the host to transmit data to the target virtual disk. Therefore, only the transmission paths of the storage nodes which can be monitored by the host are considered, the situation that the host fails to transmit data to the storage nodes due to the fact that the transmission paths are not communicated can be avoided, and the reliability of data transmission is guaranteed; in addition, the method and the device allocate a preferred storage node for the virtual disk, so that a more appropriate data transmission path can be preferentially selected, and the rapidity of data transmission is ensured.
The invention also provides a storage path selection system and a storage path selection device of the storage equipment, and the storage path selection method has the same beneficial effects as the storage path selection method.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required in the prior art and the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a method for selecting a storage path of a storage device according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a storage path selection system of a storage device according to an embodiment of the present invention.
Detailed Description
The core of the invention is to provide a storage path selection method, a system and a device of storage equipment, which only consider the transmission path of a storage node which can be monitored by a host, can avoid the situation that the host fails to transmit data to the storage node due to the fact that the transmission path is not communicated, and ensures the reliability of data transmission; in addition, the method and the device allocate a preferred storage node for the virtual disk, so that a more appropriate data transmission path can be preferentially selected, and the rapidity of data transmission is ensured.
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1, fig. 1 is a flowchart of a storage path selection method of a storage device according to an embodiment of the present invention.
The storage path selection method of the storage device comprises the following steps:
step S1: the method comprises the steps of obtaining transmission paths between a host and storage nodes in storage equipment in advance, obtaining virtual disks of the storage equipment which can be accessed by the host under each transmission path, and distributing a preferred storage node for each virtual disk of the storage equipment.
Specifically, the host is connected to each storage node in the storage device through an FC (fiber optic bus), and the transmission line between the host and one storage node is more than one in most cases. The number of active ports (interfaces) connected by FC between the host and each storage node = the number of transmission lines between the host and each storage node = the number of transmission paths between the host and each storage node.
According to the method and the device, the transmission paths between the host and storage nodes in the storage device are obtained in advance, the virtual disk of the storage device which can be accessed by the host in each transmission path is obtained, the virtual disk id (Identity document, identity number) of the storage device which can be accessed by the host in each transmission path can be obtained specifically, so that a specific id list used for representing the virtual disk of the storage device which can be accessed by the host in each transmission path is created for each transmission path, and the number of the virtual disks of the storage device which can be accessed by the host in each transmission path can be determined. Furthermore, the method and the device allocate a preferred storage node for each virtual disk of the storage device in advance so as to provide basis for the subsequent selection of the data transmission path.
Step S2: when the host computer pre-transmits data to the target virtual disk, determining a target transmission path corresponding to the target virtual disk according to the corresponding relation between the virtual disk and the transmission path.
Specifically, when the host computer pre-transmits data to the target virtual disk (refers to any virtual disk of the storage device), the transmission path (called a target transmission path) corresponding to the target virtual disk is determined according to the corresponding relation between the virtual disk and the transmission path, so that the transmission path used by the host computer to transmit the data to the target virtual disk is selected from the target transmission paths.
Step S3: and determining a first storage node which can be monitored by the host and a second storage node which cannot be monitored by the host from storage nodes corresponding to the target transmission path.
Specifically, considering that if a transmission line used by a host to transmit data to a target virtual disk cannot connect the host and a storage node, the host cannot transmit data to the target virtual disk, and affects reliability of data transmission, according to a monitoring condition of the host on the storage node corresponding to the target transmission path, the first storage node which can be monitored by the host through the target transmission path and the second storage node which cannot be monitored by the host through the target transmission path are determined from the storage nodes corresponding to the target transmission path. It will be appreciated that a storage node can be monitored by a host via a target transmission path, indicating that the target transmission path between the storage node and the host is in a connected state. Therefore, the transmission path used by the host for transmitting data to the target virtual disk can be selected from the target transmission paths corresponding to the first storage node.
In addition, the transmission line that the host computer connects with storage node is connected with controller (controller) in the storage node specifically, if there is port to connect through FC between storage node and the host computer, and is active state, but the host computer can't monitor the storage node, then there is a problem in the controller in the storage node, this application can record the number of times of controller reset (including outage restart, controller crash, etc.) in the storage node.
Step S4: judging whether the first storage node contains a preferred storage node of the target virtual disk or not; if yes, executing step S5; if not, step S6 is performed. Step S5: and selecting a target transmission path corresponding to the preferred storage node of the target virtual disk, and transmitting data to the target virtual disk by the host. Step S6: and selecting a target transmission path corresponding to one storage node in the first storage nodes for the host to transmit data to the target virtual disk.
Specifically, considering that the host transmits data to the target virtual disk, the host preferentially selects to transmit data to the virtual disk space on the preferred storage node of the virtual disk, so the application judges whether the preferred storage node of the target virtual disk is included in the first storage node, and if the preferred storage node of the target virtual disk is included in the first storage node, the target transmission path corresponding to the preferred storage node of the target virtual disk is directly selected for the host to transmit data to the target virtual disk; and if the first storage node does not contain the preferred storage node of the target virtual disk, selecting a target transmission path corresponding to one storage node in the first storage node for the host to transmit data to the target virtual disk.
The invention provides a storage path selection method of storage equipment, which comprises the steps of acquiring transmission paths between a host and storage nodes in the storage equipment in advance, acquiring virtual disks of the storage equipment which can be accessed by the host under each transmission path, and distributing a preferred storage node for each virtual disk of the storage equipment; when a host computer pre-transmits data to a target virtual disk, determining a target transmission path corresponding to the target virtual disk; determining a first storage node which can be monitored by a host and a second storage node which cannot be monitored by the host from storage nodes corresponding to the target transmission path; judging whether the first storage node contains a preferred storage node of the target virtual disk or not; if yes, selecting a target transmission path corresponding to the preferred storage node of the target virtual disk; if not, selecting a target transmission path corresponding to one storage node in the first storage nodes for the host to transmit data to the target virtual disk. Therefore, only the transmission paths of the storage nodes which can be monitored by the host are considered, the situation that the host fails to transmit data to the storage nodes due to the fact that the transmission paths are not communicated can be avoided, and the reliability of data transmission is guaranteed; in addition, the method and the device allocate a preferred storage node for the virtual disk, so that a more appropriate data transmission path can be preferentially selected, and the rapidity of data transmission is ensured.
Based on the above embodiments:
as an alternative embodiment, the storage path selection method of the storage device further includes:
under the path marking of the target virtual disk, marking a target transmission path corresponding to the second storage node as an input state, marking a target transmission path corresponding to a preferred storage node of the target virtual disk contained in the first storage node as an optimized state, and marking a target transmission path corresponding to a non-preferred storage node of the target virtual disk contained in the first storage node as a non-optimized state;
when the host computer transmits data to the target virtual disk again, the path marking state corresponding to the target virtual disk is obtained, so that a target transmission path is selected directly according to the path marking state, and the host computer transmits data to the target virtual disk.
Further, under the path marking of the target virtual disk, marking the target transmission path corresponding to the second storage node as an in access state; if the first storage node contains the preferred storage node of the target virtual disk, marking the target transmission path corresponding to the preferred storage node of the target virtual disk contained in the first storage node as an optimized state; and marking a target transmission path corresponding to a non-optimal storage node of the target virtual disk contained in the first storage node as a non-optimal state.
When the host computer pre-transmits data to the target virtual disk again, the method can directly acquire the path marking state corresponding to the target virtual disk, and if a target transmission path marked as an optimized state exists, the target transmission path marked as the optimized state is directly selected for the host computer to transmit data to the target virtual disk; if the target transmission path marked as the optimized state is not available, one target transmission path is selected from the target transmission paths marked as the non-optimized state, so that the host can transmit data to the target virtual disk, and the transmission efficiency is improved.
As an alternative embodiment, the storage path selection method of the storage device further includes:
when deleting the virtual disk of the storage device or adding the virtual disk, reacquiring the virtual disk of the storage device which can be accessed by the host under each transmission path, and reassigning a preferred storage node for each virtual disk of the storage device at present.
Further, considering that when the virtual disk requirement of the storage device is sometimes changed, the storage device may delete part of the virtual disk or add a new virtual disk, which may cause the change of the virtual disk of the storage device that can be accessed by the host under a certain transmission path between the host and the storage device, when the virtual disk of the storage device is deleted or the virtual disk is added, the virtual disk of the storage device that can be accessed by the host under each transmission path is reacquired, and a preferred storage node is allocated for each current virtual disk of the storage device again, so as to provide an accurate basis for the subsequent selection of the data transmission path.
As an alternative embodiment, the storage path selection method of the storage device further includes:
when deleting the virtual disk of the storage device or adding the virtual disk, updating the virtual disk id list according to the changed virtual disk id;
and returning the updated virtual disk id list to the host, so that the host inquires and displays the detailed information of the corresponding virtual disk according to the returned virtual disk id list.
Further, the method and the device are further provided with a virtual disk id list containing virtual disk ids of the storage device, and the host can inquire detailed information of the corresponding virtual disk according to the virtual disk id list and display the detailed information of the virtual disk for a user to check.
When deleting the virtual disk of the storage device or adding the virtual disk, the application can update the virtual disk id list according to the changed virtual disk id, and return the updated virtual disk id list to the host. The host can search the detailed information of the corresponding virtual disk according to the returned virtual disk id list, find out the detailed information of the changed virtual disk, and update and display the detailed information based on the changed virtual disk.
As an alternative embodiment, the storage path selection method of the storage device further includes:
generating a multi-storage path related log according to storage path selection of the storage device;
and generating a virtual disk change related log according to the virtual disk change of the storage device for reading and viewing by a user.
Further, the present application may also generate a multi-storage path related log according to the storage path selection of the storage device, for example, the multi-storage path related log content may include which transmission paths the host can read the corresponding virtual disk, and the state of the transmission paths from the host to the virtual disk of the storage device. In addition, the present application may also generate a virtual disk change related log according to a virtual disk change of the storage device, for example, the content of the virtual disk change related log may include a change of a virtual disk id list and a change of detailed information of the virtual disk.
As an alternative embodiment, the storage path selection method of the storage device further includes:
generating an error information log according to the storage errors of the storage device;
generating a health information log according to the health state of the storage device;
a firmware version log is generated from firmware versions of physical disks installed in slots in the storage device.
Further, the present application may also generate an error information log based on the storage errors of the storage device, e.g., the error information log content may include extended error information describing the command in which the error occurred. The present application may also generate a health information log based on the health status of the storage device, e.g., the health information log content may include critical warning information and storage device temperature information. The present application may also generate a firmware version log according to the firmware version of the physical disk installed in the slot in the storage device, e.g., the firmware version log content may include firmware version information of the physical disk installed in the slot in the storage device and firmware version upgrade information thereof.
Referring to fig. 2, fig. 2 is a schematic diagram of a storage path selection system of a storage device according to an embodiment of the invention.
The storage path selection system of the storage device includes:
the acquisition module 1 is used for acquiring transmission paths between a host and storage nodes in the storage device in advance, acquiring virtual disks of the storage device which can be accessed by the host under each transmission path, and distributing a preferred storage node for each virtual disk of the storage device;
the determining module 2 is used for determining a target transmission path corresponding to the target virtual disk according to the corresponding relation between the virtual disk and the transmission path when the host computer pre-transmits data to the target virtual disk;
a distinguishing module 3, configured to determine, from storage nodes corresponding to the target transmission path, a first storage node that can be monitored by the host and a second storage node that cannot be monitored by the host;
the judging module 4 is used for judging whether the first storage node contains a preferred storage node of the target virtual disk or not; if yes, executing a preference module 5; if not, executing an optional module 6;
the optimization module 5 is used for selecting a target transmission path corresponding to an optimization storage node of the target virtual disk, and transmitting data to the target virtual disk by the host;
and the optional module 6 is used for selecting a target transmission path corresponding to one storage node from the first storage nodes, and transmitting data to the target virtual disk by the host.
As an alternative embodiment, the storage path selection system of the storage device further includes:
the marking module is used for marking a target transmission path corresponding to the second storage node as an inaccessable state, marking a target transmission path corresponding to a preferred storage node of the target virtual disk contained in the first storage node as an optimized state and marking a target transmission path corresponding to a non-preferred storage node of the target virtual disk contained in the first storage node as a non-optimized state under the path marking of the target virtual disk;
the selection module is used for acquiring a path marking state corresponding to the target virtual disk when the host computer pre-transmits data to the target virtual disk again, so as to directly select a target transmission path according to the path marking state, and provide the host computer to transmit data to the target virtual disk.
As an alternative embodiment, the acquisition module 1 is further configured to:
when deleting the virtual disk of the storage device or adding the virtual disk, reacquiring the virtual disk of the storage device which can be accessed by the host under each transmission path, and reassigning a preferred storage node for each virtual disk of the storage device at present.
The description of the storage path selection system provided in the present application refers to the embodiment of the storage path selection method, and is not repeated herein.
The application also provides a storage path selecting device of the storage device, which comprises the following components:
a memory for storing a computer program;
a processor for implementing the steps of the storage path selection method of any one of the storage devices described above when executing the computer program.
The description of the storage path selecting device provided in the present application refers to the embodiment of the storage path selecting method, and is not repeated herein.
It should also be noted that in this specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (8)
1. A storage path selection method of a storage device, comprising:
the method comprises the steps of obtaining transmission paths between a host and storage nodes in storage equipment in advance, obtaining virtual disks of the storage equipment which can be accessed by the host under each transmission path, and distributing a preferred storage node for each virtual disk of the storage equipment;
when the host computer pre-transmits data to a target virtual disk, determining a target transmission path corresponding to the target virtual disk according to the corresponding relation between the virtual disk and the transmission path;
determining a first storage node which can be monitored by a host and a second storage node which cannot be monitored by the host from storage nodes corresponding to the target transmission path;
judging whether the first storage node contains a preferred storage node of the target virtual disk or not;
if yes, selecting a target transmission path corresponding to the preferred storage node of the target virtual disk, and enabling the host to transmit data to the target virtual disk;
if not, selecting a target transmission path corresponding to one storage node from the first storage nodes for the host to transmit data to a target virtual disk;
wherein the target transmission path between the first storage node and the host is in a connected state;
the storage path selection method of the storage device further comprises the following steps:
under the path marking of the target virtual disk, marking a target transmission path corresponding to the second storage node as an inprocessable state, marking a target transmission path corresponding to a preferred storage node of the target virtual disk contained in the first storage node as an optimized state, and marking a target transmission path corresponding to a non-preferred storage node of the target virtual disk contained in the first storage node as a non-optimized state;
when the host computer transmits data to the target virtual disk again, acquiring a path marking state corresponding to the target virtual disk, and directly selecting a target transmission path according to the path marking state to transmit the data to the target virtual disk by the host computer.
2. The storage path selection method of a storage device according to claim 1, wherein the storage path selection method of the storage device further comprises:
when deleting the virtual disk of the storage device or adding the virtual disk, re-acquiring the virtual disk of the storage device which can be accessed by the host under each transmission path, and re-distributing a preferred storage node for each current virtual disk of the storage device.
3. The storage path selection method of a storage device according to claim 1, wherein the storage path selection method of the storage device further comprises:
when deleting the virtual disk of the storage device or adding the virtual disk, updating a virtual disk id list according to the changed virtual disk id;
and returning the updated virtual disk id list to the host, so that the host inquires and displays the detailed information of the corresponding virtual disk according to the returned virtual disk id list.
4. The storage path selection method of a storage device according to claim 3, wherein the storage path selection method of the storage device further comprises:
generating a multi-storage path related log according to the storage path selection of the storage device;
and generating a virtual disk change related log according to the virtual disk change of the storage equipment, and reading and viewing by a user.
5. The storage path selection method of a storage device according to claim 4, wherein the storage path selection method of the storage device further comprises:
generating an error information log according to the storage errors of the storage device;
generating a health information log according to the health state of the storage equipment;
and generating a firmware version log according to the firmware version of the physical disk installed in the slot in the storage device.
6. A storage path selection system for a storage device, comprising:
the system comprises an acquisition module, a storage device and a storage device, wherein the acquisition module is used for acquiring transmission paths between a host and storage nodes in the storage device in advance, acquiring virtual disks of the storage device which can be accessed by the host under each transmission path, and distributing a preferred storage node for each virtual disk of the storage device;
the determining module is used for determining a target transmission path corresponding to the target virtual disk according to the corresponding relation between the virtual disk and the transmission path when the host computer pre-transmits data to the target virtual disk;
the distinguishing module is used for determining a first storage node which can be monitored by the host and a second storage node which cannot be monitored by the host from storage nodes corresponding to the target transmission path;
the judging module is used for judging whether the first storage node contains a preferred storage node of the target virtual disk or not; if yes, executing a preferred module; if not, executing an optional module;
the optimization module is used for selecting a target transmission path corresponding to the optimized storage node of the target virtual disk and transmitting data to the target virtual disk by the host;
the optional module is used for selecting a target transmission path corresponding to one storage node from the first storage nodes and transmitting data to a target virtual disk by a host;
wherein the target transmission path between the first storage node and the host is in a connected state;
wherein, the storage path selection system of the storage device further comprises:
the marking module is used for marking a target transmission path corresponding to the second storage node as an inprocessable state under the path marking of the target virtual disk, marking a target transmission path corresponding to a preferred storage node of the target virtual disk contained in the first storage node as an optimized state, and marking a target transmission path corresponding to a non-preferred storage node of the target virtual disk contained in the first storage node as a non-optimized state;
and the selection module is used for acquiring a path marking state corresponding to the target virtual disk when the host computer transmits data to the target virtual disk again in advance, so as to directly select a target transmission path according to the path marking state, and provide the host computer with data transmission to the target virtual disk.
7. The storage path selection system of a storage device of claim 6, wherein the acquisition module is further to:
when deleting the virtual disk of the storage device or adding the virtual disk, re-acquiring the virtual disk of the storage device which can be accessed by the host under each transmission path, and re-distributing a preferred storage node for each current virtual disk of the storage device.
8. A storage path selection apparatus of a storage device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the storage path selection method of the storage device of any of claims 1-5 when executing the computer program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011543592.3A CN112684978B (en) | 2020-12-23 | 2020-12-23 | Storage path selection method, system and device of storage device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011543592.3A CN112684978B (en) | 2020-12-23 | 2020-12-23 | Storage path selection method, system and device of storage device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112684978A CN112684978A (en) | 2021-04-20 |
CN112684978B true CN112684978B (en) | 2024-02-13 |
Family
ID=75451343
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011543592.3A Active CN112684978B (en) | 2020-12-23 | 2020-12-23 | Storage path selection method, system and device of storage device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112684978B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6145028A (en) * | 1997-12-11 | 2000-11-07 | Ncr Corporation | Enhanced multi-pathing to an array of storage devices |
CN101059750A (en) * | 2006-04-20 | 2007-10-24 | 株式会社日立制作所 | Storage system, path management method and path management device |
CN103516755A (en) * | 2012-06-27 | 2014-01-15 | 华为技术有限公司 | Virtual storage method and equipment thereof |
CN107948229A (en) * | 2016-10-13 | 2018-04-20 | 腾讯科技(深圳)有限公司 | The method, apparatus and system of distributed storage |
CN110515564A (en) * | 2019-08-30 | 2019-11-29 | 苏州浪潮智能科技有限公司 | A kind of determination method and apparatus in the path input/output I/O |
CN110914796A (en) * | 2018-07-17 | 2020-03-24 | 华为技术有限公司 | Method and equipment for processing I/O (input/output) request |
CN111399761A (en) * | 2019-11-19 | 2020-07-10 | 杭州海康威视系统技术有限公司 | Storage resource allocation method, device and equipment and storage medium |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3848587B2 (en) * | 2002-03-15 | 2006-11-22 | 株式会社日立製作所 | Information processing apparatus and communication path selection method |
-
2020
- 2020-12-23 CN CN202011543592.3A patent/CN112684978B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6145028A (en) * | 1997-12-11 | 2000-11-07 | Ncr Corporation | Enhanced multi-pathing to an array of storage devices |
CN101059750A (en) * | 2006-04-20 | 2007-10-24 | 株式会社日立制作所 | Storage system, path management method and path management device |
CN103516755A (en) * | 2012-06-27 | 2014-01-15 | 华为技术有限公司 | Virtual storage method and equipment thereof |
CN107948229A (en) * | 2016-10-13 | 2018-04-20 | 腾讯科技(深圳)有限公司 | The method, apparatus and system of distributed storage |
CN110914796A (en) * | 2018-07-17 | 2020-03-24 | 华为技术有限公司 | Method and equipment for processing I/O (input/output) request |
CN110515564A (en) * | 2019-08-30 | 2019-11-29 | 苏州浪潮智能科技有限公司 | A kind of determination method and apparatus in the path input/output I/O |
CN111399761A (en) * | 2019-11-19 | 2020-07-10 | 杭州海康威视系统技术有限公司 | Storage resource allocation method, device and equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN112684978A (en) | 2021-04-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR100795929B1 (en) | Method and system for transmitting defined-query to database | |
US10216514B2 (en) | Identification of a component for upgrade | |
EP2477111B1 (en) | Computer system and program restoring method thereof | |
US20080294764A1 (en) | Storage medium bearing hba information provision program, hba information provision method and hba information provision apparatus | |
US8380757B1 (en) | Techniques for providing a consolidated system configuration view using database change tracking and configuration files | |
US8745342B2 (en) | Computer system for controlling backups using wide area network | |
US7437505B2 (en) | Logical to physical device topological location mappings | |
CN107526533B (en) | Storage management method and equipment | |
CN115562588A (en) | Virtual disk array configuration method and device, computer equipment and storage medium | |
CN112684978B (en) | Storage path selection method, system and device of storage device | |
US8185500B2 (en) | Information processing apparatus, and operation method of storage system | |
US7861031B2 (en) | Access control management | |
US9244621B2 (en) | Global data establishment for storage arrays controlled by a plurality of nodes | |
CN111522626A (en) | Virtual machine list generation method and device and electronic equipment | |
JP4613598B2 (en) | Disk system | |
US20060085673A1 (en) | Computer system, storage apparatus and storage management method | |
US20120166387A1 (en) | Member management system and member management apparatus | |
CN109508140B (en) | Storage resource management method and device, electronic equipment and system | |
US20090234993A1 (en) | Information processing apparatus, host bus adaptor and control method | |
JP5001703B2 (en) | System design verification device | |
US9535977B1 (en) | Object building for an aggregate object class request | |
US8024514B2 (en) | Access control management | |
US8856485B2 (en) | Storage system and storage control method | |
CN112561421A (en) | Multi-warehouse logistics source-finding distribution method and device, computer equipment and storage medium | |
US11487440B1 (en) | Evaluation system for evaluating resource operation of information system by user |
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 |