# US 12,223,167 B2 · Method, apparatus, and device for cleaning residual paths on host end, and storage medium

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 12,223,167 B2
- Document ID: US12223167B2
- Status: Granted
- Kind: B2
- Application number: 18/270,219
- Filed: 2021-10-29
- Published: 2024-02-22
- Granted: 2025-02-11
- Earliest claimed: 2021-07-12
- Assignees: Inspur Suxhou Intelligent Technology Co., Ltd.
- Applicants: Inspur Suzhou Intelligent Technology Co., Ltd.
- Inventors: Zhenguang Zhang
- Web page: https://patentgrep.com/patent/US12223167B2

## CPC

- G06F 3/0604: {Improving or facilitating administration, e.g. storage management}
- G06F 3/0605: {by facilitating the interaction with a user or administrator}
- G06F 3/0635: {by changing the path, e.g. traffic rerouting, path reconfiguration}
- G06F 3/067: {Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]}
- G06F 3/0671: {In-line storage system}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Provided is a method for cleaning residual paths on a host end, including: acquiring device information of subordinate devices of a plurality of paths; determining, according to the device information, whether links corresponding to the subordinate devices are all abnormal; acquiring a global identification number and connection information of each subordinate device in a case that the links corresponding to the subordinate devices are all abnormal; when the global identification number is not null and the connection information is successfully acquired, querying a mapping state of a volume corresponding to the global identification number and a mapped host according to the global identification number and the connection information; and when the volume is not in the mapping state or the mapped host is not a target host, deleting the plurality of paths and the subordinate devices.

## Claims

### Claim 1

A method for cleaning residual paths on a host end, comprising:
acquiring device information of subordinate devices of a plurality of paths;
determining, according to the device information, whether links corresponding to the subordinate devices are all abnormal;
acquiring a global identification number and connection information of each subordinate device in a case that the links corresponding to the subordinate devices are all abnormal;
when the global identification number is not null and the connection information is successfully acquired, querying a mapping state of a volume corresponding to the global identification number and a mapped host according to the global identification number and the connection information; and
when the volume is not in the mapping state or the mapped host is not a target host, deleting the plurality of paths and the subordinate devices.

### Claim 2 (depends on 1)

The method for cleaning residual paths on a host end according to claim 1, wherein the step of acquiring device information of subordinate devices of a plurality of paths comprises:
acquiring device states of the subordinate devices of the plurality of paths.

### Claim 3 (depends on 2)

The method for cleaning residual paths on a host end according to claim 2, wherein the step of determining, according to the device information, whether links corresponding to the subordinate devices are all abnormal comprises:
determining whether the device states of the subordinate devices are all abnormal;
in a case that the device states of the subordinate devices are all abnormal, determining that the links corresponding to the subordinate devices are all abnormal; and
in a case that the device states of the subordinate devices are not all abnormal, determining that the links corresponding to the subordinate devices are not all abnormal.

### Claim 4 (depends on 1)

The method for cleaning residual paths on a host end according to claim 1, wherein the step of acquiring device information of subordinate devices of a plurality of paths comprises:
acquiring small computer system interface (SCSI) protocol identifiers of the subordinate devices of the plurality of paths.

### Claim 5 (depends on 3)

The method for cleaning residual paths on a host end according to claim 3, wherein the step of determining, according to the device information, whether links corresponding to the subordinate devices are all abnormal comprises:
determining whether the SCSI protocol identifiers of the subordinate devices are all null;
in a case that the SCSI protocol identifiers of the subordinate devices are all null, determining that the links corresponding to the subordinate devices are all abnormal; and
in a case that the SCSI protocol identifiers of the subordinate devices are not all null, determining that the links corresponding to the subordinate devices are not all abnormal.

### Claim 6 (depends on 1)

The method for cleaning residual paths on a host end according to claim 1, further comprising:
when the global identification number is null or the connection information is not successfully acquired, ending a process of cleaning residual paths on a host end.

### Claim 7 (depends on 1)

The method for cleaning residual paths on a host end according to claim 1, wherein before the step of acquiring device information of subordinate devices of a plurality of paths, the method further comprises:
acquiring manufacturer information of the subordinate devices;
determining, according to the manufacturer information, whether a supplier of the subordinate devices is a target supplier;
in a case that the supplier of the subordinate devices is the target supplier, performing the step of acquiring device information of subordinate devices of a plurality of paths and subsequent steps; and
in a case that the supplier of the subordinate devices is not the target supplier, ending the process of cleaning residual paths on a host end.

### Claim 8 (depends on 1)

The method for cleaning residual paths on a host end according to claim 1, wherein the device information is information capable of reflecting link states of the subordinate devices.

### Claim 9

