Method and device for monitoring health state of disk

By identifying disk types on the client side and analyzing them using server-side monitoring strategies, key indicator values ​​are filtered and alarm thresholds are optimized. This solves the problems of insufficient targeting and low accuracy in existing disk monitoring technologies, and achieves more efficient disk health status monitoring.

CN118916239APending Publication Date: 2024-11-08SHANDONG LANGCHAO YUNTOU INFORMATION TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411113561.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-14
Publication Date
2024-11-08

AI Technical Summary

Technical Problem

In existing technologies, performance metrics are collected and simple threshold judgments are made for different types of disks, resulting in insufficient targeting and low accuracy of monitoring, and false alarms occur.

Method used

The client identifies different types of disks, and the server performs disk health status analysis based on the monitoring policies pre-set according to the disk type. This includes filtering key status indicators, setting alarm thresholds, trend prediction, and historical data optimization, generating alarm information, and implementing targeted alarm processes.

Benefits of technology

It improves the targeting and accuracy of disk health status monitoring, reduces false alarms, and improves operation and maintenance efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118916239A_ABST
    Figure CN118916239A_ABST
Patent Text Reader

Abstract

The invention provides a disk health state monitoring method and device, and the method and device are applied to a server, the server is connected with a client of an Agent architecture, the client is deployed in a host, and the server receives a data packet sent by the client; the data packet comprises a plurality of state index values of a disk in the host and a disk type of the disk; analyzing the data packet to obtain each state index value and disk type; and based on a monitoring strategy corresponding to the disk type and each state index value, performing disk health state analysis, and if alarm information is obtained through analysis, executing a preset alarm process based on the alarm information. In the scheme, different types of disks are identified by using the client, and the health state of the disk is analyzed through the server according to the monitoring strategy correspondingly set in advance according to the type of the disk, so that the aim of improving the pertinence and accuracy of monitoring is fulfilled.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method and device for monitoring the health status of a disk. Background Art

[0002] With the rapid development of information technology, enterprises have an increasing demand for data storage. As a core component of data storage, the health status of disks is directly related to data integrity and business continuity. With the widespread use of various types of disks such as solid-state drives (SSDs), mechanical hard disks (HDDs), and non-volatile memory express storage (NVMe), different types of disks have significant differences in performance, life characteristics, and failure modes, which further increases the complexity of disk monitoring.

[0003] In the prior art, for different types of disks, performance indicators are collected and simple threshold judgments are performed, resulting in insufficient monitoring pertinence and low accuracy, and false alarms occur. Summary of the invention

[0004] In view of this, an embodiment of the present invention provides a method and device for monitoring the health status of a disk, so as to achieve the purpose of improving the pertinence and accuracy of monitoring.

[0005] To achieve the above objectives, the embodiments of the present invention provide the following technical solutions:

[0006] A first aspect of an embodiment of the present invention discloses a method for monitoring the health status of a disk, which is applied to a server, wherein the server is connected to a client of an Agent architecture, and the client is deployed on a host. The method includes:

[0007] receiving a data packet sent by the client; the data packet includes a plurality of status indicator values ​​of the disk in the host and the disk type of the disk;

[0008] Parsing the data packet to obtain each of the status indicator values ​​and the disk type;

[0009] Based on the monitoring strategy corresponding to the disk type and each of the status indicator values, a disk health status analysis is performed. If an alarm message is obtained through the analysis, a preset alarm process is executed based on the alarm message.

[0010] Preferably, the disk health status analysis is performed based on the monitoring strategy corresponding to the disk type and each of the status indicator values. If an alarm message is obtained through the analysis, a preset alarm process is executed based on the alarm message, including:

[0011] Based on the monitoring policy corresponding to the disk type, one or more key status indicator values ​​are selected from the plurality of status indicator values;

[0012] For each of the key status indicator values, determine whether the key status indicator value exceeds the corresponding alarm threshold; if so, generate corresponding alarm information, and execute a preset alarm process based on the alarm information; the alarm threshold corresponding to each of the key status indicator values ​​is pre-set based on the disk type;

[0013] or,

