IP Library Granted Patent US 12,223,167
Granted Patent B2
US 12,223,167 · App. 18/270,219 · Granted Feb 11, 2025

Method, apparatus, and device for cleaning residual paths on host end, and storage medium

Inventor: Zhenguang Zhang (Jiangsu, CN)
Assignee: INSPUR SUXHOU INTELLIGENT TECHNOLOGY CO., LTD.
G06F3/0604G06F3/0635G06F3/067
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 12,223,167
App. No.
18/270,219
Granted
Feb 11, 2025
Kind
B2
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 (67)

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.

2. 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.

3. 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.

4. 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.

5. 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.

6. 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.

7. 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.

8. 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.

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.

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.

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.

12. 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.

13. 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.

14. 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.

15. 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.

16. 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.

17. 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.

18. 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.

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.

20. 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.

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 Jun 29, 2023
From: ZHANG, ZHENGUANG
To: INSPUR SUZHOU INTELLIGENT TECHNOLOGY CO., LTD.
Reel/Frame 064106/0766 →
Priority Claims (1)
CN 202110784141.7 · Jul 12, 2021 · national
Continuity (1)
Related Publication 20240061573A1 · Feb 22, 2024
References Cited (11)
US 6725295B2 · Iwatani · 2004 [cited by examiner]
US 20030055943A1 · Kanai · 2003 [cited by examiner]
US 20200074409A1 · Liu et al. · 2020 [cited by applicant]
US 20220171567A1 · Matosevich · 2022 [cited by examiner]
US 20220357851A1 · Basu · 2022 [cited by examiner]
US 20230195325A1 · Xuan · 2023 [cited by examiner]
CN 104423889A · 2015 [cited by applicant]
CN 111352899A · 2020 [cited by applicant]
CN 111901399A · 2020 [cited by applicant]
CN 111988169A · 2020 [cited by applicant]
CN 113238719A · 2021 [cited by applicant]