Anomaly detection method and storage device

By detecting the target transmission path unit association information of the storage device, the business scenario is determined and the influencing factors are obtained from the anomaly factor library. This solves the problem of inaccurate anomaly location of the storage device, realizes fast and accurate anomaly prompts, and improves the efficiency of anomaly problem resolution.

CN121116697BActive Publication Date: 2026-02-10INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202511645167.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-11-11
Publication Date
2026-02-10
Estimated Expiration
2045-11-11

AI Technical Summary

Technical Problem

When existing storage devices encounter abnormal problems during operation, it is impossible to quickly and accurately locate the cause of the abnormality, making it difficult for maintenance personnel to quickly understand the impact of the abnormality on the business and affecting the efficiency of resolving abnormal problems.

Method used

By detecting the unit association information of the target transmission path, it is initially determined whether there is an operational abnormality in the storage device. In response to the instruction, the target business scenario is determined, and the influencing factors are identified from the business abnormality factor database, and an abnormality prompt operation is performed.

Benefits of technology

It improves the accuracy of anomaly location, reduces the situation where important messages are overwhelmed due to a large number of anomaly prompts, ensures that operations and maintenance personnel can quickly understand the impact of anomalies on business, and improves the efficiency of anomaly resolution.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121116697B_ABST
    Figure CN121116697B_ABST
Patent Text Reader

Abstract

The application discloses an abnormality detection method and a storage device, relates to the technical field of computer storage, and preliminarily determines whether the storage device has the possibility of running abnormally by detecting the associated information corresponding to each unit in a target transmission path, and in the case that it is determined that the storage device has the possibility of running abnormally, a target business scenario is determined in response to at least one instruction, so as to determine at least one influence factor corresponding to the target business scenario from a business abnormality factor library. Then, according to the target information of each influence factor queried, an abnormality prompt operation is performed. In the embodiment of the application, the abnormality prompt operation can be related to the influence factor corresponding to the target business scenario, and the accuracy of abnormality problem positioning is improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of computer storage, and particularly relates to an exception detection method and a storage device. BACKGROUND

[0002] With the continuous development of electronic technology, storage devices have been widely applied in many fields. However, in some cases, the storage device may have some abnormal problems in the process of running, such as hardware failure, link exception, configuration error, etc., thereby affecting the user experience.

[0003] Therefore, how to quickly and accurately inform the user of the cause of the abnormal problem is a problem to be solved. SUMMARY

[0004] The present application provides an exception detection method and a storage device, which are used for accurately positioning the abnormal problem and timely informing the user of the cause of the abnormal problem.

[0005] The present application provides an exception detection method, comprising:

[0006] According to a preset detection strategy, unit association information of a target transmission path is detected to obtain a preliminary detection result; wherein the unit association information is information in device management information that is being used by the storage device;

[0007] In the case that the preliminary detection result represents the possibility that the storage device has a running exception, at least one instruction is responded to determine a target business scenario; wherein the instruction is used to determine a target type included in the target business scenario, and the target type is a topology type, a link type or a replication type;

[0008] The target business scenario is matched with a plurality of business scenarios in a business exception factor library to obtain at least one influence factor corresponding to the target business scenario; wherein the business exception factor library includes influence factors corresponding to each business scenario;

[0009] For each influence factor corresponding to the target business scenario, target information of the influence factor is queried;

[0010] According to the target information, an exception prompt operation is performed.

[0011] The present application also provides an exception detection device, comprising:

[0012] A detection result generation module is configured to detect unit association information of a target transmission path according to a preset detection strategy to obtain a preliminary detection result; wherein the unit association information is information in device management information that is being used by the storage device;

[0013] The business scenario determination module is configured to determine a target business scenario in response to at least one instruction in a case where the preliminary detection result indicates a possibility that the storage device has an operation exception; wherein the instruction is used to determine a target type included in the target business scenario, and the target type is a topology type, a link type, or a replication type.

[0014] The influence factor determination module is configured to match the target business scenario with a plurality of business scenarios in a business exception factor library to obtain at least one influence factor corresponding to the target business scenario; wherein the business exception factor library includes influence factors corresponding to each business scenario.

[0015] The target information query module is configured to query target information of each influence factor corresponding to the target business scenario.

[0016] The prompt operation execution module is configured to perform an exception prompt operation according to the target information.

[0017] The present application also provides a storage device, which includes a memory configured to store a computer program, and a processor configured to execute the computer program to implement the steps of any one of the above-mentioned exception detection methods.

[0018] The present application also provides a computer readable storage medium, which stores a computer program, wherein the computer program is executed by a processor to implement the steps of any one of the above-mentioned exception detection methods.

[0019] The present application also provides a computer program product, which includes a computer program, wherein the computer program is executed by a processor to implement the steps of any one of the above-mentioned exception detection methods.

[0020] The present application provides an exception detection method and a storage device. The method includes the following steps: detecting associated information corresponding to each unit in a target transmission path to preliminarily determine whether a storage device has a possibility of an operation exception; determining a target business scenario in response to at least one instruction in a case where the preliminary detection result indicates that the storage device has the possibility of the operation exception; and determining at least one influence factor corresponding to the target business scenario from a business exception factor library. Then, an exception prompt operation is performed according to target information of each influence factor. In this way, the exception prompt operation is related to the influence factor corresponding to the target business scenario, the accuracy of exception problem positioning is improved, and necessary conditions are provided for a user to accurately view exception prompt information related to the target business scenario.

[0021] It should be understood that the content described in this section is not intended to identify key or important features of the embodiments of the present disclosure, nor is it used to limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description. BRIEF DESCRIPTION OF DRAWINGS

[0022] In order to more clearly illustrate the embodiments of the present application, the drawings required to be used in the embodiments will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.

[0023] Figure 1 A flow chart of an abnormality detection method provided by an embodiment of the present application;

[0024] Figure 2 A process schematic diagram of determining a target service scenario provided by an embodiment of the present application;

[0025] Figure 3 A flow chart of another abnormality detection method provided by an embodiment of the present application;

[0026] Figure 4 A structural schematic diagram of an abnormality detection device provided by an embodiment of the present application. DETAILED DESCRIPTION

[0027] The technical solutions in the embodiments of the present application will be described clearly and completely in combination with the drawings in the embodiments of the present application. Obviously, the described embodiments are only some embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor are within the protection scope of the present application.

[0028] It should be noted that, in the description of the present application, the terms “include”, “contain” or any other variants thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or includes elements inherent to such process, method, article or device. The terms “first”, “second” and the like in the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence.

[0029] In some cases, in order to better manage and store data, a storage system is usually deployed in a storage device, so that the storage device can access data efficiently, safely and orderly. The storage system can be a centralized storage system, which is responsible for managing a large amount of data resources and supporting various key business applications. For example, the key business applications can be database services, virtualization platforms, big data analysis and artificial intelligence training, etc.