[0014] For each of the key status indicator values, a trend prediction method is used to predict the predicted value of the key status indicator value in the future time period, and it is determined whether the predicted value exceeds the alarm threshold corresponding to the key status indicator value; if so, a corresponding alarm message is generated, and a preset alarm process is executed based on the alarm message; the trend prediction method includes: any one of a statistical method, a time series analysis method and a machine learning algorithm; the alarm threshold corresponding to each of the key status indicator values ​​is pre-set based on the disk type.

[0015] Preferably, the method further comprises:

[0016] Save each of the key status indicator values ​​in real time to obtain historical data;

[0017] For the alarm threshold corresponding to each of the key status indicator values, the alarm threshold is optimized and updated using the historical data every preset time period.

[0018] Preferably, the method further comprises:

[0019] A trend graph of each of the key status indicator values ​​is generated based on the historical data and displayed through a visual interface.

[0020] Preferably, the triggering of a preset alarm process based on the alarm information includes:

[0021] Classify the alarm information into levels, and if it meets the preset alarm level, determine whether the alarm information appears multiple times in the historical alarm information;

[0022] If yes, adding the alarm information to the historical alarm information;

[0023] If not, generating an alarm notification based on the alarm information, and adding the alarm information to the historical alarm information;

[0024] The alarm notification is sent to the user using a communication tool, or the alarm notification is sent to the operation and maintenance system using an API interface.

[0025] A second aspect of an embodiment of the present invention discloses a method for monitoring the health status of a disk, which is applied to a client of an Agent architecture, wherein the client is connected to a server and is deployed on a host. The method comprises:

[0026] For each disk in the host, identifying the disk type of the disk;

[0027] Based on a collection frequency pre-set based on the disk type, a plurality of status indicator values ​​are collected from the disk;

[0028] generating a data packet based on a plurality of the status indicator values ​​and the disk type;

[0029] The data packet is sent to the server, so that the server performs disk health status analysis based on the data packet. If alarm information is obtained through the analysis, a preset alarm process is executed based on the alarm information.

[0030] Preferably, after obtaining the plurality of status indicator values, the method further comprises:

[0031] Preprocessing is performed on each of the status indicator values ​​and the disk type to obtain each of the status indicator values ​​and the disk type after preprocessing; the preprocessing includes: one or more of data cleaning, format conversion and compression.

[0032] Preferably, sending the data packet to the server includes:

[0033] The data packet is sent to the server through an encrypted channel; the encrypted channel includes: an encrypted channel built based on the HTTPS protocol.

[0034] A third aspect of an embodiment of the present invention discloses a device for monitoring the health status of a disk, which is applied to a server, wherein the server is connected to a client of an Agent architecture, and the client is deployed on a host. The device includes:

[0035] A receiving unit, configured to receive a data packet sent by the client; the data packet includes a plurality of status indicator values ​​of the disk in the host and a disk type of the disk;

[0036] A parsing unit, used for parsing the data packet to obtain each of the status indicator values ​​and the disk type;

[0037] The analysis unit is used to perform disk health status analysis based on the monitoring strategy corresponding to the disk type and each of the status indicator values. If an alarm message is obtained through the analysis, a preset alarm process is executed based on the alarm message.

[0038] A fourth aspect of an embodiment of the present invention discloses a device for monitoring the health status of a disk, which is applied to a client of an Agent architecture, wherein the client is connected to a server and is deployed on a host. The device comprises:

[0039] an identification unit, configured to identify the disk type of each disk in the host;

[0040] A collection unit, configured to collect a plurality of status indicator values ​​from the disk based on a collection frequency pre-set based on the disk type;

[0041] A generating unit, configured to generate a data packet based on a plurality of the status indicator values ​​and the disk type;

[0042] The sending unit is used to send the data packet to the server so that the server performs disk health status analysis based on the data packet. If an alarm message is obtained through the analysis, a preset alarm process is executed based on the alarm message.

