WO2016082078A1 - 路径管理的系统、装置和方法 - Google Patents
路径管理的系统、装置和方法 Download PDFInfo
- Publication number
- WO2016082078A1 WO2016082078A1 PCT/CN2014/092039 CN2014092039W WO2016082078A1 WO 2016082078 A1 WO2016082078 A1 WO 2016082078A1 CN 2014092039 W CN2014092039 W CN 2014092039W WO 2016082078 A1 WO2016082078 A1 WO 2016082078A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- path
- server
- controller
- initiator
- target
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 76
- 239000003999 initiator Substances 0.000 claims abstract description 347
- 238000007726 management method Methods 0.000 claims description 186
- 238000001514 detection method Methods 0.000 claims description 35
- 230000004044 response Effects 0.000 claims description 30
- 230000001960 triggered effect Effects 0.000 claims description 18
- 230000000737 periodic effect Effects 0.000 claims description 14
- 238000004891 communication Methods 0.000 claims description 7
- 230000000977 initiatory effect Effects 0.000 claims description 6
- 230000005540 biological transmission Effects 0.000 abstract description 8
- 230000007257 malfunction Effects 0.000 abstract 1
- 230000008569 process Effects 0.000 description 25
- 230000006870 function Effects 0.000 description 13
- 238000010586 diagram Methods 0.000 description 11
- 238000012544 monitoring process Methods 0.000 description 5
- 238000003491 array Methods 0.000 description 3
- 230000007423 decrease Effects 0.000 description 3
- HRANPRDGABOKNQ-ORGXEYTDSA-N (1r,3r,3as,3br,7ar,8as,8bs,8cs,10as)-1-acetyl-5-chloro-3-hydroxy-8b,10a-dimethyl-7-oxo-1,2,3,3a,3b,7,7a,8,8a,8b,8c,9,10,10a-tetradecahydrocyclopenta[a]cyclopropa[g]phenanthren-1-yl acetate Chemical compound C1=C(Cl)C2=CC(=O)[C@@H]3C[C@@H]3[C@]2(C)[C@@H]2[C@@H]1[C@@H]1[C@H](O)C[C@@](C(C)=O)(OC(=O)C)[C@@]1(C)CC2 HRANPRDGABOKNQ-ORGXEYTDSA-N 0.000 description 2
- 238000007689 inspection Methods 0.000 description 2
- 230000015556 catabolic process Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000006731 degradation reaction Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 239000011159 matrix material Substances 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F12/00—Accessing, addressing or allocating within memory systems or architectures
Definitions
- the present invention relates to the field of computers, and in particular, to a system, apparatus and method for path management.
- the size of the storage array in the storage device is small, the number of storage controllers is small, generally 1-4, and the hardware and configuration changes after the storage device is installed are less, so the traditional storage device Access paths are generally statically configured.
- an embodiment of the present invention provides a path management system, including a server and a storage device, where the storage device includes a scheduler and a plurality of controllers, and the server establishes at least one session with the storage device.
- the connection node, the start node of the corresponding path of each session connection is the initiator of the server, and the target node of the corresponding path of each session connection is a controller in the storage device, and the storage device stores the already The correspondence between the starting node and the target node of the established session connection,
- the server is configured to trigger a path increase operation when determining that a path between the server and the storage device needs to be increased;
- the scheduler is configured to receive a path increase request triggered by the server, where the path increase request carries an identifier of the initiator of the server, according to the identifier of the initiator and the stored session that is already established. Corresponding relationship between the starting node of the connection and the target node, determining a target controller of the new path from the plurality of controllers, and transmitting the determined identifier of the target controller to the server, where No session connection is established between the target controller and the initiator;
- the server is further configured to establish a path with the target controller according to the identifier of the target controller.
- the server side stores multipath information, where the multipath information includes information for identifying the path and a path status.
- the scheduler is further configured to determine, from the plurality of target controllers, at least one target controller that meets the following conditions:
- the controller has the fewest number of initiators connected.
- the server is further configured to determine, according to the multipath information, a current available path number, when the available path strip When the number is less than the preset threshold, it is determined that the path between the server and the storage device needs to be increased.
- the server is further configured to target the available node by using any available path Sending a status query instruction, so that the target node of the any available path sends a status query message to the scheduler, where the status query message carries an identifier of a controller that has a session connection with the initiator of the server;
- the scheduler is further configured to receive the status query message, obtain status information of the controller that has a session connection with the initiator of the server, and acquire the obtained initiator of the server Status information of a controller having a session connection is returned to the server through a target node of the any available path;
- the server is further configured to delete, according to the received state information of the controller that has a session connection with the initiator of the server, a path corresponding to the unavailable controller in the recorded multipath information, where The information identifying the path includes the controller identifier.
- the server is further configured to send a periodic detection instruction to a controller that has a session connection with itself. And receiving the returned detection response message, determining an unavailable path according to the detection response message, and updating a path state corresponding to the unavailable path in the multipath information.
- the server is specifically configured to send a path addition instruction to a target node of any available path to trigger The target node of the any available path sends the path increase request to the scheduler.
- the server is specifically configured to trigger the path increase request, and the The scheduler sends the path increase request to receive an identifier of the target controller returned by the scheduler through the private switch.
- the server is further configured to send a status query request to the scheduler by using a dedicated switch, where The status query request carries an identifier of a controller that has a session connection with the initiator of the server;
- the scheduler is further configured to receive the status query message, obtain state information of the controller that has a session connection with the initiator of the server, and control the session connection with the initiator of the server.
- the status information of the device is returned to the server by the private switch, so that the server deletes the path corresponding to the unavailable controller in the recorded multipath information, wherein the information of the identifier path includes a controller identifier.
- the multipath information is stored in a configuration file on a server side.
- an embodiment of the present invention provides a server, including a multipath management module and an initiator.
- the initiator is configured to establish at least one session connection with the storage device, where the starting node of the path corresponding to each session connection is an initiator of the server, and the target node of the corresponding path of each session connection is a controller in a storage device;
- a multi-path management module configured to trigger a path increase operation when determining that a path between the server and the storage device needs to be increased, so that the scheduler of the storage device is based on the identifier of the initiator and the stored Corresponding relationship between the starting node of the established session connection and the target node, determining a target controller of the new path from the plurality of controllers of the storage device;
- the initiator is further configured to establish a path between the target controllers according to an identifier of the target controller sent by the storage device.
- the server side stores multipath information, where the multipath information includes information for identifying the path and a path status.
- the multi-path management module is further configured to determine, according to the multi-path information, a current number of available paths, when the available When the number of path segments is less than the preset threshold, it is determined that the path between the server and the storage device needs to be increased.
- the initiator is further configured to send to a controller that has a session connection with itself And periodically detecting the instruction, receiving the returned detection response message, determining an unavailable path according to the detection response message, and updating a path state corresponding to the unavailable path in the multipath information.
- the multi-path management module is specifically configured to send, to the initiator, a control instruction for initiating a path addition operation
- the initiator is specifically configured to send a path addition instruction to a target node of any available path according to the control instruction, where the path increase instruction carries an identifier of the initiator.
- the initiator is further configured to receive a controller status request message sent by the multi-path management module, and send a status query instruction to the target node of the any available path by using any available path, where the status query command carries The identifier of the controller in which the initiator has a session connection;
- the initiator is further configured to receive status information of a controller that is connected to the initiator of the server by the scheduler through the any available path, and delete the unavailable control in the multipath information of the record.
- the multi-path management module is configured to send a path increase request to a scheduler of the storage device by using a private switch, where the path increase request carries an identifier of the initiator;
- the multi-path management module is further configured to receive an identifier of the target controller returned by the scheduler, and notify the initiator to establish a new path with the target controller.
- the multi-path management module is further configured to send, by using a private switch, a status query message to a scheduler of the storage device, where the status query message carries an identifier of a controller that has a session connection with the initiator;
- the multi-path management module is further configured to receive status information of a controller that is returned by the scheduler and has a session connection with the initiator, and delete a path corresponding to a controller that is not available in the recorded multi-path information, where The information identifying the path includes a controller identifier.
- the multipath information is stored in a configuration file on a server side.
- an embodiment of the present invention provides a storage device, where the storage device includes multiple controllers and a scheduler.
- At least one of the plurality of controllers is configured to establish a session connection with the server, where the starting node of the corresponding path of the session connection is a server initiator, and the session connection corresponds to The target node of the path is a controller in the storage device, where the storage device stores a correspondence between a start node of the established session connection and the target node;
- the scheduler is configured to receive a path increase request triggered by the server, where the path increase request carries an identifier of the initiator of the server, according to the identifier of the initiator and the stored session that is already established. Corresponding relationship between the starting node of the connection and the target node, determining a target controller of the new path from the plurality of controllers, and transmitting the determined identifier of the target controller to the server, where No session connection is established between the target controller and the initiator;
- the target controller is configured to establish a new path with an initiator of the server.
- the scheduler is further configured to determine, from the plurality of target controllers, at least one target controller that meets the following conditions:
- the controller has the fewest number of initiators connected.
- the scheduler is further configured to receive a status query message triggered by the server, where the status query message carries an identifier of a controller that has a session connection with an initiator of the server;
- the scheduler is further configured to acquire, according to the identifier of the controller that has a session connection with the initiator of the server, state information of a controller that has a session connection with the initiator of the server, and obtain the obtained state information. Return to the server.
- the scheduler is specifically configured to receive the status query message sent by the server through a target node of any available path, and pass status information of a controller that has a session connection with the initiator of the server through the any available path.
- the target node is returned to the server; or,
- the scheduler is configured to receive the status query message sent by the multi-path management module of the server by using a private switch, and pass status information of a controller that has a session connection with the initiator of the server through the private switch. Return to the server.
- an embodiment of the present invention provides a path management method, which is applied to a path management system, where the path management system includes a server and a storage device, where the storage device includes a scheduler and multiple controllers.
- the server establishes at least one session connection with the storage device, and the starting node of the path corresponding to each session connection is an initiator of the server, and the target node of the corresponding path of each session connection is a controller in the storage device, where the storage device stores a correspondence between a start node of the established session connection and the target node;
- the server triggers a path increase operation when it is determined that a path between the server and the storage device needs to be increased;
- the scheduler receives a path increase request triggered by the server, where the path increase request carries an identifier of the initiator of the server, according to the identifier of the initiator and the stored session connection that is established. Corresponding relationship between the start node and the target node, determining a target controller of the new path from the plurality of controllers, and transmitting the determined identifier of the target controller to the server, wherein the target controller No session connection is established with the initiator;
- the server establishes a path with the target controller based on the identity of the target controller.
- the server side stores multipath information, where the multipath information includes information for identifying the path and a path state.
- the method further includes:
- the scheduler determines at least one target controller from the plurality of target controllers that meets the following conditions:
- the controller has the fewest number of initiators connected.
- the method further includes:
- the method further includes:
- the sending status query instruction to the target node of the any available path, so that the target node of the available path sends a status query message to the scheduler, where the status query message carries An identifier of a controller having a session connection with the initiator of the server;
- the server deletes, according to the received state information of the controller that is connected to the initiator of the server, a path corresponding to the unavailable controller in the recorded multipath information, where the identifier path is
- the information includes the controller identification.
- the method further includes:
- the server sends a periodic detection instruction to the controller that has a session connection with the host, receives the returned detection response message, determines an unavailable path according to the detection response message, and updates a path state corresponding to the unavailable path in the multipath information. .
- the trigger path increasing operation includes:
- the server sends a path addition instruction to a target node of any available path to trigger a target node of the any available path to send the path increase request to the scheduler.
- the trigger path increasing operation includes:
- the server sends the path increase request to the scheduler through a private switch.
- the method further includes:
- the server sends a status query request to the scheduler through a dedicated switch, where the status query request carries an identifier of a controller that has a session connection with an initiator of the server;
- the embodiment of the present invention further provides a path management method, which is applied to a path management system, where the path management system includes a server and a storage device, where the storage device includes multiple controllers and a scheduler, Methods include:
- the scheduler receives a path increase request triggered by the server, where the path increase request carries an identifier of the initiator of the server, according to the identifier of the initiator and the stored session connection that is established. Corresponding relationship between the start node and the target node, determining a target controller of the new path from the plurality of controllers, and transmitting the determined identifier of the target controller to the server, wherein the target controller No session connection is established with the initiator;
- the target controller establishes a new path with the initiator of the server.
- the method further includes:
- the scheduler determines at least one target controller from the plurality of target controllers that meets the following conditions: the number of initiators connected to the controller is the least.
- the method further includes:
- At least one of the plurality of controllers receives a status query finger sent by the server And sending, to the scheduler, a status query message, where the status query message carries an identifier of a controller that has a session connection with an initiator of the server;
- the embodiment of the present invention further provides a path management method, which is applied to a path management system, where the path management system includes a server and a storage device, where the server includes a multipath management module and an initiator, and the storage
- the device includes a scheduler and a plurality of controllers, wherein at least one session connection exists between the initiator of the server and the plurality of controllers of the storage device, and the start node of the path corresponding to each session connection is the An initiator of the server, where the target node of the corresponding path of each session connection is a controller in the storage device, where the storage device stores a correspondence between a start node and a target node of the established session connection.
- the initiator receives a control instruction sent by the multi-path management module when determining that a path between the server and the storage device needs to be increased, and the control instruction is used to notify the initiator to perform a path increase operation;
- the initiator sends a path addition instruction to the target node of the any available path through any available path, where the path addition instruction carries an identifier of the initiator;
- the scheduler receives the path allocation request sent by the target node of the any available path according to the path increase instruction, where the path allocation request carries the identifier of the initiator;
- the server establishes a path with the target controller based on the identity of the target controller.
- an embodiment of the present invention further provides a path management apparatus, where the apparatus includes a processor, a memory, a bus, and a communication interface;
- the memory is configured to store a computer execution instruction
- the processor is coupled to the memory via the bus, and when the path management device is running, the processor executes the computer execution instruction stored by the memory,
- the apparatus for causing the path management to perform the path management method according to any one of the fourth to sixth aspects.
- the embodiment of the present invention further provides a computer readable medium, including a computer executing instruction, when the processor of the computer executes the computer to execute an instruction, where the computer performs any of the fourth to sixth aspects.
- a computer readable medium including a computer executing instruction, when the processor of the computer executes the computer to execute an instruction, where the computer performs any of the fourth to sixth aspects.
- An embodiment of the present invention provides a system, apparatus, and method for path management.
- the path management system includes a server and a storage device, and at least one session connection exists between the initiator of the server and the multiple controllers of the storage device, where the server is When it is determined that the path between the server and the storage device needs to be increased, a path increase operation is triggered, and the scheduler of the storage device is configured according to the identifier of the initiator and the stored start node and target of the established session connection. Corresponding relationship between the nodes, determining a target controller of the new path from the plurality of controllers, thereby establishing a new path between the server and the storage device.
- the server can automatically request the target controller and add the path to the storage device target controller to the existing path, realizing the dynamic management function of the path, and avoiding the network caused by the path number being reduced due to the path failure. Problems such as reduced transmission quality.
- FIG. 1 is a schematic structural diagram of a system for path management of scenario 1 according to an embodiment of the present invention
- FIG. 2 is a schematic diagram of a path of a server accessing a storage device according to an embodiment of the present invention
- FIG. 3 is a schematic diagram of another path of a server accessing a storage device according to an embodiment of the present invention.
- FIG. 4 is a schematic flowchart of a method for path management according to an embodiment of the present invention.
- FIG. 5 is a schematic flowchart of a path management method according to a scenario provided by Embodiment 1 of the present invention.
- FIG. 6 is a schematic flowchart of another path management method according to a scenario provided by Embodiment 2 of the present invention.
- FIG. 7 is a schematic flowchart of another path management method according to a scenario provided by Embodiment 3 of the present invention.
- FIG. 8 is a schematic structural diagram of a system of scenario 2 according to an embodiment of the present disclosure.
- FIG. 9 is a schematic flowchart of a path management method in scenario 2 according to an embodiment of the present disclosure.
- FIG. 10 is a schematic flowchart diagram of another path management method in scenario 2 according to an embodiment of the present disclosure.
- FIG. 11 is a schematic flowchart of another path management method in scenario 2 according to an embodiment of the present invention.
- FIG. 12 is a schematic flowchart diagram of another path management method according to an embodiment of the present invention.
- FIG. 13 is a schematic flowchart diagram of another path management method according to an embodiment of the present invention.
- FIG. 14 is a schematic diagram of a hardware connection structure of a path management apparatus according to an embodiment of the present invention.
- the multipath information of the server connection controller is preset on the server. Due to the lack of a mechanism for dynamically adjusting the path, if a path failure is removed, the server can use one less path and cannot automatically replenish another path. A path available. In extreme cases, most of the paths may be removed due to failures, resulting in functions such as load balancing and automatic failover of paths.
- An embodiment of the present invention provides a path management system, including a server and a storage device, where the storage device includes a scheduler and a plurality of controllers, and at least one session connection is established between the server and the storage device to establish The session connection forms a path between the server and the storage device, and the start node of the corresponding path of each session connection is the initiator of the server, and each session connection
- the target node connected to the corresponding path is a controller in the storage device.
- the storage device stores a correspondence between a start node of the established session connection and the target node.
- the server may initiate a path addition operation, that is, when it is determined that the path between the server and the storage device needs to be increased, the path increase operation is triggered;
- the scheduler of the storage device receives a path increase request triggered by the server, where the path increase request carries an identifier of the initiator of the server, and the scheduler selects, for the server, that there is no session connection with the server.
- the controller acts as a target controller, establishing a new path between the server and the target controller. Specifically, the scheduler determines a target of the new path from the multiple controllers according to the identifier of the initiator and the stored correspondence between the start node and the target node of the established session connection.
- the controller sends the determined identifier of the target controller to the server, where a session connection is not established between the target controller and the initiator; the server is established according to the identifier of the target controller The path to the target controller.
- the server side finds that a path between the storage device and the storage device needs to be newly added, the path creation operation is initiated, and the target controller allocated by the scheduler of the storage device is allocated to the server, and the new controller is established between the target controllers.
- the path is completed, thereby completing the path increase process, and avoiding problems such as a decrease in the network transmission quality caused by a decrease in the number of paths due to the path failure in the prior art.
- the server side stores multipath information, which is used to record path information corresponding to each session connection that has been established between the server and the storage device, and the stored multipath information includes information for identifying the path and a path state.
- the information for identifying the path includes the identifier of the initiator and the identifier of the controller.
- the information used to identify the path may further include the identifier of the network card.
- the multipath information may be stored in a configuration file on the server side. It should be noted that when the path between the server and the storage device changes, the server updates the stored multipath information.
- the server side initiates a path addition operation when it is determined that a path needs to be added.
- the server may determine the number of available paths in the path that has been established with the storage device according to the multi-path information, and initiate the path increase operation when the number of available paths is less than a preset threshold;
- the server may also send a periodic detection instruction to the controller that has a session connection with itself, and receive the returned Detecting a response message, determining that there is an unavailable path according to the detection response message, thereby initiating a path addition operation, and updating a path status corresponding to the unavailable path in the multipath information.
- the server may initiate the path adding operation in multiple manners, for example:
- Manner 1 When the multipath management module of the server determines that the number of available paths is too small or there is an unavailable path, the controller sends a control command to the initiator to notify the initiator to initiate a path addition instruction to the storage device.
- the initiator when receiving the control instruction, selects an arbitrary available path as a transmission channel for transmitting the path increase instruction, and when the controller of the any available path receives the path increase instruction, The identifier of the initiator carried in the path addition instruction is sent to the scheduler, and the scheduler allocates a target controller of the new path to the server;
- Manner 2 When the multipath management module of the server determines that the number of available paths is too small or there is an unavailable path, if the multipath management module of the server is directly connected to the scheduler of the storage device through the outband management network, the server does not need to go through the server. The initiator, but the multi-path management module sends a path increase request to the scheduler through a private switch of the outband management network, and carries the initiator identifier of the server in the path increase request, requesting the schedule The target controller is a new path to the server.
- the storage device stores a correspondence between the start node and the target node of the established session connection, and the scheduler allocates an available target controller to the server requesting the new path.
- the The scheduler determines the controller with the least number of connected initiators as the target controller after filtering based on the principle of load balancing.
- the corresponding relationship between the starting node and the target node stored in the storage device may adopt various specific implementation manners, for example, the corresponding relationship is recorded in the storage device in the form of a list, that is, A controller list is recorded in the storage device, the controller list being used to indicate a correspondence between a start node and a target node stored in the storage device.
- the controller list may include a controller identifier and an initiator identifier, and may further include a controller state.
- FIG. 1 is a schematic structural diagram of a system for path management of scenario 1 according to an embodiment of the present invention.
- the server 11 accesses the storage device 12 through a switch 13 in the network, the path management system including Server 11, storage device 12, and a plurality of switches 13 in the network.
- the server 11 includes a multipath management module (also referred to as a multipath module) 111 and an initiator 113 (also referred to as an initiator).
- the storage device 12 may be a RAID (Redundant Arrays of independent disks).
- the storage device 12 includes a plurality of controllers 121, a scheduler 122, and a plurality of storage media, for example, a LUN (Logical Unit Number), which is not shown in the figure.
- LUN Logical Unit Number
- the server 11 is connected to the switch 13 in the network through an interface of a network bus (HBA, Host Bus Adapter), and is further connected to the controller 121 in the storage device 12. Specifically, the initiator 113 of the server 11 passes the HBA and the network. The switch 13 in the middle is connected.
- HBA Host Bus Adapter
- the initiator 113 of the server 11 and the controller 121 of the storage device 12 establish a session connection via the network card of the server, and the start node of the path corresponding to the session connection is the initiator 113, the session
- the target node that connects the corresponding path is the controller 121.
- the initiator 113 of the server 11 can be connected to each controller 121 of the storage device 12 via multiple paths, the network card identifier of the server 11 and the controller 121.
- the identification identifies a path together.
- the server can access the storage device through four paths.
- the server can access the storage device through eight paths.
- the network card identifier of the server may be an IP address and a port of the network card, and the identifier of the controller includes a controller IQN (Internet Small Computer System Interface Qualified Name), an IP address, and a port.
- controller IQN Internet Small Computer System Interface Qualified Name
- a scheduler 122 is configured to manage the controller 121 and the storage resources in the storage device 12. Further, the embodiments of the present invention extend the functions of the scheduler 122 to provide a path assignment function and a controller. State management function;
- controller 121 configured to provide storage management and input/output control of the storage device
- the initiator 113 may specifically be an ISCSI (Internet Small Computer System Interface) initiator for providing a function of connecting and managing with the controller 121.
- ISCSI Internet Small Computer System Interface
- the multi-path management module 111 is configured to monitor the initiator and issue an operation instruction to the initiator.
- the multipath management module can be independent hardware or software in the server.
- the multi-path management module 111 can implement a control function for the initiator by calling a function interface provided by the initiator.
- the multi-path management module may also control the initiator by using a control message.
- the initiator 113 is configured to receive and execute an operation instruction issued by the multipath management module 111.
- the foregoing embodiment provides a basic description of the system for the path management corresponding to the scenario.
- the embodiment of the present invention provides the following path management method.
- the path management system includes a server and a storage device, and the storage device includes a schedule. And multiple controllers,
- Step 401 The server establishes at least one session connection with the storage device, where a starting node of a path corresponding to each session connection is an initiator of the server, and each session connects to a target of a corresponding path.
- the node is a controller in the storage device, where the storage device stores a correspondence between a start node of the established session connection and the target node;
- Step 402 When it is determined that a path between the server and the storage device needs to be increased, the server triggers a path increase operation.
- Step 403 The scheduler receives a path increase request triggered by the server, where the path increase request carries an identifier of the initiator of the server, according to the identifier of the initiator and the stored session. Corresponding relationship between the starting node of the connection and the target node, determining a target controller of the new path from the plurality of controllers, and transmitting the determined identifier of the target controller to the server, where No session connection is established between the target controller and the initiator;
- Step 404 The server establishes a path with the target controller according to the identifier of the target controller.
- An embodiment of the present invention provides a method for managing a path of a path management system, where the path management system includes a server and a storage device, and at least one of a server and a plurality of controllers of the storage device a session connection, the server triggering a path increase operation when determining that a path between the server and the storage device needs to be increased, and the scheduler of the storage device is established according to the identifier of the initiator and the stored Corresponding relationship between the starting node of the session connection and the target node, determining a target controller of the new path from the plurality of controllers, thereby establishing a new path between the server and the storage device.
- the server can automatically request the target controller and add the path to the storage device target controller to the existing path, realizing the dynamic management function of the path, and avoiding the network caused by the path number being reduced due to the path failure. Problems such as reduced transmission quality.
- the storage device includes a plurality of controllers, that is, the controller 1, the controller 2, the controller 3, and the like, wherein the controller 1 and the controller 3 are connected to the initiator on the server side.
- Step 501 The multipath management module configures multipath information on the server side, where the multipath information includes information identifying the path and a path state.
- the information for identifying the path includes an identifier of the initiator and an identifier of the controller.
- the information used to identify the path may further include an identifier of the network card.
- the initiator identifier includes an IQN, an IP address, and a port of the initiator
- the controller identifier includes a controller IQN, an IP address, and a port
- the network card identifier includes a network card IP address and a port.
- the server side may pre-configure a preset threshold of the number of available paths that meet the network performance requirement. When the number of available paths is less than the preset threshold, the network transmission performance cannot meet the performance requirement.
- the multipath information may further include a path number N.
- the number of paths N is used to indicate the number of paths that the storage device is connected to the initiator.
- the server side may further include a first memory for storing a configuration file in which the multipath information is recorded.
- Step 502 The scheduler configures a controller list, where the controller list is used to indicate a correspondence between the configured controller and the server.
- the controller list includes: an initiator identifier, a controller identifier, And the path status. Further, the controller list may further include a LUN identifier, which is used to indicate a LUN accessible by the server.
- the storage device side may further include a second memory for recording the controller list on the storage device side.
- Step 503 Establish a session connection between the initiator and the controller, forming multiple paths between the initiator and the controller.
- the starting node of the path corresponding to the established session connection is the initiator of the server
- the target node is the controller of the storage device
- the controller list stored in the storage device is the starting node and the target node.
- the initiator establishes a session connection with the controller 1 and the controller 3 respectively, and the specific session connection establishment may adopt a common manner in the prior art, which is not limited by the embodiment of the present invention. .
- Phase 2 Periodic inspection process. After establishing a path connection between the initiator of the server and the multiple controllers of the storage device, the multipath management module controls the initiator to periodically detect the established path, including:
- Step 504 The multipath management module sends a detection start instruction to the initiator, to notify the initiator to initiate periodic detection on the controller connected to the initiator.
- Step 505 The initiator sends a periodic detection instruction to the controller connected thereto.
- the initiator sends a cycle detection instruction to the controller 1 and the controller 3, respectively.
- Step 506 The initiator receives the detection response message returned by the controller, and determines an unavailable path according to the received detection response message.
- the initiator receives the detection response message returned by the controller 1, and when the detection response message is normal, the initiator determines that the path for transmitting the response message is normal; when the controller 3 connected to the initiator does not return detection When the response message or the error detection response message is returned, the initiator determines and controls The path of the unsent detection response message or the error detection response message connected to the controller 3 is an unavailable path, and the multipath information recorded in step 1 is updated, and the path state corresponding to the unavailable path in the multipath information is set to be unavailable. use.
- Phase 3 Path increase process when a path is not available
- Step 507 The multipath management module acquires information about the currently unavailable path by monitoring the initiator.
- the multipath management module may send a periodic query message to the initiator to determine a current state of each path connected to the initiator.
- Step 508 The multipath management module sends a control instruction to the initiator, where the control instruction is used to notify the initiator to initiate a path increase process.
- the multipath management module learns that the path status of the initiator connected to the controller 3 is unavailable, and the multipath management module sends a control instruction to the initiator to notify the initiator to initiate a path addition process.
- Step 509 The initiator sends a path adding instruction to a controller whose path state is available, and the path adding instruction includes an identifier of the initiator.
- the initiator may send a path addition instruction to the target node of the any available path through any available path.
- the initiator sends an ISCSI command to the controller 1, and the ISCSI command is used to request to add a new path.
- the specific format of the ISCIS instruction is as follows:
- the number of new paths that the initiator sends to the controller to increase the instruction request may be multiple.
- Step 510 The available controller that receives the path increase instruction sends a path increase request to the scheduler, where the path increase request carries the identifier of the initiator.
- the controller 1 after receiving the ISCSI command, the controller 1 sends a path increase request to the scheduler to request a target controller that allocates a new path.
- Step 511 The scheduler reads the controller list from the configuration file stored in the storage device.
- the initiator allocates a target controller (eg, controller 2) and transmits an identification of the target controller to the available controller;
- the scheduler is responsible for the allocation of paths, and the scheduler may perform path allocation based on a path allocation algorithm such as load balancing.
- the scheduler When the scheduler receives the path increase request, it traverses the controller list and searches for the controller that meets the following conditions according to the identifier of the initiator carried in the path increase request:
- the status of the controller is normal
- the list of assigned initiator identifiers corresponding to the controller does not include the initiator identifier of the request allocation path;
- the controller has the fewest number of initiators connected.
- the scheduler may randomly select any one or more.
- the scheduler adds the identity of the initiator to the list of assigned initiator identities of the selected target controller and returns the identity of the target controller to the available controller. Conversely, when a qualified controller is not found, the allocation fails and the scheduler returns an allocation failure response message to the available controller.
- Step 512 The available controller sends the identifier of the target controller to the initiator in a path increase response message, where the identifier of the target controller includes an IP address and a port of the target controller.
- Step 513 The initiator receives the path increase response message, obtains the identifier of the target controller carried in the path increase response message, and sends the identifier of the target controller to the multipath management module.
- Step 514 The multipath management module notifies the initiator to establish a session connection with the target controller.
- Step 515 The initiator updates the multipath information stored on the server side, and establishes a new path between the target controllers.
- the target controller is used as the controller 2.
- the initiator can be combined with multiple target controllers. Establish a session connection separately to form multiple new paths.
- the server side when the path of the unavailable path is found, the server side initiates a path increase process, and the identifier of the initiator is carried in the path increase instruction, so that the scheduler on the storage device side can use the identifier of the initiator to search and control. a list of devices for which the target controller is newly assigned, the initiator thereby establishing a session connection with the newly assigned target controller to complete the path addition process.
- the number of available paths between the server and the storage device is ensured.
- the newly expanded controller can be automatically utilized to implement dynamic management of the path in the distributed storage device.
- FIG. 6 a schematic flowchart of a method for managing a path of another path management system according to a scenario provided by an embodiment of the present invention is shown in FIG. 6 .
- the foregoing embodiment obtains the unavailable path information by periodic detection, and the server triggers the path increase operation.
- the server detects the current available path number, when the current connection with the initiator is Increase the path when the number of available paths does not reach the system preset threshold.
- the connection relationship of the components in the embodiment of the present invention is the same as the connection relationship of the components in the first embodiment.
- connection establishment process of the embodiment of the present invention is similar to the foregoing embodiment 1, and the present invention is not described again.
- Phase 2 When the number of available paths is less than the preset threshold, the path is increased.
- Step 604 The multipath management module monitors the initiator to obtain the number of available paths connected to the initiator.
- the multi-path management module may send a query instruction to the initiator, after the initiator receives the query instruction, determine the current number of available paths according to the multi-path information on the server side, and set the number of available paths. Return to the multipath management module.
- the initiator after receiving the query instruction, the initiator returns some or all of the multipath information to the multipath management module, and the multipath management module receives the partial or all multipath information. After that, determine the number of currently available paths.
- the initiator may generate the path status in the multipath information to the multipath management module, and the multipath management module performs statistics on the number of available paths according to the path status.
- the multi-path management module can directly query the multi-path information recorded on the server side to obtain the current number of available paths.
- Step 605 The multipath management module determines whether the number of available paths is less than a preset threshold, and if the number of available paths is less than the preset threshold, sending a control instruction to the initiator, where the control instruction is used to notify the startup. Initiating an increase path process;
- Step 606 The initiator sends a path addition instruction to a controller whose path status is available, and the instruction includes an identifier of the initiator.
- the initiator can randomly select any available path to pass the path increment instruction.
- the steps 607-612 are similar to the steps 510-515 of the first embodiment, and are not described in detail in the embodiments of the present invention.
- the server side presets an available path preset threshold that meets the network performance requirement, and the multi-path management module obtains the current available path number through the monitoring initiator, and the current available path number does not reach the preset.
- the threshold is set, the path is added to the process, which ensures the number of available paths between the server and the storage device, and implements dynamic management of the path in the distributed storage device.
- a schematic flowchart of another method for path management according to the scenario provided by the embodiment of the present invention includes:
- the steps 701-703 are similar to the steps 501-503, and are not described in detail in the embodiments of the present invention.
- Phase 2 When the controller status is found to be unavailable, the server side removes the corresponding path.
- Step 704 The multipath management module sends a controller status request message to the initiator, where the status information of the controller connected to the initiator is obtained.
- Step 705 The initiator sends a status query instruction to the controller whose path status is available, and the status query instruction carries an identifier of the controller connected to the initiator.
- the initiator may randomly select any available path for transmitting the status query instruction.
- Step 706 The available controller that receives the status query instruction sends a status query message to the scheduler, where the status query message includes an identifier of the controller connected to the initiator.
- Step 707 The scheduler queries the controller list, acquires state information of the controller connected to the initiator according to the identifier of the controller connected to the initiator, and connects the acquired controller to the initiator. Status information of the controller is returned to the available controller;
- Step 708 The available controller returns status information of the controller connected to the initiator to the multipath management module by using the initiator.
- Step 709 The multi-path management module sends an update instruction to the initiator, informing the initiator to update the multi-path information, thereby deleting a path corresponding to the controller whose status is unavailable. Since the controller ID is recorded in the multipath information stored on the server side, the path related to the unavailable controller can be identified and deleted.
- the multipath management module controls the initiator to query the scheduler for status information of the controller connected to the initiator through any available path, and acquire the state of the controller connected to the initiator from the scheduler. Information to identify the controller that is not available, and delete the path corresponding to the controller that is not available. That is, when the distributed array of storage devices is decompressed, the server can automatically cull the controller that no longer exists.
- the system structure of the scenario 2 of the embodiment of the present invention is different from that of the scenario 1.
- the multi-path management module on the server side performs the outband mode and the scheduling on the storage device side.
- the devices are directly connected, that is, the multipath management module is connected to the scheduler through a dedicated switch in the management network.
- the multipath management module can directly initiate a path addition process to the scheduler or obtain the status of the controller connected to the server's initiator from the scheduler.
- the embodiment of the present invention provides a schematic flowchart of a path management method in scenario 2, and describes a process of adding a path when there is an unavailable path.
- the initiator is connected to the controller 1 and the controller 3, and the multipath management module is connected to the scheduler on the storage device side through a dedicated switch.
- the private switch is only an implementation of the outband connection according to the embodiment of the present invention. It can be understood by those skilled in the art that The out-of-band connection between the multi-path management module and the scheduler can also be implemented in other manners, which is not limited in this embodiment of the present invention.
- Phase 2 Periodic inspection process.
- Steps 901 to 906 are similar to the implementations of steps 501 to 506, and are not described in detail in the embodiments of the present invention.
- Phase 3 Path increase process when a path is not available
- Step 907 The multipath management module acquires information about the currently unavailable path by monitoring the initiator.
- the multipath management module may send a periodic query message to the initiator to determine a current state of each path connected to the initiator.
- Step 908 The multipath management module acquires the information about the unavailable path, and sends a path increase request to the scheduler, where the path increase request carries the identifier of the initiator.
- the multi-path management module can obtain, by monitoring the initiator, a message returned by the initiator according to the multi-path information, and learn that the path status of the initiator and the controller 3 is unavailable.
- Step 909 The scheduler reads the controller list from the configuration file stored in the storage device, and sends the identifier of the target controller in the path increase response according to the target controller whose initiator identifier is the new path of the initiator. Give the multipath management module.
- the scheduler allocates a new controller to the initiator according to the current state of the controller and the load.
- the specific allocation is similar to the step 511, and is not described in detail in the embodiments of the present invention.
- the embodiment of the present invention is described by taking the controller 2 as an example.
- the scheduler selects the controller 2 as a target controller of the new path allocated for the initiator according to the path allocation algorithm, and returns the identifier of the controller 2 to The multi-path management module.
- Step 910 The multi-path management module sends the identifier of the newly allocated target controller to the initiator, and notifies the initiator to establish a session connection with the target controller.
- Step 911 The initiator updates the multipath information stored on the server side, and the target controller Information between the paths is added to the multipath information, establishing a new path between the target controllers.
- the multi-path management module of the server is connected to the scheduler of the storage device through a dedicated switch of the outband management network.
- the server initiates a path increase process, which is carried in the path increase request.
- An identifier of the initiator such that the scheduler on the storage device side can find a list of controllers according to the identifier of the initiator, newly assigning a target controller to the initiator, and the initiator thus establishes a new with the newly assigned target controller path.
- the number of available paths between the server and the storage device is ensured.
- the newly expanded controller can be automatically utilized to implement dynamic management of the path in the distributed storage device.
- the embodiment of the present invention provides a schematic flowchart of another path management method in scenario 2, which is described between the initiator and the controller of the storage device.
- the path increase process when the number of available paths is less than the preset threshold.
- Step 1001-1003 the connection establishment process is similar to steps 501-503;
- Phase 2 When the number of available paths is less than the preset threshold, the path is increased.
- Step 1004 The multipath management module monitors the initiator to obtain the number of available paths connected to the initiator.
- the multi-path management module may send a query instruction to the initiator, after the initiator receives the query instruction, determine the current number of available paths according to the multi-path information on the server side, and set the number of available paths. Return to the multipath management module.
- the initiator after receiving the query instruction, the initiator returns some or all of the multipath information to the multipath management module, and the multipath management module receives the partial or all multipath information. After that, determine the number of currently available paths.
- the initiator may generate the path status in the multipath information to the multipath management module, and the multipath management module performs statistics on the number of available paths according to the path status.
- the multipath management module can query the multipath information to obtain the current Use the number of paths.
- Step 1005 The multi-path management module determines whether the number of available paths is less than a preset threshold, and if the number of available ports is less than the preset threshold, sending a sending path to the scheduler of the storage device by using a dedicated switch in the management network.
- the request, the path increase request carries an identifier of the initiator;
- Steps 1006 to 1008 are similar to the steps 909-911, and are not described in detail in the embodiments of the present invention.
- the server side presets an available path preset threshold that meets the network performance requirement, and the multi-path management module obtains the current available path number through the monitoring initiator, and the current available path number does not reach the preset.
- the initiating path increases the process to add a new path, thereby ensuring the number of available paths between the server and the storage device, and realizing the dynamic management of the path in the distributed storage device.
- the embodiment of the present invention provides a schematic flowchart of another path management method in scenario 2.
- Steps 1101-1103 connect the establishment process, which is similar to steps 501-503;
- Phase 2 When the controller status is found to be unavailable, the server side removes the corresponding path.
- Step 1104 The multipath management module sends a status request message to the scheduler through the private switch, and is used to obtain status information of the controller connected to the initiator, where the status request message carries a controller connected to the initiator.
- Step 1105 The scheduler queries the controller list, obtains state information of the controller connected to the initiator according to the identifier of the controller connected to the initiator, and obtains the obtained and the startup.
- the status information of the controller connected to the device is returned to the multipath management module;
- Step 1106 The multipath management module sends an update instruction to the initiator, where the update command carries the acquired state information of the controller connected to the initiator, and notifies the initiator according to the initiator.
- the status information of the connected controller updates the multipath information, and deletes the path corresponding to the controller that is unavailable.
- the multipath management module acquires and starts from the scheduler through a dedicated switch.
- the status information of the connected controller thereby identifying the unavailable controller, and controlling the initiator to delete the path corresponding to the controller that is unavailable. That is, when the distributed array of storage devices is decompressed, the server can automatically cull the controller that no longer exists.
- the newly added target controller may be one controller or multiple controllers, and when the number of currently available paths is small, the scheduler may return multiple target control at a time.
- the identification of the device such that a plurality of new paths are established between the initiator and the plurality of target controllers.
- FIG. 12 is a schematic flowchart of another path management method according to an embodiment of the present invention.
- a path management method is applied to a path management system, where the path management system includes a server and a storage device, and the storage The device includes a plurality of controllers and schedulers, and the method includes:
- Step 1201 Establish a session connection between the at least one controller of the multiple controllers and the server, where the starting node of the path corresponding to the session connection is a server initiator, and the session connection corresponds to a path.
- the target node is a controller in the storage device, where the storage device stores a correspondence between a start node of the established session connection and the target node;
- Step 1202 The scheduler receives a path increase request triggered by the server, where the path increase request carries an identifier of the initiator of the server, according to the identifier of the initiator and the stored session. Corresponding relationship between the starting node of the connection and the target node, determining a target controller of the new path from the plurality of controllers, and transmitting the determined identifier of the target controller to the server, where No session connection is established between the target controller and the initiator;
- Step 1203 The target controller establishes a new path with the initiator of the server.
- the method further includes:
- the scheduler determines at least one target controller from the plurality of target controllers that meets the following conditions: the number of initiators connected to the controller is the least.
- the method further includes:
- At least one of the plurality of controllers receives a status query command sent by the server, and sends a status query message to the scheduler, where the status query message carries a session connection with an initiator of the server.
- the identity of the controller
- another path management method is applied to a path management system, where the path management system includes a server and a storage device, and the server includes a multi-path management module and an initiator.
- the storage device includes a scheduler and a plurality of controllers, wherein at least one session connection exists between an initiator of the server and a plurality of controllers of the storage device, and each session connects a start node of a corresponding path
- the target node of the corresponding path of each session connection is a controller in the storage device, and the storage device stores between the start node and the target node of the established session connection.
- Step 1301 The initiator receives a control instruction sent by the multipath management module when determining that a path between the server and the storage device needs to be increased, and the control instruction is used to notify the initiator to perform an path increase. operating;
- Step 1302 The initiator sends a path addition instruction to the target node of the any available path by using any available path, where the path increase instruction carries an identifier of the initiator, and the path increase instruction is used to notify the arbitrary available
- the target node of the path sends a path increase request to the scheduler, so that the scheduler according to the identifier of the initiator and the stored correspondence between the start node and the target node of the established session connection, Determining a target controller of a new path from the plurality of controllers, wherein a session connection is not established between the target controller and the initiator;
- Step 1303 The server establishes a path with the target controller according to the identifier of the target controller.
- the embodiment of the present invention further provides a server, including a multi-path management module and an initiator.
- the initiator is configured to establish at least one session connection with the storage device, where the starting node of the path corresponding to each session connection is an initiator of the server, and the target node of the corresponding path of each session connection is a controller in a storage device;
- a multi-path management module configured to trigger a path increase operation when determining that a path between the server and the storage device needs to be increased, so that the scheduler of the storage device is based on the identifier of the initiator and the stored Corresponding relationship between the starting node of the established session connection and the target node, determining a target controller of the new path from the plurality of controllers of the storage device;
- the initiator is further configured to establish a path between the target controllers according to an identifier of the target controller sent by the storage device.
- the storage device stores a correspondence between the start node and the target node of the established session connection, and the scheduler of the storage device is the server according to the correspondence and the identifier of the initiator.
- a target controller that allocates a new path, and no session connection is established between the target controller and the initiator.
- the server side stores multipath information, and the multipath information includes information for identifying a path and a path status.
- the multi-path management module is further configured to determine, according to the multi-path information, a current number of available paths, and when the number of available paths is less than a preset threshold, determine that the server and the storage device need to be added. The path between.
- the initiator is further configured to send a periodic detection instruction to a controller that has a session connection with itself, receive a returned detection response message, determine an unavailable path according to the detection response message, and update the multipath information is unavailable.
- the path state corresponding to the path.
- the multi-path management module is specifically configured to send, to the initiator, a control instruction for initiating a path addition operation
- the initiator is specifically configured to send a path addition instruction to a target node of any available path according to the control instruction, where the path increase instruction carries an identifier of the initiator.
- the initiator is further configured to receive a controller status request message sent by the multi-path management module, and send a status query instruction to the target node of the any available path by using any available path, where the status query command carries The identifier of the controller in which the initiator has a session connection;
- the initiator is further configured to receive status information of a controller that is connected to the initiator of the server by the scheduler through the any available path, and delete the recorded multipath information.
- the path corresponding to the controller is not available in the information, wherein the information identifying the path includes the controller identifier.
- the multi-path management module is configured to send a path increase request to a scheduler of the storage device by using a private switch, where the path increase request carries an identifier of the initiator;
- the multi-path management module is further configured to receive an identifier of the target controller returned by the scheduler, and notify the initiator to establish a new path with the target controller.
- the multi-path management module is further configured to send, by using a private switch, a status query message to a scheduler of the storage device, where the status query message carries an identifier of a controller that has a session connection with the initiator;
- the multi-path management module is further configured to receive status information of a controller that is returned by the scheduler and has a session connection with the initiator, and delete a path corresponding to a controller that is not available in the recorded multi-path information, where The information identifying the path includes a controller identifier.
- An embodiment of the present invention further provides a storage device, where the storage device includes multiple controllers and a scheduler.
- At least one of the plurality of controllers is configured to establish a session connection with the server, where the starting node of the corresponding path of the session connection is an initiator of the server, and the target node of the corresponding path of the session connection a controller in the storage device, where the storage device stores a correspondence between a start node of the established session connection and the target node;
- the scheduler is configured to receive a path increase request triggered by the server, where the path increase request carries an identifier of the initiator of the server, according to the identifier of the initiator and the stored session that is already established. Corresponding relationship between the starting node of the connection and the target node, determining a target controller of the new path from the plurality of controllers, and transmitting the determined identifier of the target controller to the server, where No session connection is established between the target controller and the initiator;
- the target controller is configured to establish a new path with an initiator of the server.
- the scheduler is further configured to determine, from the plurality of target controllers, at least one target controller that meets the following conditions:
- the controller has the fewest number of initiators connected.
- the scheduler is further configured to receive a status query message triggered by the server, where the status query message carries an identifier of a controller that has a session connection with an initiator of the server;
- the scheduler is further configured to acquire, according to the identifier of the controller that has a session connection with the initiator of the server, state information of a controller that has a session connection with the initiator of the server, and obtain the obtained state information. Return to the server.
- the scheduler is specifically configured to receive the status query message sent by the server through a target node of any available path, and pass status information of a controller that has a session connection with the initiator of the server through the any available path.
- the target node is returned to the server; or,
- the scheduler is configured to receive the status query message sent by the multi-path management module of the server by using a private switch, and pass status information of a controller that has a session connection with the initiator of the server through the private switch. Return to the server.
- An embodiment of the present invention provides a system, apparatus, and method for path management.
- the path management system includes a server and a storage device, and at least one session connection exists between the initiator of the server and the multiple controllers of the storage device, where the server is When it is determined that the path between the server and the storage device needs to be increased, a path increase operation is triggered, and the scheduler of the storage device is configured according to the identifier of the initiator and the stored start node and target of the established session connection. Corresponding relationship between the nodes, determining a target controller of the new path from the plurality of controllers, thereby establishing a new path between the server and the storage device.
- the server can automatically request the target controller and add the path to the storage device target controller to the existing path, realizing the dynamic management function of the path, and avoiding the network caused by the path number being reduced due to the path failure. Problems such as reduced transmission quality.
- the embodiment of the present invention provides a hardware configuration diagram of a server or a storage device.
- the server or storage device includes at least one processor (eg, a CPU), at least one network interface or other communication interface, memory, and at least one communication bus for implementing the components of the above-described embodiments. Connection communication between.
- the processor is configured to execute an executable module stored in the memory, and implement the functions of the multi-path management module, the initiator, the controller, and the scheduler and the like in the above embodiments.
- the memory may contain high-speed random access memory (RAM: Random Access Memory), and may also include non-volatile memory (non-volatile Memory), such as at least one disk storage.
- the communication connection between the system gateway and at least one other network element is implemented by at least one network interface (which may be wired or wireless), and an Internet, a wide area network, a local network, a metropolitan area network, etc. may be used.
- program instructions are stored in a computer readable medium, including computer executed instructions, for execution by the processor of a computer, executing the instructions as described in any of the above embodiments Path management method.
- the program instructions may include the components indicated in the foregoing embodiments of the present invention. For the specific implementation of the components, reference may be made to the corresponding content in the foregoing embodiments of the present invention, and details are not described herein again.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer And Data Communications (AREA)
Abstract
本发明实施例提供一种路径管理的系统、装置和方法,路径管理的系统包括服务器和存储设备,服务器的启动器与存储设备的多个控制器间存在至少一个会话连接,所述服务器在确定需要增加所述服务器与所述存储设备之间的路径时,触发路径增加操作,存储设备的调度器根据所述启动器的标识和存储的所述已经建立的会话连接的起始节点与目标节点之间的对应关系,从所述多个控制器中确定新路径的目标控制器,从而使得服务器与所述存储设备间建立新路径。通过上述方式,服务器可以自动请求目标控制器,并增加到存储设备目标控制器的路径到已有路径中,实现了路径的动态管理功能,避免了由于路径故障导致可用路径数量减少带来的网络传输质量下降等问题。
Description
本发明涉及计算机领域,尤其是涉及一种路径管理的系统、装置和方法。
在传统数据中心的场景中,存储设备中存储阵列规模较小,存储控制器的数量较少,一般为1-4个,并且存储设备安装后硬件和配置变化较少,因此传统的存储设备的访问路径一般采用静态配置的方式。
随着数据中心高速发展,各种应用的存储规模越来越大,对存储设备的性能需求也越来越高。传统的存储阵列走向分布式架构,存储阵列的规模越来越大,提供的容量在不断提升,控制器数量也大幅增加。控制器与磁盘间可以通过网络相互访问,进而组成一个大规模的多路径访问网络矩阵。由于存储阵列采用了分布式的架构,存储设备和网络配置动态变化较多,当路径发生故障时,造成静态配置的可用路径数量降低,导致网络传输质量下降等问题。同时,路径数量过少时则无法满足负载均衡、路径故障后自动进行路径切换等功能需求。
发明内容
本发明的目的在于提供一种路径管理的方法、装置及系统,以解决在分布式存储阵列中无法实现路径动态管理的问题。
第一方面,本发明实施例提供了一种路径管理的系统,包括服务器和存储设备,所述存储设备包括调度器和多个控制器,所述服务器与所述存储设备之间建立至少一个会话连接,每个会话连接对应的路径的起始节点为所述服务器的启动器,所述每个会话连接对应的路径的目标节点为所述存储设备中的控制器,所述存储设备中存储已经建立的会话连接的起始节点与目标节点之间的对应关系,
所述服务器,用于在确定需要增加所述服务器与所述存储设备之间的路径时,触发路径增加操作;
所述调度器,用于接收由所述服务器触发的路径增加请求,所述路径增加请求中携带所述服务器的启动器的标识,根据所述启动器的标识和存储的所述已经建立的会话连接的起始节点与目标节点之间的对应关系,从所述多个控制器中确定新路径的目标控制器,将确定的所述目标控制器的标识发送给所述服务器,其中,所述目标控制器与所述启动器之间未建立会话连接;
所述服务器,还用于根据所述目标控制器的标识建立与所述目标控制器之间的路径。
在第一方面的第一种可能的实施方式中,服务器侧存储有多路径信息,所述多路径信息包括用于标识路径的信息以及路径状态。
结合第一方面或第一方面的第一种可能的实施方式,在第二种可能的实施方式中,当所述确定的新路径的目标控制器为多个时,
所述调度器,还用于从所述多个目标控制器中确定符合如下条件的至少一个目标控制器:
控制器连接的启动器数量最少。
结合第一方面的第一种可能的实施方式,在第三种可能的实施方式中,所述服务器,还用于根据所述多路径信息,确定当前可用路径条数,当所述可用路径条数小于预设阈值时,则确定需要增加所述服务器与所述存储设备之间的路径。
结合第一方面第一种至第三种中任一可能的实施方式,在第四种可能的实施方式中,所述服务器,还用于通过任意可用路径,向所述任意可用路径的目标节点发送状态查询指令,以使得所述任意可用路径的目标节点向所述调度器发送状态查询消息,所述状态查询消息中携带有与所述服务器的启动器存在会话连接的控制器的标识;
所述调度器,还用于接收所述状态查询消息,获取所述与所述服务器的启动器存在会话连接的控制器的状态信息,将获取的所述与所述服务器的启动器
存在会话连接的控制器的状态信息通过所述任意可用路径的目标节点返回给所述服务器;
所述服务器,还用于根据接收到的所述与所述服务器的启动器存在会话连接的控制器的状态信息,删除记录的所述多路径信息中不可用控制器对应的路径,其中,所述标识路径的信息包括控制器标识。
结合第一方面第一种至第四种中任一可能的实施方式,在第五种可能的实施方式中,所述服务器,还用于向与自身存在会话连接的控制器发送周期性检测指令,接收返回的检测响应消息,根据所述检测响应消息确定不可用路径,更新所述多路径信息中不可用路径对应的路径状态。
结合第一方面第一种至第五种中任一可能的实施方式,在第六种可能的实施方式中,所述服务器,具体用于向任意可用路径的目标节点发送路径增加指令,以触发所述任意可用路径的目标节点向所述调度器发送所述路径增加请求。
结合第一方面第一种至第五种中任一可能的实施方式,在第七种可能的实施方式中,所述服务器,具体用于触发所述路径增加请求,并通过专用交换机向所述调度器发送所述路径增加请求,接收所述调度器通过所述专用交换机返回的所述目标控制器的标识。
结合第一方面第一种至第五种中任一可能的实施方式,在第八种可能的实施方式中,所述服务器,还用于通过专用交换机向所述调度器发送状态查询请求,所述状态查询请求中携带有与所述服务器的启动器存在会话连接的控制器的标识;
所述调度器,还用于接收所述状态查询消息,获取所述与所述服务器的启动器存在会话连接的控制器的状态信息,将所述与所述服务器的启动器存在会话连接的控制器的状态信息通过所述专用交换机返回给所述服务器,以使得所述服务器删除记录的所述多路径信息中不可用控制器对应的路径,其中,所述标识路径的信息包括控制器标识。
结合第一方面第一种可能的实施方式,在第九种可能的实施方式中,所述多路径信息存储在服务器侧的配置文件中。
第二方面,本发明实施例提供了服务器,包括多路径管理模块和启动器,
启动器,用于建立与存储设备之间的至少一个会话连接,每个会话连接对应的路径的起始节点为所述服务器的启动器,所述每个会话连接对应的路径的目标节点为所述存储设备中的控制器;
多路径管理模块,用于在确定需要增加所述服务器与所述存储设备之间的路径时,触发路径增加操作,以使得所述存储设备的调度器根据所述启动器的标识和存储的已经建立的会话连接的起始节点与目标节点之间的对应关系,从所述存储设备的多个控制器中确定新路径的目标控制器;
所述启动器,还用于根据所述存储设备发送的所述目标控制器的标识建立于所述目标控制器之间的路径。
在第二方面的第一种可能的实施方式中,服务器侧存储有多路径信息,所述多路径信息包括用于标识路径的信息以及路径状态。
结合第二方面第一种可能的实施方式,在第二种可能的实施方式中,所述多路径管理模块,还用于根据所述多路径信息,确定当前可用路径条数,当所述可用路径条数小于预设阈值时,则确定需要增加所述服务器与所述存储设备之间的路径。
结合第二方面第一种或第二方面第二种中任一可能的实施方式,在第三种可能的实施方式中,所述启动器,还用于向与自身存在会话连接的控制器发送周期性检测指令,接收返回的检测响应消息,根据所述检测响应消息确定不可用路径,更新所述多路径信息中不可用路径对应的路径状态。
结合第二方面第一种至第三种中任一可能的实施方式,在第四种可能的实施方式中,
所述多路径管理模块,具体用于向所述启动器发送用于发起路径增加操作的控制指令;
所述启动器,具体用于根据所述控制指令,向任意可用路径的目标节点发送路径增加指令,所述路径增加指令携带所述启动器的标识。
结合第二方面第一种至第四种中任一可能的实施方式,在第五种可能的实
施方式中,
所述启动器,还用于接收所述多路径管理模块发送的控制器状态请求消息,通过任意可用路径,向所述任意可用路径的目标节点发送状态查询指令,所述状态查询指令携带与所述启动器存在会话连接的控制器的标识;
所述启动器,还用于接收所述调度器通过所述任意可用路径返回的与所述服务器的启动器存在会话连接的控制器的状态信息,删除记录的所述多路径信息中不可用控制器对应的路径,其中,所述标识路径的信息包括控制器标识。
结合第二方面至第二方面第三种中任一可能的实施方式,在第六种可能的实施方式中,
所述多路径管理模块,具体用于通过专用交换机向所述存储设备的调度器发送路径增加请求,所述路径增加请求携带所述启动器的标识;
所述多路径管理模块,还用于接收所述调度器返回的目标控制器的标识,通知所述启动器建立与所述目标控制器之间的新路径。
结合第二方面至第二方面第三种中任一可能的实施方式,在第七种可能的实施方式中,
所述多路径管理模块,还用于通过专用交换机向所述存储设备的调度器发送状态查询消息,所述状态查询消息携带与所述启动器存在会话连接的控制器的标识;
所述多路径管理模块,还用于接收所述调度器返回的与所述启动器存在会话连接的控制器的状态信息,删除记录的所述多路径信息中不可用控制器对应的路径,其中,所述标识路径的信息包括控制器标识。
结合第二方面第一种可能的实施方式,在第八种可能的实施方式中,所述多路径信息存储在服务器侧的配置文件中。
第三方面,本发明实施例提供了一种存储设备,所述存储设备包括多个控制器和调度器,
所述多个控制器中的至少一个控制器,用于与服务器之间建立会话连接,所述会话连接对应的路径的起始节点为服务器的启动器,所述会话连接对应的
路径的目标节点为所述存储设备中的控制器,所述存储设备中存储已经建立的会话连接的起始节点与目标节点之间的对应关系;
所述调度器,用于接收由所述服务器触发的路径增加请求,所述路径增加请求中携带所述服务器的启动器的标识,根据所述启动器的标识和存储的所述已经建立的会话连接的起始节点与目标节点之间的对应关系,从所述多个控制器中确定新路径的目标控制器,将确定的所述目标控制器的标识发送给所述服务器,其中,所述目标控制器与所述启动器之间未建立会话连接;
所述目标控制器,用于建立与所述服务器的启动器之间的新路径。
结合第三方面,在第三方面第一种可能的实施方式中,当确定的所述新路径的目标控制器为多个时,
所述调度器,还用于从多个目标控制器中确定符合如下条件的至少一个目标控制器:
控制器连接的启动器数量最少。
结合第三方面或第三方面第一种可能的实施方式,在第二种可能的实施方式中,
所述调度器,还用于接收由所述服务器触发的状态查询消息,所述状态查询消息中携带有与所述服务器的启动器存在会话连接的控制器的标识;
所述调度器,还用于根据所述与所述服务器的启动器存在会话连接的控制器的标识获取与所述服务器的启动器存在会话连接的控制器的状态信息,将获取到的状态信息返回给所述服务器。
结合第三方面第二种可能的实施方式,在第三种可能的实施方式中,
所述调度器,具体用于接收所述服务器通过任意可用路径的目标节点发送的所述状态查询消息,将与所述服务器的启动器存在会话连接的控制器的状态信息通过所述任意可用路径的目标节点返回给所述服务器;或,
所述调度器,具体用于接收所述服务器的多路径管理模块通过专用交换机发送的所述状态查询消息,将与所述服务器的启动器存在会话连接的控制器的状态信息通过所述专用交换机返回给所述服务器。
第四方面,本发明实施例提供了一种路径管理的方法,应用于路径管理系统,所述路径管理系统包括服务器和存储设备,所述存储设备包括调度器和多个控制器,
所述服务器建立与所述存储设备之间的至少一个会话连接,每个会话连接对应的路径的起始节点为所述服务器的启动器,所述每个会话连接对应的路径的目标节点为所述存储设备中的控制器,所述存储设备中存储已经建立的会话连接的起始节点与目标节点之间的对应关系;
在确定需要增加所述服务器与所述存储设备之间的路径时,所述服务器触发路径增加操作;
所述调度器接收由所述服务器触发的路径增加请求,所述路径增加请求中携带所述服务器的启动器的标识,根据所述启动器的标识和存储的所述已经建立的会话连接的起始节点与目标节点之间的对应关系,从所述多个控制器中确定新路径的目标控制器,将确定的所述目标控制器的标识发送给所述服务器,其中,所述目标控制器与所述启动器之间未建立会话连接;
所述服务器根据所述目标控制器的标识建立与所述目标控制器之间的路径。
结合第四方面,在第四方面第一种可能的实施方式中,服务器侧存储有多路径信息,所述多路径信息包括用于标识路径的信息以及路径状态。
结合第四方面或第四方面第一种可能的实施方式,在第二种可能的实施方式中,当所述确定的新路径的目标控制器为多个时,所述方法还包括:
所述调度器从所述多个目标控制器中确定符合如下条件的至少一个目标控制器:
控制器连接的启动器数量最少。
结合第四方面第一种或第二种可能的实施方式,在第三种可能的实施方式中,所述方法还包括:
所述服务器根据所述多路径信息,确定当前可用路径条数,当所述可用路径条数小于预设阈值时,则确定需要增加所述服务器与所述存储设备之间的路
径。
结合第四方面第一种至第三种中任一可能的实施方式,在第四种可能的实施方式中,所述方法还包括:
所述服务器通过任意可用路径,向所述任意可用路径的目标节点发送发送状态查询指令,以使得所述可用路径的目标节点向所述调度器发送状态查询消息,所述状态查询消息中携带有与所述服务器的启动器存在会话连接的控制器的标识;
所述调度器接收所述状态查询消息,获取所述与所述服务器的启动器存在会话连接的控制器的状态信息,将获取的所述与所述服务器的启动器存在会话连接的控制器的状态信息通过所述任意可用路径的目标节点返回给所述服务器;
所述服务器根据接收到的所述与所述服务器的启动器存在会话连接的控制器的状态信息,删除记录的所述多路径信息中不可用控制器对应的路径,其中,所述标识路径的信息包括控制器标识。
结合第四方面第一种至第四种中任一可能的实施方式,在第五种可能的实施方式中,所述方法还包括:
所述服务器向与自身存在会话连接的控制器发送周期性检测指令,接收返回的检测响应消息,根据所述检测响应消息确定不可用路径,更新所述多路径信息中不可用路径对应的路径状态。
结合第四方面第一种至第五种中任一可能的实施方式,在第六种可能的实施方式中,所述触发路径增加操作包括:
所述服务器向任意可用路径的目标节点发送路径增加指令,以触发所述任意可用路径的目标节点向所述调度器发送所述路径增加请求。
结合第四方面以及第四方面第一种至第三种中任一可能的实施方式,在第七种可能的实施方式中,所述触发路径增加操作包括:
所述服务器通过专用交换机向所述调度器发送所述路径增加请求。
结合第四方面以及第四方面第一种至第三种中任一可能的实施方式,在第
八种可能的实施方式中,所述方法还包括:
所述服务器通过专用交换机向所述调度器发送状态查询请求,所述状态查询请求中携带有与所述服务器的启动器存在会话连接的控制器的标识;
所述调度器接收所述状态查询消息,获取所述与所述服务器的启动器存在会话连接的控制器的状态信息,将所述与所述服务器的启动器存在会话连接的控制器的状态信息通过所述专用交换机返回给所述服务器,以使得所述服务器删除记录的所述多路径信息中不可用控制器对应的路径,其中,所述标识路径的信息包括控制器标识。
第五方面,本发明实施例还提供了一种路径管理的方法,应用于路径管理系统,所述路径管理系统包括服务器和存储设备,所述存储设备包括多个控制器和调度器,所述方法包括:
所述多个控制器中的至少一个控制器与所述服务器之间建立会话连接,所述会话连接对应的路径的起始节点为服务器的启动器,所述会话连接对应的路径的目标节点为所述存储设备中的控制器,所述存储设备中存储已经建立的会话连接的起始节点与目标节点之间的对应关系;
所述调度器接收由所述服务器触发的路径增加请求,所述路径增加请求中携带所述服务器的启动器的标识,根据所述启动器的标识和存储的所述已经建立的会话连接的起始节点与目标节点之间的对应关系,从所述多个控制器中确定新路径的目标控制器,将确定的所述目标控制器的标识发送给所述服务器,其中,所述目标控制器与所述启动器之间未建立会话连接;
所述目标控制器建立与所述服务器的启动器之间的新路径。
结合第五方面,在第五方面第一种可能的实施方式中,当所述确定的新路径的目标控制器为多个时,所述方法还包括:
所述调度器从多个目标控制器中确定符合如下条件的至少一个目标控制器:控制器连接的启动器数量最少。
结合第五方面,在第五方面第二种可能的实施方式中,所述方法还包括:
所述多个控制器中的至少一个控制器接收所述服务器发送的状态查询指
令,向所述调度器发送状态查询消息,所述状态查询消息中携带有与所述服务器的启动器存在会话连接的控制器的标识;
所述调度器接收所述状态查询消息,获取所述与所述服务器的启动器存在会话连接的控制器的状态信息,将获取的所述与所述服务器的启动器存在会话连接的控制器的状态信息通过所述任意可用路径的目标节点返回给所述服务器,以使得所述服务器删除记录的多路径信息中不可用控制器对应的路径。
第六方面,本发明实施例还提供了一种路径管理的方法,应用于路径管理系统,所述路径管理系统包括服务器和存储设备,所述服务器包括多路径管理模块和启动器,所述存储设备包括调度器和多个控制器,其中,所述服务器的启动器与所述存储设备的多个控制器之间存在至少一个会话连接,每个会话连接对应的路径的起始节点为所述服务器的启动器,所述每个会话连接对应的路径的目标节点为所述存储设备中的控制器,所述存储设备中存储已经建立的会话连接的起始节点与目标节点之间的对应关系,
所述启动器接收所述多路径管理模块在确定需要增加所述服务器与所述存储设备之间的路径时发送的控制指令,所述控制指令用于通知所述启动器执行路径增加操作;
所述启动器通过任意可用路径向所述任意可用路径的目标节点发送路径增加指令,所述路径增加指令携带所述启动器的标识;
所述调度器接收所述任意可用路径的目标节点根据所述路径增加指令发出的路径分配请求,所述路径分配请求中携带所述启动器的标识;
所述调度器根据所述启动器的标识和存储的所述已经建立的会话连接的起始节点与目标节点之间的对应关系,从所述多个控制器中确定新路径的目标控制器,将确定的所述目标控制器的标识发送给所述服务器,其中,所述目标控制器与所述启动器之间未建立会话连接;
所述服务器根据所述目标控制器的标识建立与所述目标控制器之间的路径。
第七方面,本发明实施例还提供了一种路径管理的装置,其特征在于,所述装置包括处理器、存储器、总线和通信接口;
所述存储器用于存储计算机执行指令,所述处理器与所述存储器通过所述总线连接,当所述路径管理的装置运行时,所述处理器执行所述存储器存储的所述计算机执行指令,以使所述路径管理的装置执行如第四至第六方面中任一所述的路径管理的方法。
第八方面,本发明实施例还提供了一种计算机可读介质,包括计算机执行指令,以供计算机的处理器执行所述计算机执行指令时,所述计算机执行如第四至第六方面中任一所述的路径管理的方法。
本发明实施例提供了一种路径管理的系统、装置和方法,路径管理的系统包括服务器和存储设备,服务器的启动器与存储设备的多个控制器间存在至少一个会话连接,所述服务器在确定需要增加所述服务器与所述存储设备之间的路径时,触发路径增加操作,存储设备的调度器根据所述启动器的标识和存储的所述已经建立的会话连接的起始节点与目标节点之间的对应关系,从所述多个控制器中确定新路径的目标控制器,从而使得服务器与所述存储设备间建立新路径。通过上述方式,服务器可以自动请求目标控制器,并增加到存储设备目标控制器的路径到已有路径中,实现了路径的动态管理功能,避免了由于路径故障导致可用路径数量减少带来的网络传输质量下降等问题。
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1是本发明实施例提供的场景一的路径管理的系统结构示意图;
图2是本发明实施例提供的服务器访问存储设备的路径示意图;
图3是本发明实施例提供的服务器访问存储设备的另一种路径示意图;
图4是本发明实施例提供的一种路径管理的方法流程示意图;
图5是本发明实施例一提供的场景一下的路径管理的方法流程示意图;
图6是本发明实施例二提供的场景一下的另一种路径管理的方法流程示意图;
图7是本发明实施例三提供的场景一下的另一种路径管理的方法流程示意图;
图8是本发明实施例提供的场景二的系统结构示意图;
图9是本发明实施例提供的场景二下的一种路径管理方法的流程示意图;
图10是本发明实施例提供的场景二下的另一种路径管理方法的流程示意图;
图11是本发明实施例提供的场景二下的另一种路径管理方法的流程示意图;
图12是本发明实施例提供的另一种路径管理方法的流程示意图;
图13是本发明实施例提供的另一种路径管理方法的流程示意图;
图14是本发明实施例提供的路径管理装置的硬件连接结构示意图。
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
在现有技术中,服务器上预先设置服务器连接控制器的多路径信息,由于缺乏动态调整路径的机制,如果一条路径故障被移除了,服务器可以使用的路径就少了一条,无法自动补充另一条可用的路径。极端的情况下,大部分的路径可能由于故障而被移除,导致无法实现负载均衡和故障自动切换路径等功能。
本发明实施例提供了一种路径管理的系统,包括服务器和存储设备,所述存储设备包括调度器和多个控制器,在所述服务器与所述存储设备之间建立至少一个会话连接,建立的会话连接在所述服务器和存储设备之间构成一条路径,每个会话连接对应的路径的起始节点为所述服务器的启动器,所述每个会话连
接对应的路径的目标节点为所述存储设备中的控制器。所述存储设备中存储已经建立的会话连接的起始节点与目标节点之间的对应关系。
本发明实施例中服务器可以主动发起路径增加操作,即在确定需要增加所述服务器与所述存储设备之间的路径时,触发路径增加操作;
存储设备的调度器接收由所述服务器触发的路径增加请求,所述路径增加请求中携带所述服务器的启动器的标识,所述调度器为所述服务器选择未与所述服务器存在会话连接的控制器作为目标控制器,使得所述服务器与所述目标控制器之间建立新的路径。具体的,所述调度器根据所述启动器的标识和存储的所述已经建立的会话连接的起始节点与目标节点之间的对应关系,从所述多个控制器中确定新路径的目标控制器,将确定的所述目标控制器的标识发送给所述服务器,其中,所述目标控制器与所述启动器之间未建立会话连接;所述服务器根据所述目标控制器的标识建立与所述目标控制器之间的路径。通过上述方式,当服务器侧发现需要新增与存储设备间的路径时,主动发起路径增加操作,获取存储设备的调度器为所述服务器分配的目标控制器,建立于目标控制器之间的新路径,从而完成路径增加流程,避免现有技术中由于路径故障导致的路径数量减少所引起的网络传输质量下降等问题。
进一步的,服务器侧存储有多路径信息,用来记录服务器与存储设备间已经建立的各个会话连接对应的路径信息,存储的所述多路径信息包括用于标识路径的信息以及路径状态。其中,所述用于标识路径的信息包括启动器的标识和控制器的标识,可选的,所述用于标识路径的信息还可以包括网卡的标识。在具体实施方式中,所述多路径信息可以存储在服务器侧的配置文件中。需要说明的是,当服务器与存储设备间的路径发生变化时,所述服务器更新存储的所述多路径信息。
服务器侧在确定需要增加路径时,发起路径增加操作。一方面,服务器可以根据上述多路径信息,确定与所述存储设备已经建立的路径中可用路径条数,当所述可用路径条数小于预设阈值时,发起所述路径增加操作;另一方面,服务器还可以向与自身存在会话连接的控制器发送周期性检测指令,接收返回的
检测响应消息,根据所述检测响应消息确定存在不可用路径,从而发起路径增加操作,并更新所述多路径信息中不可用路径对应的路径状态。
在具体的实施方式中,所述服务器可以采用多种方式发起所述路径增加操作,例如:
方式一:服务器的多路径管理模块确定可用路径条数过少或存在不可用路径时,向启动器下发控制指令,通知启动器向存储设备发起路径增加指令。所述启动器在收到所述控制指令时,选择任意的可用路径作为传递所述路径增加指令的传输通道,当所述任意可用路径的控制器收到所述路径增加指令时,将所述路径增加指令中携带的所述启动器的标识发送给调度器,由调度器为所述服务器分配新路径的目标控制器;
方式二:服务器的多路径管理模块确定可用路径条数过少或存在不可用路径时,若服务器的多路径管理模块通过带外的管理网络与存储设备的调度器直接相连,则无需经过服务器的启动器,而是由所述多路径管理模块通过带外管理网络的专用交换机向所述调度器发送路径增加请求,在所述路径增加请求中携带所述服务器的启动器标识,请求所述调度器为为所述服务器分配新路径的目标控制器。
存储设备中存储有已经建立的会话连接的起始节点与目标节点之间的对应关系,调度器为请求新路径的服务器分配可用的目标控制器,当存在多个可用的目标控制器时,所述调度器基于负载均衡的原则确定已连接启动器数量最少的控制器作为筛选后的目标控制器。需要说明的是,所述存储设备中存储的起始节点与目标节点之间的对应关系可以采用多种具体的实施方式,例如,所述对应关系采用列表的形式记录在存储设备中,即,在存储设备中记录控制器列表,所述控制器列表用于表示所述存储设备中存储的起始节点与目标节点之间的对应关系。所述控制器列表中可以包括控制器标识和启动器标识,进一步的还可以包括控制器状态。
如图1所示,为本发明实施例提供的场景一的路径管理的系统结构示意图。服务器11通过网络中的交换机13访问存储设备12,所述路径管理的系统包括
服务器11,存储设备12,以及网络中的多个交换机13。其中,该服务器11包括多路径管理模块(又称为Multipath Module)111和启动器113(又称为initiator);存储设备12具体可以为RAID(Redundant Arrays of independent Disks,独立冗余磁盘阵列),该存储设备12包括多个控制器121、调度器122,以及若干存储介质,例如,LUN(Logical Unit Number,逻辑单元号),图中未示出。服务器11通过网卡(HBA,Host Bus Adapter)的接口连接到网络中的交换机13,进一步的连接到存储设备12中的控制器121上,具体的,所述服务器11的启动器113通过HBA与网络中的交换机13相连。
在图1所示的系统中,服务器11的启动器113与存储设备12的控制器121经由服务器的网卡建立会话连接,所述会话连接对应的路径的起始节点为启动器113,所述会话连接对应的路径的目标节点为控制器121。从图2或图3所示的路径管理的系统连接示意图可以看出,服务器11的启动器113可以经过多条路径连接到存储设备12的各个控制器121,服务器11的网卡标识和控制器121的标识一起唯一确定一条路径,如图2所示,服务器可以通过4条路径访问存储设备,如图3所示,服务器可以通过8条路径访问存储设备。所述服务器的网卡标识可以为网卡的IP地址和端口,所述控制器的标识包括控制器IQN(Internet Small Computer System Interface Qualified Name,因特网小型计算机系统接口合法名称)、IP地址和端口。
为使得本发明实施例中各实体功能清晰,本发明实施例对图1中的各实体功能介绍如下:
调度器(Scheduler)122,用于管理存储设备12中的控制器121和存储资源,进一步的,本发明各实施例对调度器122的功能进行了扩展,以用来提供路径分配功能以及控制器状态的管理功能;
控制器121,用于提供存储设备的存储管理和输入输出控制;
启动器113,具体可以为ISCSI(Internet Small Computer System Interface,因特网小型计算机系统接口)initiator,用于提供与控制器121连接和管理的功能。
多路径管理模块111,用于监控启动器,向启动器下发操作指令。所述多路径管理模块可以是服务器中独立硬件或软件。当所述多路径管理模块采用软件模块实现时,所述多路径管理模块111可以通过调用启动器提供的函数接口来实现对启动器的控制功能。或者,所述多路径管理模块也可以通过控制消息来对启动器进行控制。
启动器113,用于接收并执行多路径管理模块111下发的操作指令。
前述实施例对场景一对应的路径管理的系统进行了基本描述,为更清楚的介绍具体的实现方案,结合上述场景一的内容,本发明实施例提供了下述路径管理的方法。
结合如图1所示的系统架构,如图4所示,为本发明实施例提供的场景一下的路径管理的方法流程示意图,所述路径管理系统包括服务器和存储设备,所述存储设备包括调度器和多个控制器,
步骤401:所述服务器建立与所述存储设备之间的至少一个会话连接,每个会话连接对应的路径的起始节点为所述服务器的启动器,所述每个会话连接对应的路径的目标节点为所述存储设备中的控制器,所述存储设备中存储已经建立的会话连接的起始节点与目标节点之间的对应关系;
步骤402:在确定需要增加所述服务器与所述存储设备之间的路径时,所述服务器触发路径增加操作;
步骤403:所述调度器接收由所述服务器触发的路径增加请求,所述路径增加请求中携带所述服务器的启动器的标识,根据所述启动器的标识和存储的所述已经建立的会话连接的起始节点与目标节点之间的对应关系,从所述多个控制器中确定新路径的目标控制器,将确定的所述目标控制器的标识发送给所述服务器,其中,所述目标控制器与所述启动器之间未建立会话连接;
步骤404:所述服务器根据所述目标控制器的标识建立与所述目标控制器之间的路径。
本发明实施例提供了一种路径管理系统管理路径的方法,路径管理系统包括服务器和存储设备,服务器的启动器与存储设备的多个控制器间存在至少一
个会话连接,所述服务器在确定需要增加所述服务器与所述存储设备之间的路径时,触发路径增加操作,存储设备的调度器根据所述启动器的标识和存储的所述已经建立的会话连接的起始节点与目标节点之间的对应关系,从所述多个控制器中确定新路径的目标控制器,从而使得服务器与所述存储设备间建立新路径。通过上述方式,服务器可以自动请求目标控制器,并增加到存储设备目标控制器的路径到已有路径中,实现了路径的动态管理功能,避免了由于路径故障导致可用路径数量减少带来的网络传输质量下降等问题。
结合如图1所示的系统架构,如图5所示,为本发明实施例提供的场景一下的路径管理的方法流程示意图。在本发明实施例中,存储设备包含多个控制器,即控制器1、控制器2、控制器3等等,其中控制器1与控制器3与服务器侧的启动器相连。
本发明实施例包括:
阶段一:连接建立流程
步骤501:多路径管理模块在服务器侧配置多路径信息,所述多路径信息包括标识路径的信息和路径状态。所述用于标识路径的信息包括启动器的标识和控制器的标识,可选的,所述用于标识路径的信息还可以包括网卡的标识。所述启动器标识包括启动器的IQN、IP地址和端口,所述控制器标识包括控制器IQN、IP地址和端口,所述网卡标识包括网卡IP地址和端口。
可选的,在服务器侧可以预先配置满足网络性能需求的可用路径条数的预设阈值,当可用路径条数小于所述预设阈值时,网络传输性能则无法达到性能需求。
进一步的,所述多路径信息还可以包括路径条数N。其中,所述路径条数N用来表示所述存储设备与所述启动器相连的路径数目。
服务器侧还可以包括第一存储器,用来存储配置文件,在所述配置文件中记录所述多路径信息。
步骤502:调度器配置控制器列表,所述控制器列表用于表示配置的控制器和服务器之间的对应关系。所述控制器列表包括:启动器标识、控制器标识,
以及路径状态。进一步的,所述控制器列表还可以包括LUN标识,用于表示服务器可访问的LUN。
存储设备侧还可以包括第二存储器,用来记录存储设备侧的所述控制器列表。
步骤503:建立启动器与控制器之间的会话连接,形成启动器与控制器之间的多条路径。
需要说明的是,建立的会话连接对应的路径的起始节点为服务器的启动器,目标节点为存储设备的控制器,存储设备中存储的所述控制器列表为所述起始节点和目标节点间对应关系的一种具体实现,本领域技术人员可以理解的是,存储设备可以采用现有技术中的其他记录方式,本发明实施例对此并不进行限定。
示例性的,本发明实施例中,启动器分别与控制器1和控制器3建立会话连接,具体的会话连接建立可以采用现有技术中的通用方式,本发明实施例对此并不进行限定。
阶段二:周期性检测流程。在建立服务器的启动器与存储设备的多个控制器之间的路径连接后,多路径管理模块控制启动器对已建立的路径进行周期性检测,包括:
步骤504:多路径管理模块向启动器发送检测启动指令,用于通知启动器对与所述启动器连接的控制器发起周期性检测;
步骤505:启动器向与其连接的控制器发送周期性检测指令;
示例性的,在本发明实施例中,启动器分别向控制器1和控制器3发送周期检测指令。
步骤506:启动器接收控制器返回的检测响应消息,根据接收到的检测响应消息确定不可用路径;
示例性的,启动器接收控制器1返回的检测响应消息,当检测响应消息为正常时,所述启动器确定发送所述响应消息的路径正常;当与启动器连接的控制器3未返回检测响应消息或返回错误检测响应消息时,则启动器确定与该控
制器3连接的未发送检测响应消息或者发送错误检测响应消息的路径为不可用路径,更新步骤1中记录的多路径信息,将所述多路径信息中不可用路径对应的路径状态设置为不可用。
阶段三:当有路径不可用时,路径增加流程
步骤507:多路径管理模块通过监测所述启动器,获取当前不可用路径的信息;
具体的,多路径管理模块可以向启动器发送周期性的查询消息,确定与所述启动器相连的各路径的当前状态。
步骤508:多路径管理模块向启动器发送控制指令,所述控制指令用于通知所述启动器发起路径增加流程;
示例性的,多路径管理模块获知启动器与控制器3连接的路径状态为不可用,多路径管理模块向启动器发送控制指令,通知启动器发起路径增加流程。
步骤509:启动器向与其连接的路径状态为可用的控制器发送路径增加指令,所述路径增加指令中包括启动器的标识;
具体的,当在服务器与存储设备之间存在多条可用路径时,所述启动器可用通过任意可用路径向所述任意可用路径的目标节点发送路径增加指令。示例性的,启动器向控制器1发送ISCSI指令,所述ISCSI指令用于请求增加一条新的路径,所述ISCIS指令的具体格式如下:
Key/value pairs
Keyvalue:requestnewtarget=one
需要说明的是,启动器向控制器发送的路径增加指令请求的新路径数量可以为多条。
步骤510:接收到所述路径增加指令的可用控制器向调度器发送路径增加请求,所述路径增加请求中携带所述启动器的标识;
具体的,在本发明实施例中,控制器1接收到ISCSI指令后,向调度器发送路径增加请求,请求分配新路径的目标控制器。
步骤511:调度器从存储设备中存储的配置文件中读取控制器列表,为所
述启动器分配目标控制器(例如控制器2),并将目标控制器的标识发送给所述可用控制器;
在本发明实施例中,调度器负责路径的分配,调度器可以基于负载均衡等路径分配算法进行路径的分配。
当调度器收到路径增加请求时,遍历控制器列表,根据路径增加请求中携带的启动器的标识查找符合如下条件的控制器:
控制器的状态为正常工作;
控制器对应的已分配启动器标识列表不包含请求分配路径的启动器标识;
控制器连接的启动器数量最少。
需要说明的是,当存在多个满足上述条件的控制器时,调度器可以随机选择任一个或多个。调度器将所述启动器的标识加入到选定的目标控制器的已分配启动器标识列表中,并将所述目标控制器的标识返回给所述可用控制器。反之,当找不到符合条件的控制器时,则分配失败,调度器向所述可用控制器返回分配失败响应消息。
步骤512:所述可用控制器将所述目标控制器的标识携带在路径增加响应消息中发送给所述启动器,所述目标控制器的标识包括目标控制器的IP地址和端口。
步骤513:所述启动器接收所述路径增加响应消息,获取所述路径增加响应消息中携带的目标控制器的标识,将所述目标控制器的标识发送给所述多路径管理模块;
步骤514:所述多路径管理模块通知所述启动器与所述目标控制器建立会话连接;
步骤515:所述启动器更新服务器侧存储的多路径信息,建立于所述目标控制器间的新路径。
需要说明的是,本发明实施例中,以目标控制器为控制器2进行了说明,本领域技术人员可以理解的是,当目标控制器为多个时,启动器可以与多个目标控制器分别建立会话连接,从而构成多条新的路径。
本发明实施例中,在发现存在不可用路径时,服务器侧发起路径增加流程,通过在路径增加指令中携带启动器的标识,使得存储设备侧的调度器可用根据所述启动器的标识查找控制器列表,为所述启动器新分配目标控制器,所述启动器从而与新分配的目标控制器建立会话连接,完成路径增加流程。通过上述方式,保证了服务器与存储设备间可用路径的数量,当存储设备的分布式阵列扩容时,可以自动将新扩容的控制器利用起来,实现了分布式存储设备中路径的动态管理。
结合如图1所示的系统结构,如图6所示,为本发明实施例提供的场景一下的另一种路径管理系统管理路径的方法流程示意图。与上述实施例区别在于,上述实施例通过周期性检测获得不可用路径信息,服务器触发路径增加操作,而在本发明实施例中,服务器检测确定当前可用路径条数,当与启动器连接的当前可用路径条数未达到系统预设阈值时增加路径。本发明实施例中各部件的连接关系与前述实施例一中各部件的连接关系相同。
本发明实施例提供的方法包括以下步骤:
阶段一:连接建立流程
本发明实施例的连接建立流程与前述实施例一类似,本发明不再赘述。
阶段二:当可用路径条数小于预设阈值时,路径增加流程
步骤:604:多路径管理模块监测所述启动器,获取与所述启动器相连的可用路径条数;
具体的,多路径管理模块可以向启动器发送查询指令,所述启动器在接收到所述查询指令后,根据服务器侧的多路径信息确定当前可用路径条数,并将所述可用路径条数返回给所述多路径管理模块。在另一种可行的实施方式中,启动器在收到查询指令后,将部分或全部多路径信息返回给所述多路径管理模块,多路径管理模块在收到所述部分或全部多路径信息后,确定当前可用路径条数。示例性的,启动器可用将多路径信息中的路径状态发生给所述多路径管理模块,多路径管理模块根据所述路径状态进行可用路径条数的统计。
在另一种实施方式中,多路径管理模块可以直接查询服务器侧记录的多路径信息,获取当前可用路径条数。
步骤605:多路径管理模块确定所述可用路径条数是否小于预设阈值,如果所述可用路径条数小于所述预设阈值,则向启动器发送控制指令,所述控制指令用于通知启动器发起增加路径流程;
步骤606:所述启动器向与其连接的路径状态为可用的控制器发送路径增加指令,指令中包括启动器的标识;
当存在多条可用路径时,所述启动器可以随机选择任意可用路径传递所述路径增加指令。
步骤607-612与前述实施例一的步骤510-515类似,本发明实施例不再赘述。
本发明实施例中,服务器侧预先设置了满足网络性能需求必须的可用路径预设阈值,多路径管理模块通过监控启动器获取当前可用路径条数,当当前可用路径条数未到达所述预设阈值时,发起路径增加流程,从而保证了服务器与存储设备间可用路径的数量,实现了分布式存储设备中路径的动态管理。
结合如图1所示的系统结构,如图7所示,为本发明实施例提供的场景一下的另一种路径管理的方法流程示意图,包括:
阶段一:连接建立流程
步骤701-703与步骤501-503类似,本发明实施例不再赘述。
阶段二:当发现控制器状态为不可用时,服务器侧移除对应的路径
步骤704:多路径管理模块向启动器发送控制器状态请求消息,用于获取与所述启动器相连的控制器的状态信息;
步骤705:启动器向与其连接的路径状态为可用的控制器发送状态查询指令,所述状态查询指令中携带与所述启动器相连的控制器的标识;
具体的,当存在多个与所述启动器相连且路径状态为可用的控制器时,启动器可用随机选择任意可用路径用于传输所述状态查询指令。
步骤706:接收到所述状态查询指令的可用控制器向所述调度器发送状态查询消息,所述状态查询消息包括所述与所述启动器相连的控制器的标识。
步骤707:所述调度器查询所述控制器列表,根据与所述启动器相连的控制器的标识获取与所述启动器相连的控制器的状态信息,将获取到的与所述启动器相连的控制器的状态信息返回给所述可用控制器;
步骤708:所述可用控制器将所述与所述启动器相连的控制器的状态信息通过所述启动器返回给所述多路径管理模块;
步骤709:所述多路径管理模块向所述启动器发送更新指令,通知所述启动器更新所述多路径信息,从而删除状态为不可用的控制器对应的路径。由于服务器侧存储的多路径信息中记录有控制器标识,即可识别并删除不可用控制器相关的路径。
本发明实施例中,多路径管理模块控制启动器,通过任意可用路径向调度器查询与所述启动器相连的控制器的状态信息,从调度器获取与所述启动器相连的控制器的状态信息,从而识别不可用控制器,删除状态为不可用的控制器对应的路径。即,当存储设备的分布式阵列减容时,服务器可以自动将已经不存在的控制器剔除。
如图8所示,为本发明实施例提供的场景二的系统结构示意图,与场景一的区别在于,本发明实施例中,服务器侧的多路径管理模块通过带外方式与存储设备侧的调度器直接相连,即多路径管理模块通过管理网络中的专用交换机与所述调度器相连。多路径管理模块可以向调度器直接发起路径增加流程,或者向调度器获取与服务器的启动器相连的控制器的状态。
结合如图8所示的系统架构,如图9所示,本发明实施例提供了场景二下的一种路径管理方法的流程示意图,介绍了当存在不可用路径时新增路径的流程。其中,示例性的,启动器与控制器1和控制器3相连,多路径管理模块通过专用交换机与存储设备侧的调度器相连。需要说明的是,专用交换机仅是本发明实施例给出的一种带外连接的实现方案,本领域技术人员可以理解的是,
也可以通过其他方式实现多路径管理模块和调度器之间的带外连接,本发明实施例对此并不进行限定。
本发明实施例包括:
阶段一:连接建立流程。
阶段二:周期性检测流程。
步骤901-步骤906与步骤501-506的执行方式类似,本发明实施例不再赘述。
阶段三:当有路径不可用时,路径增加流程
步骤907:多路径管理模块通过监测所述启动器,获取当前不可用路径的信息;
具体的,多路径管理模块可以向启动器发送周期性的查询消息,确定与所述启动器相连的各路径的当前状态。
步骤908:多路径管理模块获取所述不可用路径的信息,向所述调度器发送路径增加请求,所述路径增加请求携带所述启动器的标识;
示例性的,多路径管理模块可以通过监测启动器,获取启动器根据所述多路径信息返回的消息,获知启动器与控制器3连接的路径状态为不可用。
步骤909:调度器从存储设备中存储的配置文件中读取控制器列表,根据所述启动器标识为所述启动器新路径的目标控制器,将目标控制器的标识在路径增加响应中发送给所述多路径管理模块。
具体的,调度器根据控制器当前状态及负载,为所述启动器分配新的控制器。具体分配方式与步骤511类似,本发明实施例不再赘述。示例性的,本发明实施例以控制器2为例进行说明,调度器根据路径分配算法选择控制器2作为为所述启动器分配的新路径的目标控制器,将控制器2的标识返回给所述多路径管理模块。
步骤910:所述多路径管理模块将所述新分配的目标控制器的标识发送给所述启动器,通知所述启动器与所述目标控制器建立会话连接;
步骤911:启动器更新服务器侧存储的多路径信息,将与所述目标控制器
之间的路径的信息加入到所述多路径信息中,建立于所述目标控制器之间的新路径。
本发明实施例中,服务器的多路径管理模块与存储设备的调度器通过带外管理网络的专用交换机相连,在发现存在不可用路径时,服务器侧发起路径增加流程,通过在路径增加请求中携带启动器的标识,使得存储设备侧的调度器可用根据所述启动器的标识查找控制器列表,为所述启动器新分配目标控制器,所述启动器从而与新分配的目标控制器建立新路径。通过上述方式,保证了服务器与存储设备间可用路径的数量,当存储设备的分布式阵列扩容时,可以自动将新扩容的控制器利用起来,实现了分布式存储设备中路径的动态管理。
结合如图8所示的系统架构,如图10所示,本发明实施例提供了场景二下的另一种路径管理方法的流程示意图,介绍了当启动器与存储设备的控制器之间的可用路径条数小于预设阈值时的路径增加流程。
本发明实施例包括:
阶段一:连接建立流程。
步骤1001-1003连接建立流程,与步骤501-503类似;
阶段二:当可用路径条数小于预设阈值时,路径增加流程
步骤1004:多路径管理模块监测所述启动器,获取与所述启动器相连的可用路径条数;
具体的,多路径管理模块可以向启动器发送查询指令,所述启动器在接收到所述查询指令后,根据服务器侧的多路径信息确定当前可用路径条数,并将所述可用路径条数返回给所述多路径管理模块。在另一种可行的实施方式中,启动器在收到查询指令后,将部分或全部多路径信息返回给所述多路径管理模块,多路径管理模块在收到所述部分或全部多路径信息后,确定当前可用路径条数。示例性的,启动器可用将多路径信息中的路径状态发生给所述多路径管理模块,多路径管理模块根据所述路径状态进行可用路径条数的统计。
在另一种实施方式中,多路径管理模块可以查询多路径信息,获取当前可
用路径条数。
步骤1005:多路径管理模块确定所述可用路径条数是否小于预设阈值,如果所述可用条数小于所述预设阈值,通过管理网络中的专用交换机向存储设备的调度器发送发送路径增加请求,所述路径增加请求中携带所述启动器的标识;
步骤1006-步骤1008与步骤909-911类似,本发明实施例不再赘述。
本发明实施例中,服务器侧预先设置了满足网络性能需求必须的可用路径预设阈值,多路径管理模块通过监控启动器获取当前可用路径条数,当当前可用路径条数未到达所述预设阈值时,发起路径增加流程增加新路径,从而保证了服务器与存储设备间可用路径的数量,实现了分布式存储设备中路径的动态管理。
结合图8所示的系统架构,如图11所示,本发明实施例提供了场景二下的另一种路径管理方法的流程示意图,包括:
阶段一:连接建立流程
步骤1101-1103连接建立流程,与步骤501-503类似;
阶段二:当发现控制器状态为不可用时,服务器侧移除对应的路径
步骤1104:多路径管理模块通过专用交换机向调度器发送状态请求消息,用于获取与所述启动器相连的控制器的状态信息,所述状态请求消息携带与所述启动器相连的控制器的标识;
步骤1105:所述调度器查询所述控制器列表,根据所述与所述启动器相连的控制器的标识获取与所述启动器相连的控制器的状态信息,将获取到的与所述启动器相连的控制器的状态信息返回给所述多路径管理模块;
步骤1106:所述多路径管理模块向所述启动器发送更新指令,所述更新指令携带获取到的与所述启动器相连的控制器的状态信息,通知所述启动器根据与所述启动器相连的控制器的状态信息更新所述多路径信息,删除状态为不可用的控制器对应的路径。
本发明实施例中,多路径管理模块通过专用交换机从调度器获取与启动器
相连的控制器的状态信息,从而识别不可用控制器,控制启动器删除状态为不可用的控制器对应的路径。即,当存储设备的分布式阵列减容时,服务器可以自动将已经不存在的控制器剔除。
需要说明的是,在本发明上述各实施例中,新增的目标控制器可以为一个控制器或多个控制器,当当前可用路径条数较少时,调度器可以一次返回多个目标控制器的标识,从而使得启动器与所述多个目标控制器之间建立多条新路径。
如图12所示,为本发明实施例提供的另一种路径管理的方法流程示意图,一种路径管理的方法,应用于路径管理系统,所述路径管理系统包括服务器和存储设备,所述存储设备包括多个控制器和调度器,所述方法包括:
步骤1201:所述多个控制器中的至少一个控制器与所述服务器之间建立会话连接,所述会话连接对应的路径的起始节点为服务器的启动器,所述会话连接对应的路径的目标节点为所述存储设备中的控制器,所述存储设备中存储已经建立的会话连接的起始节点与目标节点之间的对应关系;
步骤1202:所述调度器接收由所述服务器触发的路径增加请求,所述路径增加请求中携带所述服务器的启动器的标识,根据所述启动器的标识和存储的所述已经建立的会话连接的起始节点与目标节点之间的对应关系,从所述多个控制器中确定新路径的目标控制器,将确定的所述目标控制器的标识发送给所述服务器,其中,所述目标控制器与所述启动器之间未建立会话连接;
步骤1203:所述目标控制器建立与所述服务器的启动器之间的新路径。
进一步的,当所述确定的新路径的目标控制器为多个时,所述方法还包括:
所述调度器从多个目标控制器中确定符合如下条件的至少一个目标控制器:控制器连接的启动器数量最少。
所述方法还包括:
所述多个控制器中的至少一个控制器接收所述服务器发送的状态查询指令,向所述调度器发送状态查询消息,所述状态查询消息中携带有与所述服务器的启动器存在会话连接的控制器的标识;
所述调度器接收所述状态查询消息,获取所述与所述服务器的启动器存在会话连接的控制器的状态信息,将获取的所述与所述服务器的启动器存在会话连接的控制器的状态信息通过所述任意可用路径的目标节点返回给所述服务器,以使得所述服务器删除记录的多路径信息中不可用控制器对应的路径。
如图13所示,为本发明实施例提供的另一种路径管理的方法,应用于路径管理系统,所述路径管理系统包括服务器和存储设备,所述服务器包括多路径管理模块和启动器,所述存储设备包括调度器和多个控制器,其中,所述服务器的启动器与所述存储设备的多个控制器之间存在至少一个会话连接,每个会话连接对应的路径的起始节点为所述服务器的启动器,所述每个会话连接对应的路径的目标节点为所述存储设备中的控制器,所述存储设备中存储已经建立的会话连接的起始节点与目标节点之间的对应关系,
步骤1301:所述启动器接收所述多路径管理模块在确定需要增加所述服务器与所述存储设备之间的路径时发送的控制指令,所述控制指令用于通知所述启动器执行路径增加操作;
步骤1302:所述启动器通过任意可用路径向所述任意可用路径的目标节点发送路径增加指令,所述路径增加指令携带所述启动器的标识,所述路径增加指令用于通知所述任意可用路径的目标节点向所述调度器发送路径增加请求,以使得所述调度器根据所述启动器的标识和存储的所述已经建立的会话连接的起始节点与目标节点之间的对应关系,从所述多个控制器中确定新路径的目标控制器,其中,所述目标控制器与所述启动器之间未建立会话连接;
步骤1303:所述服务器根据所述目标控制器的标识建立与所述目标控制器之间的路径。
与前述各方法实施例相对应,本发明实施例还提供了一种服务器,包括多路径管理模块和启动器,
启动器,用于建立与存储设备之间的至少一个会话连接,每个会话连接对应的路径的起始节点为所述服务器的启动器,所述每个会话连接对应的路径的目标节点为所述存储设备中的控制器;
多路径管理模块,用于在确定需要增加所述服务器与所述存储设备之间的路径时,触发路径增加操作,以使得所述存储设备的调度器根据所述启动器的标识和存储的已经建立的会话连接的起始节点与目标节点之间的对应关系,从所述存储设备的多个控制器中确定新路径的目标控制器;
所述启动器,还用于根据所述存储设备发送的所述目标控制器的标识建立于所述目标控制器之间的路径。
所述存储设备中存储有所述已经建立的会话连接的起始节点与目标节点之间的对应关系,所述存储设备的调度器根据所述对应关系以及所述启动器的标识为所述服务器分配新路径的目标控制器,所述目标控制器与所述启动器之间未建立会话连接。
其中,服务器侧存储有多路径信息,所述多路径信息包括用于标识路径的信息以及路径状态。
所述多路径管理模块,还用于根据所述多路径信息,确定当前可用路径条数,当所述可用路径条数小于预设阈值时,则确定需要增加所述服务器与所述存储设备之间的路径。
所述启动器,还用于向与自身存在会话连接的控制器发送周期性检测指令,接收返回的检测响应消息,根据所述检测响应消息确定不可用路径,更新所述多路径信息中不可用路径对应的路径状态。
所述多路径管理模块,具体用于向所述启动器发送用于发起路径增加操作的控制指令;
所述启动器,具体用于根据所述控制指令,向任意可用路径的目标节点发送路径增加指令,所述路径增加指令携带所述启动器的标识。
所述启动器,还用于接收所述多路径管理模块发送的控制器状态请求消息,通过任意可用路径,向所述任意可用路径的目标节点发送状态查询指令,所述状态查询指令携带与所述启动器存在会话连接的控制器的标识;
所述启动器,还用于接收所述调度器通过所述任意可用路径返回的与所述服务器的启动器存在会话连接的控制器的状态信息,删除记录的所述多路径信
息中不可用控制器对应的路径,其中,所述标识路径的信息包括控制器标识。
所述多路径管理模块,具体用于通过专用交换机向所述存储设备的调度器发送路径增加请求,所述路径增加请求携带所述启动器的标识;
所述多路径管理模块,还用于接收所述调度器返回的目标控制器的标识,通知所述启动器建立与所述目标控制器之间的新路径。
所述多路径管理模块,还用于通过专用交换机向所述存储设备的调度器发送状态查询消息,所述状态查询消息携带与所述启动器存在会话连接的控制器的标识;
所述多路径管理模块,还用于接收所述调度器返回的与所述启动器存在会话连接的控制器的状态信息,删除记录的所述多路径信息中不可用控制器对应的路径,其中,所述标识路径的信息包括控制器标识。
本发明实施例还提供了一种存储设备,所述存储设备包括多个控制器和调度器,
所述多个控制器中的至少一个控制器,用于与服务器之间建立会话连接,所述会话连接对应的路径的起始节点为服务器的启动器,所述会话连接对应的路径的目标节点为所述存储设备中的控制器,所述存储设备中存储已经建立的会话连接的起始节点与目标节点之间的对应关系;
所述调度器,用于接收由所述服务器触发的路径增加请求,所述路径增加请求中携带所述服务器的启动器的标识,根据所述启动器的标识和存储的所述已经建立的会话连接的起始节点与目标节点之间的对应关系,从所述多个控制器中确定新路径的目标控制器,将确定的所述目标控制器的标识发送给所述服务器,其中,所述目标控制器与所述启动器之间未建立会话连接;
所述目标控制器,用于建立与所述服务器的启动器之间的新路径。
当确定的所述新路径的目标控制器为多个时,
所述调度器,还用于从多个目标控制器中确定符合如下条件的至少一个目标控制器:
控制器连接的启动器数量最少。
所述调度器,还用于接收由所述服务器触发的状态查询消息,所述状态查询消息中携带有与所述服务器的启动器存在会话连接的控制器的标识;
所述调度器,还用于根据所述与所述服务器的启动器存在会话连接的控制器的标识获取与所述服务器的启动器存在会话连接的控制器的状态信息,将获取到的状态信息返回给所述服务器。
所述调度器,具体用于接收所述服务器通过任意可用路径的目标节点发送的所述状态查询消息,将与所述服务器的启动器存在会话连接的控制器的状态信息通过所述任意可用路径的目标节点返回给所述服务器;或,
所述调度器,具体用于接收所述服务器的多路径管理模块通过专用交换机发送的所述状态查询消息,将与所述服务器的启动器存在会话连接的控制器的状态信息通过所述专用交换机返回给所述服务器。
本发明实施例提供了一种路径管理的系统、装置和方法,路径管理的系统包括服务器和存储设备,服务器的启动器与存储设备的多个控制器间存在至少一个会话连接,所述服务器在确定需要增加所述服务器与所述存储设备之间的路径时,触发路径增加操作,存储设备的调度器根据所述启动器的标识和存储的所述已经建立的会话连接的起始节点与目标节点之间的对应关系,从所述多个控制器中确定新路径的目标控制器,从而使得服务器与所述存储设备间建立新路径。通过上述方式,服务器可以自动请求目标控制器,并增加到存储设备目标控制器的路径到已有路径中,实现了路径的动态管理功能,避免了由于路径故障导致可用路径数量减少带来的网络传输质量下降等问题。
进一步地,如图14所示,本发明实施例提供了一种服务器或存储设备的硬件构成示意图。在具体产品实现中,所述服务器或存储设备包括至少一个处理器(例如CPU),至少一个网络接口或者其他通信接口,存储器,和至少一个通信总线,用于实现这些上述实施例中各部件之间的连接通信。处理器用于执行存储器中存储的可执行模块,实现上述各实施例中多路径管理模块、启动器、控制器,以及调度器等部件的功能。存储器可能包含高速随机存取存储器(RAM:Random Access Memory),也可能还包括非不稳定的存储器(non-volatile
memory),例如至少一个磁盘存储器。通过至少一个网络接口(可以是有线或者无线)实现该系统网关与至少一个其他网元之间的通信连接,可以使用互联网,广域网,本地网,城域网等。
在一些实施方式中,计算机可读介质中存储了程序指令,包括计算机执行指令,以供计算机的处理器执行所述计算机执行指令时,所述计算机执行如上述各实施例中任一所述的路径管理的方法。其中,程序指令可包括本发明上述实施例中指出的各个部件,各部件具体的实现方式可参见本发明上述实施例中的相应内容,这里不再赘述。
通过以上的实施方式的描述可知,本领域的技术人员可以清楚地了解到上述实施例方法中的全部或部分步骤可借助软件加必需的通用硬件平台的方式来实现。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,资源管理服务器,或者诸如媒体网关等网络通信设备,等等)执行本发明各个实施例或者实施例的某些部分所述的方法。
需要说明的是,本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于设备及系统实施例而言,由于其基本相似于方法实施例,所以描述得比较简单,相关之处参见方法实施例的部分说明即可。以上所描述的设备及系统实施例仅仅是示意性的,其中作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。
以上所述仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内所作的任何修改、等同替换、改进等,均包含在本发明的保护范围内。
Claims (38)
- 一种路径管理的系统,其特征在于,包括服务器和存储设备,所述存储设备包括调度器和多个控制器,所述服务器与所述存储设备之间建立至少一个会话连接,每个会话连接对应的路径的起始节点为所述服务器的启动器,所述每个会话连接对应的路径的目标节点为所述存储设备中的控制器,所述存储设备中存储已经建立的会话连接的起始节点与目标节点之间的对应关系,所述服务器,用于在确定需要增加所述服务器与所述存储设备之间的路径时,触发路径增加操作;所述调度器,用于接收由所述服务器触发的路径增加请求,所述路径增加请求中携带所述服务器的启动器的标识,根据所述启动器的标识和存储的所述已经建立的会话连接的起始节点与目标节点之间的对应关系,从所述多个控制器中确定新路径的目标控制器,将确定的所述目标控制器的标识发送给所述服务器,其中,所述目标控制器与所述启动器之间未建立会话连接;所述服务器,还用于根据所述目标控制器的标识建立与所述目标控制器之间的路径。
- 如权利要求1所述的系统,其特征在于,服务器侧存储有多路径信息,所述多路径信息包括用于标识路径的信息以及路径状态。
- 如权利要求1或2所述的系统,其特征在于,当所述确定的新路径的目标控制器为多个时,所述调度器,还用于从所述多个目标控制器中确定符合如下条件的至少一个目标控制器:控制器连接的启动器数量最少。
- 如权利要求2所述的系统,其特征在于,所述服务器,还用于根据所述多路径信息,确定当前可用路径条数,当所述可用路径条数小于预设阈值时,则确定需要增加所述服务器与所述存储设备之间的路径。
- 如权利要求2-4任一所述的系统,其特征在于,所述服务器,还用于通过任意可用路径,向所述任意可用路径的目标节点发送状态查询指令,以使得所述任意可用路径的目标节点向所述调度器发送状态查询消息,所述状态查询消息中携带有与所述服务器的启动器存在会话连接的控制器的标识;所述调度器,还用于接收所述状态查询消息,获取与所述服务器的启动器存在会话连接的控制器的状态信息,将获取的所述与所述服务器的启动器存在会话连接的控制器的状态信息通过所述任意可用路径的目标节点返回给所述服务器;所述服务器,还用于根据接收到的所述与所述服务器的启动器存在会话连接的控制器的状态信息,删除记录的所述多路径信息中不可用控制器对应的路径,其中,所述标识路径的信息包括控制器标识。
- 如权利要求2-5任一所述的系统,其特征在于,所述服务器,还用于向与自身存在会话连接的控制器发送周期性检测指令,接收返回的检测响应消息,根据所述检测响应消息确定不可用路径,更新所述多路径信息中不可用路径对应的路径状态。
- 如权利要求1-6任一所述的系统,其特征在于,所述服务器,具体用于向任意可用路径的目标节点发送路径增加指令,以触发所述任意可用路径的目标节点向所述调度器发送所述路径增加请求。
- 如权利要求1-6任一所述的系统,其特征在于,所述服务器,具体用于触发所述路径增加请求,并通过专用交换机向所述调度器发送所述路径增加请求,接收所述调度器通过所述专用交换机返回的所述目标控制器的标识。
- 如权利要求2-6任一所述的系统,其特征在于,所述服务器,还用于通过专用交换机向所述调度器发送状态查询请求,所述状态查询请求中携带有与所述服务器的启动器存在会话连接的控制器的标 识;所述调度器,还用于接收所述状态查询消息,获取所述与所述服务器的启动器存在会话连接的控制器的状态信息,将所述与所述服务器的启动器存在会话连接的控制器的状态信息通过所述专用交换机返回给所述服务器,以使得所述服务器删除记录的所述多路径信息中不可用控制器对应的路径,其中,所述标识路径的信息包括控制器标识。
- 如权利要求2所述的系统,其特征在于,所述多路径信息存储在服务器侧的配置文件中。
- 一种服务器,其特征在于,包括多路径管理模块和启动器,启动器,用于建立与存储设备之间的至少一个会话连接,每个会话连接对应的路径的起始节点为所述服务器的启动器,所述每个会话连接对应的路径的目标节点为所述存储设备中的控制器;多路径管理模块,用于在确定需要增加所述服务器与所述存储设备之间的路径时,触发路径增加操作,以使得所述存储设备的调度器根据所述启动器的标识和存储的已经建立的会话连接的起始节点与目标节点之间的对应关系,从所述存储设备的多个控制器中确定新路径的目标控制器;所述启动器,还用于根据所述存储设备发送的所述目标控制器的标识建立于所述目标控制器之间的路径。
- 如权利要求11所述的服务器,其特征在于,服务器侧存储有多路径信息,所述多路径信息包括用于标识路径的信息以及路径状态。
- 如权利要求12所述的服务器,其特征在于,所述多路径管理模块,还用于根据所述多路径信息,确定当前可用路径条数,当所述可用路径条数小于预设阈值时,则确定需要增加所述服务器与所述存储设备之间的路径。
- 如权利要求12-13任一所述的服务器,其特征在于,所述启动器,还用于向与自身存在会话连接的控制器发送周期性检测指令,接收返回的检测响应消息,根据所述检测响应消息确定不可用路径,更新所述多路径信息中不可用路径对应的路径状态。
- 如权利要求12-14任一所述的服务器,其特征在于,所述多路径管理模块,具体用于向所述启动器发送用于发起路径增加操作的控制指令;所述启动器,具体用于根据所述控制指令,向任意可用路径的目标节点发送路径增加指令,所述路径增加指令携带所述启动器的标识。
- 如权利要求12-15所述的服务器,其特征在于,所述启动器,还用于接收所述多路径管理模块发送的控制器状态请求消息,通过任意可用路径,向所述任意可用路径的目标节点发送状态查询指令,所述状态查询指令携带与所述启动器存在会话连接的控制器的标识;所述启动器,还用于接收所述调度器通过所述任意可用路径返回的与所述服务器的启动器存在会话连接的控制器的状态信息,删除记录的所述多路径信息中不可用控制器对应的路径,其中,所述标识路径的信息包括控制器标识。
- 如权利要求11-14任一所述的服务器,其特征在于,所述多路径管理模块,具体用于通过专用交换机向所述存储设备的调度器发送路径增加请求,所述路径增加请求携带所述启动器的标识;所述多路径管理模块,还用于接收所述调度器返回的目标控制器的标识,通知所述启动器建立与所述目标控制器之间的新路径。
- 如权利要求11-14所述的服务器,其特征在于,所述多路径管理模块,还用于通过专用交换机向所述存储设备的调度器发送状态查询消息,所述状态查询消息携带与所述启动器存在会话连接的控制器的标识;所述多路径管理模块,还用于接收所述调度器返回的与所述启动器存在会话连接的控制器的状态信息,删除记录的所述多路径信息中不可用控制器对应 的路径,其中,所述标识路径的信息包括控制器标识。
- 如权利要求12所述的服务器,其特征在于,所述多路径信息存储在服务器侧的配置文件中。
- 一种存储设备,其特征在于,所述存储设备包括多个控制器和调度器,所述多个控制器中的至少一个控制器,用于与服务器之间建立会话连接,所述会话连接对应的路径的起始节点为服务器的启动器,所述会话连接对应的路径的目标节点为所述存储设备中的控制器,所述存储设备中存储已经建立的会话连接的起始节点与目标节点之间的对应关系;所述调度器,用于接收由所述服务器触发的路径增加请求,所述路径增加请求中携带所述服务器的启动器的标识,根据所述启动器的标识和存储的所述已经建立的会话连接的起始节点与目标节点之间的对应关系,从所述多个控制器中确定新路径的目标控制器,将确定的所述目标控制器的标识发送给所述服务器,其中,所述目标控制器与所述启动器之间未建立会话连接;所述目标控制器,用于建立与所述服务器的启动器之间的新路径。
- 如权利要求20所述的存储设备,其特征在于,当确定的所述新路径的目标控制器为多个时,所述调度器,还用于从多个目标控制器中确定符合如下条件的至少一个目标控制器:控制器连接的启动器数量最少。
- 如权利要求20或21所述的存储设备,其特征在于,所述调度器,还用于接收由所述服务器触发的状态查询消息,所述状态查询消息中携带有与所述服务器的启动器存在会话连接的控制器的标识;所述调度器,还用于根据所述与所述服务器的启动器存在会话连接的控制器的标识获取与所述服务器的启动器存在会话连接的控制器的状态信息,将获取到的状态信息返回给所述服务器。
- 如权利要求22所述的存储设备,其特征在在于,所述调度器,具体用于接收所述服务器通过任意可用路径的目标节点发送的所述状态查询消息,将与所述服务器的启动器存在会话连接的控制器的状态信息通过所述任意可用路径的目标节点返回给所述服务器;或,所述调度器,具体用于接收所述服务器的多路径管理模块通过专用交换机发送的所述状态查询消息,将与所述服务器的启动器存在会话连接的控制器的状态信息通过所述专用交换机返回给所述服务器。
- 一种路径管理的方法,其特征在于,应用于路径管理系统,所述路径管理系统包括服务器和存储设备,所述存储设备包括调度器和多个控制器,所述服务器建立与所述存储设备之间的至少一个会话连接,每个会话连接对应的路径的起始节点为所述服务器的启动器,所述每个会话连接对应的路径的目标节点为所述存储设备中的控制器,所述存储设备中存储已经建立的会话连接的起始节点与目标节点之间的对应关系;在确定需要增加所述服务器与所述存储设备之间的路径时,所述服务器触发路径增加操作;所述调度器接收由所述服务器触发的路径增加请求,所述路径增加请求中携带所述服务器的启动器的标识,根据所述启动器的标识和存储的所述已经建立的会话连接的起始节点与目标节点之间的对应关系,从所述多个控制器中确定新路径的目标控制器,将确定的所述目标控制器的标识发送给所述服务器,其中,所述目标控制器与所述启动器之间未建立会话连接;所述服务器根据所述目标控制器的标识建立与所述目标控制器之间的路径。
- 如权利要求24所述的方法,其特征在于,服务器侧存储有多路径信息,所述多路径信息包括用于标识路径的信息以及路径状态。
- 如权利要求24或25所述的方法,其特征在于,当所述确定的新路径 的目标控制器为多个时,所述方法还包括:所述调度器从所述多个目标控制器中确定符合如下条件的至少一个目标控制器:控制器连接的启动器数量最少。
- 如权利要求25或26所述的方法,其特征在于,所述方法还包括:所述服务器根据所述多路径信息,确定当前可用路径条数,当所述可用路径条数小于预设阈值时,则确定需要增加所述服务器与所述存储设备之间的路径。
- 如权利要求25-27任一所述的方法,其特征在于,所述方法还包括:所述服务器通过任意可用路径,向所述任意可用路径的目标节点发送发送状态查询指令,以使得所述可用路径的目标节点向所述调度器发送状态查询消息,所述状态查询消息中携带有与所述服务器的启动器存在会话连接的控制器的标识;所述调度器接收所述状态查询消息,获取所述与所述服务器的启动器存在会话连接的控制器的状态信息,将获取的所述与所述服务器的启动器存在会话连接的控制器的状态信息通过所述任意可用路径的目标节点返回给所述服务器;所述服务器根据接收到的所述与所述服务器的启动器存在会话连接的控制器的状态信息,删除记录的所述多路径信息中不可用控制器对应的路径,其中,所述标识路径的信息包括控制器标识。
- 如权利要求25-28任一所述的方法,其特征在于,所述方法还包括:所述服务器向与自身存在会话连接的控制器发送周期性检测指令,接收返回的检测响应消息,根据所述检测响应消息确定不可用路径,更新所述多路径信息中不可用路径对应的路径状态。
- 如权利要求24-29所述的方法,其特征在于,所述触发路径增加操作包括:所述服务器向任意可用路径的目标节点发送路径增加指令,以触发所述任意可用路径的目标节点向所述调度器发送所述路径增加请求。
- 如权利要求24-27所述的方法,其特征在于,所述触发路径增加操作包括:所述服务器通过专用交换机向所述调度器发送所述路径增加请求。
- 如权利要求24-27所述的方法,其特征在于,所述方法还包括:所述服务器通过专用交换机向所述调度器发送状态查询请求,所述状态查询请求中携带有与所述服务器的启动器存在会话连接的控制器的标识;所述调度器接收所述状态查询消息,获取所述与所述服务器的启动器存在会话连接的控制器的状态信息,将所述与所述服务器的启动器存在会话连接的控制器的状态信息通过所述专用交换机返回给所述服务器,以使得所述服务器删除记录的所述多路径信息中不可用控制器对应的路径,其中,所述标识路径的信息包括控制器标识。
- 一种路径管理的方法,其特征在于,应用于路径管理系统,所述路径管理系统包括服务器和存储设备,所述存储设备包括多个控制器和调度器,所述方法包括:所述多个控制器中的至少一个控制器与所述服务器之间建立会话连接,所述会话连接对应的路径的起始节点为服务器的启动器,所述会话连接对应的路径的目标节点为所述存储设备中的控制器,所述存储设备中存储已经建立的会话连接的起始节点与目标节点之间的对应关系;所述调度器接收由所述服务器触发的路径增加请求,所述路径增加请求中携带所述服务器的启动器的标识,根据所述启动器的标识和存储的所述已经建立的会话连接的起始节点与目标节点之间的对应关系,从所述多个控制器中确定新路径的目标控制器,将确定的所述目标控制器的标识发送给所述服务器,其中,所述目标控制器与所述启动器之间未建立会话连接;所述目标控制器建立与所述服务器的启动器之间的新路径。
- 如权利要求33所述的方法,其特征在于,当所述确定的新路径的目标控制器为多个时,所述方法还包括:所述调度器从多个目标控制器中确定符合如下条件的至少一个目标控制器:控制器连接的启动器数量最少。
- 如权利要求33所述的方法,其特征在于,所述方法还包括:所述多个控制器中的至少一个控制器接收所述服务器发送的状态查询指令,向所述调度器发送状态查询消息,所述状态查询消息中携带有与所述服务器的启动器存在会话连接的控制器的标识;所述调度器接收所述状态查询消息,获取所述与所述服务器的启动器存在会话连接的控制器的状态信息,将获取的所述与所述服务器的启动器存在会话连接的控制器的状态信息通过所述任意可用路径的目标节点返回给所述服务器,以使得所述服务器删除记录的多路径信息中不可用控制器对应的路径。
- 一种路径管理的方法,其特征在于,应用于路径管理系统,所述路径管理系统包括服务器和存储设备,所述服务器包括多路径管理模块和启动器,所述存储设备包括调度器和多个控制器,其中,所述服务器的启动器与所述存储设备的多个控制器之间存在至少一个会话连接,每个会话连接对应的路径的起始节点为所述服务器的启动器,所述每个会话连接对应的路径的目标节点为所述存储设备中的控制器,所述存储设备中存储已经建立的会话连接的起始节点与目标节点之间的对应关系,所述启动器接收所述多路径管理模块在确定需要增加所述服务器与所述存储设备之间的路径时发送的控制指令,所述控制指令用于通知所述启动器执行路径增加操作;所述启动器通过任意可用路径向所述任意可用路径的目标节点发送路径增加指令,所述路径增加指令携带所述启动器的标识,所述路径增加指令用于通 知所述任意可用路径的目标节点向所述调度器发送路径增加请求,以使得所述调度器根据所述启动器的标识和存储的所述已经建立的会话连接的起始节点与目标节点之间的对应关系,从所述多个控制器中确定新路径的目标控制器,其中,所述目标控制器与所述启动器之间未建立会话连接;;所述服务器根据所述目标控制器的标识建立与所述目标控制器之间的路径。
- 一种路径管理的装置,其特征在于,所述装置包括处理器、存储器、总线和通信接口;所述存储器用于存储计算机执行指令,所述处理器与所述存储器通过所述总线连接,当所述路径管理的装置运行时,所述处理器执行所述存储器存储的所述计算机执行指令,以使所述路径管理的装置执行如权利要求24-36中任一所述的路径管理的方法。
- 一种计算机可读介质,其特征在于,包括计算机执行指令,以供计算机的处理器执行所述计算机执行指令时,所述计算机执行如权利要求24-36中任一所述的路径管理的方法。
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2014/092039 WO2016082078A1 (zh) | 2014-11-24 | 2014-11-24 | 路径管理的系统、装置和方法 |
CN201480040589.6A CN105900068B (zh) | 2014-11-24 | 2014-11-24 | 路径管理的系统、装置和方法 |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2014/092039 WO2016082078A1 (zh) | 2014-11-24 | 2014-11-24 | 路径管理的系统、装置和方法 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2016082078A1 true WO2016082078A1 (zh) | 2016-06-02 |
Family
ID=56073289
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2014/092039 WO2016082078A1 (zh) | 2014-11-24 | 2014-11-24 | 路径管理的系统、装置和方法 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN105900068B (zh) |
WO (1) | WO2016082078A1 (zh) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110996139A (zh) * | 2019-12-19 | 2020-04-10 | 浙江大华技术股份有限公司 | 一种视频路径切换处理方法及装置 |
CN112153128A (zh) * | 2020-09-11 | 2020-12-29 | 北京浪潮数据技术有限公司 | 一种通信方法、装置、设备及可读存储介质 |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112153149B (zh) * | 2020-09-27 | 2022-11-11 | 苏州浪潮智能科技有限公司 | 一种服务器连接方法、系统、电子设备及存储介质 |
CN112748882B (zh) * | 2021-01-15 | 2023-01-10 | 苏州浪潮智能科技有限公司 | 一种主机与存储设备的通信方法、装置、设备及可读介质 |
CN114064288B (zh) * | 2021-11-24 | 2022-08-26 | 北京志凌海纳科技有限公司 | 用于分布式存储系统的数据链路分配方法、装置和设备 |
CN114500575B (zh) * | 2021-12-27 | 2024-07-30 | 天翼云科技有限公司 | 多路径对象map中路径丢失管理方法、装置及存储介质 |
CN114978660B (zh) * | 2022-05-17 | 2024-04-19 | 阿里巴巴(中国)有限公司 | 带外网络的构建方法和基于带外网络的带外处理方法 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040267980A1 (en) * | 2003-06-26 | 2004-12-30 | International Business Machines Corporation | Method, system, and program for maintaining and swapping paths in an MPIO environment |
CN103078944A (zh) * | 2013-01-08 | 2013-05-01 | 赛凡信息科技(厦门)有限公司 | 基于分布式对称文件系统的数据中心架构 |
CN104092758A (zh) * | 2014-07-14 | 2014-10-08 | 南京斯坦德云科技股份有限公司 | 一种分布式高速云存储服务器集群系统及读取方法 |
CN104123359A (zh) * | 2014-07-17 | 2014-10-29 | 江苏省邮电规划设计院有限责任公司 | 一种分布式对象存储系统的资源管理方法 |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB0613239D0 (en) * | 2006-07-04 | 2006-08-09 | Ibm | Storage area network system |
JP2012208896A (ja) * | 2011-03-30 | 2012-10-25 | Nec Corp | ディスクアレイ装置、接続経路制御方法、及び接続経路制御プログラム |
CN102495815B (zh) * | 2011-11-15 | 2015-03-11 | 华为数字技术(成都)有限公司 | I/o数据访问中断的处理方法和系统以及设备 |
CN103023697B (zh) * | 2012-11-29 | 2016-03-09 | 华为技术有限公司 | 一种阵列多路径的管理方法、装置及系统 |
-
2014
- 2014-11-24 WO PCT/CN2014/092039 patent/WO2016082078A1/zh active Application Filing
- 2014-11-24 CN CN201480040589.6A patent/CN105900068B/zh active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040267980A1 (en) * | 2003-06-26 | 2004-12-30 | International Business Machines Corporation | Method, system, and program for maintaining and swapping paths in an MPIO environment |
CN103078944A (zh) * | 2013-01-08 | 2013-05-01 | 赛凡信息科技(厦门)有限公司 | 基于分布式对称文件系统的数据中心架构 |
CN104092758A (zh) * | 2014-07-14 | 2014-10-08 | 南京斯坦德云科技股份有限公司 | 一种分布式高速云存储服务器集群系统及读取方法 |
CN104123359A (zh) * | 2014-07-17 | 2014-10-29 | 江苏省邮电规划设计院有限责任公司 | 一种分布式对象存储系统的资源管理方法 |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110996139A (zh) * | 2019-12-19 | 2020-04-10 | 浙江大华技术股份有限公司 | 一种视频路径切换处理方法及装置 |
CN112153128A (zh) * | 2020-09-11 | 2020-12-29 | 北京浪潮数据技术有限公司 | 一种通信方法、装置、设备及可读存储介质 |
CN112153128B (zh) * | 2020-09-11 | 2022-11-15 | 北京浪潮数据技术有限公司 | 一种通信方法、装置、设备及可读存储介质 |
Also Published As
Publication number | Publication date |
---|---|
CN105900068A (zh) | 2016-08-24 |
CN105900068B (zh) | 2019-01-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2016082078A1 (zh) | 路径管理的系统、装置和方法 | |
JP6199514B2 (ja) | ファブリック分散リソースのスケジューリング | |
US7619965B2 (en) | Storage network management server, storage network managing method, storage network managing program, and storage network management system | |
US7418627B2 (en) | Cluster system wherein failover reset signals are sent from nodes according to their priority | |
JP5458308B2 (ja) | 仮想計算機システム、仮想計算機システムの監視方法及びネットワーク装置 | |
JP4462969B2 (ja) | フェイルオーバクラスタシステム及びフェイルオーバ方法 | |
US8495255B2 (en) | Discovery and configuration of device configurations | |
WO2017107018A1 (zh) | 应用拓扑关系发现的方法、装置和系统 | |
US8819374B1 (en) | Techniques for performing data migration | |
US20140032753A1 (en) | Computer system and node search method | |
JP5804189B2 (ja) | 情報処理システム,情報処理方法,プログラム | |
EP2283420B1 (en) | Maintaining storage area network ('san') access rights during migration of operating systems | |
JP2010113707A (ja) | 物理及び仮想マルチパス入出力を動的に管理する方法、装置、システム、及びプログラム | |
WO2011151222A1 (en) | Path error correction in storage area networks | |
JP2008542887A (ja) | 仮想化ネットワークストレージシステム、ネットワークストレージ装置及びその仮想化方法 | |
JP5352367B2 (ja) | 仮想マシン起動端末および仮想マシン起動プログラム | |
US11153173B1 (en) | Dynamically updating compute node location information in a distributed computing environment | |
US9300530B2 (en) | Management device, management method, and medium | |
US11500678B2 (en) | Virtual fibre channel port migration | |
US9544371B1 (en) | Method to discover multiple paths to disk devices cluster wide | |
JP6115396B2 (ja) | 情報処理システム,情報処理装置,情報処理装置の制御プログラム,及び情報処理システムの制御方法 | |
JP6279816B2 (ja) | ストレージ監視システムおよびその監視方法 | |
CN111935029B (zh) | 网关负载均衡方法和装置、存储介质及电子设备 | |
KR102697183B1 (ko) | 가상 네트워크 관리 장치 및 방법 | |
WO2016197395A1 (zh) | 一种释放连接的方法、装置及系统 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 14906684 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 14906684 Country of ref document: EP Kind code of ref document: A1 |