[0030] It should be noted that the reliability, availability and performance of the above storage system will directly affect the continuity of the entire service and the user experience. Therefore, if the storage device deployed with the storage system encounters an abnormal problem, such as a link exception, a hardware failure, a configuration error, a network problem, etc., and the abnormal problem is not discovered and handled in time, it may cause service interruption, data loss or performance degradation, affecting the user experience.

[0031] Therefore, in order to be able to discover and handle the abnormal problem in time when the above abnormal problem occurs, the storage device can detect whether the storage device encounters an abnormal problem in the running process by continuously collecting performance indicators and state information of the storage device. The performance indicators can include CPU (Central Processing Unit) usage, disk capacity, network throughput, etc. Then, in the case that the storage device encounters an abnormal problem in the running process, an abnormal prompt information is generated to enable the operation and maintenance personnel to discover and handle the abnormal problem in time.

[0032] In some cases, the above performance indicator is CPU usage, and in the case that the CPU usage is greater than the preset usage, an abnormal detection result is obtained, which represents that the storage device encounters an abnormal problem in the running process. The preset usage is set in advance according to the actual situation. Then, the storage device can generate an abnormal prompt information. That is, the abnormal detection result is determined based on the performance indicators and state information of the storage device and the preset abnormal prompt rule. In this way, although the detection of the abnormal problem can be realized, the abnormal prompt rule is fixed and cannot adapt to the specific needs of different business scenarios, so that the subsequent generated abnormal prompt information cannot be associated with the business scenario, and the operation and maintenance personnel cannot quickly understand the impact of the abnormal problem on the business, thereby affecting the solution efficiency of the abnormal problem.

[0033] In addition, due to the lack of filtering operation of the business scenario, the storage device generates a large number of abnormal prompt information irrelevant to the business scenario, so that the user cannot accurately find the abnormal prompt information related to the business scenario, and further affects the user experience. Therefore, in order to ensure that the user can accurately find the abnormal prompt information related to the business scenario, an information retrieval interface is displayed in the storage device. The information retrieval interface includes at least one retrieval item and an input box corresponding to each retrieval item. The retrieval item includes at least one of an abnormal prompt code, an abnormal object, and an abnormal occurrence time. For example, the abnormal object can be a storage pool, a storage volume, a host, etc. Then, in response to the content input operation of the user for any input box, the generated multiple abnormal prompt information is screened to obtain target abnormal prompt information. In this way, although the problem of too many abnormal prompt information can be solved, the different business scenarios are not considered, so that the storage device still cannot generate abnormal prompt information related to the business scenario, which makes it difficult for the operation and maintenance personnel to quickly understand the impact of the abnormal problem on the business, and further affects the solution efficiency of the abnormal problem.

[0034] Therefore, in order to associate the abnormal prompt information with the business scenario and improve the accuracy of abnormal problem positioning, an abnormal detection method is provided in the embodiments of the present application. In the method, according to a preset detection strategy, unit association information of a target transmission path is detected to obtain a preliminary detection result. The unit association information is information in device management information that is being used by the storage device. Then, in the case that the preliminary detection result represents the possibility that the storage device has a running abnormality, at least one instruction is responded to to determine a target business scenario. The instruction is used to determine a target type included in the target business scenario, and the target type is a topology type, a link type, or a replication type. Then, the target business scenario is matched with multiple business scenarios in a business abnormal factor library to obtain at least one influence factor corresponding to the target business scenario. The business abnormal factor library includes influence factors corresponding to each business scenario. Then, for each influence factor corresponding to the target business scenario, target information of the influence factor is queried, and according to the target information, an abnormal prompt operation is performed.

[0035] In the embodiments of the present application, the possibility of whether the storage device has a running abnormality is initially determined by detecting the association information corresponding to each unit in the target transmission path, and in the case where it is determined that the storage device has the possibility of running abnormality, the target service scenario is determined in response to at least one instruction, so as to determine at least one influencing factor corresponding to the target service scenario from the service abnormal factor library. Then, the abnormal prompt operation is performed according to the target information of each influencing factor queried. In this way, the abnormal prompt operation can be related to the influencing factors corresponding to the target service scenario, the accuracy of abnormal problem positioning is improved, the situation that important abnormal prompts are submerged due to too many abnormal prompts can be reduced, necessary conditions are provided for the user to accurately view the abnormal prompt information related to the target service scenario. Moreover, it can ensure that the operation and maintenance personnel can quickly understand the influence of the abnormal problem on the service, fundamentally solve the situation of inaccurate abnormal prompt, reduce the labor cost, and improve the efficiency of solving the abnormal problem.

[0036] In some examples, the storage device in the embodiments of the present application can be a mobile phone, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, and a cellular phone, a personal digital assistant (PDA), an augmented reality (AR) \ virtual reality (VR) device, and other devices capable of storing data. The specific form of the storage device is not specially limited in the embodiments of the present application.

[0037] In order for those skilled in the art to better understand the present application, the present application will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0038] In the following, the execution subject of the abnormality detection method is the storage device, and the abnormality detection method and the storage device of the embodiments of the present application will be described with reference to the accompanying drawings.

[0039] Figure 1 A flowchart of an abnormality detection method provided by the embodiments of the present application.

[0040] As shown in the method, the method comprises the following steps: Figure 1

[0041] S100, determining unit association information of a target transmission path from device management information.

[0042] ​The unit association information is information in the device management information that is being used by the storage device. The unit association information includes association information corresponding to each unit in the target transmission path.

[0043] In some cases, the storage device can acquire device management information. The device management information can include link information, redundant array of independent disks (RAID) information, storage volume information, replication information, and initiator device information, etc. The RAID can also be referred to as a redundant array of independent disks, which is a technology that combines multiple independent physical hard disks in different ways to form a hard disk group (or logical hard disk), thereby providing higher storage performance than a single hard disk and providing a data backup technology. The initiator device is a computing device that needs to access the storage device, and is a device that initiates a data access request in the target transmission path. In the embodiments of the present application, the initiator device can be a host.

[0044] Specifically, the link information is the configuration and state of the storage device, the switch, and the host, which is used to understand the connection process between the host and the storage device, that is, how the host is connected to the storage device. The link information can include switch information, port information, and configuration information. The switch information can include a domain name, an Internet Protocol (IP) address, and a firmware version, etc. The port information can include a port state, a speed, a World Wide Name (WWN) of a connected device, traffic, and error technology, etc. The port state can include an online state and an offline state. The connected device is all devices connected to the port. The WWN is a unique identifier that is used to uniquely identify a network connection or a connection set worldwide. The configuration information can include a WWN of a host bus adapter (HBA) and a WWN of a storage port, etc. The HBA is equivalent to a computer hardware interface card, which is used to connect the host and external storage devices (such as hard disk arrays, tape libraries, SAN networks, etc.). The main function of the HBA card is to realize data transmission between the host and the storage device, and to reduce the data flow (I / O) processing burden of the host CPU.

[0045] In some embodiments, the host where the management software is located can connect with the switch through a secure shell (SSH) protocol, and after the connection is successful, a plurality of information acquisition commands are executed to acquire the link information. For example, the information acquisition command can be a show switch status command, a show fabric command, a show zoning command, a show flogic database command, etc.