[0043] A method and device for monitoring the health status of a disk provided based on the above-mentioned embodiment of the present invention is applied to a server, the server is connected to a client of an Agent architecture, the client is deployed on a host, and the method includes: receiving a data packet sent by the client; the data packet contains multiple status indicator values ​​of the disk in the host and the disk type of the disk; parsing the data packet to obtain each of the status indicator values ​​and the disk type; performing disk health status analysis based on the monitoring strategy corresponding to the disk type and each of the status indicator values, and if an alarm message is obtained through the analysis, executing a preset alarm process based on the alarm message. In this solution, the client is used to identify different types of disks, and the server pre-sets the monitoring strategy corresponding to the disk type to perform disk health status analysis, so as to achieve the purpose of improving the pertinence and accuracy of monitoring. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0045] Figure 1 An architectural diagram of a disk health status monitoring system disclosed in an embodiment of the present invention;

[0046] Figure 2 A flowchart of a health status monitoring method disclosed in an embodiment of the present invention;

[0047] Figure 3 A flowchart of another health status monitoring method disclosed in an embodiment of the present invention;

[0048] Figure 4 A structural diagram of a device for monitoring the health status of a disk disclosed in an embodiment of the present invention;

[0049] Figure 5 This is a structural diagram of another disk health status monitoring device disclosed in an embodiment of the present invention. DETAILED DESCRIPTION

[0050] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0051] In this application, the terms "comprises", "comprising" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element.

[0052] As can be seen from the background technology, in the prior art, for different types of disks, performance indicators are collected and simple threshold judgments are performed, resulting in insufficient monitoring pertinence and low accuracy, resulting in false alarms.

[0053] Therefore, an embodiment of the present invention discloses a method and device for monitoring the health status of a disk. In this solution, a client is used to identify different types of disks, and a server pre-sets a monitoring strategy corresponding to the disk type to perform disk health status analysis, so as to achieve the purpose of improving the pertinence and accuracy of monitoring.

[0054] like Figure 1 , which is an architecture diagram of a disk health status monitoring system disclosed in an embodiment of the present invention, the system includes: a server 1 and multiple client terminals 2 of Agent architecture.

[0055] The server 1 is connected to each client 2 respectively, and each client 2 is deployed in a different host respectively, so as to collect status indicator values ​​of the disks in these hosts.

[0056] Agent is a lightweight application responsible for collecting local data. The client 2 of the Agent architecture is developed based on Telegraf (an open source lightweight plug-in driven server agent). It is lightweight and modular and can flexibly adapt to different operating systems and hardware environments.

[0057] Client 2 needs to be correctly configured, including but not limited to the data collection frequency for different types of disks, the list of status indicators to be collected, and the details of communication with server 1 (such as communication protocol, encryption method, target address, etc.).

[0058] It should be noted that different types of disks have different performance and failure modes. For example, SSD and NVMe usually have faster read and write speeds and lower latency, while HDD may show higher latency after long-term continuous read and write. Therefore, for different types of disks, client 2 can adopt different data collection frequencies.

[0059] Preferably, for different types of disks, the client 2 can focus on collecting some status indicator values ​​and reduce the collection of worthless status indicator values.

[0060] After starting the Telegraf process, Client 2 regularly collects information such as disk usage, I / O operation statistics, error counts, and disk type identification through the host's operating system OS. This information may include status indicator values ​​such as disk read and write rates, queue depth, and waiting time. At the same time, Client 2 also monitors the SMART (Self-Monitoring, Analysis, and Reporting Technology) attributes of the disk and uses it as a status indicator value.

[0061] In addition, client 2 will perform necessary preprocessing on the collected raw data, such as data cleaning, format conversion and compression, to reduce the transmission burden and ensure the consistency and accuracy of the data.

[0062] After preprocessing, the client 2 packages each status indicator value and the corresponding disk type into a data packet, and sends it to the server 1 through the encrypted channel at a preset time interval.

[0063] Among them, encrypted channels such as HTTPS / TLS, HTTPS is an HTTP protocol based on the TLS (Transport Layer Security) protocol, used to securely transmit data on the Internet. TLS is an encryption protocol used to ensure the confidentiality and integrity of data during network transmission. HTTPS uses TLS to encrypt HTTP requests and responses.

[0064] Server 1 receives data packets from multiple clients 2, and can receive data packets through dedicated receivers or queues. The received data will be stored in a database or data warehouse. Server 1 can use a streaming processing framework (such as Apache Kafka, Spark Streaming) to process and analyze data packets one by one.

