Fault positioning method and device, electronic equipment and storage medium

By traversing each main storage cabinet in the storage system, fault diagnosis data is obtained and fault diagnosis is performed, which solves the problems of low fault diagnosis efficiency and complex operation in the existing technology, achieves more accurate and efficient fault location, and reduces costs. Maintenance costs and improved system stability.

CN119336532APending Publication Date: 2025-01-21INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411319969.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-20
Publication Date
2025-01-21

AI Technical Summary

Technical Problem

The prior art is inefficient and complex in troubleshooting, resulting in increased maintenance costs of storage systems, especially when the wiring topology between the main storage cabinet and the storage expansion cabinet is complex.

Method used

By traversing each storage main cabinet in the target storage system, fault diagnosis data is obtained, and fault diagnosis is performed on the controller cable port in the storage main cabinet, the storage expansion cabinet and its cable port connected to the storage main cabinet, and the fault diagnosis data is obtained. fault location results, and issue alarm messages when a fault is found.

Benefits of technology

It achieves more accurate and efficient fault location for storage systems including storage expansion cabinets, reduces maintenance costs, and improves the stability of the storage system, thereby improving the stability and availability of the computer system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119336532A_ABST
    Figure CN119336532A_ABST
Patent Text Reader

Abstract

The invention provides a fault positioning method and device, electronic equipment and a storage medium. The method comprises the steps of obtaining fault diagnosis data corresponding to each storage main cabinet in a target storage system; based on the fault diagnosis data corresponding to each storage main cabinet, performing fault diagnosis on each storage main cabinet to obtain a fault positioning result of each storage main cabinet, the fault positioning comprises fault positioning of at least one of a cable port of a controller in the storage main cabinet, a storage expansion cabinet connected with the storage main cabinet and a cable port of the storage expansion cabinet connected with the storage main cabinet, and then alarm information is sent based on a fault positioning result. According to the fault positioning method and device, the electronic equipment and the storage medium, fault diagnosis can be carried out on the storage system comprising the storage expansion cabinet more accurately and more efficiently, the maintenance cost of the storage system can be reduced, the stability of the storage system can be improved, and then the stability and usability of a computer system can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electronic digital data processing, and in particular to a fault locating method, device, electronic equipment and storage medium. Background Art

[0002] With the advent of the information age, data is showing an explosive growth trend, and the demand for data storage is also increasing. Storage expansion can not only meet the growing demand for data storage, improve system performance, and enhance data security, but also improve the flexibility of the storage system and support future expansion, while reducing the total cost of ownership.

[0003] In the related art, a storage expansion cabinet used for storage expansion in a storage system can be connected to a storage main cabinet in the storage system by direct connection or cascading. In the case of a failure in the extended storage, a technician can locate the failed storage expansion cabinet through on-site detection.

[0004] However, as the number of storage expansion cabinets connected to the storage main cabinet increases, the topological structure of the connection between the storage main cabinet and the storage expansion cabinet becomes more complicated. In the related art, when a storage system including the extended storage fails, a technician needs to perform on-site detection to locate the fault point. In the case where the topological structure of the connection between the storage main cabinet and the storage expansion cabinet is highly complex, a large amount of manpower and time costs are required to perform fault diagnosis. The efficiency of performing fault diagnosis on the storage system including the extended storage is low and the operation is complicated, which leads to a significant increase in the maintenance cost of the storage system. Therefore, how to more accurately and efficiently locate the fault of the storage system including the storage expansion cabinet is a technical problem that needs to be solved urgently in this field. Summary of the invention

[0005] The present invention provides a fault location method, device, electronic device and storage medium, which are used to solve the defects of low efficiency and complex operation of fault diagnosis for a storage system including a storage expansion cabinet in the prior art, and realize more accurate and efficient fault location for the storage system including the storage expansion cabinet.

[0006] The present invention provides a fault location method, which includes the following steps.

[0007] Traversing each storage main cabinet in the target storage system, and obtaining fault diagnosis data corresponding to each storage main cabinet; Based on the fault diagnosis data corresponding to each storage main cabinet, perform fault diagnosis on each storage main cabinet to obtain a fault location result of each storage main cabinet, wherein the fault location includes locating the fault of at least one of a cable port of a controller in the storage main cabinet, a storage expansion cabinet connected to the storage main cabinet, and a cable port of a storage expansion cabinet connected to the storage main cabinet; When the fault location result of any storage main cabinet in the target storage system includes identification information of a faulty component in any storage main cabinet and a fault cause, an alarm message is issued based on the fault location result of any storage main cabinet.

[0008] According to a fault location method provided by the present invention, the performing of fault diagnosis on each storage main cabinet to obtain the fault location result of each storage main cabinet includes: For any storage main cabinet in the target storage system, perform fault diagnosis on the any storage main cabinet, and if it is determined that any component in the any storage main cabinet has a fault, perform fault diagnosis on the any storage main cabinet again after a preset time to determine whether the fault of the any component in the any storage main cabinet is eliminated, wherein the components in the any storage main cabinet include a storage expansion cabinet connected to a cable port of a controller in the any storage main cabinet and a cable port of a storage expansion cabinet connected to the any storage main cabinet; In the case where it is determined that the fault of any component in any storage main cabinet has not been eliminated and the controller in any storage main cabinet is not offline, marking any component in any storage main cabinet as a faulty component, determining the identification information of the faulty component and the fault cause as the fault location result of any storage main cabinet, and in the case where the fault of any component in any storage main cabinet is eliminated, obtaining the cumulative number of times that any component in any storage main cabinet has faults; When it is determined that the cumulative number of times that any component in any of the storage main cabinets has failed exceeds a preset number and the controller in any of the storage main cabinets is not offline, any component in any of the storage main cabinets is marked as a faulty component, the identification information of the faulty component and the cause of the fault are determined as the fault location result of any of the storage main cabinets, the cumulative number of times that any component in any of the storage main cabinets has failed is cleared, and when it is determined that the cumulative number of times that any component in any of the storage main cabinets has failed does not exceed a preset number, return to execute the step of performing fault diagnosis on any of the storage main cabinets again after a preset time period.

[0009] According to a fault location method provided by the present invention, for any storage main cabinet in the target storage system, based on the fault diagnosis data corresponding to the any storage main cabinet, a fault diagnosis is performed on a cable port of a controller in the any storage main cabinet, including: Traversing each controller in any one of the storage main cabinets, and determining a controller in any one of the storage main cabinets that is not in an offline state as a target controller; Traversing each cable port of each target controller in any one of the storage main cabinets, acquiring fault status information of each cable port as fault diagnosis data corresponding to any one of the storage main cabinets, wherein the fault status information of the cable port is recorded by a hardware management device, and the fault status information of the cable port is used to indicate whether a fault occurs in the cable port; Based on the fault diagnosis data corresponding to any one of the storage main cabinets, determining whether each of the cable ports has a fault; When it is determined that any cable port of any target controller in any storage main cabinet has a fault, determine whether any cable port is in a degraded state; when it is determined that any cable port is in a degraded state, determine the cause of the failure of any cable port as the cable port being in a degraded state; when it is determined that any cable port is not in a degraded state, determine whether any cable port is missing a cable; when it is determined that any cable port is missing a cable, determine the cause of the failure of any cable port as the cable port being missing a cable.

[0010] According to a fault location method provided by the present invention, for any storage main cabinet in the target storage system, based on the fault diagnosis data corresponding to the any storage main cabinet, a storage expansion cabinet connected to the any storage main cabinet is diagnosed for a fault, including: Traversing each controller in any one of the storage main cabinets, obtaining login status information of each controller in any one of the storage main cabinets as the fault diagnosis data corresponding to any one of the storage main cabinets, wherein the login status information of the controller includes identification information of the extended storage cabinet connected to the controller; Based on the fault diagnosis data corresponding to any one of the storage main cabinets, determining whether the storage expansion cabinet connected to each controller in any one of the storage main cabinets is also connected to other storage systems; In the case where it is determined that any storage expansion cabinet connected to any controller in any storage main cabinet belongs to a different storage system, it is determined that any storage expansion cabinet connected to any controller in any storage main cabinet has a fault, and it is judged whether any storage expansion cabinet is managed by any controller in any storage main cabinet; When it is determined that any one of the storage expansion cabinets is managed by any one of the controllers in any one of the storage main cabinets, the cause of the failure of any one of the storage expansion cabinets is determined to be that the storage expansion cabinet is connected to multiple storage systems; when it is determined that any one of the storage expansion cabinets is not managed by any one of the controllers in any one of the storage main cabinets, the cause of the failure of any one of the storage expansion cabinets is determined to be that the storage system to which the storage expansion cabinet is connected is incorrect.