[0046] Specifically, the storage RAID information mainly refers to a data redundancy protection strategy, and is used to understand the fault tolerance and recoverability of the storage device. The storage RAID information can include a RAID name or a storage pool name, an ID, a RAID level, a used capacity ratio, and a disk capacity, etc. The RAID level can be raid1, raid5, raid6, and raid10, respectively. It can be understood that the higher the RAID level is, the stronger the protection capability of the data stored in the RAID is. The used capacity ratio refers to the ratio between the used capacity and the total capacity.

[0047] In some embodiments, the host where the management software is located can connect to the storage device through SSH, and after the connection is successful, execute a command for acquiring the RAID information, so as to acquire the storage RAID information.

[0048] Specifically, the storage volume information can include a storage volume name, a storage volume ID, a storage pool or a RAID to which the storage volume belongs, a read-write state, and a host mapping the storage volume, etc. The read-write state can include a normal state and an abnormal state.

[0049] It should be noted that the acquisition process of the storage volume information is similar to the acquisition process of the storage RAID information, which will not be described herein.

[0050] Specifically, the replication information can be local replication information or remote replication information. The replication information can include a replication mode state, a source storage volume, a target storage volume, a replication process state, and a replication progress, etc. The replication mode state can include a synchronous replication state and an asynchronous replication state. The source storage volume is a storage volume playing a sending role in a data transmission process. The target storage volume is a storage volume playing a receiving role in the data transmission process. For example, taking data transmission from a storage volume A to a storage volume B as an example, the source storage volume is the storage volume A, and the target storage volume is the storage volume B. The replication process state can include a normal state, a synchronization state, and a fault state.

[0051] It should be noted that the acquisition process of the replication information is similar to the acquisition process of the storage RAID information, which will not be described herein.

[0052] Specifically, the host information can include operating system information, HBA card information, multi-path software configuration information, and block device information, etc. The operating system information can include system type, host name, and IP, etc. The HBA card information can include WWN, driver version, firmware version, and running state of the HBA card, etc. The running state can include normal state and fault state. The multi-path software configuration information can include path state, active path, and configuration strategy, etc. The path state can include normal state and abnormal state. The block device information can include disk identification result, logical unit number (LUN) of the storage volume corresponding to the block device, block device capacity, and file system type, etc.

[0053] In some embodiments, the host information can be obtained by the operating system of the server, that is, the storage device can obtain the host information from the operating system layer of the server.

[0054] In some cases, after obtaining the device management information, the storage device can obtain the association information corresponding to each unit in the target transmission path from the device management information, and determine the association information corresponding to each unit as unit association information. The target transmission path can include host, HBA card, fiber line, switch port, front-end port of the storage device, replication unit, storage volume, storage pool / RAID, and physical disk.

[0055] Specifically, the association information of the host can include path state, LUN of the storage volume corresponding to the block device, and disk identification result. The association information of the HBA card can include running state of the HBA card. The association information of the switch port can include port state and speed. The association information of the front-end port of the storage device can include port state and speed. The association information of the replication unit can include source storage volume, target storage volume, replication process state, and replication progress. The association information of the storage volume can include storage pool or RAID to which the storage volume belongs, host mapping the storage volume, and read-write state. The association information of the storage pool / RAID can include usage capacity proportion. The association information of the physical disk can include disk capacity proportion, working state, and effective time length proportion.

[0056] S101, detecting the unit association information of the target transmission path according to a preset detection strategy to obtain a preliminary detection result.

[0057] The preliminary detection result is used to represent whether the storage device has a possibility of running abnormity.

[0058] In an implementation, for each unit in the target transmission path, the storage device can detect the associated information corresponding to the unit according to a preset detection strategy of the unit, to obtain a unit detection result. The unit detection result is used to represent whether the unit has an abnormal condition. In a case where the unit detection result of any unit in the target transmission path represents that the unit has an abnormal condition, a preliminary detection result representing the possibility that the storage device has a running abnormality is obtained; or in a case where the unit detection results of all units in the target transmission path all represent that the units do not have abnormal conditions, a preliminary detection result representing the possibility that the storage device does not have a running abnormality is obtained. In this way, the running conditions of the units in the target transmission path can be checked one by one, the occurrence of the case that the storage device is affected by the abnormal condition of any unit is reduced, a convenient condition for subsequently generating an abnormal prompt information is provided, and thus the use experience of the user is improved.

[0059] It should be noted that the number of the preset detection strategies is the same as the total number of the unit associated information, that is, each associated information corresponds to a preset detection strategy. Alternatively, the plurality of preset detection strategies can be embodied by a detection strategy table. The detection strategy table can include the associated information of each unit and the preset detection strategy corresponding to each associated information.

[0060] For example, taking the detection strategy table as Table 1, in a case where the path state of the host is a normal state, a unit detection result representing that the host does not have an abnormal condition can be obtained, so that it is determined that the storage device does not have a running abnormality; or in a case where the path state of the host is an abnormal state, a unit detection result representing that the host has an abnormal condition can be obtained, so that it is determined that the storage device has a running abnormality. In a case where the disk identification result of the host represents that the disk is being identified, a unit detection result representing that the host does not have an abnormal condition can be obtained, so that it is determined that the storage device does not have a running abnormality; or in a case where the disk identification result of the host represents that the disk is not identified, a unit detection result representing that the host has an abnormal condition can be obtained, so that it is determined that the storage device has a running abnormality.

[0061] In the case that the storage volume corresponding to the block device exists in the host, a unit detection result representing that the host does not have an abnormal condition can be obtained, so as to determine that the storage device does not have a possibility of running abnormally; or in the case that the storage volume corresponding to the block device does not exist in the host, a unit detection result representing that the host has an abnormal condition can be obtained, so as to determine that the storage device has a possibility of running abnormally. In the case that the running state of the HBA card is a normal state, a unit detection result representing that the HBA card does not have an abnormal condition can be obtained, so as to determine that the storage device does not have a possibility of running abnormally; or in the case that the running state of the HBA card is a fault state, a unit detection result representing that the HBA card has an abnormal condition can be obtained, so as to determine that the storage device has a possibility of running abnormally.

[0062] In the case that the port state of the switch port is an online state, a unit detection result representing that the switch port does not have an abnormal condition can be obtained, so as to determine that the storage device does not have a possibility of running abnormally; or in the case that the port state of the switch port is an offline state, a unit detection result representing that the switch port has an abnormal condition can be obtained, so as to determine that the storage device has a possibility of running abnormally. In the case that the speed of the switch port is higher than the port transmission standard, a unit detection result representing that the switch port does not have an abnormal condition can be obtained, so as to determine that the storage device does not have a possibility of running abnormally; or in the case that the speed of the switch port is lower than the port transmission standard, a unit detection result representing that the switch port has an abnormal condition can be obtained, so as to determine that the storage device has a possibility of running abnormally.