[0065] Server 1 uses a real-time analysis engine to analyze the health status of disks based on the monitoring strategy and various status indicator values ​​corresponding to the disk type. This may involve statistical methods, time series analysis methods, or machine learning algorithms. When the analysis obtains alarm information, the alarm process will be triggered and the operation and maintenance team will be notified via email, SMS, or other integrated methods.

[0066] In addition, the server 1 provides a user interface to display the real-time view and historical trend of each status indicator value. This helps operation and maintenance personnel to quickly understand the global status and make decisions.

[0067] The user interface may be a web interface or a mobile application, thereby providing the user with intuitive graphical reports and dashboards, showing a real-time view and historical trends of various status indicator values ​​of the disk.

[0068] Preferably, the server 1 provides a control panel, allowing users to view historical data, configure monitoring strategies and configure alarm processes, etc.

[0069] In this solution, the system design takes into account the applicability of different scenarios, supports multi-level configuration and expansion, and can adapt to diverse needs from small servers to large data centers.

[0070] Based on the above embodiment of the present invention, a disk health status monitoring system is disclosed, such as Figure 2 FIG. 1 is a flow chart of a health status monitoring method disclosed in an embodiment of the present invention, which is applied to a server and mainly includes the following steps:

[0071] Step S201: receiving a data packet sent by a client.

[0072] In step S201, the data packet includes a plurality of status indicator values ​​of the disk in the host and the disk type of the disk.

[0073] Step S202: Parse the data packet to obtain various status indicator values ​​and disk types.

[0074] In step S202, the received data packets are parsed, the raw data is converted into an analyzable format, and specific status indicator values ​​are extracted, such as disk usage, I / O read and write times, read and write delays, queue length, etc. Status indicator values ​​are usually stored in a structured form for fast access and processing.

[0075] Step S203: Based on the monitoring strategy corresponding to the disk type and the values ​​of each status indicator, a disk health status analysis is performed. If an alarm message is obtained through the analysis, a preset alarm process is executed based on the alarm message.

[0076] In step S203, a real-time analysis engine is used to perform health status analysis, which may involve statistical methods, time series analysis, or more advanced machine learning algorithms to identify anomalies or trends in status indicator values.

[0077] The specific implementation process of step S203 includes the following steps:

[0078] Step S11: based on the monitoring policy corresponding to the disk type, one or more key status indicator values ​​are screened out from the multiple status indicator values.

[0079] It should be noted that the server can adopt corresponding monitoring strategies based on the performance characteristics of the disk, from data packet identification to disk type. For example, for HDD, the focus may be on read and write latency and seek time; while for SSD, the focus may be on read and write speed and write volume.

[0080] Step S12: for each key status indicator value, determine whether the key status indicator value exceeds the corresponding alarm threshold; if so, generate corresponding alarm information, and execute a preset alarm process based on the alarm information.

[0081] In step S32, the alarm threshold corresponding to each key status indicator value is pre-set based on the disk type.

[0082] The server has different alarm thresholds for different disk types (SSD, HDD, NVMe). Different types of disks have significant differences in performance and durability. The read and write speeds of SSD and NVMe are much faster than HDD, but they may be more sensitive to the number of writes. Therefore, setting the alarm threshold reasonably can more accurately reflect the actual working status and health of various types of disks.

[0083] In one embodiment, for each key status indicator value, a trend prediction method is used to predict the predicted value of the key status indicator value in the future time period, and it is determined whether the predicted value exceeds the alarm threshold corresponding to the key status indicator value; if so, a corresponding alarm information is generated, and a preset alarm process is executed based on the alarm information.

[0084] The trend prediction method includes any one of a statistical method, a time series analysis method and a machine learning algorithm. Similarly, the alarm threshold corresponding to each key status indicator value is pre-set based on the disk type.

[0085] In one embodiment, each key status indicator value is saved in real time to obtain historical data; for the alarm threshold corresponding to each key status indicator value, the alarm threshold is optimized and updated using the historical data every preset time period.

[0086] It is understandable that based on historical data and real-time analysis, the server can continuously optimize the alarm thresholds and monitoring strategies to make them more in line with actual workloads and business needs, thereby improving the accuracy and effectiveness of disk detection health status monitoring.