[0011] According to a fault location method provided by the present invention, for any storage main cabinet in the target storage system, based on the fault diagnosis data corresponding to the any storage main cabinet, a fault diagnosis is performed on a cable port of a storage expansion cabinet connected to the any storage main cabinet, including: Traversing each cable port of each controller in any one of the storage main cabinets, acquiring identification information of each cable port and identification information of a cable port of a storage expansion cabinet connected to each cable port as fault diagnosis data corresponding to any one of the storage main cabinets; Based on the fault diagnosis data corresponding to any one of the storage main cabinets, determining whether each cable port of each controller in any one of the storage main cabinets matches the cable port of the connected storage expansion cabinet; When it is determined that any cable port of any controller in any storage main cabinet does not match the cable port of the connected storage expansion cabinet, it is determined that any cable port and / or the cable port of the storage expansion cabinet connected to the any cable port is faulty, and it is determined that the cause of the failure of the any cable port and / or the cable port of the storage expansion cabinet connected to the any cable port is a cable port matching error.

[0012] According to a fault location method provided by the present invention, for any storage main cabinet in the target storage system, based on the fault diagnosis data corresponding to the any storage main cabinet, a fault diagnosis is performed on a cable port of a controller in the any storage main cabinet, including: Traversing each cable port of each controller in any one of the storage main cabinets, obtaining the number of storage expansion cabinets connected to each cable port, wherein the storage expansion cabinets connected to each cable port include storage expansion cabinets directly connected to each cable port and cascaded storage expansion cabinets; Determining whether the number of storage expansion cabinets connected to each cable port exceeds a preset number; When the number of storage expansion cabinets connected to any cable port of any controller in any storage main cabinet exceeds the preset number, it is determined that there is a faulty cable port in any of the cable ports, and the cause of the failure of any of the cable ports is determined as the number of connected storage expansion cabinets exceeding the preset number.

[0013] According to a fault location method provided by the present invention, after determining whether each cable port has a fault based on the fault diagnosis data corresponding to any storage main cabinet, the method further includes: When it is determined based on the fault diagnosis data corresponding to any of the storage main cabinets that any of the cable ports in any of the target controllers in any of the storage main cabinets is not faulty, but any of the cable ports has been marked as a faulty cable port, the fault mark of any of the cable ports is revoked.

[0014] The present invention also provides a fault location device, comprising the following modules: A data acquisition module, used to traverse each storage main cabinet in the target storage system and acquire fault diagnosis data corresponding to each storage main cabinet; A fault location module, configured to perform fault diagnosis on each storage main cabinet based on the fault diagnosis data corresponding to each storage main cabinet, and obtain a fault location result of each storage main cabinet, wherein the fault location includes fault location of at least one of a cable port of a controller in the storage main cabinet, a storage expansion cabinet connected to the storage main cabinet, and a cable port of a storage expansion cabinet connected to the storage main cabinet; The alarm reporting module is used to issue an alarm message based on the fault location result of any storage main cabinet in the target storage system when the fault location result of any storage main cabinet includes the identification information of the faulty component in any storage main cabinet and the cause of the fault.

[0015] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements any of the above-mentioned fault location methods when executing the computer program.

[0016] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the fault locating method described in any one of the above is implemented.

[0017] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the fault location method described above is implemented.

[0018] The fault location method, device, electronic device and storage medium provided by the present invention traverse each storage main cabinet in the target storage system, obtain the fault diagnosis data corresponding to each storage main cabinet in the target storage system, and then perform fault diagnosis on at least one of the cable port of the controller in each storage main cabinet in the target storage system, the storage expansion cabinet connected to each storage main cabinet, and the cable port of the storage expansion cabinet connected to each storage main cabinet, and obtain the fault location result of each storage main cabinet. Then, when the fault location result of any storage main cabinet in the target storage system includes the identification information of the faulty component in any storage main cabinet and the fault cause of the faulty component, an alarm information is issued based on the fault location result of any storage main cabinet, so that the storage system including the storage expansion cabinet can be more accurately and efficiently diagnosed, the fault point and the fault cause in the storage system can be located more quickly, simply and accurately, the maintenance cost of the storage system can be reduced, the stability of the storage system can be improved, and the stability and availability of the computer system can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0020] Figure 1 This is one of the connection diagrams of a storage main cabinet and an EBOF storage expansion cabinet in the related art.

[0021] Figure 2 This is the second connection diagram of the storage main cabinet and the EBOF storage expansion cabinet in the related art.

[0022] Figure 3 This is the third connection diagram of the storage main cabinet and the EBOF storage expansion cabinet in the related art.

[0023] Figure 4 This is one of the flow charts of the fault location method provided by the present invention.

[0024] Figure 5 This is the second flow chart of the fault location method provided by the present invention.

[0025] Figure 6 This is the third flow chart of the fault location method provided by the present invention.

[0026] Figure 7 This is the fourth flow chart of the fault location method provided by the present invention.

[0027] Figure 8 This is the fifth flow chart of the fault location method provided by the present invention.

[0028] Fig. 9 This is the sixth flow chart of the fault location method provided by the present invention.

[0029] Fig.10 It is a structural schematic diagram of the fault locating device provided by the present invention.

[0030] Fig.11 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0031] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0032] In the description of the invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0033] In the description of the present application, the terms "first", "second", etc. are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are usually a class, and the number of objects is not limited. For example, the first object can be one or more. In addition, in the description of the present application, "and / or" represents at least one of the connected objects, and the character " / " generally represents that the front and back associated objects are in an "or" relationship.

[0034] It should be noted that a storage expansion cabinet is a hardware device used to expand the storage capacity of a computer system. The storage expansion cabinet can meet the growing data storage needs by providing additional storage space.

[0035] In the related art, storage expansion cabinets used for storage expansion generally include hard disk (Just a Bunch Of Disks / Drives, JBOD) storage expansion cabinets, flash memory (Just a Bunch Of Flash, JBOF) storage expansion cabinets and Ethernet-attached Flash (EBOF) storage expansion cabinets.

[0036] The JBOD storage expansion cabinet is connected to the main server or storage controller through the SAS (Serial Attached SCSI) interface or the SATA (Serial ATA) interface, directly integrating multiple independent hard disks or solid-state drives together to form a large logical storage unit, but does not provide data redundancy or performance optimization.

[0037] JBOF storage expansion cabinets use PCIe switches to expand to solid state drives (SSDs) and connect back to the server through NVMe-oF (NVMe over Fabrics). Compared to JBOD storage expansion cabinets, JBOF storage expansion cabinets focus on flash storage and provide higher bandwidth and lower latency through PCIe switches. Conversion or bridging is usually implemented using one or more DPUs (Data Processing Units) on the periphery.

[0038] The EBOF storage expansion cabinet uses an Ethernet switch to expand to the SSD and connects back to the server via NVMe-oF. The EBOF storage expansion cabinet separates storage from computing and expands flash memory through Ethernet fabric. Bridging is done on the SSD carrier, achieving lower latency and power consumption, while reducing total cost of ownership and improving flexibility.

[0039] With the development of society, the amount of data generated in people's daily lives is becoming increasingly huge, and people's performance requirements for data access are getting higher and higher, so the use scenarios of EBOF storage expansion cabinets are becoming more and more extensive.

[0040] The storage main cabinet is the core part of the entire storage system and is responsible for the management and control of the entire storage system. The storage main cabinet usually includes components such as controllers, user interaction interfaces, and communication modules to achieve information management and remote monitoring of data.

[0041] Generally, the EBOF storage expansion cabinet can be connected to the storage main cabinet by direct connection or cascading. When the EBOF storage expansion cabinet is directly connected to the storage main cabinet, a port of the upper controller in the storage main cabinet is connected to a port of the upper controller in the EBOF storage expansion cabinet, and a port of the lower controller in the storage main cabinet is connected to a port of the lower controller in the EBOF storage expansion cabinet.