The method for cleaning residual paths on a host end according to 1, wherein the step of acquiring device information of subordinate devices of a plurality of paths comprises:
acquiring device states and SCSI protocol identifiers of the subordinate devices of the plurality of paths.

### Claim 10

The method for cleaning residual paths on a host end according to 9, wherein the step of determining, according to the device information, whether links corresponding to the subordinate devices are all abnormal comprises:
determining whether the device states of the subordinate devices are all abnormal and the SCSI protocol identifiers of the subordinate devices are all null; and
in a case that the device states of the subordinate devices are all abnormal and the SCSI protocol identifiers of the subordinate devices are all null, determining that the links corresponding to the subordinate devices are all abnormal.

### Claim 11

A device for cleaning residual paths on a host end, comprising:
a memory configured to store a computer program; and
a processor configured to implement, when executing the computer program, operations comprising:
acquiring device information of subordinate devices of a plurality of paths;
determining, according to the device information, whether links corresponding to the subordinate devices are all abnormal;
acquiring a global identification number and connection information of each subordinate device in a case that the links corresponding to the subordinate devices are all abnormal;
when the global identification number is not null and the connection information is successfully acquired, querying a mapping state of a volume corresponding to the global identification number and a mapped host according to the global identification number and the connection information; and
when the volume is not in the mapping state or the mapped host is not a target host, deleting the plurality of paths and the subordinate devices.

### Claim 12 (depends on 11)

The device for cleaning residual paths on a host end according to claim 11, wherein the operation of acquiring device information of subordinate devices of a plurality of paths comprises:
acquiring device states of the subordinate devices of the plurality of paths.

### Claim 13 (depends on 12)

The device for cleaning residual paths on a host end according to claim 12, wherein the operation of determining, according to the device information, whether links corresponding to the subordinate devices are all abnormal comprises:
determining whether the device states of the subordinate devices are all abnormal;
in a case that the device states of the subordinate devices are all abnormal, determining that the links corresponding to the subordinate devices are all abnormal; and
in a case that the device states of the subordinate devices are not all abnormal, determining that the links corresponding to the subordinate devices are not all abnormal.

### Claim 14 (depends on 11)

The device for cleaning residual paths on a host end according to claim 11, wherein the operation of acquiring device information of subordinate devices of a plurality of paths comprises:
acquiring small computer system interface (SCSI) protocol identifiers of the subordinate devices of the plurality of paths.

### Claim 15 (depends on 14)

The device for cleaning residual paths on a host end according to claim 14, wherein the operation of determining, according to the device information, whether links corresponding to the subordinate devices are all abnormal comprises:
determining whether the SCSI protocol identifiers of the subordinate devices are all null;
in a case that the SCSI protocol identifiers of the subordinate devices are all null, determining that the links corresponding to the subordinate devices are all abnormal; and
in a case that the SCSI protocol identifiers of the subordinate devices are not all null, determining that the links corresponding to the subordinate devices are not all abnormal.

### Claim 16 (depends on 11)

The device for cleaning residual paths on a host end according to claim 11, wherein the operations further comprise:
when the global identification number is null or the connection information is not successfully acquired, ending a process of cleaning residual paths on a host end.

### Claim 17 (depends on 11)

The device for cleaning residual paths on a host end according to claim 11, wherein before the operation of acquiring device information of subordinate devices of a plurality of paths, the method further comprises:
acquiring manufacturer information of the subordinate devices;
determining, according to the manufacturer information, whether a supplier of the subordinate devices is a target supplier;
in a case that the supplier of the subordinate devices is the target supplier, performing the step of acquiring device information of subordinate devices of a plurality of paths and subsequent steps; and
in a case that the supplier of the subordinate devices is not the target supplier, ending the process of cleaning residual paths on a host end.

### Claim 18 (depends on 11)

The device for cleaning residual paths on a host end according to claim 11, wherein the device information is information capable of reflecting link states of the subordinate devices.

### Claim 19

A non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium, having stored thereon, a computer program when, when executed by a processor, implements operations comprising:
acquiring device information of subordinate devices of a plurality of paths;
determining, according to the device information, whether links corresponding to the subordinate devices are all abnormal;
acquiring a global identification number and connection information of each subordinate device in a case that the links corresponding to the subordinate devices are all abnormal;
when the global identification number is not null and the connection information is successfully acquired, querying a mapping state of a volume corresponding to the global identification number and a mapped host according to the global identification number and the connection information; and
when the volume is not in the mapping state or the mapped host is not a target host, deleting the plurality of paths and the subordinate devices.

### Claim 20 (depends on 19)

The non-transitory computer-readable storage medium according to claim 19, wherein, the operation of acquiring device information of subordinate devices of a plurality of paths comprises:
acquiring device states of the subordinate devices of the plurality of paths.