[0087] In addition, for the above-mentioned saved historical data, trend graphs of various key status indicator values ​​can be generated based on the historical data and displayed through a visual interface.

[0088] The visualization interface, i.e., the user interface, includes a web interface or a mobile application, thereby providing users with intuitive graphical reports and dashboards that display real-time views and trend graphs of various status indicator values ​​of the disk.

[0089] Preferably, a control panel is provided, allowing users to view historical data, configure monitoring strategies and configure alarm processes, etc.

[0090] Understandably, historical data can be used for retrospective analysis and long-term trend prediction. This is critical to understanding how disk performance changes over time, predicting possible future problems, and optimizing disk monitoring strategies.

[0091] Specifically, the preset alarm process is triggered based on the alarm information, including the following steps:

[0092] Step S21: classify the alarm information into levels. If it meets the preset alarm level, determine whether the alarm information appears multiple times in the historical alarm information; if so, execute step S22; if not, execute step S23.

[0093] In step S21, when the health status analysis result shows that a status indicator value exceeds the preset alarm threshold, an alarm message will be obtained, including but not limited to excessive disk usage, I / O delay beyond the normal range, frequent disk errors, etc.

[0094] The purpose of classifying alarm information is to prevent alarm flooding. Alarms can be graded according to their severity, repetitiveness and urgency to ensure that the most important issues receive priority attention.

[0095] In addition, in order to prevent the same alarm information from appearing repeatedly, filtering processing is required, that is, the alarm information that appears multiple times does not trigger an alarm notification.

[0096] Step S22: Add the alarm information to the historical alarm information.

[0097] In step S22, the alarm information is added to the historical alarm information so as to count the number of times the alarm information occurs.

[0098] Step S23: Generate an alarm notification based on the alarm information, and add the alarm information to the historical alarm information.

[0099] In step S23, an alarm notification is generated based on the alarm information with a higher severity and a lower occurrence frequency.

[0100] Step S24: Send the alarm notification to the user using a communication tool, or send the alarm notification to the operation and maintenance system using an API interface.

[0101] In step S24, multi-channel notification is adopted to send alarm notifications to users through multiple channels, including email, SMS, phone calls, etc. In addition, it can also be integrated with other operation and maintenance systems through API interfaces, and the alarm notification automatically triggers the subsequent troubleshooting or repair process.

[0102] Based on the above-mentioned embodiment of the present invention, a method for monitoring the health status of a disk is disclosed, which receives a data packet sent by a client; the data packet contains multiple status indicator values ​​of the disk in the host and the disk type of the disk; the data packet is parsed to obtain each status indicator value and the disk type; based on the monitoring strategy corresponding to the disk type and each status indicator value, the disk health status is analyzed, and if the analysis obtains an alarm information, the preset alarm process is executed based on the alarm information. In this solution, the client is used to identify different types of disks, and the server pre-sets the monitoring strategy corresponding to the disk type to analyze the disk health status, so as to achieve the purpose of improving the pertinence and accuracy of monitoring.

[0103] Based on the above embodiment of the present invention, a disk health status monitoring system is disclosed, such as Figure 3 FIG. 1 is a flowchart of another health status monitoring method disclosed in an embodiment of the present invention, which is applied to a client of an Agent architecture and mainly includes the following steps:

[0104] Step S301: for each disk in the host, identify the disk type of the disk.

[0105] In step S301, the client has the ability to intelligently identify the disk type and can distinguish different types of storage media such as solid-state drives (SSDs), mechanical hard disks (HDDs), and non-volatile memory express devices (NVMe).

[0106] Step S302: Based on the collection frequency pre-set based on the disk type, multiple status indicator values ​​are collected from the disk.

[0107] In step S302, various key indicators related to the disk status are automatically collected at predetermined time intervals, including disk usage, I / O read / write frequency, read / write latency, queue length, etc.

[0108] It should be noted that different types of disks have different performance and failure modes. For example, SSD and NVMe usually have faster read and write speeds and lower latency, while HDD may show higher latency after long-term continuous read and write. Therefore, for different types of disks, client 2 can adopt different data collection frequencies.