[0042] Among them, the upper controller is the main controller or the upper computer, which is usually responsible for the overall calendar and scheduling. The lower controller is the embedded controller or the lower computer, which is usually used to respond to the instructions of the upper controller and drive the hardware device to perform corresponding operations.

[0043] Figure 1 This is one of the connection diagrams of the storage main cabinet and the EBOF storage expansion cabinet in the related art. Figure 1 As shown, the storage main cabinet includes two controllers, namely controller 1 and controller 2, where controller 1 is the upper controller and controller 2 is the lower controller. The storage main cabinet is connected to the EBOF storage expansion cabinet through a four-wire direct connection. The specific connection method is as follows: Controller box 1_controller 1_PORT1->EBOF_controller 1_PORT1; Controller box 1_controller 2_PORT1->EBOF_controller 2_PORT1; Controller box 2_controller 1_PORT1->EBOF_controller 1_PORT3; Controller box 2_controller 2_PORT1->EBOF_controller 2_PORT3.

[0044] Figure 2 This is the second schematic diagram of the connection between the storage main cabinet and the EBOF storage expansion cabinet in the related art. Figure 2 As shown, the storage main cabinet includes two controllers, namely controller 1 and controller 2, where controller 1 is the upper controller and controller 2 is the lower controller. The storage main cabinet is connected to the EBOF storage expansion cabinet through an eight-wire direct connection. The specific connection method is as follows: Controller box 1_controller 1_PORT1->EBOF_controller 1_PORT1; Controller box 1_controller 2_PORT1->EBOF_controller 2_PORT1; Controller box 2_controller 1_PORT1->EBOF_controller 1_PORT3; Controller box 2_controller 2_PORT1->EBOF_controller 2_PORT3; Controller box 1_controller 1_PORT2->EBOF_controller 2_PORT2; Controller box 1_controller 2_PORT2->EBOF_controller 1_PORT2; Controller box 2_controller 1_PORT2->EBOF_controller 2_PORT4; Controller box 2_controller 2_PORT2->EBOF_controller 1_PORT4.

[0045] Compared with the four-wire direct connection method, the storage main cabinet and EBOF storage expansion cabinet connected by eight-wire direct connection have higher redundancy and higher bandwidth.

[0046] When the EBOF storage expansion cabinet is cascaded with the storage main cabinet, a port of the upper controller in the storage main cabinet is connected to the input port of the upper controller in the first-level EBOF storage expansion cabinet, the output port of the upper controller in the first-level EBOF storage expansion cabinet is connected to the input port of the upper controller in the second-level expansion cabinet, the output port of the upper controller in the second-level EBOF storage expansion cabinet is connected to the input port of the upper controller in the third-level expansion cabinet, and so on.

[0047] The EBOF storage expansion cabinet can also be connected to the storage main cabinet through switch expansion. Figure 3 This is the third schematic diagram of the connection between the storage main cabinet and the EBOF storage expansion cabinet in the related art. Figure 3 As shown, in the virtual local area network (VLAN) formed by the storage main cabinet, the EBOF storage expansion cabinet and the switch, four data upstream ports correspond to ten data downstream ports, the above four data upstream ports are respectively a p1 data upstream port, a p2 data upstream port, a p3 data upstream port and a p4 data upstream port, and the ten data downstream ports include ten p1' data downstream ports or ten p2' data downstream ports.

[0048] Compared with JBOD storage expansion cabinets and JBOF storage expansion cabinets, the number of connections between EBOF storage expansion cabinets and storage main cabinets is greater, and the connection topology is more complex. In addition, as the number of EBOF storage expansion cabinets connected to the storage main cabinet increases, the number of connections between the storage main cabinet and EBOF storage expansion cabinets and the complexity of the topology will further increase.

[0049] In the related art, when an extended storage fails, technicians need to conduct on-site inspections to locate the fault point. When the topology of the connection between the storage main cabinet and the storage expansion cabinet is highly complex, a large amount of manpower and time costs need to be invested, and the efficiency of extended storage fault location is low and the operation is complicated, resulting in a significant increase in the maintenance cost of the storage system.

[0050] In this regard, the present invention provides a fault location method. Based on the fault location method provided by the present invention, a storage system including a storage expansion cabinet can be diagnosed more accurately and efficiently, and a fault point in the storage system can be located more quickly, simply and accurately, which can reduce the maintenance cost of the storage system, improve the stability of the storage system, and further improve the stability and availability of the computer system.

[0051] Combine the following Figure 4-Figure 9 The fault location method of the present invention is described.

[0052] Figure 4 FIG. 1 is one of the flow charts of the fault location method provided by the present invention, such as Figure 4 As shown, the method includes the following steps: Step 401, traverse each storage main cabinet in the target storage system to obtain fault diagnosis data corresponding to each storage main cabinet.

[0053] It should be noted that the execution subject of the embodiment of the present invention is a fault locating device.

[0054] Specifically, the target storage system is the fault location object of the fault location method provided by the present invention. Based on the fault location method provided by the present invention, fault diagnosis can be performed on the target storage system. The target storage system includes several storage main cabinets and several storage expansion cabinets, and the controller in the storage main cabinet and the storage expansion cabinet can be connected by a cable.

[0055] It should be noted that the storage expansion cabinet in the embodiment of the present invention may be an EBOF storage expansion cabinet.

[0056] It is understandable that the target storage system in the embodiment of the present invention may be determined based on actual needs. The target storage system is not specifically limited in the embodiment of the present invention.

[0057] It should be noted that the storage main cabinet in the target storage system in the embodiment of the present invention has been configured with a fault location function before leaving the factory and can support fault location.

[0058] When it is necessary to diagnose a fault on the target storage system, the user can trigger a fault location task for the target storage system by inputting a control command.

[0059] When a fault location task for a target storage system is triggered, each storage cabinet in the target storage system can be traversed, and the fault diagnosis data corresponding to each storage cabinet can be obtained through data query and deep learning technology.

[0060] Optionally, the fault diagnosis data corresponding to the storage main cabinet may include, but is not limited to, identification information of each cable port of each target controller in the storage main cabinet, fault status information and alarm event information, as well as user login status information of each target controller in the storage main cabinet, the number of expansion storage cabinets connected to each cable port of each target controller in the storage main cabinet, and at least one of identification information of the cable port of the expansion storage cabinet connected to each cable port of each target controller in the storage main cabinet.

[0061] The target controller is a controller that is not in an offline state. The fault status information and alarm event information of the cable port are generated by the hardware management device. The fault status information of the cable port is used to indicate whether the cable port has a fault, and the alarm event information of the cable port is used to indicate whether the cable port has triggered an alarm event. The user login status (login) information of the controller is used to indicate whether the expansion storage cabinet connected to the controller is authenticated.

[0062] It should be noted that the cable port in the embodiment of the present invention may be an RDMA cable port.

[0063] Step 402: Based on the fault diagnosis data corresponding to each storage main cabinet, perform fault diagnosis on each storage main cabinet to obtain the fault location result of each storage main cabinet, wherein the fault location includes the fault location of at least one of the cable port of the controller in the storage main cabinet, the storage expansion cabinet connected to the storage main cabinet, and the cable port of the storage expansion cabinet connected to the storage main cabinet.

[0064] Specifically, after obtaining the fault diagnosis data corresponding to each storage main cabinet in the target storage system, based on the fault diagnosis data corresponding to each storage main cabinet in the target storage system, through data analysis, mathematical statistics, conditional judgment and deep learning technology, at least one of the cable ports of the controller in each storage main cabinet in the target storage system, the storage expansion cabinet connected to each storage body in the target storage system, and the cable ports of the storage expansion cabinet connected to each storage body in the target storage system can be diagnosed, thereby obtaining the fault location results of each storage main cabinet in the target storage system.

[0065] It should be noted that, for any storage main cabinet in the target storage system, the fault location result of the above storage main cabinet may include a null value for indicating that there is no faulty component in the above storage main cabinet, and the fault location result of the above storage main cabinet may also include identification information for indicating a faulty component in the above storage main cabinet and information on the cause of the fault of the above faulty component.

[0066] Step 403: When the fault location result of any storage main cabinet in the target storage system includes identification information of a faulty component in any storage main cabinet and a fault cause, an alarm message is issued based on the fault location result of any storage main cabinet.