[0063] In the case that the port state of the front-end port of the storage device is an online state, a unit detection result representing that the front-end port of the storage device does not have an abnormal condition can be obtained, so as to determine that the storage device does not have a possibility of running abnormally; or in the case that the port state of the front-end port of the storage device is an offline state, a unit detection result representing that the front-end port of the storage device has an abnormal condition can be obtained, so as to determine that the storage device has a possibility of running abnormally. In the case that the speed of the front-end port of the storage device is higher than the port transmission standard, a unit detection result representing that the front-end port of the storage device does not have an abnormal condition can be obtained, so as to determine that the storage device does not have a possibility of running abnormally; or in the case that the speed of the front-end port of the storage device is lower than the port transmission standard, a unit detection result representing that the front-end port of the storage device has an abnormal condition can be obtained, so as to determine that the storage device has a possibility of running abnormally.

[0064] In a case where the replication process state of the replication unit is in a normal state or a synchronization state, a unit detection result indicating that the replication unit does not have an abnormal condition can be obtained, so as to determine that the storage device does not have a possibility of running abnormally; or in a case where the replication process state of the replication unit is in a fault state, a unit detection result indicating that the replication unit has an abnormal condition can be obtained, so as to determine that the storage device has a possibility of running abnormally. In a case where the replication progress of the replication unit is to normally perform a replication task, a unit detection result indicating that the replication unit does not have an abnormal condition can be obtained, so as to determine that the storage device does not have a possibility of running abnormally; or in a case where the replication progress of the replication unit is not to perform a replication task within a preset time period, a unit detection result indicating that the replication unit has an abnormal condition can be obtained, so as to determine that the storage device has a possibility of running abnormally. The preset time period can be set in advance according to actual needs. For example, the preset time period can be 10 minutes.

[0065] In a case where the read-write state of the storage volume is in a normal state, a unit detection result indicating that the storage volume does not have an abnormal condition can be obtained, so as to determine that the storage device does not have a possibility of running abnormally; or in a case where the read-write state of the storage volume is in an abnormal state, a unit detection result indicating that the storage volume has an abnormal condition can be obtained, so as to determine that the storage device has a possibility of running abnormally. In a case where the usage capacity proportion of the storage pool / RAID is greater than or equal to a preset capacity proportion, a unit detection result indicating that the storage pool / RAID has an abnormal condition can be obtained, so as to determine that the storage device has a possibility of running abnormally; or in a case where the usage capacity proportion of the storage pool / RAID is less than the preset capacity proportion, a unit detection result indicating that the storage pool / RAID does not have an abnormal condition can be obtained, so as to determine that the storage device does not have a possibility of running abnormally. The preset capacity proportion can be set in advance according to actual needs. For example, the preset capacity proportion can be 80%.

[0066] In a case where the disk capacity ratio of the physical disk is greater than or equal to the preset capacity ratio, a unit detection result representing that the physical disk has an abnormal condition can be obtained, so that it is determined that the storage device has a possibility of running abnormally; or in a case where the disk capacity ratio of the physical disk is less than the preset capacity ratio, a unit detection result representing that the physical disk has no abnormal condition can be obtained, so that it is determined that the storage device has no possibility of running abnormally. In a case where the working state of the physical disk is a normal state, a unit detection result representing that the physical disk has no abnormal condition can be obtained, so that it is determined that the storage device has no possibility of running abnormally; or in a case where the working state of the physical disk is an abnormal state, a unit detection result representing that the physical disk has an abnormal condition can be obtained, so that it is determined that the storage device has a possibility of running abnormally. In a case where the effective time length ratio of the physical disk is less than or equal to the preset time length ratio, a unit detection result representing that the physical disk has an abnormal condition can be obtained, so that it is determined that the storage device has a possibility of running abnormally; or in a case where the effective time length ratio of the physical disk is greater than the preset time length ratio, a unit detection result representing that the physical disk has no abnormal condition can be obtained, so that it is determined that the storage device has no possibility of running abnormally. The preset time length ratio can be set according to actual needs. For example, the preset time length ratio can be 20%.

[0067] It should be noted that the preset detection strategy corresponding to the source storage volume and the target storage volume in the replication unit is similar to the preset detection strategy corresponding to the association information of the storage volume, which will not be described here. Moreover, the preset detection strategy corresponding to the storage pool or the RAID to which the storage volume belongs in the storage volume is similar to the preset detection strategy corresponding to the association information of the storage pool / RAID, which will not be described here. Similarly, the preset detection strategy corresponding to the host mapping the storage volume in the storage volume is similar to the preset detection strategy corresponding to the association information of the host, which will not be described here.

[0068] Table 1

[0069]

[0070]

[0071] It can be understood that, since the two ends of the optical fiber line in the above target transmission path are connected to the switch port and the front-end port of the storage device respectively, the storage device can determine the unit detection result of the optical fiber line by detecting the association information of the switch port and the association information of the front-end port of the storage device.

[0072] In some cases, in a case that the corresponding association information of the initiating device (i.e., the host) at least includes the path state and the disk identification result, if the path state is a normal state and the disk identification result indicates that the disk is being identified, a unit detection result that the initiating device does not have an abnormal situation is obtained. And if the path state is an abnormal state, and / or, the disk identification result indicates that the disk is not identified, a unit detection result that the initiating device has an abnormal situation is obtained. In this way, by detecting whether the path state and the disk identification result are normal, the initiating device can be detected from multiple angles whether it has an abnormal situation, the accurate determination of the unit detection result is realized, and then a convenient condition is provided for the subsequent accurate determination of the preliminary detection result.

[0073] S102, in a case that the preliminary detection result indicates that the storage device has a possibility of running abnormally, in response to at least one instruction, the target business scenario is determined.

[0074] Among them, the instruction is used to determine the target type included in the target business scenario. The target type is a topology type, a link type or a replication type. Correspondingly, the topology type can be a dual-active topology or a standard topology. The link type can be a fibre channel (FC) link or a small computer system interface (SCSI) link. The replication type can be local replication or remote replication.

[0075] In an implementation manner, the host where the management software is located can connect with the storage device through SSH, and after the connection is successful, a Command-Line Interface (CLI) instruction is executed, so as to determine the target business scenario. Among them, the CLI instruction can include at least one of the first instruction, the second instruction and the third instruction.

[0076] Specifically, in a case that the at least one instruction includes the first instruction, the second instruction and the third instruction, in response to the first instruction, the storage device can determine the topology type. Then, in response to the second instruction, the storage device can determine the link type. Then, in response to the third instruction, the storage device can determine the replication type. Then, the storage device can form the topology type, the link type and the replication type into the target business scenario. It can be understood that since the target business scenario is determined based on the topology type of the storage device, the link type of the storage device and the replication type of the storage device. In this way, the accurate determination of the target business scenario can be realized, and a convenient condition is provided for quickly understanding the influence of the abnormal problem on the business.

[0077] It should be noted that the determination process of the topology type, the determination process of the link type and the determination process of the replication type can be executed simultaneously or in a preset order, and the specific implementation is not limited.