[0109] Preferably, for different types of disks, the client 2 can focus on collecting some status indicator values ​​and reduce the collection of worthless status indicator values.

[0110] Step S303: Generate a data packet based on multiple status indicator values ​​and disk types.

[0111] In step S303, the collected multiple status indicator values ​​and disk types are preliminarily processed and summarized to form a structured data packet that is easy to transmit.

[0112] Preferably, the data packet should also contain sufficient metadata, such as source host identification, data collection timestamp, etc.

[0113] In one embodiment, before generating the data packet, each state indicator value and disk type is preprocessed to obtain each state indicator value and disk type after preprocessing.

[0114] Preprocessing includes one or more of data cleaning, format conversion and compression to reduce the transmission burden and ensure the consistency and accuracy of the data.

[0115] Step S304: Send the data packet to the server, so that the server performs disk health status analysis based on the data packet. If alarm information is obtained through the analysis, a preset alarm process is executed based on the alarm information.

[0116] In step S304, the data packet is sent to the server through an encrypted channel at a preset time interval.

[0117] Among them, the encrypted channel includes: HTTPS / TLS, which is an encrypted channel built based on the HTTPS protocol. It ensures the integrity and confidentiality of data during transmission.

[0118] Based on the above-mentioned method for monitoring the health status of a disk disclosed in the embodiment of the present invention, for each disk in the host, the disk type of the disk is identified; based on the collection frequency pre-set based on the disk type, multiple status indicator values ​​are collected from the disk; a data packet is generated based on the multiple status indicator values ​​and the disk type; the data packet is sent to the server, so that the server performs a disk health status analysis based on the data packet, and if an alarm information is obtained by the analysis, a preset alarm process is executed based on the alarm information. In this solution, the client is used to identify different types of disks, and various status indicator values ​​are collected according to the disk type, and sent to the server through a data packet, so that the server can perform a disk health status analysis according to the monitoring strategy pre-set according to the disk type, so as to achieve the purpose of improving the pertinence and accuracy of monitoring.

[0119] Based on the above Figure 2 A corresponding public method for monitoring the health status of a disk is as follows: Figure 4 , which is a structural diagram of a disk health status monitoring device disclosed in an embodiment of the present invention, is applied to a server, and includes: a receiving unit 401 , a parsing unit 402 and an analyzing unit 403 .

[0120] The receiving unit 401 is used to receive a data packet sent by the client; the data packet includes multiple status indicator values ​​of the disk in the host and the disk type of the disk;

[0121] A parsing unit 402, used for parsing the data packet to obtain various status indicator values ​​and disk types;

[0122] The analysis unit 403 is used to analyze the health status of the disk based on the monitoring strategy corresponding to the disk type and the values ​​of each status indicator. If the analysis obtains alarm information, a preset alarm process is executed based on the alarm information.

[0123] Preferably, the analysis unit 403 is specifically used for:

[0124] Based on the monitoring policy corresponding to the disk type, one or more key status indicator values ​​are selected from multiple status indicator values;

[0125] For each key status indicator value, determine whether the key status indicator value exceeds the corresponding alarm threshold; if so, generate corresponding alarm information, and execute the preset alarm process based on the alarm information; the alarm threshold corresponding to each key status indicator value is pre-set based on the disk type;

[0126] or,

[0127] For each key status indicator value, a trend prediction method is used to predict the predicted value of the key status indicator value in the future time period, and it is determined whether the predicted value exceeds the alarm threshold corresponding to the key status indicator value; if so, a corresponding alarm message is generated, and a preset alarm process is executed based on the alarm message; the trend prediction method includes: any one of a statistical method, a time series analysis method, and a machine learning algorithm; the alarm threshold corresponding to each key status indicator value is pre-set based on the disk type.

[0128] Preferably, the device for monitoring the health status of a disk further includes:

[0129] The optimization unit is used to save the values ​​of each key status indicator in real time and obtain historical data; for the alarm threshold corresponding to each key status indicator value, the historical data is used to optimize and update the alarm threshold every preset time period.

[0130] Preferably, the device for monitoring the health status of a disk further includes:

