IP Library Granted Patent US 11,909,634
Granted Patent B2
US 11,909,634 · App. 18/005,707 · Granted Feb 20, 2024

ISCSI multipath management system and method, device, and storage medium

Inventor: Haotian Lin (Jiangsu, CN)
Assignee: INSPUR SUZHOU INTELLIGENT TECHNOLOGY CO., LTD.
H04L45/54H04L45/02H04L45/74
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,909,634
App. No.
18/005,707
Granted
Feb 20, 2024
Kind
B2
Abstract

An iscsi multi-path management system includes a connection module and a routing module deployed at a client. The routing module is adapted to update and maintain a routing table according to real-time updates, the routing table records legitimate paths conforming to a black/white list rule. The connection module includes a connector and a storage volume manager, the connector is adapted to search for an iscsi target that conforms to the black/white list rule at a storage end, establish an iscsi session through a legitimate path, and notify the storage volume manager to execute a mount volume operation; and the connector is further adapted to regularly recheck the established iscsi session according to an updated black/white list rule, and regularly update and acquire the iscsi target at the storage end, so as to establish the iscsi session with the newly acquired iscsi target that conforms to the updated black/white list rule.

Claims (61)

1. An Internet Small Computer System Interface (iscsi) multi-path management method, applied to a client, wherein the client stores a routing table that is updated and maintained in real time according to a current network topology, and the routing table records legitimate paths that are between a storage end and the client and conform to a black/white list rule; the method includes:

searching for each iscsi target that conforms to the black/white list rule at the storage end;

establishing an iscsi session with the iscsi target that conforms to the black/white list rule through a legitimate path, and executing a mount volume operation;

regularly rechecking the established iscsi session according to an updated black/white list rule; and

regularly updating and acquiring the iscsi target at the storage end, so as to establish the iscsi session with the newly acquired iscsi target that conforms to the updated black/white list rule.

2. An electronic device, comprising:

a memory, adapted to store a computer program; and

a processor, adapted to execute the computer program to implement following operations of an Internet Small Computer System Interface (iscsi) multi-path management method applied to a client, wherein the client stores a routing table that is updated and maintained in real time according to a current network topology, and the routing table records legitimate paths that are between a storage end and the client and conform to a black/white list rule:

searching for each iscsi target that conforms to the black/white list rule at the storage end;

establishing an iscsi session with the iscsi target that conforms to the black/white list rule through a legitimate path, and executing a mount volume operation;

regularly rechecking the established iscsi session according to an updated black/white list rule; and

regularly updating and acquiring the iscsi target at the storage end, so as to establish the iscsi session with the newly acquired iscsi target that conforms to the updated black/white list rule.

3. A non-transitory computer-readable storage medium, wherein the computer-readable storage medium stores a computer program; and

the computer program, when being executed by a processor, is used for implementing following operations of an Internet Small Computer System Interface fiscsi) multi-path management method applied to a client, wherein the client stores a routing table that is updated and maintained in real time according to a current network topology, and the routing table records legitimate paths that are between a storage end and the client and conform to a black/white list rule:

searching for each iscsi target that conforms to the black/white list rule at the storage end;

establishing an iscsi session with the iscsi target that conforms to the black/white list rule through a legitimate path, and executing a mount volume operation;

regularly rechecking the established iscsi session according to an updated black/white list rule; and

regularly updating and acquiring the iscsi target at the storage end, so as to establish the iscsi session with the newly acquired iscsi target that conforms to the updated black/white list rule.

4. The electronic device according to claim 2 , wherein the black/white list rule is stored in a form a blacklist and/or a whitelist; the blacklist and the whitelist are generated by the processor according to an input configuration instruction, wherein

the blacklist records port Internet Protocol (IPs) and network links that are not allowed to bear iscsi traffic; and the whitelist records port IPs and network links that are allowed to bear iscsi traffic.

5. The electronic device according to claim 2 , wherein the processor is adapted to execute the computer program to:

determine port Internet Protocol (IPs) and network links that are allowed to bear iscsi traffic in the storage end according to the black/white list rule, wherein the determined port IPs form a first IP set, and the determined network links form a first link set;

determine network links that are allowed to bear iscsi traffic in the client according to the black/white list rule, wherein the determined network links form a second link set;

regularly acquire and update the first IP set, the first link set, and the second link set according to the updated black/white list rule; and

configure a legitimate path with the client for each port IP in the first IP set in a legitimate network topology, wherein the legitimate network topology is a network topology formed by the first link set and the second link set.

6. The electronic device according to claim 5 , wherein the processor is adapted to execute the computer program to:

configure the legitimate path with the client for each port IP in the first IP set in the legitimate network topology according to a load balancing principle.

7. The electronic device according to claim 5 , wherein the processor is adapted to execute the computer program to:

determine network links that are allowed to bear iscsi traffic between other devices in a network according to the black/white list rule, wherein the determined network links form a third link set; and

the legitimate network topology is a network topology formed by the first link set, the second link set, and the third link set.