[0078] The determination process of the target business scenario will be described in detail below with reference to the following Figure 2 For example, the first instruction is a system (ls_system) instruction, the second instruction is an adapter card (ls_adapter_card) instruction, and the third instruction is a service (ls_service) instruction.

[0079] In some embodiments, as shown in Figure 2 The storage device can obtain a system topology by executing a system instruction. Then, the storage device can determine a topology type of the storage device according to the system topology. The topology type of the storage device can be divided into a standard topology and a dual-active topology.

[0080] Specifically, in a case where the obtained system topology is a standard topology, the topology type of the storage device is determined as a standard topology. In a case where the obtained system topology is a dual-active topology, the topology type of the storage device is determined as a dual-active topology.

[0081] In other embodiments, as shown in Figure 2 The storage device can obtain adapter card data by executing an adapter card command. Then, the storage device can determine a link type of the storage device according to the adapter card data. The link type of the storage device can be divided into a fiber channel link and a small computer system interface link.

[0082] Specifically, in a case where the obtained adapter card data indicates that the adapter card is an FC card, the link type of the storage device is determined as an FC link. In a case where the obtained adapter card data indicates that the adapter card is a network card, the link type of the storage device is determined as an SCSI link.

[0083] In yet other embodiments, as shown in Figure 2 The storage device can obtain replication service data by executing a service command. Then, the storage device can determine a replication type of the storage device according to the replication service data. The replication type of the storage device can be divided into local replication and remote replication.

[0084] Specifically, in a case where the obtained replication service data indicates that the storage device is not connected to other storage devices, the replication type of the storage device is determined as local replication. In a case where the obtained replication service data indicates that the storage device is connected to other storage devices, the replication type of the storage device is determined as remote replication.

[0085] In a case where the topology type, the link type, and the replication type are determined, the storage device can compose the topology type, the link type, and the replication type into the target service scenario.

[0086] S103, match the target service scenario with multiple service scenarios in the service exception factor library to obtain at least one influence factor corresponding to the target service scenario.

[0087] Specifically, after determining the target service scenario, the storage device can obtain at least one influence factor corresponding to the target service scenario from the service exception factor library. The service exception factor library can include multiple service scenarios and influence factors corresponding to each service scenario. The influence factor can include at least one of a common influence factor, a difference influence factor, and a key influence factor. The common influence factor is an influence factor that exists together under the same topology type and the same link type. The difference influence factor is an influence factor that can exist differently under the same topology type and the same link type. The key influence factor is an influence factor that can play a key role under the same topology type and the same link type.

[0088] For example, taking Table 2 as an example, the common influence factor corresponding to the service scenario of the standard topology FC link local replication is the path state of the host, the running state of the HBA card, the port state of the FC card, and the read-write state of the storage volume, the difference influence factor is the local replication state, and the key influence factor is the port state of the FC card and the running state of the RAID. The common influence factor corresponding to the service scenario of the standard topology FC link remote replication is the path state of the host, the running state of the HBA card, the port state of the FC card, and the read-write state of the storage volume, the difference influence factor is the remote replication state, and the key influence factor is the port state of the FC card, the running state of the RAID, and the replication process state.

[0089] The common influence factor corresponding to the service scenario of the standard topology SCSI link local replication is the path state of the host, the running state of the HBA card, the port state of the network card, and the read-write state of the storage volume, the difference influence factor is the local replication state, and the key influence factor is the port state of the network card and the running state of the RAID. The common influence factor corresponding to the service scenario of the standard topology SCSI link remote replication is the path state of the host, the running state of the HBA card, the port state of the network card, and the read-write state of the storage volume, the difference influence factor is the remote replication state, and the key influence factor is the port state of the network card, the running state of the RAID, and the replication process state.

[0090] The common influence factors corresponding to the business scenario of the local replication of the FC link in the dual-active topology are the path state of the host, the running state of the HBA card, the port state of the FC card, and the read-write state of the storage volume, the difference influence factor is the local replication state, and the key influence factors are the port state of the FC card, the running state of the RAID, and the read-write state of the storage volume. The common influence factors corresponding to the remote replication business scenario of the FC link in the dual-active topology are the path state of the host, the running state of the HBA card, the port state of the FC card, and the read-write state of the storage volume, the difference influence factor is the remote replication state, and the key influence factors are the port state of the FC card, the running state of the RAID, the replication process state, and the read-write state of the storage volume.

[0091] The common influence factors corresponding to the business scenario of the local replication of the SCSI link in the dual-active topology are the path state of the host, the running state of the HBA card, the port state of the network card, and the read-write state of the storage volume, the difference influence factor is the local replication state, and the key influence factors are the port state of the network card, the running state of the RAID, and the read-write state of the storage volume. The common influence factors corresponding to the remote replication business scenario of the SCSI link in the dual-active topology are the path state of the host, the running state of the HBA card, the port state of the network card, and the read-write state of the storage volume, the difference influence factor is the remote replication state, and the key influence factors are the port state of the network card, the running state of the RAID, the replication process state, and the read-write state of the storage volume.

[0092] Table 2

[0093]

[0094] It should be noted that in the case of the topology type corresponding to the business scenario being a standard topology, the storage volume in the storage device is a normal storage volume, that is, the storage volume only stores the read-write data in the storage device. However, in the case of the topology type corresponding to the business scenario being a standard topology, the storage volume in the storage device is a storage dual-active volume, that is, the storage volume can simultaneously store data for the storage devices connected.

[0095] In some embodiments, the storage device can match the target business scenario with the plurality of business scenarios in the business exception factor library to obtain at least one influence factor corresponding to the target business scenario.

[0096] For example, taking the above target service scenario of FC link remote replication as a standard topology, and taking at least one influence factor including a common influence factor, a difference influence factor, and a key influence factor as an example, the common influence factor corresponding to the target service scenario is the path state of the host, the running state of the HBA card, the port state of the FC card, and the read-write state of the storage volume. The difference influence factor corresponding to the target service scenario is the remote replication state. The key influence factor corresponding to the target service scenario is the port state of the FC card, the running state of the RAID, and the replication process state.

[0097] In some cases, in order to reduce the case that the user is frequently prompted abnormally, the storage device does not detect other influence factors except the influence factors corresponding to the target service scenario, that is, even if there is an abnormal influence factor in other influence factors, the corresponding abnormal prompt information will not be generated. Among them, the other influence factors are the influence factors irrelevant to the target service scenario. In this way, it can be ensured that the generated abnormal prompt information is related to the abnormal influence factors corresponding to the target service scenario, and the case that important prompt information is submerged due to the large number of prompt information generated is reduced, which provides a necessary condition for the user to accurately view the abnormal prompt information related to the target service scenario subsequently.

[0098] S104, for each influence factor corresponding to the target service scenario, querying target information of the influence factor.

[0099] Specifically, after obtaining the at least one influence factor corresponding to the above target service scenario, the storage device can query the target information of each influence factor.

[0100] In some cases, the storage device can query the target information of each influence factor from the above device management information.