[0131] The display unit is used to generate trend charts of various key status indicator values ​​based on historical data and display them through a visual interface.

[0132] Preferably, the device for monitoring the health status of a disk further includes:

[0133] The alarm unit is used to classify the alarm information into levels. If it meets the preset alarm level, it determines whether the alarm information appears multiple times in the historical alarm information; if so, the alarm information is added to the historical alarm information; if not, an alarm notification is generated based on the alarm information, and the alarm information is added to the historical alarm information; the alarm notification is sent to the user using a communication tool, or the alarm notification is sent to the operation and maintenance system using an API interface.

[0134] A device for monitoring the health status of a disk disclosed in the above embodiment of the present invention receives a data packet sent by a client; the data packet contains multiple status indicator values ​​of the disk in the host and the disk type of the disk; the data packet is parsed to obtain each status indicator value and the disk type; the disk health status is analyzed based on the monitoring strategy corresponding to the disk type and each status indicator value, and if the analysis obtains an alarm information, the preset alarm process is executed based on the alarm information. In this solution, the client is used to identify different types of disks, and the server performs a disk health status analysis based on the monitoring strategy set in advance according to the disk type, so as to achieve the purpose of improving the pertinence and accuracy of monitoring.

[0135] Based on the above Figure 3 A corresponding public method for monitoring the health status of a disk is as follows: Figure 5, which is a structural diagram of another disk health status monitoring device disclosed in an embodiment of the present invention, is applied to a client and includes: an identification unit 501 , a collection unit 502 , a generation unit 503 and a sending unit 504 .

[0136] The identification unit 501 is used to identify the disk type of each disk in the host;

[0137] A collection unit 502, configured to collect a plurality of status indicator values ​​from the disk based on a collection frequency pre-set based on the disk type;

[0138] A generating unit 503, configured to generate a data packet based on a plurality of status indicator values ​​and a disk type;

[0139] The sending unit 504 is used to send the data packet to the server, so that the server performs disk health status analysis based on the data packet. If alarm information is obtained through the analysis, a preset alarm process is executed based on the alarm information.

[0140] Preferably, the sending unit is specifically used for:

[0141] The data packet is sent to the server through an encrypted channel; the encrypted channel includes: an encrypted channel built based on the HTTPS protocol.

[0142] Preferably, the device for monitoring the health status of a disk further includes:

[0143] The preprocessing unit is used to preprocess each state indicator value and disk type to obtain each state indicator value and disk type after preprocessing; the preprocessing includes: one or more of data cleaning, format conversion and compression.

[0144] Based on the above-mentioned embodiment of the present invention, a device for monitoring the health status of a disk is disclosed. For each disk in the host, the disk type of the disk is identified; based on the collection frequency pre-set based on the disk type, multiple status indicator values ​​are collected from the disk; a data packet is generated based on the multiple status indicator values ​​and the disk type; the data packet is sent to the server, so that the server performs a disk health status analysis based on the data packet, and if an alarm information is obtained by the analysis, a preset alarm process is executed based on the alarm information. In this solution, the client is used to identify different types of disks, and various status indicator values ​​are collected according to the disk type, and sent to the server through a data packet, so that the server performs a disk health status analysis according to the monitoring strategy pre-set according to the disk type, so as to achieve the purpose of improving the pertinence and accuracy of monitoring.

[0145] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can refer to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system or system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiment. The system and system embodiments described above are merely schematic, 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 creative work.

[0146] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0147] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for monitoring the health status of a disk, characterized in that: Applied to a server, the server is connected to a client of an Agent architecture, and the client is deployed on a host. The method includes: receiving a data packet sent by the client; the data packet includes a plurality of status indicator values ​​of the disk in the host and the disk type of the disk; Parsing the data packet to obtain each of the status indicator values ​​and the disk type; Based on the monitoring strategy corresponding to the disk type and each of the status indicator values, a disk health status analysis is performed. If an alarm message is obtained through the analysis, a preset alarm process is executed based on the alarm message.