[0067] It should be noted that, in the embodiments of the present invention, Indicates the target storage system A main storage cabinet, of which: , the target storage system A storage cabinet can represent any storage cabinet in the target storage system.

[0068] Specifically, for the storage main cabinet in the target storage system , get the storage main cabinet After the fault location result is obtained, if the storage main cabinet The fault location results include the storage main cabinet If the identification information of the faulty component in the storage cabinet and the fault cause of the faulty component are included, an alarm message can be issued based on the fault location result of the storage main cabinet.

[0069] It should be noted that the alarm information in the embodiment of the present invention may include an indication of the storage main cabinet The alarm information in the embodiment of the present invention may also include identification information of a faulty component and information on the fault cause of the faulty component. The alarm information in the embodiment of the present invention may also include a control instruction for controlling the alarm device to send the alarm information.

[0070] The embodiment of the present invention traverses each storage main cabinet in the target storage system, obtains fault diagnosis data corresponding to each storage main cabinet in the target storage system, and then performs fault diagnosis on at least one of the cable ports of the controller in each storage main cabinet in the target storage system, the storage expansion cabinet connected to each storage main cabinet, and the cable ports of the storage expansion cabinet connected to each storage main cabinet, and obtains the fault location result of each storage main cabinet. Furthermore, when the fault location result of any storage main cabinet in the target storage system includes identification information of a faulty component in any storage main cabinet and the fault cause of the faulty component, an alarm message is issued based on the fault location result of any storage main cabinet, so that fault diagnosis of the storage system including the storage expansion cabinet can be performed more accurately and efficiently, and the fault point and the fault cause in the storage system can be located more quickly, simply and accurately, so that the maintenance cost of the storage system can be reduced, the stability of the storage system can be improved, and thus the stability and availability of the computer system can be improved.

[0071] Figure 5 FIG. 2 is a flow chart of the fault location method provided by the present invention. Figure 5 As shown, as an optional embodiment, for any storage main cabinet in the target storage system, based on the fault diagnosis data corresponding to any storage main cabinet, fault diagnosis is performed on the cable port of the controller in any storage main cabinet, including: traversing each controller in any storage main cabinet, and determining the controller in any storage main cabinet that is not in an offline state as the target controller.

[0072] Specifically, for the storage main cabinet in the target storage system , you can traverse the storage main cabinet Each controller in the main cabinet will store The controller that is not in offline state is determined as the target controller.

[0073] It should be noted that the controller that is not in an offline state in the embodiment of the present invention may include a controller that is in an online state and a controller that is in a degraded state.

[0074] It should be noted that, in the embodiments of the present invention, Indicates the main storage cabinet The target controllers. A positive integer greater than 0; storage main cabinet The A target controller can represent a storage main cabinet Any target controller in .

[0075] Traverse each cable port of each target controller in any storage main cabinet, obtain the fault status information of each cable port as the fault diagnosis data corresponding to any storage main cabinet, the fault status information of the cable port is recorded by the hardware management device, and the fault status information of the cable port is used to indicate whether the cable port has a fault.

[0076] Specifically, traverse the storage main cabinet Each cable port of each target controller in the storage main cabinet is obtained through data query. The fault status information (desired_event) of each cable port of each target controller in the storage main cabinet Corresponding fault diagnosis data.

[0077] Among them, the main storage cabinet The fault status information (desired_event) of any cable port of any target controller is "0", indicating that the above cable port has no fault; the storage main cabinet If the fault status information (desired_event) of any cable port of any target controller is "1", it means that the above cable port has a fault.

[0078] Optionally, the hardware management device in the embodiment of the present invention may be a baseboard management controller (BMC) in a computer system where the target storage system is located.

[0079] Based on the fault diagnosis data corresponding to any storage main cabinet, determine whether each cable port has a fault.

[0080] It should be noted that, in the embodiments of the present invention, Indicates the main storage cabinet The target controller in No. Cable ports. is a positive integer greater than 0, the target controller No. A cable port can represent the target controller to any cable port on the

[0081] At the cable port When the fault status information (desired_event) is "0", the cable port can be determined There is no fault.

[0082] At the cable port When the fault status information (desired_event) is "1", the cable port can be determined There is a malfunction.

[0083] When it is determined that any cable port of any target controller in any storage main cabinet has a fault, determine whether any cable port is in a degraded state; when it is determined that any cable port is in a degraded state, determine the cause of the failure of any cable port as the cable port being in a degraded state; when it is determined that any cable port is not in a degraded state, determine whether any cable port is missing a cable; when it is determined that any cable port is missing a cable, determine the cause of the failure of any cable port as the cable port being missing a cable.

[0084] Specifically, based on the storage main cabinet Target Controller Cable port Determine the fault status information (desired_event) of the cable port In the event of a fault, the cable port can be identified by querying the information. Whether it is in a degraded state.

[0085] It should be noted that the degraded state of the cable port refers to a temporary measure taken on the cable port to maintain the overall stability and availability of the computer system when the computer system encounters a failure, excessive load or other abnormal conditions. When the cable port is in a degraded state, the cable port may experience reduced bandwidth, increased latency, shutdown of non-critical functions, and traffic redistribution.

[0086] Determine the cable port In a degraded state, the cable port The cause of the failure was determined to be a degraded cable port.

[0087] Determine the cable port If the cable port is not in a degraded state, you can use information query to determine the Is the cable missing?

[0088] Determine the cable port If the cable is missing, you can The cause of the failure was determined to be a missing cable at the cable port.

[0089] It should be noted that the cable port being in a degraded state and the missing cable are the main causes of failure of the cable port of the controller in the storage main cabinet. If the cable is not in a degraded state and no cables are missing, The cause of the failure is determined to be other.

[0090] As an optional embodiment, after determining whether each cable port has a fault based on the fault diagnosis data corresponding to any storage main cabinet, the method includes: when it is determined based on the fault diagnosis data corresponding to any storage main cabinet that any cable port in any target controller in any storage main cabinet does not have a fault, but any cable port has been marked as a faulty cable port, revoking the fault mark of any cable port.

[0091] Specifically, based on the storage main cabinet Target Controller Cable port Determine the fault status information (desired_event) of the cable port If there is no fault, the cable port can be determined. Whether the cable port has been marked as a faulty port.

[0092] Determine the cable port If a cable port has been marked as a faulty port, you can revoke the cable port. Fault flags, cable ports The cable port will no longer be marked as a faulty cable port. The alarm event information (current_event_id) changes from "1" to "0", indicating that the cable port No alarm event was triggered.

[0093] Among them, the main storage cabinet The alarm event information (current_event_id) of any cable port of any target controller is "0", indicating that the above cable port has not triggered an alarm event; storage main cabinet If the alarm event information (current_event_id) of any cable port of any target controller is 1, it means that the above cable port has triggered an alarm event.

[0094] It should be noted that the alarm event information of the cable port of the controller in the storage main cabinet is also recorded by the hardware management device.

[0095] The embodiment of the present invention traverses each cable port of each target controller in any storage main cabinet in the target storage system, obtains the fault status information of each cable port as the fault diagnosis data of the storage main cabinet, and then determines whether each cable port has a fault based on the fault diagnosis data of the storage main cabinet. When it is determined that any cable port in any target controller in the storage main cabinet has a fault, it is determined whether the cable port is in a degraded state. When it is determined that the cable port is in a degraded state, the cause of the fault of the cable port is determined as the cable port being in a degraded state. When it is determined that the cable port is not in a degraded state, it is determined whether the cable port is missing a cable. When it is determined that the cable port is missing a cable, the cause of the fault of the cable port is determined as the cable port being missing a cable. The controller in the storage main cabinet in the storage system has a missing cable or a cable port in a degraded state, which can more quickly and accurately locate the controller in the storage main cabinet in the storage system, and can improve the accuracy and efficiency of storage system fault location.

[0096] Figure 6 FIG. 3 is a flow chart of the fault location method provided by the present invention. Figure 6 As shown, as an optional embodiment, for any storage main cabinet in the target storage system, based on the fault diagnosis data corresponding to any storage main cabinet, fault diagnosis is performed on the storage expansion cabinet connected to any storage main cabinet, including: traversing each controller in any storage main cabinet, obtaining login status information of each controller in any storage main cabinet as the fault diagnosis data corresponding to any storage main cabinet, and the login status information of the controller includes identification information of the expansion storage cabinet connected to the controller.