[0101] S105, performing an abnormal prompt operation according to the target information.

[0102] In some embodiments, after querying the target information of the above influence factor, the storage device can perform abnormal detection on the target information to obtain an abnormal detection result. The abnormal detection result is used to represent whether the influence factor corresponding to the target information is an abnormal influence factor. After that, in the case that the abnormal detection result represents that the influence factor corresponding to the target information is not an abnormal influence factor, it means that the storage device does not appear abnormal during the running process. Therefore, the storage device can not perform the abnormal prompt operation.

[0103] In some cases, if the abnormality detection result indicates that the influence factor corresponding to the target information is an abnormal influence factor, it means that the storage device has an abnormal situation during operation. Therefore, the storage device can directly perform an abnormality prompt operation. In this way, not only can the situation where important abnormality prompts are submerged due to a large number of abnormality prompts be reduced, but also provides a necessary condition for the user to accurately view abnormality prompt information related to the target business scenario. Moreover, it can ensure that the operation and maintenance personnel can quickly understand the impact of the abnormal problem on the business, fundamentally solve the situation of inaccurate abnormality prompt information, reduce labor costs, and improve the efficiency of solving abnormal problems.

[0104] In some cases, if the abnormality detection result indicates that the influence factor corresponding to the target information is an abnormal influence factor, it means that the storage device has an abnormal situation during operation. Therefore, the storage device can directly perform an abnormality prompt operation. In this way, not only can the situation where important abnormality prompts are submerged due to a large number of abnormality prompts be reduced, but also provides a necessary condition for the user to accurately view abnormality prompt information related to the target business scenario. Moreover, it can ensure that the operation and maintenance personnel can quickly understand the impact of the abnormal problem on the business, fundamentally solve the situation of inaccurate abnormality prompt information, reduce labor costs, and improve the efficiency of solving abnormal problems.

[0105] If the influence factor corresponding to the target information is not a key influence factor, that is, the influence factor corresponding to the target information is a public influence factor or a difference influence factor, it means that the abnormal influence factor may not cause the storage device to have an abnormal situation. Therefore, in order to reduce the probability of incorrect abnormality prompts, the storage device can further determine whether the target information is a preset state. The preset state can be a pause state, a fault state, or an offline state. If the target information is a preset state, it means that the abnormal influence factor is likely to cause the storage device to have an abnormal situation. Therefore, the storage device can directly perform an abnormality prompt operation. In this way, the timeliness of the abnormality prompt can be achieved, and the user can be informed of the abnormal situation in a timely manner, providing a convenient condition for subsequent solutions to the abnormal situation.

[0106] If the target information is not a preset state, that is, the target information is an intermediate state (or referred to as a degraded state), it means that the abnormal influence factor will not cause the storage device to have an abnormal situation. The intermediate state is a state between the normal state and the above-mentioned preset state. That is, the intermediate state is used to represent that the unit to which the target information belongs cannot cause the storage device to have an abnormal situation. Therefore, in order to reduce the probability of incorrect abnormality prompts, the storage device can not perform an abnormality prompt operation. In this way, the accuracy of the abnormality prompt operation can be achieved, the situation where the user is disturbed due to incorrect abnormality prompts can be reduced, and the user experience is improved.

[0107] In another implementation, in a case where the at least one influence factor corresponding to the target service scenario includes a first influence factor and a second influence factor, if the abnormality detection result corresponding to the target information of the first influence factor indicates that the first influence factor is an abnormal influence factor, and the abnormality detection result corresponding to the target information of the second influence factor indicates that the second influence factor is an abnormal influence factor, the storage device can determine the priority of the first influence factor and the priority of the second influence factor, and perform the abnormality prompting operation in a descending order of the priority of the first influence factor and the priority of the second influence factor. In this way, the abnormality prompting operation can be performed in sequence, and the situation that the user cannot determine important abnormality prompts from a large number of abnormality prompts at a time can be reduced, thereby providing a convenient condition for the subsequent operation and maintenance personnel to quickly understand the influence of the abnormal problem on the service.

[0108] In some embodiments, in a case where the priority of the first influence factor is higher than the priority of the second influence factor, the storage device can perform the abnormality prompting operation according to the target information of the first influence factor. Then, the storage device can determine whether the target information of the second influence factor is in a preset state. If the target information of the second influence factor is in the preset state, the storage device can perform the abnormality prompting operation according to the target information of the second influence factor. It can be understood that the higher the priority of an influence factor, the higher the probability that the influence factor can cause the storage device to be abnormal. Therefore, the storage device can directly perform the abnormality prompting operation according to the target information of the influence factor with the highest priority. In this way, the important prompting operation can be performed in time, and the user can be informed of the abnormality in time, thereby providing a convenient condition for the subsequent quick solution to the abnormality. In addition, after the abnormality prompting operation is performed according to the target information of the first influence factor, the storage device further determines whether the target information of the second influence factor is in the preset state, that is, only in a case where the target information of the second influence factor is in the preset state, it is indicated that the second influence factor has a higher possibility to cause the storage device to be abnormal. Therefore, the storage device performs the abnormality prompting operation again to remind the user that the storage device is abnormal, thereby improving the user's attention to the abnormality.

[0109] Correspondingly, in a case where the target information of the second influence factor is not in the preset state, it is indicated that the second influence factor does not cause the storage device to be abnormal. Therefore, in order to reduce the probability of incorrect generation of abnormality prompting information, the storage device can not perform the abnormality prompting operation. In this way, the abnormality prompting operation can be accurately performed, and the situation that the user is disturbed due to incorrect abnormality prompting operation can be reduced, thereby improving the user experience.

[0110] It should be noted that the above second influencing factor can be one or two, and the specific number is not limited. If the second influencing factor is two, the storage device can determine whether the target information of the second influencing factor is in the preset state in order of priority of the second influencing factor, and perform the abnormal prompt operation if the target information of the second influencing factor is in the preset state. That is, in addition to the influencing factor with the highest priority, the target information of other influencing factors also needs to be determined whether it is in the preset state, so as to reduce the occurrence of the storage device performing the abnormal prompt operation too much and improve the user experience.

[0111] In some cases, the abnormal prompt operation can include at least one of the following: outputting abnormal prompt information about the target information in a voice broadcast manner; playing a preset alarm sound; and displaying abnormal prompt information about the target information. In this way, the abnormal problem can be timely reminded, so that the user can quickly perceive the abnormal problem, and a convenient condition is provided for subsequently solving the abnormal problem as soon as possible.

[0112] In an implementation manner, as shown in Figure 3 The storage device can also determine the to-be-used information from the device management information. The to-be-used information is information that can be used by the storage device within a preset period, that is, the to-be-used information is information that is temporarily idle in the device management information but will be used by the storage device subsequently. The preset period can be pre-set according to actual needs, and the specific value is not limited.