8. The electronic device according to claim 2 , wherein the processor, when rechecking the established iscsi session regularly according to the updated black/white list rule, is adapted to execute the computer program to:

regularly acquire the updated black/white list rule, and log off iscsi sessions, that are in an invalid state or do not conform to the updated black/white list rule, in respective currently established iscsi sessions.

9. The electronic device according to claim 8 , wherein the processor is adapted to execute the computer program to:

notify the storage volume manager to execute an unmount volume operation in a case where there is no remaining valid iscsi session after logging off the iscsi sessions, that are in the invalid state or do not conform to the updated black/white list rule, in the respective currently established iscsi sessions.

10. The electronic device according to claim 2 , wherein the processor is adapted to execute the computer program to:

access the storage end after a dependent service is ready to start, query each iscsi target at the storage end, and determine whether each iscsi target conforms to the black/white list rule.

11. The electronic device according to claim 10 , wherein the processor is adapted to execute the computer program to:

in a case where the iscsi target conforms to the black/white list rule, carry out a connection to a port IP of the iscsi target, and establish the corresponding iscsi session.

12. The electronic device according to claim 11 , wherein the processor is adapted to execute the computer program to:

notify the storage volume manager to execute the mount volume operation for a volume corresponding to the iscsi session.

13. The electronic device according to claim 2 , wherein the processor, when executing the mount volume operation, is adapted to execute the computer program to:

acquire a Universally Unique Identifier (UUID) corresponding to a storage volume, query whether there is a multi-path device corresponding to the UUID by accessing a multi-path driver, mount the multi-path device in a case where there is the multi-path device corresponding to the UUID, and return corresponding prompt information in a case where there is no multi-path device corresponding to the UUID.

14. The electronic device according to claim 9 , wherein the processor, when executing the unmount volume operation, is adapted to execute the computer program to:

acquire a Universally Unique Identifier (UUID) corresponding to the storage volume, query a multi-path device corresponding to the UUID by accessing the multi-path driver, query iscsi devices in various iscsi sessions corresponding to the multi-path device, delete the queried iscsi devices, and then delete the multi-path device.

15. The iscsi multi-path management method according to claim 1 , wherein the black/white list rule is stored in a form a blacklist and/or a whitelist; the blacklist and the whitelist are generated according to an input configuration instruction, wherein

the blacklist records port Internet Protocol (IPs) and network links that are not allowed to bear iscsi traffic; and the whitelist records port IPs and network links that are allowed to bear iscsi traffic.

16. The iscsi multi-path management method according to claim 1 , wherein a generation process of the routing table comprises:

determining port Internet Protocol (IPs) and network links that are allowed to bear iscsi traffic in the storage end according to the black/white list rule, wherein the determined port IPs form a first IP set, and the determined network links form a first link set;

determining network links that are allowed to bear iscsi traffic in the client according to the black/white list rule, wherein the determined network links form a second link set;

regularly acquiring and updating the first IP set, the first link set, and the second link set according to the updated black/white list rule; and

configuring a legitimate path with the client for each port IP in the first IP set in a legitimate network topology, wherein the legitimate network topology is a network topology formed by the first link set and the second link set.

17. The iscsi multi-path management method according to claim 16 , wherein configuring the legitimate path with the client for each port IP in the first IP set in the legitimate network topology comprises:

configuring the legitimate path with the client for each port IP in the first IP set in the legitimate network topology according to a load balancing principle.

18. The iscsi multi-path management method according to claim 16 , wherein a generation process of the routing table further comprises:

determining network links that are allowed to bear iscsi traffic between other devices in a network according to the black/white list rule, wherein the determined network links form a third link set; and

the legitimate network topology is a network topology formed by the first link set, the second link set, and the third link set.

19. The iscsi multi-path management method according to claim 1 , wherein regularly rechecking the established iscsi session according to the updated black/white list rule comprises:

regularly acquiring the updated black/white list rule, and logging off iscsi sessions, that are in an invalid state or do not conform to the updated black/white list rule, in respective currently established iscsi sessions.

20. The iscsi multi-path management method according to claim 19 , wherein after the iscsi sessions, that are in the invalid state or do not conform to the updated black/white list rule, in respective currently established iscsi sessions are logged off, the method further comprises:

determining whether there is a remaining valid iscsi session;

notifying a storage volume manager to execute an unmount volume operation in a case where there is no remaining valid iscsi session.

Assignments (2)
LICENSE Recorded Jun 30, 2026
From: IEIT SYSTEMS CO., LTD
To: AIVRES SYSTEMS INC.
Reel/Frame 075857/0939 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jan 17, 2023
From: LIN, HAOTIAN
To: INSPUR SUZHOU INTELLIGENT TECHNOLOGY CO., LTD.
Reel/Frame 062393/0135 →
Priority Claims (1)
CN 202010738743.4 · Jul 28, 2020 · national
Continuity (1)
Related Publication 20230269180A1 · Aug 24, 2023