[0097] Specifically, for the storage main cabinet in the target storage system In the embodiment of the present invention, the storage main cabinet can be obtained by means of data query. The login status (login) information of each controller.

[0098] It should be noted that the login state refers to a state maintained by the system after the user passes the identity authentication process, which indicates that the user has successfully logged in and is authorized to access restricted resources or perform specific operations. The above users can include hardware devices such as storage expansion cabinets.

[0099] The login status information of the controller in the embodiment of the present invention may include identification information of an extended storage cabinet that is connected to the controller and successfully logged into the controller.

[0100] Based on the fault diagnosis data corresponding to any storage main cabinet, it is determined whether the storage expansion cabinet connected to each controller in any storage main cabinet is also connected to other storage systems.

[0101] It should be noted that, in the embodiments of the present invention, Indicates the main storage cabinet The A controller that can be used Representation and Controller Connected Expansion storage cabinets. Among them, and All are positive integers greater than 0. Storage main cabinet Controller in , can represent the storage main cabinet Any controller in the Connected expansion storage cabinet , can be expressed with the controller Any connected expansion storage enclosure.

[0102] Specifically, obtain the storage main cabinet After logging in to each controller, Controller in , based on the main storage cabinet Middle Controller The login status information can be determined with the controller Identification information of the connected expansion storage enclosure.

[0103] Based on the controller The identification information of the connected expansion storage cabinet can be used to determine the connection with the controller through data query. Whether the connected expansion storage cabinet is connected to the storage main cabinet in other storage systems in addition to the target storage system.

[0104] When it is determined that any storage expansion cabinet connected to any controller in any storage main cabinet belongs to a different storage system, it is determined that any storage expansion cabinet connected to any controller in any storage main cabinet has a fault, and it is judged whether any storage expansion cabinet is managed by any controller in any storage main cabinet.

[0105] Specifically, for the storage main cabinet Center and Controller Connected expansion storage cabinet , before determining the expansion storage cabinet In addition to the target storage system, if the storage main cabinet in other storage systems is connected, the expansion storage cabinet can be determined. There is a fault, and you can query the extended storage cabinet through data query Whether it is stored in the main cabinet Middle Controller management.

[0106] When it is determined that any storage expansion cabinet is managed by any controller in any storage main cabinet, the cause of the failure of any storage expansion cabinet is determined to be that the storage expansion cabinet is connected to multiple storage systems; when it is determined that any storage expansion cabinet is not managed by any controller in any storage main cabinet, the cause of the failure of any storage expansion cabinet is determined to be that the storage system to which the storage expansion cabinet is connected is incorrect.

[0107] Specifically, when determining the expansion storage cabinet Storage cabinet Middle Controller In the case of management, the expansion storage cabinet can be The cause of the failure was determined to be that the storage expansion enclosure was connected to multiple storage systems.

[0108] Determine the expansion storage cabinet Unprotected storage cabinet Middle Controller In the case of management, the expansion storage cabinet can be The cause of the failure was determined to be an incorrect storage system.

[0109] Specifically, determine the expansion storage cabinet There is a fault and the expansion storage cabinet is obtained After the cause of the failure is determined, the expansion storage cabinet can be Identification information and expansion storage cabinets The cause of the failure was determined to be the storage main cabinet The fault location result.

[0110] It is understandable that the main cabinet of the storage The fault location results can include the storage main cabinet The identification information of several expansion storage cabinets connected to several target controllers and the failure reason of each expansion storage cabinet.

[0111] The embodiment of the present invention traverses each controller in any storage main cabinet in the target storage system to obtain the login status information of each controller, and then determines whether the storage expansion cabinet connected to each controller in the storage main cabinet is also connected to other storage systems based on the login status information of each controller. When it is determined that any storage expansion cabinet connected to any controller in the storage main cabinet belongs to a different storage system, it is determined that the storage expansion cabinet connected to the controller in the storage main cabinet has a storage fault, and it is determined whether the storage expansion cabinet is managed by the controller in the storage main cabinet. When it is determined that the storage expansion cabinet is managed by the controller in the storage main cabinet, the cause of the failure of the storage expansion cabinet is determined as the storage expansion cabinet is connected to multiple storage systems. When it is determined that the storage expansion cabinet is not managed by the controller in the storage main cabinet, the cause of the failure of the storage expansion cabinet is determined as the storage system to which the storage expansion cabinet is connected is incorrect. Therefore, it is possible to more quickly and accurately locate whether the storage expansion cabinet in the storage system is connected to multiple storage systems or the storage system to which it is connected is incorrect, and the accuracy and efficiency of storage system fault location can be improved.

[0112] Figure 7 FIG. 4 is a flow chart of the fault location method provided by the present invention. Figure 7 As shown, as an optional embodiment, for any storage main cabinet in the target storage system, based on the fault diagnosis data corresponding to any storage main cabinet, a fault diagnosis is performed on the cable port of the storage expansion cabinet connected to any storage main cabinet, including: traversing each cable port of each controller in any storage main cabinet, obtaining identification information of each cable port, and identification information of the cable port of the storage expansion cabinet connected to each cable port, as the fault diagnosis data corresponding to any storage main cabinet.

[0113] Specifically, for the storage main cabinet in the target storage system , you can traverse the storage main cabinet Each cable port of each controller in the storage main cabinet is obtained through data query. The identification information of each cable port of each controller in the storage main cabinet Each cable port of each controller in the storage expansion cabinet is connected to the identification information of the cable port, as the storage main cabinet Corresponding fault diagnosis data.

[0114] Based on the fault diagnosis data corresponding to any storage main cabinet, it is determined whether each cable port of each controller in any storage main cabinet matches the cable port of the connected storage expansion cabinet.

[0115] It should be noted that when the storage expansion cabinet is directly connected to the storage main cabinet, one cable port of the upper controller in the storage main cabinet is connected to the cable port of the upper controller in the storage expansion cabinet, and one cable port of the lower controller in the storage main cabinet is connected to the cable port of the lower controller in the storage expansion cabinet. The cable port of the upper controller in the storage main cabinet does not match the cable port of the lower controller in the storage expansion cabinet, and the cable port of the lower controller in the storage main cabinet does not match the cable port of the upper controller in the storage expansion cabinet. If the cable port of the upper controller in the storage main cabinet is connected to the cable port of the lower controller in the storage expansion cabinet, or the cable port of the lower controller in the storage main cabinet is connected to the cable port of the upper controller in the storage expansion cabinet, the communication between the storage main cabinet and the storage expansion cabinet will fail.

[0116] The identification information of the cable port of the controller in the storage main cabinet usually includes the type of the above controller. The cable port of the storage expansion cabinet usually also includes the type of the corresponding controller. The identification information of each cable port of each controller in the storage main cabinet The identification information of the cable port of the storage expansion cabinet connected to each cable port of each controller in the storage expansion cabinet can be used to determine the storage main cabinet Check that each cable port on each controller matches the cable port on the connected storage expansion enclosure.

[0117] When it is determined that any cable port of any controller in any storage main cabinet does not match the cable port of the connected storage expansion cabinet, it is determined that any cable port and / or the cable port of the storage expansion cabinet connected to any cable port is faulty, and it is determined that the cause of the failure of any cable port and / or the cable port of the storage expansion cabinet connected to any cable port is a cable port matching error.

[0118] Specifically, for the storage main cabinet Target Controller Cable port , after confirming the cable port If the cable port does not match the cable port of the connected storage expansion cabinet, you can determine the cable port. and / or cable ports The cable port connected to the storage expansion cabinet is faulty, and the upper cable port can be determined. and / or cable ports The cable port of the connected storage expansion cabinet is faulty because the cable port does not match the cable port.

[0119] Determine the cable port and / or cable ports The cable port of the storage expansion cabinet connected to it is faulty. After the fault cause of the faulty cable port is determined, the cable port can be and / or cable ports The identification information of the cable port of the connected storage expansion cabinet and the above fault cause determine that the storage main cabinet The fault location result.