[0113] Then, the storage device can determine whether there is abnormal information in the to-be-used information. If there is abnormal information in the to-be-used information, it means that the to-be-used information may cause the storage device to have an abnormal condition in the later period. Therefore, in order to facilitate the user to know the abnormal condition in advance, the storage device can generate abnormal prompt information about the abnormal information. In this way, the abnormal condition can be detected in advance, and the user can know the abnormal prompt information in advance, which provides a convenient condition for subsequently solving the abnormal problem quickly.

[0114] In some cases, the storage device can output the abnormal prompt information about the abnormal information in a preset notification manner. For example, the preset notification manner can be a notification message or a short message, and the specific manner is not limited. That is, the output manner of the abnormal prompt information about the abnormal information is different from the output manner of the abnormal prompt information about the target information, and the output level of the abnormal prompt information about the abnormal information is lower than that of the abnormal prompt information about the target information. In this way, the important prompt information can be outputted specifically, and the user can view the important abnormal prompt information specifically, which provides a convenient condition for subsequently solving the abnormal condition as soon as possible.

[0115] Correspondingly, if the abnormal information does not exist in the to-be-used information, it indicates that the to-be-used information will not cause the storage device to have an abnormal situation in the later period. Therefore, in order to reduce the probability of false generation of the abnormal prompt information, the storage device can not generate the abnormal prompt information. In this way, accurate generation of the abnormal prompt information can be implemented, the situation that a user is disturbed due to false generation of the abnormal prompt information is reduced, and the user experience is improved.

[0116] It should be noted that the embodiments of the present disclosure can include a plurality of steps, which are numbered for the convenience of description, but these numbers are not a limitation on the execution time slot and execution order between the steps; the steps can be implemented in any order, and the embodiments of the present disclosure do not limit this.

[0117] Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be realized by means of software and the necessary general hardware platform, of course, it can also be realized by hardware, but in many cases the former is a better embodiment.

[0118] The embodiments of the present application also provide an abnormality detection device, and the number of virtual device rights is not more than one (except for special cases), and the omitted virtual device right content should be described in the specification, and corresponds to the method right one by one. The description of the features in the embodiment corresponding to the abnormality detection device can be referred to the related description of the embodiment corresponding to the abnormality detection method, which will not be described here.

[0119] Figure 4 A structural schematic diagram of an abnormality detection device provided by the embodiments of the present disclosure is shown in FIG. 1, which includes a detection result generation module 41, a business scenario determination module 42, an influence factor determination module 43, a target information query module 44, and a prompt operation execution module 45. Figure 4

[0120] The detection result generation module 41 is configured to detect unit association information of a target transmission path according to a preset detection strategy to obtain a preliminary detection result, wherein the unit association information is information being used by the storage device in the device management information.

[0121] The business scenario determination module 42 is configured to determine a target business scenario in response to at least one instruction in a case where the preliminary detection result indicates a possibility that the storage device has a running abnormality; wherein the instruction is used to determine a target type included in the target business scenario, and the target type is a topology type, a link type, or a replication type.

[0122] ​The influence factor determination module 43 is configured to match the target service scenario with a plurality of service scenarios in a service exception factor library to obtain at least one influence factor corresponding to the target service scenario; the service exception factor library includes influence factors corresponding to each service scenario;

[0123] The target information query module 44 is configured to query target information of each influence factor corresponding to the target service scenario.

[0124] The prompt operation execution module 45 is configured to perform an exception prompt operation according to the target information.

[0125] Further, in a possible implementation manner of the embodiment, as shown in Figure 4 The prompt operation execution module 45 is further configured to perform exception detection on the target information to obtain an exception detection result.

[0126] In a case where the exception detection result indicates that the influence factor corresponding to the target information is an abnormal influence factor, if the influence factor corresponding to the target information is a key influence factor, the exception prompt operation is performed.

[0127] In a case where the exception detection result indicates that the influence factor corresponding to the target information is an abnormal influence factor, if the influence factor corresponding to the target information is not a key influence factor, and the target information is a preset state, the exception prompt operation is performed; the preset state is a fault state, an offline state, or a pause state.

[0128] Further, in a possible implementation manner of the embodiment, as shown in Figure 4 The prompt operation execution module 45 is further configured to determine a priority of the first influence factor and a priority of the second influence factor in a case where the exception detection result of the target information of the first influence factor indicates that the first influence factor is an abnormal influence factor, and the exception detection result of the target information of the second influence factor indicates that the second influence factor is an abnormal influence factor.

[0129] In a case where the priority of the first influence factor is higher than the priority of the second influence factor, the exception prompt operation is performed according to the target information of the first influence factor.

[0130] In a case where the target information of the second influence factor is a preset state, the exception prompt operation is performed according to the target information of the second influence factor.

[0131] Further, in a possible implementation manner of the embodiment, as shown in Figure 4 The prompt operation execution module 45 is further configured to not perform the exception prompt operation in a case where the target information of the second influence factor is an intermediate state.

[0132] Further, in a possible implementation of the embodiment, as shown in Figure 4 the prompt operation execution module 45 is further configured to output the abnormal prompt information about the target information in the form of voice broadcast.

[0133] play a preset alarm sound.

[0134] display the abnormal prompt information about the target information.

[0135] Further, in a possible implementation of the embodiment, as shown in Figure 4 the business scenario determination module 42 is further configured to determine a topology type in response to a first instruction; the topology type is a dual-active topology or a standard topology.

[0136] determine a link type in response to a second instruction; the link type is a fiber channel link or a small computer system interface link.

[0137] determine a replication type in response to a third instruction; the replication type is local replication or remote replication.

[0138] compose the topology type, the link type, and the replication type into the target business scenario.

[0139] Further, in a possible implementation of the embodiment, as shown in Figure 4 the detection result generation module 41 is further configured to determine, from the device management information, the association information corresponding to each unit in the target transmission path.

[0140] for each unit in the target transmission path, detect the association information corresponding to the unit according to a preset detection strategy of the unit to obtain a unit detection result; the unit detection result is used to represent whether the unit has an abnormal situation.

[0141] obtain a preliminary detection result representing a possibility of a running abnormality of the storage device in a case where the unit detection result of any unit in the target transmission path represents that the unit has an abnormal situation.

[0142] obtain a preliminary detection result representing a possibility of a running abnormality of the storage device in a case where the unit detection result of any unit in the target transmission path represents that the unit has an abnormal situation.

[0143] Further, in a possible implementation of the embodiment, as shown in Figure 4 the detection result generation module 41 is further configured to obtain a unit detection result representing that the initiating device does not have an abnormal situation in a case where the path state is a normal state and the disk identification result represents that the disk is being identified.

[0144] In the case that the path state is an abnormal state and / or the disk identification result indicates that the disk is not identified, a unit detection result indicating that the initiating device is in an abnormal condition is obtained.

[0145] Further, in a possible implementation of the embodiment, as shown in Figure 4 The prompt operation execution module 45 is further configured to determine to-be-used information from the device management information, wherein the to-be-used information is information that can be used by the storage device within a preset time period.

[0146] In the case that the to-be-used information includes abnormal information, abnormal prompt information about the abnormal information is generated.