2. The method according to claim 1, characterized in that The monitoring strategy corresponding to the disk type and each of the status indicator values ​​are used to analyze the disk health status. If an alarm message is obtained through the analysis, a preset alarm process is executed based on the alarm message, including: Based on the monitoring policy corresponding to the disk type, one or more key status indicator values ​​are selected from the plurality of status indicator values; For each of the key status indicator values, determine whether the key status indicator value exceeds the corresponding alarm threshold; if so, generate corresponding alarm information, and execute a preset alarm process based on the alarm information; the alarm threshold corresponding to each of the key status indicator values ​​is pre-set based on the disk type; or, For each of the key status indicator values, a trend prediction method is used to predict the predicted value of the key status indicator value in the future time period, and it is determined whether the predicted value exceeds the alarm threshold corresponding to the key status indicator value; if so, a corresponding alarm message is generated, and a preset alarm process is executed based on the alarm message; the trend prediction method includes: any one of a statistical method, a time series analysis method and a machine learning algorithm; the alarm threshold corresponding to each of the key status indicator values ​​is pre-set based on the disk type.

3. The method according to claim 2, characterized in that The method further comprises: Save each of the key status indicator values ​​in real time to obtain historical data; For the alarm threshold corresponding to each of the key status indicator values, the alarm threshold is optimized and updated using the historical data every preset time period.

4. The method according to claim 3, characterized in that The method further comprises: A trend graph of each of the key status indicator values ​​is generated based on the historical data and displayed through a visual interface.

5. The method according to any one of claims 1 to 4, characterized in that: The preset alarm process is triggered based on the alarm information, including: Classify the alarm information into levels, and if it meets the preset alarm level, determine whether the alarm information appears multiple times in the historical alarm information; If yes, adding the alarm information to the historical alarm information; If not, generating an alarm notification based on the alarm information, and adding the alarm information to the historical alarm information; The alarm notification is sent to the user using a communication tool, or the alarm notification is sent to the operation and maintenance system using an API interface.

6. A method for monitoring the health status of a disk, characterized in that: A client applied to an Agent architecture, the client is connected to a server, the client is deployed on a host, and the method includes: For each disk in the host, identifying the disk type of the disk; Based on a collection frequency pre-set based on the disk type, a plurality of status indicator values ​​are collected from the disk; generating a data packet based on a plurality of the status indicator values ​​and the disk type; The data packet is sent to the server, so that the server performs disk health status analysis based on the data packet. If alarm information is obtained through the analysis, a preset alarm process is executed based on the alarm information.

7. The method according to claim 6, characterized in that After obtaining the plurality of status indicator values, the method further includes: Preprocessing is performed on each of the status indicator values ​​and the disk type to obtain each of the status indicator values ​​and the disk type after preprocessing; the preprocessing includes: one or more of data cleaning, format conversion and compression.

8. The method according to claim 6 or 7, characterized in that: The sending of the data packet to the server includes: The data packet is sent to the server through an encrypted channel; the encrypted channel includes: an encrypted channel built based on the HTTPS protocol.

9. A device for monitoring the health status of a disk, characterized in that: Applied to a server, the server is connected to a client of an Agent architecture, the client is deployed on a host, and the device includes: A receiving unit, configured to receive a data packet sent by the client; the data packet includes a plurality of status indicator values ​​of the disk in the host and a disk type of the disk; A parsing unit, used for parsing the data packet to obtain each of the status indicator values ​​and the disk type; The analysis unit is used to perform disk health status analysis based on the monitoring strategy corresponding to the disk type and each of the status indicator values. If an alarm message is obtained through the analysis, a preset alarm process is executed based on the alarm message.

10. A device for monitoring the health status of a disk, characterized in that: A client applied to an Agent architecture, the client is connected to a server, the client is deployed on a host, and the device includes: an identification unit, configured to identify the disk type of each disk in the host; A collection unit, configured to collect a plurality of status indicator values ​​from the disk based on a collection frequency pre-set based on the disk type; A generating unit, configured to generate a data packet based on a plurality of the status indicator values ​​and the disk type; The sending unit is used to send the data packet to the server so that the server performs disk health status analysis based on the data packet. If an alarm message is obtained through the analysis, a preset alarm process is executed based on the alarm message.

Citation Information

Cited By

  • SSD data exception rapid detection method, server, medium and program product

    CN119811467A