[0120] The embodiment of the present invention obtains identification information of each cable port of each controller in any storage main cabinet and identification information of the cable port of the storage expansion cabinet connected to each of the cable ports as fault diagnosis data corresponding to any of the storage main cabinets, and then determines whether each cable port of each controller in any of the storage main cabinets matches the cable port of the connected storage expansion cabinet based on the fault diagnosis data corresponding to any of the storage main cabinets, and then, when it is determined that any cable port of any controller in any of the storage main cabinets does not match the cable port of the connected storage expansion cabinet, determines that any of the cable ports and / or the cable port of the storage expansion cabinet connected to any of the cable ports has a fault, and determines that the cause of the fault of any of the cable ports and / or the cable port of the storage expansion cabinet connected to any of the cable ports is a cable port matching error, so that the mismatched cable port in the storage system can be located more quickly and accurately, and the accuracy and efficiency of storage system fault location can be improved.

[0121] Figure 8 FIG. 5 is a flowchart of the fault location method provided by the present invention. Figure 8 As shown, as an optional embodiment, for any storage main cabinet in the target storage system, based on the fault diagnosis data corresponding to any storage main cabinet, fault diagnosis is performed on the cable port of the controller in any storage main cabinet, including: traversing each cable port of each controller in any storage main cabinet, obtaining the number of storage expansion cabinets connected to each cable port, and the storage expansion cabinets connected to each cable port include storage expansion cabinets directly connected to each cable port and cascaded storage expansion cabinets.

[0122] Specifically, for the storage main cabinet in the target storage system , you can traverse the storage main cabinet Each cable port of each controller in the storage main cabinet is obtained through data query. The number of storage expansion enclosures connected to each cable port of each controller.

[0123] It is determined whether the number of storage expansion cabinets connected to each cable port exceeds a preset number.

[0124] Get storage cabinet After calculating the number of storage expansion cabinets connected to each cable port of each controller, you can determine the storage main cabinet Check whether the number of storage expansion cabinets connected to each cable port of each controller exceeds the preset number.

[0125] It should be noted that the preset number in the embodiment of the present invention may be determined based on prior knowledge and / or actual conditions. The specific value of the preset number is not limited in the embodiment of the present invention.

[0126] When the number of storage expansion cabinets connected to any cable port of any controller in any storage main cabinet exceeds a preset number, it is determined that there is a faulty cable port in any cable port, and the cause of the failure of any cable port is determined to be that the number of connected storage expansion cabinets exceeds the preset number.

[0127] Specifically, for the storage main cabinet Target Controller Cable port , after confirming the cable port If the number of connected storage expansion cabinets exceeds the preset number, you can determine the cable port There is a faulty cable port. The cause of the failure was determined to be that the number of connected storage expansion cabinets exceeded the preset number.

[0128] Determine the cable port There is a faulty cable port, and the cable port After the fault is determined to be caused by the number of connected storage expansion cabinets exceeding the preset number, you can The identification information and the above fault cause are determined to be the storage main cabinet The fault location result.

[0129] According to the embodiment of the present invention, the number of storage expansion cabinets connected to each cable port of each controller in any storage main cabinet determines whether the number of storage expansion cabinets connected to each of the above cable ports exceeds a preset number. When the number of storage expansion cabinets connected to any cable port of any controller in the above storage main cabinet exceeds a preset number, it is determined that there is a fault in the above cable port, and the cause of the fault of the above cable port is determined as the number of storage expansion cabinets connected exceeding the preset number. This can more quickly and accurately locate the cable port in the storage system where the number of storage expansion cabinets connected to the controller in the storage main cabinet exceeds the preset number, thereby improving the accuracy and efficiency of locating storage system faults.

[0130] Fig. 9 FIG. 6 is a flowchart of the fault location method provided by the present invention. Fig. 9As shown, as an optional embodiment, fault diagnosis is performed on each storage main cabinet to obtain the fault location result of each storage main cabinet, including: for any storage main cabinet in the target storage system, fault diagnosis is performed on any storage main cabinet, and when it is determined that any component in any storage main cabinet has a fault, after a preset time, fault diagnosis is performed again on any storage main cabinet to determine whether the fault of any component in any storage main cabinet is eliminated, and the components in any storage main cabinet include the cable port of the controller in any storage main cabinet and the storage expansion cabinet connected to any storage main cabinet, and the cable port of the storage expansion cabinet connected to any storage main cabinet.

[0131] Specifically, for the storage main cabinet in the target storage system , for storage main cabinet Perform fault diagnosis to determine the storage main cabinet When any component in the system fails, a timer with a preset duration can be started to count the time for the preset duration.

[0132] It should be noted that the preset duration in the embodiment of the present invention may be determined based on prior knowledge and / or actual conditions, and the specific value of the preset duration is not limited in the embodiment of the present invention.

[0133] Based on the above timer, the storage main cabinet is determined The storage main cabinet is reset again after a preset period of time from the moment any component in the storage main cabinet fails. Fault diagnosis, diagnostic storage cabinet Check whether the faults of the above components in are eliminated.

[0134] When it is determined that the fault of any component in any storage main cabinet has not been eliminated and the controller in any storage main cabinet is not offline, any component in any storage main cabinet is marked as a faulty component, and the identification information of the faulty component and the cause of the fault are determined as the fault location result of any storage main cabinet. When the fault of any component in any storage main cabinet is eliminated, the cumulative number of times that any component in any storage main cabinet has faults is obtained.

[0135] Specifically, by re-storing the main cabinet Fault diagnosis, determine the storage main cabinet The fault of the above components in the storage cabinet has not been eliminated and If the controller in the storage cabinet is not offline, you can The above components in the storage cabinet are marked as failed components (counter_exceeded). The identification information of the above components and the cause of the failure are determined to be the storage main cabinet The fault location result is obtained and the above timer is cleared.

[0136] By again storing the main cabinet Fault diagnosis, determine the storage main cabinet If the faults of the above components are eliminated, it can be concluded that the main cabinet of the storage The failure of the above components in the storage cabinet is a fault jitter, which can be further obtained. The accumulated number of times the above components have failed and the above timer is cleared.

[0137] When it is determined that the cumulative number of times any component in any storage main cabinet has failed exceeds a preset number and the controller in any storage main cabinet is not offline, any component in any storage main cabinet is marked as a faulty component, the identification information of the faulty component and the cause of the fault are determined as the fault location result of any storage main cabinet, the cumulative number of times any component in any storage main cabinet has failed is cleared, and when it is determined that the cumulative number of times any component in any storage main cabinet has failed does not exceed a preset number, return to execute the step of performing fault diagnosis on any storage main cabinet again after a preset time.

[0138] Get storage cabinet After the cumulative number of failures of the above components in the storage main cabinet is determined, Whether the cumulative number of failures of the above components in the system exceeds the preset number.

[0139] It should be noted that the preset number of times in the embodiment of the present invention may be determined based on prior knowledge and / or actual conditions. The specific value of the preset number of times in the embodiment of the present invention is not limited.

[0140] Optionally, the value range of the preset number of times may be 8-12 times, for example, the value of the preset number of times may be 8 times, 10 times or 12 times.

[0141] Determine the storage cabinet Whether the cumulative number of failures of the above components in the storage cabinet exceeds the preset number and the storage cabinet If the controller in the storage cabinet is not offline, The above components in the storage cabinet frequently fail, which is no longer a fault jitter. The identification information of the above components and the cause of the failure are determined to be the storage main cabinet The fault location result is cleared and the above timer is stored in the main cabinet. The accumulated number of faults of the above components in the system is cleared to zero.

[0142] Determine the storage cabinet If the cumulative number of failures of the above components in the storage cabinet does not exceed the preset number, the execution is returned based on the above timer. The storage main cabinet is reset again after a preset period of time from the moment any component in the storage main cabinet fails. Fault diagnosis, diagnostic storage cabinet Check whether the fault of the above components has been eliminated.

[0143] It should be noted that in the embodiments of the present invention, different alarm information numbers are used to indicate different reasons for the fault. For example, alarm information 45102 indicates that the cable port is in a degraded state; alarm information 45020 indicates that the cable port is missing a cable; alarm information 45045 indicates that the cable port is mismatched; alarm information 45046 indicates that the faulty expansion storage cabinet is connected to multiple storage systems; alarm information 45047 indicates that the storage system to which the faulty storage expansion cabinet is connected is incorrect; and alarm information 45049 indicates that the number of connected storage expansion cabinets exceeds the preset number.