[0147] The abnormal prompt information about the abnormal information is output in a preset notification mode.

[0148] Embodiments of the present application also provide a storage device, including a memory and a processor, the memory stores a computer program, and the processor is configured to execute the computer program to perform the steps in any of the above abnormality detection method embodiments.

[0149] Embodiments of the present application also provide a computer readable storage medium, which stores a computer program, wherein the computer program is configured to perform the steps in any of the above abnormality detection method embodiments when executed.

[0150] In an example embodiment, the above computer readable storage medium can include, but is not limited to, a U disk, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and various media that can store computer programs.

[0151] Embodiments of the present application also provide a computer program product, which includes a computer program, and the computer program is executed by a processor to perform the steps in any of the above abnormality detection method embodiments.

[0152] Embodiments of the present application also provide another computer program product, which includes a non-volatile computer readable storage medium, and the non-volatile computer readable storage medium stores a computer program, and the computer program is executed by a processor to perform the steps in any of the above abnormality detection method embodiments.

[0153] Those skilled in the art will further realize that the mere concepts, teachings, and embodiments described herein are merely meant to provide an enabling description of the claimed application. Accordingly, modifications and / or additions, other than those explicitly described herein, can be obvious to those skilled in the art in the light of this disclosure. The claimed application is intended to embrace all such modifications and / or additions.

[0154] The above has carried out detailed introduction to the abnormality detection method and the storage device provided by the application. The principle and implementation of the application are described by applying specific examples in this paper, and the above description of the embodiments is only used to help understand the method of the application and its core idea. It should be pointed out that for those skilled in the art, some improvements and modifications can be made to the application without departing from the principle of the application, and these improvements and modifications also fall within the protection scope of the claims of the application.

Claims

1. An anomaly detection method, characterized in that, include: According to the preset detection strategy, the unit association information of the target transmission path is detected to obtain preliminary detection results; wherein, the unit association information is the information currently being used by the storage device in the device management information; wherein, the preset detection strategy refers to the strategy of detecting the association information corresponding to each unit in the target transmission path one by one to obtain unit detection results that characterize whether there is an abnormality in each unit, and determining whether there is a possibility of abnormal operation of the storage device based on the unit detection results. If the preliminary detection results indicate that the storage device may be malfunctioning, in response to at least one instruction, a target business scenario is determined; wherein, the instruction is used to determine the target type included in the target business scenario, and the target type is a topology type, a link type, or a replication type; The target business scenario is matched with multiple business scenarios in the business anomaly factor library to obtain at least one influencing factor corresponding to the target business scenario; wherein, the business anomaly factor library includes influencing factors corresponding to each of the business scenarios; For each influencing factor corresponding to the target business scenario, query the target information of the influencing factor; Based on the target information, an error message will be displayed. Wherein, the step of determining the target business scenario in response to at least one instruction includes: In response to the first instruction, the topology type is determined; wherein the topology type is a dual-active topology or a standard topology; In response to the second instruction, the link type is determined; wherein the link type is a Fibre Channel link or a Small Computer System Interface link; In response to a third instruction, the replication type is determined; wherein the replication type is either local replication or remote replication; The topology type, the link type, and the replication type are combined to form the target business scenario.

2. The anomaly detection method according to claim 1, characterized in that, The step of providing an anomaly alert based on the target information includes: Anomaly detection is performed on the target information to obtain anomaly detection results; If the anomaly detection result indicates that the influencing factor corresponding to the target information is an anomalous influencing factor, and if the influencing factor corresponding to the target information is a key influencing factor, an anomaly alert operation will be performed. If the anomaly detection result indicates that the influencing factor corresponding to the target information is an abnormal influencing factor, and if the influencing factor corresponding to the target information is not a critical influencing factor, and the target information is in a preset state, an anomaly prompt operation is performed; wherein, the preset state is a fault state, an offline state, or a paused state.

3. The anomaly detection method according to claim 1, characterized in that, When the at least one influencing factor includes a first influencing factor and a second influencing factor, the step of providing an anomaly alert based on the target information further includes: If the anomaly detection result corresponding to the target information of the first influencing factor indicates that the first influencing factor is an anomalous influencing factor, and the anomaly detection result corresponding to the target information of the second influencing factor indicates that the second influencing factor is an anomalous influencing factor, then the priority of the first influencing factor and the priority of the second influencing factor are determined. If the priority of the first influencing factor is greater than that of the second influencing factor, an anomaly alert will be triggered based on the target information of the first influencing factor. If the target information of the second influencing factor is in a preset state, an abnormality prompt operation will be performed based on the target information of the second influencing factor.

4. The anomaly detection method according to claim 3, characterized in that, The method further includes: If the target information of the second influencing factor is in an intermediate state, no abnormal prompt operation will be performed.

5. The anomaly detection method according to any one of claims 1-4, characterized in that, The abnormality notification operation includes at least one of the following: An abnormal prompt message regarding the target information is output via voice broadcast; Play the preset alarm tone; Display an error message regarding the target information.

6. The anomaly detection method according to any one of claims 1-4, characterized in that, The step of detecting the unit association information of the target transmission path according to the preset detection strategy to obtain preliminary detection results includes: Determine the association information corresponding to each unit in the target transmission path from the device management information; For each unit in the target transmission path, the associated information corresponding to the unit is detected according to the preset detection strategy of the unit to obtain the unit detection result; wherein, the unit detection result is used to characterize whether there is an abnormality in the unit; If the unit detection result of any unit in the target transmission path indicates that the unit has an abnormal condition, a preliminary detection result indicating the possibility that the storage device has an operational abnormality is obtained. If the unit detection results of all units in the target transmission path indicate that there are no abnormalities in the unit, a preliminary detection result is obtained indicating that there is no possibility of the storage device having operational abnormalities.

7. The anomaly detection method according to claim 6, characterized in that, When the target transmission path includes an initiating device, the associated information corresponding to the initiating device includes at least the path status and disk identification result; The step of detecting the associated information corresponding to the unit according to the preset detection strategy of the unit to obtain the unit detection result includes: When the path status is normal and the disk identification result indicates that the disk is being identified, a unit detection result indicating that the initiating device does not have any abnormalities is obtained. If the path status is abnormal, and / or the disk identification result indicates that the disk is not identified, a unit detection result indicating that the initiating device has an abnormal situation is obtained.

8. The anomaly detection method according to claim 6, characterized in that, The method further includes: The information to be used is determined from the device management information; wherein, the information to be used is information that can be used by the storage device within a preset time period; If abnormal information exists in the information to be used, an abnormal prompt message is generated regarding the abnormal information; According to the preset notification method, output an error message about the abnormal information.

9. A storage device, characterized in that, include: Memory, used to store computer programs; A processor, configured to implement the steps of the anomaly detection method as described in any one of claims 1 to 8 when executing the computer program.

Citation Information

Patent Citations

  • Management method and device for inter-frame trunking communication, equipment and medium

    CN115412420A

  • Transmission link fault detection method for multi-stage cascade scene and program product

    CN119902939A