Fault positioning method, device, equipment and computer program product
By collecting and analyzing the basic data of the FC network, we generate multi-path delay correlation data and topology data, and automatically locate the fault location. This solves the time-consuming and labor-intensive problem of FC network fault location in the existing technology and achieves fast and efficient fault location. .
Patent Information
- Application Number
- CN202311171985.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-12
- Publication Date
- 2024-10-18
AI Technical Summary
Existing FC network fault location relies on manual analysis, which is time-consuming and labor-intensive and difficult to quickly locate complex faults, especially when there are no obvious alarm logs for temporary hardware errors.
Collect basic data of front-end computing nodes, switches and back-end storage nodes, generate multi-path delay correlation data, topology data and encoding data based on preset rules, automatically locate fault locations, and determine faults through multi-path quantity changes and delay change information Location.
It achieves fast and efficient fault location without manual intervention, reduces troubleshooting time and reduces reliance on professionals.
Smart Images

Figure CN118802491A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communications, and in particular to a fault location method, apparatus, device and computer program product. Background Art
[0002] The existing large-scale data centers have continuously improved their requirements for IO performance, latency and reliability. Considering the requirements of high performance, stability and scalability, storage networks based on FC (Fibre Channel) technology are still the preferred solution. Due to the multi-layered and complex architecture of FC storage networks and the closedness of FC protocols relative to IP network protocols, FC network problem troubleshooting is also very difficult and time-consuming. In FC network problem troubleshooting, general faults mainly rely on hardware monitoring alarm information to locate fault problems. Once complex fault scenarios such as temporary hardware errors without obvious alarm log information occur, since there is no detailed log alarm, it is necessary to rely on professionals to manually log in to the corresponding equipment, analyze the physical and logical relationships between the indicators of each level of equipment, and select the ports with related information in order to perform the corresponding link latency and traffic analysis. Comprehensive analysis and location of problems in the FC network is very time-consuming and labor-intensive, and depends on the ability and experience of storage professionals. Summary of the invention
[0003] The embodiments of the present application provide a fault location method, apparatus, device, and computer program product to solve the technical problem that the fault location problem in the existing FC network is time-consuming, labor-intensive, and manual.
[0004] In a first aspect, an embodiment of the present application provides a fault location method, which is applied to a target network system, wherein the target network system includes a front-end computing node, a switch, and a back-end storage node; the fault location method includes:
[0005] Collecting basic data of the front-end computing node, the switch and the back-end storage node;
[0006] Generate multipath delay association data, topology data and coding data based on preset rules and the basic data;
[0007] The fault position is located based on the multipath delay association data, the topology data and the encoding data.
[0008] In one embodiment, collecting basic data of the front-end computing node, the switch, and the back-end storage node includes:
[0009] Collecting the host bus adapter port number of the front-end computing node;
[0010] Determine the latency, system drive letter, host port, and storage port of each path based on the path collection command.
[0011] In one embodiment, the generating of multipath delay association data, topology data and coding data based on preset rules and the basic data includes:
[0012] Determining multipath latency association data based on the host bus adapter port number, the latency of each of the paths, the system drive letter, the host port, and the storage port;
[0013] Multi-path topology association data and path coding data are generated based on preset path coding rules and the basic data.
[0014] In one embodiment, the generating of multi-path topology association data and path coding data based on the preset path coding rule and the basic data includes:
[0015] Deduplication is performed on the connection device name, the host bus adapter port number, and the storage port corresponding to each of the paths to obtain the port number of the host bus adapter and the number of the storage ports;
[0016] Based on the number of ports of the host bus adapter and the number of the storage ports, number the host bus adapter ports and the storage ports to obtain path coding data;
[0017] A connection relationship between the host bus adapter port and the storage port is determined to obtain multipath topology association data.
[0018] In one embodiment, determining the connection relationship between the host bus adapter port and the storage port to obtain multipath topology association data includes:
[0019] Matching the ports of the switch based on the host bus adapter ports and storage ports connected to the switch to obtain switch connection topology data;
[0020] Based on the topology data of the front-end computing node, the topology data of the storage node, and the switch connection topology data, multipath topology association data is determined.
[0021] In one embodiment, after determining the connection relationship between the host bus adapter port and the storage port and obtaining multipath topology association data, the method includes:
[0022] Based on the port of the switch, the host bus adapter port and the storage port, the paths in the multi-path topology association data are encoded to obtain each path encoding.
[0023] In one embodiment, locating the fault position based on the multipath delay association data, the topology data and the coding data includes:
[0024] Acquire a faulty path, and determine multipath quantity change information based on the faulty path;
[0025] The fault location is determined based on the time delay of each path and the multi-path quantity change information.
[0026] In a second aspect, an embodiment of the present application provides a fault location device, including:
[0027] Basic data collection module, used to collect basic data of front-end computing nodes, switches and back-end storage nodes;
[0028] A data generation module, used to generate multipath delay association data, topology data and coding data based on preset rules and the basic data;
[0029] A fault location module is used to locate the fault position based on the multipath delay association data, the topology data and the coding data.
[0030] In a third aspect, an embodiment of the present application provides a device, including a processor and a memory storing a computer program, wherein the processor implements the fault location method described in the first aspect when executing the computer program.
[0031] In a fourth aspect, an embodiment of the present application provides a computer program product, including a computer program, which implements the fault location method described in the first aspect when executed by a processor.
[0032] The fault location method, device, equipment and computer program product provided by the embodiments of the present application are applied to a target network system including front-end computing nodes, switches and back-end storage nodes. First, some basic data of the front-end computing nodes, switches and back-end storage nodes in the target network system are collected, and then based on the collected basic data and combined with preset rules, multi-path delay correlation data, topology data and coding data are generated; finally, the fault position in the target network system is located based on the multi-path delay correlation data, topology data and coding data. The fault location method provided by the embodiments of the present application does not rely on manual labor and is not time-consuming and labor-intensive. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the technical solutions in the present application or the prior art, a brief introduction will be given below to 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 application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0034] Figure 1 It is a flowchart of a fault location method provided in an embodiment of the present application;
[0035] Figure 2 It is the target network system networking structure in the fault location method provided in the embodiment of the present application;
[0036] Figure 3 is a schematic diagram of the structure of the target network system in the fault location method provided in an embodiment of the present application;
[0037] Figure 4 It is a schematic diagram of data collection and encoding of front-end and back-end devices in the fault location method provided in an embodiment of the present application;
[0038] Figure 5 It is a schematic diagram of switch data collection and encoding in the fault location method provided in an embodiment of the present application;
[0039] Figure 6 It is a complete path coding schematic diagram in the fault location method provided in the embodiment of the present application;
[0040] Figure 7 It is a schematic diagram of a partial path fault situation in the fault location method provided in an embodiment of the present application;
[0041] Figure 8 is a schematic diagram of a half-path failure situation in the fault location method provided in an embodiment of the present application;
[0042] Fig. 9 It is a schematic diagram of a single-area single-link fault in the fault location method provided in an embodiment of the present application;
[0043] Fig.10 This is a schematic diagram of a fault in which both areas are single links in the fault location method provided in an embodiment of the present application;
[0044] Fig.11 It is a schematic diagram of the fault location analysis process in the fault location method provided in an embodiment of the present application;
[0045] Fig.12 is a structural schematic diagram of a fault locating device provided in an embodiment of the present application;
[0046] Fig.13It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0047] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0048] Reference Figure 1 , Figure 1 This is one of the flowcharts of the fault location method in the embodiment of the present application. The fault location method provided in the embodiment of the present application may include:
[0049] Step 100, collecting basic data of the front-end computing node, the switch and the back-end storage node;
[0050] Specifically, Figure 2 As shown in the figure, FC networking has a lot of hardware redundancy, forming multiple IO (Input / Output) paths, that is, multipath. SAN (Storage Area Network) switches are in the middle, responsible for connecting front-end computing nodes and back-end storage nodes. To ensure sufficient hardware redundancy, each SAN switch located in the middle usually ensures at least 2 links connected to any front and back devices (front-end computing nodes or back-end storage) to form a fully redundant networking architecture. Usually, SAN networking is used in core critical business scenarios, such as databases. The reliability requirements are extremely high, so it is usually a fully redundant networking architecture. Figure 2 The figure shows a typical hardware fully redundant FC storage networking structure. The front-end computing node has four HBA (Host Bus Adapter) cards, two SAN switches, and four front ports connected to the two front-end cards of the storage, forming eight IO paths.
[0051] like Figure 3As shown, the fault location method provided by the embodiment of the present application is implemented by the respective functions of the acquisition module, the association module, the configuration module, the path comparison module and the analysis and positioning module. Among them, the acquisition module is responsible for collecting relevant data of the front-end computing nodes, SAN switches and storage, and providing basic data for subsequent association modules and analysis and positioning modules; the association module is divided into a multi-path topology generation association submodule and a multi-path delay association submodule, which are used for physical topology association and each path delay association; the configuration module is used for the input of association rules, coding rules and delay baselines, and provides baseline data for data association, path comparison and fault analysis and positioning; the path comparison module uses analysis and positioning to obtain the path of the fault, and by comparing the path coding and the multi-path redundancy principle, find the common part of the fault path coding, that is, the fault location; the analysis and positioning module is used to obtain each path and the corresponding delay of the path, and find the fault through the two dimensions of path change and path delay change, and confirm the location of the fault through the intersection of the missing path or the path with delay change.
[0052] The fault location method provided in the embodiment of the present application is Figure 3 ① in the above process acquires the basic data of the front-end computing nodes, the intermediate SAN switches and the back-end storage; then the acquired basic data is sent to the association module through ②; the multi-path topology generation association submodule and the multi-path delay association submodule of the association module refer to the rules (association rules, delay baselines and encoding rules, etc.) input by the configuration module ③ to complete the generation of topology links and the association of multi-path delays, and store the association data in the configuration library (such as ④); at the same time, the topology data and delay data are passed to the analysis and positioning module, and the analysis and positioning module determines the fault path; through ⑤, the fault path is sent to the path comparison module for analysis to obtain the fault location; through ⑥, it is returned to the analysis and positioning module; finally, through path coding analysis, the repeated path coding is determined, and the specific location of the path fault can be determined.
[0053] The collection module is mainly used to collect a number of basic data including front-end computing nodes, SAN switches and storage, which are used for the subsequent association of the front-end and back-end and the formation of baseline data.
[0054] The fault location method provided in the embodiment of the present application may further include:
[0055] Step 110, collecting the host bus adapter port number of the front-end computing node;
[0056] Step 120: Determine the latency, system drive letter, host port, and storage port of each path based on the path collection command.
[0057] Specifically, the basic data collection process of the three main collection objects, front-end computing nodes, SAN switches, and back-end storage, is as follows:
[0058] Front-end computing node: As the front-end of the FC network, the front-end computing node needs to collect the most basic data, including the WWPN (world wide port number) of the HBA card connected to the host, which is used for the association between the front and back ends; collect the latency of each path through iostat (a command of the Linux operating system); collect the system drive letter (dev), host port (host wwpn) and storage port (target wwpn) of each path, and the above collected data is used for the association of subsequent paths. There are generally N links to ensure redundancy when the computing node is connected to the back-end storage, that is, N logical devices can be seen on the computing node. Multipath software is used on the computing node to implement multipath access to storage disk virtualization, load balancing of io traffic, and switching and recovery of link failures. For the convenience of management, multiple logical devices are aggregated into a dm (Device Management) device through multipath software, that is, in this typical architecture, the host can see that there are 8 devs through the iostat command.
[0059] The information collection command (multipath-ll) can be used to obtain a multipath aggregate disk, which corresponds to 8 logical disks (i.e., paths). This means that there are 8 paths in the FC network and they are all in normal status.
[0060] Use the iostat command to obtain the name and latency of each path, and combine it with the path information obtained by the multipath command to obtain the latency of each path under a path aggregation disk.
[0061] The multipath show command can be used to obtain the port information of the HBA card port initiated by each path and the port connected to the storage front port, which is used for the subsequent automatic generation of the physical topology.
[0062] SAN switch: Based on the collected host ports and storage front ports, by comparing the device ports connected to the corresponding ports of the SAN switch, the link form of the physical topology can be determined. The front-end computing node is connected to a port of a SAN switch through an HBA card, and the SAN switch is connected to a front port of the back-end storage through a port.
[0063] Storage side: Use the multipath show command to obtain the storage front port. Use the port as the only information to call the storage API (Application Programming Interface) to obtain the corresponding information of the front-end card and the front port on the storage.
[0064] Step 200, generating multipath delay association data, topology data and coding data based on preset rules and the basic data;
[0065] Specifically, the association module is used to associate the multipath physical topology, the output of the multipath software, and the latency of the operating system to obtain the effective multipath physical topology and the latency of each path. Through the storage API interface, the corresponding subordinate relationship between the front-end card and the front port of the back-end storage is obtained. The number of paths and the latency changes are used for subsequent analysis and positioning modules to analyze and locate faults. According to the process of generating the multipath topology, the association module can be divided into a multipath determination and latency association submodule and a multipath topology generation association submodule.
[0066] Step 300: locate the fault location based on the multipath delay association data, the topology data and the encoding data.
[0067] Specifically, the analysis and positioning module: discovers and locates faults through two dimensions: the change in the number of multipaths and the multipath delay. Faults can be discovered through path changes or delays, and reduced or problematic paths can be identified. Faults can be located by comparing and analyzing these paths.
[0068] In the fault location method provided in this embodiment, first, some basic data of the front-end computing nodes, switches and back-end storage nodes in the target network system are collected, and then based on the collected basic data and combined with preset rules, multi-path delay association data, topology data and coding data are generated; finally, the fault location in the target network system is located based on the multi-path delay association data, topology data and coding data. The fault location method provided in the embodiment of the present application does not rely on manual labor and is not time-consuming and labor-intensive.
[0069] In one embodiment, the fault location method provided in the embodiment of the present application may further include:
[0070] Step 210, determining multipath delay association data based on the host bus adapter port number, the delay of each path, the system drive letter, the host port, and the storage port;
[0071] Step 220: Generate multi-path topology association data and path coding data based on preset path coding rules and the basic data.
[0072] The fault location method provided in the embodiment of the present application may further include:
[0073] Step 221, removing duplicates from the connection device name, the host bus adapter port number, and the storage port corresponding to each of the paths to obtain the port number of the host bus adapter and the number of the storage ports;
[0074] Step 222, based on the number of ports of the host bus adapter and the number of the storage ports, number the host bus adapter ports and the storage ports to obtain path coding data;
[0075] Step 223: determine the connection relationship between the host bus adapter port and the storage port to obtain multipath topology association data.
[0076] The fault location method provided in the embodiment of the present application may further include:
[0077] Step 223a, matching the ports of the switch based on the host bus adapter ports and storage ports connected to the switch to obtain switch connection topology data;
[0078] Step 223b: Determine multipath topology association data based on the topology data of the front-end computing node, the topology data of the storage node, and the switch connection topology data.
[0079] The fault location method provided in the embodiment of the present application may further include:
[0080] Step 224: Encode the paths in the multipath topology association data based on the switch port, the host bus adapter port, and the storage port to obtain each path code.
[0081] Specifically, the multipath determination and latency association submodule: Based on the multipath information obtained by the acquisition module, first confirm the number of multipaths under the aggregate disk, the name of the logical disk, and the host port and storage port used by the logical disk according to the multipath device information obtained from the aggregate disk information; then, associate the key fields of the path name with the multipath device latency obtained by the iostat command to obtain the disk multipath determination and latency association table. The two core indicators of multipath quantity and latency in the table can be used to determine various hardware errors;
[0082] Multi-path topology generation associated submodule: Generates topology based on the basic information collected by the acquisition module to form path information. The encoding of each path is completed through the path encoding rules, and the path encoding information will be used for subsequent path comparison. According to obtaining the front-end and back-end information and corresponding device encoding, obtaining the front-end and back-end connection SAN information and encoding, and generating three-segment path encoding, the following are respectively described:
[0083] Get the front-end and back-end information and the corresponding device codes: First, based on the host multipath software command multipath, get the name of the connected device, the host HBA card port, and the storage front-end card corresponding to each path as the associated key information. By removing duplicates, the number of HBA cards used in the FC storage network and the number of connected storage front-end cards can be obtained, and the HBA cards are numbered and encoded into Ha in the order of the device names in the operating system, such as H1, H2, and H03; according to the relationship between the front-end card and the port number obtained, the storage front port number can be encoded from small to large into FdPf, such as F0P0, F0P1, and F1P2. Front-end and back-end device data collection and encoding are as follows: Figure 4 As shown;
[0084] Get the front-end and back-end SAN information and coding: The switchshow command of the switch can determine the front-end HBA card port or the back-end storage front port connected to the switch and the corresponding port information of the connected switch. The port uniqueness can be used to match one by one to confirm the switch and port information connected to the HBA card and the storage front port to form a connection topology. By logging in to all managed connected switches one by one, according to the host port and storage front port obtained above, the switchshow command is executed on the corresponding switch to find the physical port number of the corresponding connected switch. The port connected to the host port corresponds to the port connected to the front-end host, and the port connected to the storage front port corresponds to the port connected to the storage front-end card. After all host ports and storage front ports are matched, the front-end and back-end association information is obtained;
[0085] According to the host port and storage port matching switch information collected by the multipathd show command, use the switchshow command to determine the location information of the corresponding switch: including the switch name, switch location, and port location;
[0086] By ensuring global uniqueness of the switch slot and port coding, it is convenient to compare the coding uniformly for the entire link later, and the switch ports caused by different specific devices can be shielded according to the comparison table to eliminate the different switch structures and simplify the coding path. The ports are divided into ports connected to the host end, called I ports (Input ports), and ports connected to the storage end, called O ports (Output ports). After determining the location fault code, you can refer to the comparison table to find the specific physical location of the fault;
[0087] According to the above switch coding rules, the intermediate switches and ports are coded, and coded according to the SbIcOd rules, such as S0I0O2 and S1I4O6. Figure 5 As shown;
[0088] Generate three-segment path encoding: According to the connected HBA cards connected online in the topology, the path encoding is performed through the front-end, middle-end and back-end connection names for subsequent path identification. The path encoding format is divided into three segments: front-end host HBA card, middle switch and back-end storage, and the middle is separated by "-". The encoding format is Ha-SbIcOd-FePf, that is, H represents HBA card, a represents the ath HBA card; S represents switch, b represents the number of switches; I represents the port on the switch connected to the front-end card, c represents the cth switch port; O represents the port on the switch connected to the back-end storage, d represents the dth switch port; F represents the front-end card, e represents the eth front-end card number, and Pf represents the fth front-end port number on the front-end card. The complete path is as follows Figure 6 Encoding;
[0089] According to the above encoding rules, the front-end computing nodes generate the following 8 paths, and the complete path encoding is as follows: topology path 1: H0-S0I0O2-F0P0; topology path 2: H0-S0I0O3-F1P2; topology path 3: H1-S0I1O2-F0P0; topology path 4: H1-S0I1O3-F1P2; topology path 5: H2-S1I4O6-F0P1; topology path 6: H2-S1I4O7-F1P3; topology path 7: H3-S1I5O6-F0P1; topology path 8: H3-S1I5O7-F1P3.
[0090] Configuration module: To form baseline data, such as baseline path number Pb, path delay baseline Tb, etc., record the number of multipaths and the delay of each path when the system is normal, for subsequent path comparison. When the hardware and load are normal, execute the multipath software to obtain the number of paths, and use the iostat command to obtain the path delay, and form baseline data by associating the device name and recording it.
[0091] Path comparison module: input the path code of the fault path for comparison, find the overlapped position of the same path code, and then determine the approximate location of the fault. In principle, due to the redundancy of multi-path equipment, there must be common parts between the paths, and the paths must pass through some of the same hardware devices, such as HBA cards, switch ports or front-end cards. The intersection of multiple paths has some common paths. Once the common part has problems, it will inevitably lead to the failure of these paths. Figure 7 Take this as an example to illustrate;
[0092] The path comparison module locates the fault according to the number of paths that are lost or faulty and the faulty paths. If the number of baseline paths is N and the number of faulty paths is F, the analysis is as follows:
[0093] F < N / 2: If the number of faulty paths F < N / 2, that is, the number of faulty paths is less than half of the normal number, it is usually caused by a certain HBA card, or a switch port, or a storage front-end card. The path can be roughly located by comparing the faulty paths. The following Figure 7 illustrates with some path fault cases;
[0094] Front-middle region fault: If the H0 card or the connected switch port has a problem, then the paths H0-S0I0O2-F0P0 and H0-S0I0O3-F1P2 have problems or high latency. By comparing these two paths, it can be seen that the common part is H0-S0I0, indicating that there is a problem with the connection or port between the HBA card H0 and the switch S0 and port I0;
[0095] Middle-later segment local fault: If the front port P3 of the backend storage has a problem, then the faulty paths are H2-S1I4O7-F1P3 and H3-S1I5O7-F1P3. The common part is S1O7-F1P3, and the common path is the area where the switch S1 port O7 is connected to the storage front port F1P3;
[0096] F = N / 2: If the number of faulty paths F = N / 2, it means that half of the paths have problems. From the network topology diagram, there may be two cases: a certain switch has a problem or there are 4 front ports on 2 front-end cards connected to the backend storage, and a certain front-end card has a problem.
[0097] Switch fault: Similarly, the following Figure 8 illustrates. If the S0 switch has a problem, then 4 paths will have problems, namely H0-S0I0O2-F0P0, H0-S0I0O3-F1P2, H1-S0I1O2-F0P0, and H1-S0I1O3-F1P2. The common part of the above paths is S0, indicating that the S0 switch has a fault;
[0098] Front-end card fault: If the storage front-end card F0 fails, then 4 paths will also have problems, namely H0-S0I0O2-F0P0, H1-S0I1O2-F0P0, H2-S1I4O6-F0P1, and H3-S1I5O6-F0P1. The common part of the above paths is F0, that is, the storage front-end card F0 has a fault;
[0099] F = N: If the number of faulty paths F = N and all normal paths fail, it is usually a problem with the host or the storage. Determine whether there is a problem by obtaining performance data. If the host cannot obtain information, it is a host fault. If the storage cannot obtain relevant data, it is a storage fault;
[0100] The above is the path comparison process of the FC network topology of the common hardware full-redundancy networking architecture. However, due to the implementation level of technical personnel or hardware investment limitations in the actual production environment, there will be a situation where the hardware is not fully redundant. Hardware non-full redundancy means that the front-end host or back-end storage is connected to a mid-end switch, and only a single physical link is deployed. At this time, the actual production environment will have a scenario where the number of fault paths F = 1, that is, only one path is faulty.
[0101] F=1: There is only one fault path, and the hardware is not fully redundant. According to the single link situation of the front-middle area (front-end computer point to mid-end switch) and the middle-back area (mid-end switch to back-end storage), it can be divided into the following two types: a single area single link and two areas with single links. The analysis and comparison process is as follows:
[0102] Single-area single link: refers to a networking environment where a single link exists in the front-middle area or the middle-back area. The number of faulty paths F = 1 only occurs when the faulty link occurs in the redundant link area. Fig.10 A link in the redundant link area (middle and back area) fails. Taking the S0O1-F0P0 failure as an example, the path H0-S0I0O1-F0P0 fails. Compared with the remaining three paths, it is determined that the path H0-S0I0O2-F1P 2 has the same path. By comparing the two paths, it can be seen that the same part is H0-S0I0 in the front and middle area. Since only one path fails, it is impossible for the common part of the two links with the common part to have a problem, so it is deduced that there is a problem with another path in the middle and back area, that is, the O1-F0P0 link; if the single link area ( Fig. 9 According to the following topology, if H0-S0I0 fails, there will be two fault paths, that is, F=2. The judgment rule is the same as the full redundant link above. Find the same fault path and compare the common part to locate the fault location. The single link in the single link area (front middle area) has a problem:
[0103] Both areas are single-link: The front-middle area and the middle-back area are both single-link networking environments. Fig.10 As shown in the figure, since a single path only involves one HBA card and two ports on the switch and the corresponding front port of the storage, the scope is reduced, which is very helpful for the administrator to quickly locate the fault location. Fig.10 For example, if the H0-S0I0 link is abnormal or the S0O1-F0P0 link is abnormal, the entire link H0-S0I0O1-F0P0 will disappear. Since only a single link needs to be checked, the scope of investigation is greatly reduced. The hardware such as ports and lines of the single faulty link can be checked one by one, and the fault can be quickly determined.
[0104] In this embodiment, on the one hand, the multi-path quantity and the delay change of each path are used to discover FC network problems, and the FC network problems are automatically located by comparing the path encodings of abnormal paths. Especially for temporary hardware errors, it does not rely on the system logs and monitoring alarms, nor on the personal experience and capabilities of processing engineers, thus solving the problem of difficult discovery and location of temporary hardware errors.
[0105] In one embodiment, the fault location method provided by the embodiments of the present application may further include:
[0106] Step 310: Obtain a fault path, and determine the change information of the multi-path quantity based on the fault path;
[0107] Step 320: Determine the fault location based on the delay of each path and the change information of the multi-path quantity.
[0108] Specifically, the fault location and analysis process is as Fig.11 shown. Obtain real-time data Pt, Tn and compare with baseline data: According to the latest real-time path quantity Pt obtained by the acquisition module, each path encoding and the corresponding path delay Tn, the baseline path number Pb, and the path delay baseline Tb of each path, determine the comparison between the path quantity and the normal baseline data.
[0109] If Pt < Pb: That is, the latest collected path quantity is less than the baseline path quantity, indicating that there is a hardware fault, resulting in the interruption and disappearance of some paths due to the hardware fault. Determine the disappeared paths, and the common problem path segments can be found through the path comparison module. Combining the verification of relevant device alarms and logs, the fault location is finally determined;
[0110] If Pt = Pb, Tn >> Tb: That is, the path quantity is normal, but the delay of some paths is abnormal, indicating that there is a temporary hardware error, resulting in the IO delay of some paths being greater than the normal value due to the temporary hardware error. By determining the paths with delay problems and calling the path comparison module, the path fault segments can be determined, and the fault location is finally determined.
[0111] In this embodiment, the path change information is automatically obtained, the topology is automatically associated, and the paths are automatically compared. Finally, the location of the hardware fault is output, and the whole process is completely automated, solving the problem of long fault location time.
[0112] Refer to Fig.12 , Fig.12 which is the structural schematic diagram of the fault location device in the embodiments of the present application. The fault location device provided by the embodiments of the present application will be described below. The fault location device described below can be correspondingly referred to the fault location method described above.
[0113] Basic data collection module 301, used to collect basic data of front-end computing nodes, switches and back-end storage nodes;
[0114] A data generation module 302, configured to generate multipath delay association data, topology data and coding data based on preset rules and the basic data;
[0115] The fault location module 303 is used to locate the fault position based on the multipath delay association data, the topology data and the coding data.
[0116] Optionally, the basic data acquisition module includes:
[0117] A host bus adapter port number collection unit, used to collect the host bus adapter port number of the front-end computing node;
[0118] The data determination unit is used to determine the latency, system drive letter, host port and storage port of each path based on the path collection command.
[0119] Optionally, the data generation module includes:
[0120] a multipath delay associated data determining unit, configured to determine multipath delay associated data based on the host bus adapter port number, the delay of each of the paths, the system drive letter, the host port, and the storage port;
[0121] The data generating unit is used to generate multi-path topology association data and path coding data based on preset path coding rules and the basic data.
[0122] Optionally, the data generating unit includes:
[0123] a deduplication processing unit, configured to deduplication the connection device name, the host bus adapter port number and the storage port corresponding to each of the paths, and obtain the port number of the host bus adapter and the number of the storage ports;
[0124] A port numbering unit, configured to number the host bus adapter ports and the storage ports based on the number of ports of the host bus adapter and the number of the storage ports to obtain path coding data;
[0125] The multipath topology association data determining unit is used to determine the connection relationship between the host bus adapter port and the storage port to obtain multipath topology association data.
[0126] Optionally, the multipath topology associated data determining unit includes:
[0127] A port matching unit, configured to match the ports of the switch based on the host bus adapter ports and storage ports connected to the switch, to obtain switch connection topology data;
[0128] The multipath topology associated data determining unit is used to determine the multipath topology associated data based on the topology data of the front-end computing node, the topology data of the storage node and the switch connection topology data.
[0129] Optionally, the fault locating device further includes:
[0130] The path encoding module is used to encode the paths in the multi-path topology association data based on the port of the switch, the host bus adapter port and the storage port to obtain each path code.
[0131] Optionally, the fault location module includes:
[0132] A fault path acquisition unit, used to acquire a fault path, and determine multi-path quantity change information based on the fault path;
[0133] The fault location determination unit is used to determine the fault location based on the time delay of each path and the multi-path quantity change information.
[0134] Fig.13 The following is an example of a physical structure diagram of a device, such as Fig.13 As shown, the device may include: a processor 410, a communication interface 420, a memory 430 and a communication bus 440, wherein the processor 410, the communication interface 420 and the memory 430 communicate with each other through the communication bus 440. The processor 410 may call a computer program in the memory 430 to execute the steps of the fault location method.
[0135] In addition, the logic instructions in the above-mentioned memory 430 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 this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art, and the computer software product is stored in a storage medium, including several instructions to enable 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 application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk.
[0136] On the other hand, an embodiment of the present application 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 steps of the fault location method provided in the above embodiments.
[0137] 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.
[0138] 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 fault location method described in each embodiment or some parts of the embodiment.
[0139] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application 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 application.
Claims
1. A fault location method, characterized in that: Applied to a target network system, the target network system includes a front-end computing node, a switch, and a back-end storage node; the fault location includes: Collecting basic data of the front-end computing node, the switch and the back-end storage node; Generate multipath delay association data, topology data and coding data based on preset rules and the basic data; The fault position is located based on the multipath delay association data, the topology data and the encoding data.
2. The fault location method according to claim 1, characterized in that: The collecting of basic data of the front-end computing node, the switch, and the back-end storage node includes: Collecting the host bus adapter port number of the front-end computing node; Determine the latency, system drive letter, host port, and storage port of each path based on the path collection command.
3. The fault location method according to claim 2, characterized in that: The generating of multipath delay association data, topology data and coding data based on preset rules and basic data includes: Determining multipath latency association data based on the host bus adapter port number, the latency of each of the paths, the system drive letter, the host port, and the storage port; Multi-path topology association data and path coding data are generated based on preset path coding rules and the basic data.
4. The fault location method according to claim 3, characterized in that: The generating of multi-path topology association data and path coding data based on the preset path coding rule and the basic data comprises: Deduplication is performed on the connection device name, the host bus adapter port number, and the storage port corresponding to each of the paths to obtain the port number of the host bus adapter and the number of the storage ports; Based on the number of ports of the host bus adapter and the number of the storage ports, number the host bus adapter ports and the storage ports to obtain path coding data; A connection relationship between the host bus adapter port and the storage port is determined to obtain multipath topology association data.
5. The fault location method according to claim 4, characterized in that: Determining the connection relationship between the host bus adapter port and the storage port to obtain multipath topology association data includes: Matching the ports of the switch based on the host bus adapter ports and storage ports connected to the switch to obtain switch connection topology data; Based on the topology data of the front-end computing node, the topology data of the storage node, and the switch connection topology data, multipath topology association data is determined.
6. The fault location method according to claim 5, characterized in that: After determining the connection relationship between the host bus adapter port and the storage port and obtaining multipath topology association data, the method includes: Based on the port of the switch, the host bus adapter port and the storage port, the paths in the multi-path topology association data are encoded to obtain each path encoding.
7. The fault location method according to claim 6, characterized in that: The locating of the fault position based on the multipath delay association data, the topology data and the coding data comprises: Acquire a faulty path, and determine multipath quantity change information based on the faulty path; The fault location is determined based on the time delay of each path and the multi-path quantity change information.
8. A fault location device, characterized in that: include: Basic data collection module, used to collect basic data of front-end computing nodes, switches and back-end storage nodes; A data generation module, used to generate multipath delay association data, topology data and coding data based on preset rules and the basic data; A fault location module is used to locate a fault position based on the multipath delay association data, the topology data and the coding data.
9. An electronic device comprising a processor and a memory storing a computer program, characterized in that: When the processor executes the computer program, the fault location method according to any one of claims 1 to 7 is implemented.
10. A computer program product, comprising a computer program, 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
Cited By
Storage system anomaly detection method, electronic equipment, storage medium and program product
CN120723519A
Storage system anomaly detection methods, electronic devices, storage media, and software products
CN120723519B