[0144] Accordingly, in the storage main cabinet The fault location results in the include: Cable port Identification information and cable ports If the fault is caused by the number of connected storage expansion cabinets exceeding the preset number, a fault with cable ports can be generated. 45049 alarm information with identification information.

[0145] In the main storage cabinet The fault location results in the include: Cable port Identification information and cable ports If the fault is caused by the cable port being in a degraded state, a 45102 alarm information with identification information.

[0146] In the main storage cabinet The target controller in The fault location results include: Cable port Identification information and cable ports If the fault is caused by the cable port missing a cable, you can generate a 45020 alarm information with identification information.

[0147] In the main storage cabinet The fault location results in the expansion storage cabinet include: Identification information and expansion storage cabinets The cause of the failure is the expansion storage cabinet When connected to multiple storage systems, you can generate a storage cabinet with expansion 45046 alarm information with identification information.

[0148] In the main storage cabinet The target controller in The fault location results include: Expansion storage cabinet Identification information and expansion storage cabinets The cause of the failure is the expansion storage cabinet If the connected storage system is incorrect, you can generate a storage cabinet with expansion 45047 alarm information with identification information.

[0149] In the main storage cabinet The fault location results in the include: Cable port and / or cable ports The identification information of the cable ports of the connected storage expansion cabinet and the cable ports and / or cable ports If the fault is caused by a cable port mismatch, a and / or cable ports 45045 alarm information about the identification information of the cable port of the connected storage expansion cabinet.

[0150] In the main storage cabinet The fault location results in the include: Cable port Identification information and cable ports If the fault is caused by the number of connected storage expansion cabinets exceeding the preset number, a fault with cable ports can be generated. 45049 alarm information with identification information.

[0151] It should be noted that in the storage main cabinet The fault location results in the include cable port The identification information of the case is based on the storage main cabinet After the fault location result issues an alarm, the cable port The alarm event information (current_event_id) changes from "0" to "1", indicating that the cable port Trigger an alarm event.

[0152] The embodiment of the present invention performs fault diagnosis on any storage main cabinet in the target storage system, and when it is determined that any component in the storage main cabinet has a fault, after a preset time, performs fault diagnosis on the storage main cabinet again to determine whether the fault of any component in the storage main cabinet has been eliminated, and when it is determined that the fault of the component in the storage main cabinet has not been eliminated and the controller in the storage main cabinet is not offline, marks the component in the storage main cabinet as a faulty component, determines the identification information of the faulty component and the cause of the fault as the fault location result of the storage main cabinet, and when the fault of the component in the storage main cabinet has been eliminated, obtains the cumulative number of times the fault of the component in the storage main cabinet exists, and after determining When the cumulative number of times the above-mentioned components in the storage main cabinet have failed exceeds the preset number and the controller in the above-mentioned storage main cabinet is not offline, the above-mentioned components in the above-mentioned storage main cabinet are marked as faulty components, the identification information of the above-mentioned faulty components and the cause of the failure are determined as the fault location result of the above-mentioned storage main cabinet, the cumulative number of times the above-mentioned components in the above-mentioned storage main cabinet have failed is cleared, and when it is determined that the cumulative number of times the above-mentioned components in the above-mentioned storage main cabinet have failed does not exceed the preset number, the step of performing fault diagnosis on the above-mentioned storage main cabinet again after the preset time period is returned to be executed, which can avoid fault location errors caused by false fault alarms or unstable communication links during fault location, can verify the accuracy of fault alarms, and can further improve the accuracy of storage system fault location.

[0153] Fig.10 This is a schematic diagram of the structure of the fault location device provided by the present invention. Fig.10 The fault location device provided by the present invention is described. The fault location device described below and the fault location method provided by the present invention described above can be referred to each other. Fig.10 As shown, the device includes: a data acquisition module 1001, a fault location module 1002 and an alarm reporting module 1003.

[0154] The data acquisition module 1001 is used to traverse each storage main cabinet in the target storage system and acquire the fault diagnosis data corresponding to each storage main cabinet.

[0155] The fault location module 1002 is used to perform fault diagnosis on each storage main cabinet based on the fault diagnosis data corresponding to each storage main cabinet, and obtain the fault location result of each storage main cabinet. The fault location includes the fault location of at least one of the cable port of the controller in the storage main cabinet, the storage expansion cabinet connected to the storage main cabinet, and the cable port of the storage expansion cabinet connected to the storage main cabinet.

[0156] The alarm reporting module 1003 is used to issue an alarm message based on the fault location result of any storage main cabinet in the target storage system when the fault location result of any storage main cabinet includes identification information of a faulty component in any storage main cabinet and a fault cause.

[0157] Specifically, the data acquisition module 1001, the fault location module 1002 and the alarm reporting module 1003 are electrically connected.

[0158] The fault location device of the embodiment of the present invention traverses each storage main cabinet in the target storage system, obtains the fault diagnosis data corresponding to each storage main cabinet in the target storage system, and then performs fault diagnosis on at least one of the cable port of the controller in each storage main cabinet in the target storage system, the storage expansion cabinet connected to each storage main cabinet, and the cable port of the storage expansion cabinet connected to each storage main cabinet, and obtains the fault location result of each storage main cabinet. Then, when the fault location result of any storage main cabinet in the target storage system includes the identification information of the faulty component in any storage main cabinet and the fault cause of the faulty component, an alarm information is issued based on the fault location result of any storage main cabinet, so that the storage system including the storage expansion cabinet can be more accurately and efficiently diagnosed, the fault point and the fault cause in the storage system can be located more quickly, simply and accurately, the maintenance cost of the storage system can be reduced, the stability of the storage system can be improved, and the stability and availability of the computer system can be improved.

[0159] Fig.11 An example of a physical structure diagram of an electronic device is shown in FIG. Fig.11 As shown, the electronic device may include: a processor 1110, a communication interface 1120, a memory 1130 and a communication bus 1140, wherein the processor 1110, the communication interface 1120 and the memory 1130 communicate with each other through the communication bus 1140. The processor 1110 may call the logic instructions in the memory 1130 to execute the fault location method, which includes: traversing each storage main cabinet in the target storage system to obtain the fault diagnosis data corresponding to each storage main cabinet; based on the fault diagnosis data corresponding to each storage main cabinet, performing fault diagnosis on each storage main cabinet to obtain the fault location result of each storage main cabinet, wherein the fault location includes locating the fault of at least one of the cable port of the controller in the storage main cabinet, the storage expansion cabinet connected to the storage main cabinet and the cable port of the storage expansion cabinet connected to the storage main cabinet; in the case where the fault location result of any storage main cabinet in the target storage system includes the identification information of the faulty component having a fault in any storage main cabinet and the fault cause, issuing an alarm information based on the fault location result of any storage main cabinet.

[0160] In addition, the logic instructions in the above-mentioned memory 1130 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0161] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the fault location method provided by the above methods, the method including traversing each storage main cabinet in the target storage system to obtain fault diagnosis data corresponding to each storage main cabinet; based on the fault diagnosis data corresponding to each storage main cabinet, performing fault diagnosis on each storage main cabinet to obtain a fault location result for each storage main cabinet, the fault location including locating the fault of at least one of the cable port of the controller in the storage main cabinet, the storage expansion cabinet connected to the storage main cabinet, and the cable port of the storage expansion cabinet connected to the storage main cabinet; when the fault location result of any storage main cabinet in the target storage system includes the identification information of a faulty component in any storage main cabinet and the cause of the fault, an alarm message is issued based on the fault location result of any storage main cabinet.

[0162] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the fault location method provided by the above-mentioned methods, the method comprising: traversing each storage main cabinet in the target storage system to obtain fault diagnosis data corresponding to each storage main cabinet; based on the fault diagnosis data corresponding to each storage main cabinet, performing fault diagnosis on each storage main cabinet to obtain a fault location result for each storage main cabinet, the fault location comprising locating the fault of at least one of a cable port of a controller in the storage main cabinet, a storage expansion cabinet connected to the storage main cabinet, and a cable port of a storage expansion cabinet connected to the storage main cabinet; in the event that the fault location result of any storage main cabinet in the target storage system includes identification information of a faulty component in any storage main cabinet and the cause of the fault, issuing an alarm message based on the fault location result of any storage main cabinet.

[0163] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0164] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0165] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A fault location method, characterized in that: include: Traversing each storage main cabinet in the target storage system to obtain fault diagnosis data corresponding to each storage main cabinet; Based on the fault diagnosis data corresponding to each storage main cabinet, perform fault diagnosis on each storage main cabinet to obtain a fault location result of each storage main cabinet, wherein the fault location includes locating the fault of at least one of a cable port of a controller in the storage main cabinet, a storage expansion cabinet connected to the storage main cabinet, and a cable port of a storage expansion cabinet connected to the storage main cabinet; When the fault location result of any storage main cabinet in the target storage system includes identification information of a faulty component in any storage main cabinet and a fault cause, an alarm message is issued based on the fault location result of any storage main cabinet.

2. The fault location method according to claim 1, characterized in that: The performing fault diagnosis on each storage main cabinet to obtain the fault location result of each storage main cabinet includes: For any storage main cabinet in the target storage system, perform fault diagnosis on the any storage main cabinet, and if it is determined that any component in the any storage main cabinet has a fault, perform fault diagnosis on the any storage main cabinet again after a preset time to determine whether the fault of the any component in the any storage main cabinet is eliminated, wherein the components in the any storage main cabinet include a storage expansion cabinet connected to a cable port of a controller in the any storage main cabinet and a cable port of a storage expansion cabinet connected to the any storage main cabinet; In the case where it is determined that the fault of any component in any storage main cabinet has not been eliminated and the controller in any storage main cabinet is not offline, marking any component in any storage main cabinet as a faulty component, determining the identification information of the faulty component and the fault cause as the fault location result of any storage main cabinet, and in the case where the fault of any component in any storage main cabinet is eliminated, obtaining the cumulative number of times that any component in any storage main cabinet has faults; When it is determined that the cumulative number of times that any component in any of the storage main cabinets has failed exceeds a preset number and the controller in any of the storage main cabinets is not offline, any component in any of the storage main cabinets is marked as a faulty component, the identification information of the faulty component and the cause of the fault are determined as the fault location result of any of the storage main cabinets, the cumulative number of times that any component in any of the storage main cabinets has failed is cleared, and when it is determined that the cumulative number of times that any component in any of the storage main cabinets has failed does not exceed a preset number, return to execute the step of performing fault diagnosis on any of the storage main cabinets again after a preset time period.

3. The fault location method according to claim 2, characterized in that: For any storage main cabinet in the target storage system, based on the fault diagnosis data corresponding to the any storage main cabinet, a fault diagnosis is performed on a cable port of a controller in the any storage main cabinet, including: Traversing each controller in any one of the storage main cabinets, and determining a controller in any one of the storage main cabinets that is not in an offline state as a target controller; Traversing each cable port of each target controller in any one of the storage main cabinets, acquiring fault status information of each cable port as fault diagnosis data corresponding to any one of the storage main cabinets, wherein the fault status information of the cable port is recorded by a hardware management device, and the fault status information of the cable port is used to indicate whether a fault occurs in the cable port; Based on the fault diagnosis data corresponding to any one of the storage main cabinets, determining whether each of the cable ports has a fault; When it is determined that any cable port of any target controller in any storage main cabinet has a fault, determine whether any cable port is in a degraded state; when it is determined that any cable port is in a degraded state, determine the cause of the failure of any cable port as the cable port being in a degraded state; when it is determined that any cable port is not in a degraded state, determine whether any cable port is missing a cable; when it is determined that any cable port is missing a cable, determine the cause of the failure of any cable port as the cable port being missing a cable.

4. The fault location method according to claim 2, characterized in that: For any storage main cabinet in the target storage system, based on the fault diagnosis data corresponding to the any storage main cabinet, a fault diagnosis is performed on a storage expansion cabinet connected to the any storage main cabinet, including: Traversing each controller in any one of the storage main cabinets, obtaining login status information of each controller in any one of the storage main cabinets as the fault diagnosis data corresponding to any one of the storage main cabinets, wherein the login status information of the controller includes identification information of the extended storage cabinet connected to the controller; Based on the fault diagnosis data corresponding to any one of the storage main cabinets, determining whether the storage expansion cabinet connected to each controller in any one of the storage main cabinets is also connected to other storage systems; In the case where it is determined that any storage expansion cabinet connected to any controller in any storage main cabinet belongs to a different storage system, it is determined that any storage expansion cabinet connected to any controller in any storage main cabinet has a fault, and it is judged whether any storage expansion cabinet is managed by any controller in any storage main cabinet; When it is determined that any one of the storage expansion cabinets is managed by any one of the controllers in any one of the storage main cabinets, the cause of the failure of any one of the storage expansion cabinets is determined to be that the storage expansion cabinet is connected to multiple storage systems; when it is determined that any one of the storage expansion cabinets is not managed by any one of the controllers in any one of the storage main cabinets, the cause of the failure of any one of the storage expansion cabinets is determined to be that the storage system to which the storage expansion cabinet is connected is incorrect.

5. The fault location method according to claim 2, characterized in that: For any storage main cabinet in the target storage system, based on the fault diagnosis data corresponding to the any storage main cabinet, a fault diagnosis is performed on a cable port of a storage expansion cabinet connected to the any storage main cabinet, including: Traversing each cable port of each controller in any one of the storage main cabinets, acquiring identification information of each cable port and identification information of a cable port of a storage expansion cabinet connected to each cable port as fault diagnosis data corresponding to any one of the storage main cabinets; Based on the fault diagnosis data corresponding to any one of the storage main cabinets, determining whether each cable port of each controller in any one of the storage main cabinets matches the cable port of the connected storage expansion cabinet; When it is determined that any cable port of any controller in any storage main cabinet does not match the cable port of the connected storage expansion cabinet, it is determined that any cable port and / or the cable port of the storage expansion cabinet connected to the any cable port is faulty, and it is determined that the cause of the failure of the any cable port and / or the cable port of the storage expansion cabinet connected to the any cable port is a cable port matching error.

6. The fault location method according to claim 2, characterized in that: For any storage main cabinet in the target storage system, based on the fault diagnosis data corresponding to the any storage main cabinet, a fault diagnosis is performed on a cable port of a controller in the any storage main cabinet, including: Traversing each cable port of each controller in any one of the storage main cabinets, obtaining the number of storage expansion cabinets connected to each cable port, wherein the storage expansion cabinets connected to each cable port include storage expansion cabinets directly connected to each cable port and cascaded storage expansion cabinets; Determining whether the number of storage expansion cabinets connected to each cable port exceeds a preset number; When the number of storage expansion cabinets connected to any cable port of any controller in any storage main cabinet exceeds the preset number, it is determined that there is a faulty cable port in any of the cable ports, and the cause of the failure of any of the cable ports is determined as the number of connected storage expansion cabinets exceeding the preset number.

7. The fault location method according to claim 3, characterized in that: After determining whether each cable port has a fault based on the fault diagnosis data corresponding to any one of the storage main cabinets, the method further includes: When it is determined based on the fault diagnosis data corresponding to any of the storage main cabinets that any of the cable ports in any of the target controllers in any of the storage main cabinets is not faulty, but any of the cable ports has been marked as a faulty cable port, the fault mark of any of the cable ports is revoked.

8. A fault location device, characterized in that: include: A data acquisition module, used to traverse each storage main cabinet in the target storage system and acquire fault diagnosis data corresponding to each storage main cabinet; A fault location module, configured to perform fault diagnosis on each storage main cabinet based on the fault diagnosis data corresponding to each storage main cabinet, and obtain a fault location result of each storage main cabinet, wherein the fault location includes fault location of at least one of a cable port of a controller in the storage main cabinet, a storage expansion cabinet connected to the storage main cabinet, and a cable port of a storage expansion cabinet connected to the storage main cabinet; The alarm reporting module is used to issue an alarm message based on the fault location result of any storage main cabinet in the target storage system when the fault location result of any storage main cabinet includes the identification information of the faulty component in any storage main cabinet and the cause of the fault.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the fault location method according to any one of claims 1 to 7 is implemented.

10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the fault location method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Link fault processing method and system, electronic equipment and storage medium

    CN115509783A

  • Suspected fault false alarm identification method and device for fire alarm device, and storage medium

    CN118538012A

  • Storage apparatus and failure detection method

    US20120246521A1