CN106502813A - A kind of server hard disc monitoring method and device - Google Patents
A kind of server hard disc monitoring method and device Download PDFInfo
- Publication number
- CN106502813A CN106502813A CN201610910645.8A CN201610910645A CN106502813A CN 106502813 A CN106502813 A CN 106502813A CN 201610910645 A CN201610910645 A CN 201610910645A CN 106502813 A CN106502813 A CN 106502813A
- Authority
- CN
- China
- Prior art keywords
- behavior
- executed
- operating parameter
- hard disk
- parameter information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0796—Safety measures, i.e. ensuring safe condition in the event of error, e.g. for controlling element
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
本发明公开了一种服务器硬盘监控方法及装置。该方法包括以下步骤:在达到设定的触发条件时,获取硬盘的一个或多个运行参数信息;针对每个运行参数信息,判断该运行参数信息是否在其预先设定的相应参数范围内;根据每个运行参数信息对应的判断结果,确定硬盘是否处于正常运行状态;如果否,则根据每个运行参数信息对应的判断结果,确定待执行行为,并执行待执行行为。应用本发明实施例所提供的技术方案,可以及时解决硬盘出现的问题,进而保障服务器的正常运行,实现了对服务器硬盘的有效监控。
The invention discloses a server hard disk monitoring method and device. The method includes the following steps: when a set trigger condition is reached, one or more operating parameter information of the hard disk is obtained; for each operating parameter information, it is judged whether the operating parameter information is within its preset corresponding parameter range; According to the judgment result corresponding to each operating parameter information, determine whether the hard disk is in a normal operating state; if not, then determine the action to be executed according to the judgment result corresponding to each operating parameter information, and execute the action to be executed. By applying the technical solutions provided by the embodiments of the present invention, the problems of the hard disk can be solved in time, thereby ensuring the normal operation of the server and realizing effective monitoring of the hard disk of the server.
Description
技术领域technical field
本发明涉及计算机应用技术领域,特别是涉及一种服务器硬盘监控方法及装置。The invention relates to the field of computer application technology, in particular to a server hard disk monitoring method and device.
背景技术Background technique
随着互联网技术的快速发展,各行各业需要存储的数据逐渐增多。服务器可以称为网络数据的核心,服务器硬盘即为这个核心的数据仓库,用于存储软件和用户数据,是企业工作正常运行必不可少的部分。无论对于企业来说,还是对于用户而言,存储在服务器硬盘上的数据都是宝贵的,硬盘的可靠性至关重要。With the rapid development of Internet technology, the data that needs to be stored in all walks of life is gradually increasing. The server can be called the core of network data, and the hard disk of the server is the core data warehouse, which is used to store software and user data, and is an indispensable part of the normal operation of the enterprise. No matter for enterprises or users, the data stored on the hard disk of the server is precious, and the reliability of the hard disk is very important.
服务器通常处于7*24小时工作模式,其硬盘也需以同样工作模式工作。但是,在实际应用中,硬盘可能会出现各种各样的问题,影响服务器的正常工作。如何对硬盘进行有效监控是目前本领域技术人员亟需解决的问题。The server is usually in 7*24 hours working mode, and its hard disk also needs to work in the same working mode. However, in practical applications, various problems may occur on the hard disk, affecting the normal operation of the server. How to effectively monitor the hard disk is a problem that those skilled in the art need to solve urgently.
发明内容Contents of the invention
本发明的目的是提供一种服务器硬盘监控方法及装置,以对服务器硬盘进行有效监控,发现问题及时执行设定行为,保障服务器的正常运行。The purpose of the present invention is to provide a server hard disk monitoring method and device, so as to effectively monitor the server hard disk, execute setting behaviors in time when problems are found, and ensure the normal operation of the server.
为解决上述技术问题,本发明提供如下技术方案:In order to solve the above technical problems, the present invention provides the following technical solutions:
一种服务器硬盘监控方法,包括:A server hard disk monitoring method, comprising:
在达到设定的触发条件时,获取硬盘的一个或多个运行参数信息;Obtain one or more operating parameter information of the hard disk when the set trigger condition is reached;
针对每个运行参数信息,判断该运行参数信息是否在其预先设定的相应参数范围内;For each operating parameter information, determine whether the operating parameter information is within its preset corresponding parameter range;
根据每个运行参数信息对应的判断结果,确定所述硬盘是否处于正常运行状态;According to the judgment result corresponding to each operating parameter information, determine whether the hard disk is in a normal operating state;
如果否,则根据每个运行参数信息对应的判断结果,确定待执行行为,并执行所述待执行行为。If not, according to the judgment result corresponding to each operating parameter information, determine the behavior to be executed, and execute the behavior to be executed.
在本发明的一种具体实施方式中,所述根据每个运行参数信息对应的判断结果,确定所述硬盘是否处于正常运行状态,包括:In a specific implementation manner of the present invention, the determining whether the hard disk is in a normal operating state according to the judgment result corresponding to each operating parameter information includes:
如果每个运行参数信息均在其相应参数范围内,则确定所述硬盘处于正常运行状态。If each operating parameter information is within its corresponding parameter range, it is determined that the hard disk is in a normal operating state.
在本发明的一种具体实施方式中,在所述确定待执行行为之后、所述执行所述待执行行为之前,还包括:In a specific implementation manner of the present invention, after the determination of the to-be-executed behavior and before the execution of the to-be-executed behavior, it further includes:
输出针对所述待执行行为的提示信息;Outputting prompt information for the behavior to be executed;
如果接收到针对所述待执行行为的确认指令,或者在设定时长内未接收到针对所述待执行行为的取消指令,则执行所述待执行行为。If a confirmation instruction for the to-be-executed behavior is received, or a cancel instruction for the to-be-executed behavior is not received within a set time period, the to-be-executed behavior is executed.
在本发明的一种具体实施方式中,所述根据每个运行参数信息对应的判断结果,确定待执行行为,包括:In a specific implementation manner of the present invention, the determination of the behavior to be executed according to the judgment result corresponding to each operating parameter information includes:
针对每个运行参数信息,如果该运行参数信息不在其相应参数范围内,则确定该运行参数信息对应的设定行为;For each operating parameter information, if the operating parameter information is not within the corresponding parameter range, then determine the setting behavior corresponding to the operating parameter information;
根据确定的设定行为,确定待执行行为。According to the determined set behavior, the behavior to be executed is determined.
在本发明的一种具体实施方式中,确定的设定行为有多个,所述根据确定的设定行为,确定待执行行为,包括:In a specific implementation of the present invention, there are multiple determined setting behaviors, and the determination of the behavior to be executed according to the determined setting behaviors includes:
将确定的设定行为中优先级最高的设定行为确定为待执行行为。The setting behavior with the highest priority among the determined setting behaviors is determined as the behavior to be executed.
在本发明的一种具体实施方式中,所述运行参数信息为转速信息、温度信息、电压信息、电流信息、写入速度信息或读取速度信息。In a specific implementation manner of the present invention, the operating parameter information is rotational speed information, temperature information, voltage information, current information, writing speed information or reading speed information.
一种服务器硬盘监控装置,包括:A server hard disk monitoring device, comprising:
运行参数信息获取模块,用于在达到设定的触发条件时,获取硬盘的一个或多个运行参数信息;An operating parameter information acquisition module, configured to obtain one or more operating parameter information of the hard disk when a set trigger condition is reached;
判断模块,用于针对每个运行参数信息,判断该运行参数信息是否在其预先设定的相应参数范围内;A judging module, for each operating parameter information, judging whether the operating parameter information is within its preset corresponding parameter range;
状态确定模块,用于根据每个运行参数信息对应的判断结果,确定所述硬盘是否处于正常运行状态,如果否,则触发待执行行为确定模块;A state determination module, configured to determine whether the hard disk is in a normal operating state according to the judgment result corresponding to each operating parameter information, and if not, trigger the behavior determination module to be executed;
所述待执行行为确定模块,用于根据每个运行参数信息对应的判断结果,确定待执行行为;The to-be-executed behavior determining module is used to determine the to-be-executed behavior according to the judgment result corresponding to each operating parameter information;
行为执行模块,用于执行所述待执行行为。A behavior executing module, configured to execute the behavior to be executed.
在本发明的一种具体实施方式中,还包括:In a specific embodiment of the present invention, it also includes:
提示信息输出模块,用于在所述确定待执行行为之后、所述执行所述待执行行为之前,输出针对所述待执行行为的提示信息;如果接收到针对所述待执行行为的确认指令,或者在设定时长内未接收到针对所述待执行行为的取消指令,则触发所述行为执行模块。A prompt information output module, configured to output prompt information for the to-be-executed behavior after the determination of the to-be-executed behavior and before the execution of the to-be-executed behavior; if a confirmation instruction for the to-be-executed behavior is received, Or if no cancellation instruction for the behavior to be executed is received within the set time period, the behavior execution module is triggered.
在本发明的一种具体实施方式中,所述待执行行为确定模块,包括:In a specific implementation manner of the present invention, the to-be-executed behavior determination module includes:
设定行为确定子模块,用于针对每个运行参数信息,如果该运行参数信息不在其相应参数范围内,则确定该运行参数信息对应的设定行为;The setting behavior determination submodule is used to determine the setting behavior corresponding to the operating parameter information if the operating parameter information is not within the corresponding parameter range for each operating parameter information;
待执行行为确定子模块,用于根据确定的设定行为,确定待执行行为。The to-be-executed behavior determination submodule is used to determine the to-be-executed behavior according to the determined set behavior.
在本发明的一种具体实施方式中,确定的设定行为有多个,所述待执行行为确定子模块,具体用于:In a specific implementation of the present invention, there are multiple determined set behaviors, and the to-be-executed behavior determination submodule is specifically used for:
将确定的设定行为中优先级最高的设定行为确定为待执行行为。The setting behavior with the highest priority among the determined setting behaviors is determined as the behavior to be executed.
应用本发明实施例所提供的技术方案,在达到设定的触发条件时,可以获取硬盘的一个或多个运行参数信息,针对每个运行参数信息,可以判断该运行参数信息是否在其预先设定的相应参数范围内,根据判断结果,可以确定硬盘当前是否处于正常运行状态,如果确定硬盘未处于正常运行状态,则可以根据判断结果,确定待执行行为,并执行该待执行行为,以及时解决硬盘出现的问题,进而保障服务器的正常运行,实现了对服务器硬盘的有效监控。Applying the technical solution provided by the embodiment of the present invention, when the set trigger condition is reached, one or more operating parameter information of the hard disk can be obtained, and for each operating parameter information, it can be judged whether the operating parameter information is within its preset According to the judgment result, it can be determined whether the hard disk is currently running normally. If it is determined that the hard disk is not in the normal running state, the behavior to be executed can be determined according to the judgment result, and the behavior to be executed can be executed in time. Solve the problem of the hard disk, and then ensure the normal operation of the server, and realize the effective monitoring of the server hard disk.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.
图1为本发明实施例中一种服务器硬盘监控方法的实施流程图;Fig. 1 is the implementation flowchart of a kind of server hard disk monitoring method in the embodiment of the present invention;
图2为本发明实施例中一种服务器硬盘监控装置的结构示意图。FIG. 2 is a schematic structural diagram of a server hard disk monitoring device in an embodiment of the present invention.
具体实施方式detailed description
为了使本技术领域的人员更好地理解本发明方案,下面结合附图和具体实施方式对本发明作进一步的详细说明。显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to enable those skilled in the art to better understand the solution of the present invention, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. Apparently, the described embodiments are only some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
本发明实施例提供了一种服务器硬盘监控方法,该方法通过获取硬盘的运行参数信息,并判断每个运行参数信息是否在其预先设定的相应参数范围内,根据判断结果,确定硬盘当前是否处于正常运行状态,如果未处于正常运行状态,则可以根据判断结果,确定待执行行为,并执行该待执行行为,以及时解决硬盘出现的问题,进而保障服务器的正常运行。具体的,可以通过安装于服务器中或者其他监控设备中的监控应用程序对服务器硬盘进行监控。The embodiment of the present invention provides a server hard disk monitoring method, the method obtains the operating parameter information of the hard disk, and judges whether each operating parameter information is within its preset corresponding parameter range, and determines whether the hard disk is currently If it is in normal operation state, if it is not in normal operation state, it can determine the action to be executed according to the judgment result, and execute the action to be executed, so as to solve the problem of the hard disk in time, and then ensure the normal operation of the server. Specifically, the hard disk of the server can be monitored through a monitoring application program installed in the server or other monitoring equipment.
参见图1所示,为本发明实施例所提供的一种服务器硬盘监控方法的实施流程图,该方法可以包括以下步骤:Referring to Fig. 1, it is an implementation flowchart of a server hard disk monitoring method provided by an embodiment of the present invention, the method may include the following steps:
S110:在达到设定的触发条件时,获取硬盘的一个或多个运行参数信息。S110: Obtain one or more operating parameter information of the hard disk when a set trigger condition is reached.
在本发明实施例中,可以预先设定获取硬盘的运行参数信息的触发条件。当达到设定的触发条件时,获取硬盘的一个或多个运行参数信息。具体的,可以按照设定周期获取硬盘的一个或多个运行参数信息,或者在对硬盘执行某种行为后,获取硬盘的一个或多个运行参数信息,或者在接收到对硬盘的控制指令后,获取硬盘的一个或多个运行参数信息。In the embodiment of the present invention, a trigger condition for acquiring the operating parameter information of the hard disk may be preset. When the set trigger condition is reached, one or more operating parameter information of the hard disk is obtained. Specifically, one or more operating parameter information of the hard disk can be obtained according to a set period, or after a certain behavior is performed on the hard disk, one or more operating parameter information of the hard disk can be obtained, or after receiving a control command on the hard disk , to obtain one or more operating parameter information of the hard disk.
运行参数信息可以为转速信息、温度信息、电压信息、电流信息、写入速度信息或读取速度信息。The operating parameter information may be rotational speed information, temperature information, voltage information, current information, writing speed information or reading speed information.
比如,在达到设定的触发条件时,获取硬盘的转速信息、温度信息、写入速度信息和读取速度信息。For example, when the set trigger condition is reached, the rotating speed information, temperature information, writing speed information and reading speed information of the hard disk are acquired.
S120:针对每个运行参数信息,判断该运行参数信息是否在其预先设定的相应参数范围内。S120: For each operating parameter information, determine whether the operating parameter information is within its preset corresponding parameter range.
在本发明实施例中,可以针对硬盘的每个运行参数设定其相应参数范围。比如,针对温度参数,可以设定温度参数对应的参数范围为[0,50℃]。对于不同型号、不同厂家的硬盘,相同的运行参数可以设定不同的参数范围。In the embodiment of the present invention, a corresponding parameter range can be set for each operating parameter of the hard disk. For example, for the temperature parameter, the parameter range corresponding to the temperature parameter may be set as [0, 50° C.]. For hard disks of different models and manufacturers, different parameter ranges can be set for the same operating parameters.
每个运行参数信息在其相应参数范围内时,可以认为硬盘当前处于正常运行状态,如果不在其相应参数范围内,硬盘当前可能已经出现问题,在这种情况下,可以认为硬盘未处于正常运行状态。When each operating parameter information is within its corresponding parameter range, it can be considered that the hard disk is currently in normal operation. If it is not within the corresponding parameter range, the hard disk may have a problem. In this case, it can be considered that the hard disk is not in normal operation. state.
在步骤S110,获取硬盘的一个或多个运行参数信息后,可以针对每个运行参数信息,判断该运行参数信息是否在其预先设定的相应参数范围内,并获得相应的判断结果。In step S110, after obtaining one or more operating parameter information of the hard disk, for each operating parameter information, it may be judged whether the operating parameter information is within its preset corresponding parameter range, and a corresponding judgment result may be obtained.
S130:根据每个运行参数信息对应的判断结果,确定硬盘是否处于正常运行状态。S130: Determine whether the hard disk is in a normal operating state according to a judgment result corresponding to each operating parameter information.
在本发明实施例中,每个运行参数信息在其相应参数范围内时,可以认为硬盘当前处于正常运行状态,如果不在其相应参数范围内,硬盘当前可能已经出现问题,在这种情况下,可以认为硬盘未处于正常运行状态。In the embodiment of the present invention, when each operating parameter information is within its corresponding parameter range, it can be considered that the hard disk is currently in a normal operating state. If it is not within its corresponding parameter range, the hard disk may have a problem at present. In this case, It can be assumed that the hard disk is not in a healthy state.
在步骤S120,获得了每个运行参数信息对应的判断结果。每个运行参数信息的判断结果有两种,一种是,该运行参数信息在其相应参数范围内,一种是,该运行参数信息不在其相应参数范围内。In step S120, a judgment result corresponding to each operating parameter information is obtained. There are two types of judgment results for each operating parameter information, one is that the operating parameter information is within the corresponding parameter range, and the other is that the operating parameter information is not within the corresponding parameter range.
根据每个运行参数信息对应的判断结果,可以确定硬盘是否处于正常运行状态。如果硬盘当前处于正常运行状态,则可以对其不做任何操作,如果硬盘当前未处于正常运行状态,则可以继续执行步骤S140的操作。According to the judgment result corresponding to each operating parameter information, it can be determined whether the hard disk is in a normal operating state. If the hard disk is currently in a normal operating state, no operation can be performed on it; if the hard disk is not currently in a normal operating state, the operation of step S140 can be continued.
在本发明实施例中,如果每个运行参数信息均在其相应参数范围内,则可以确定硬盘处于正常运行状态。如果确定至少一个运行参数信息不在其相应参数范围内,则可以确定硬盘未处于正常运行状态。In the embodiment of the present invention, if each operating parameter information is within its corresponding parameter range, it can be determined that the hard disk is in a normal operating state. If it is determined that at least one operating parameter information is not within the corresponding parameter range, it can be determined that the hard disk is not in a normal operating state.
S150:根据每个运行参数信息对应的判断结果,确定待执行行为,并执行待执行行为。S150: Determine the behavior to be executed according to the judgment result corresponding to each operating parameter information, and execute the behavior to be executed.
在本发明实施例中,针对每个运行参数,可以预先设定该运行参数信息不在其相应参数范围内时对应的设定行为。比如,对于温度参数,当温度参数信息不在其相应参数范围内时,可以设定其对应的设定行为为关机,对于读取速度参数,当读取速度信息不在其相应参数范围内时,可以设定其对应的设定行为为磁盘碎片整理。In the embodiment of the present invention, for each operating parameter, the corresponding setting behavior when the operating parameter information is not within the corresponding parameter range may be preset. For example, for temperature parameters, when the temperature parameter information is not within the corresponding parameter range, the corresponding setting behavior can be set to shutdown; for the reading speed parameter, when the reading speed information is not within the corresponding parameter range, you can Set its corresponding setting behavior as Disk Defragmentation.
针对每个运行参数信息,如果该运行参数信息不在其相应参数范围内,则可以确定该运行参数信息对应的设定行为。For each operating parameter information, if the operating parameter information is not within the corresponding parameter range, the setting behavior corresponding to the operating parameter information may be determined.
根据确定的设定行为,可以确定待执行行为。According to the determined set behavior, the behavior to be executed can be determined.
具体的,如果确定的设定行为只有一个,则可以直接将该设定行为确定为待执行行为,如果确定的设定行为有多个,则可以从确定的设定行为中选择一个,将其确定为待执行行为。Specifically, if there is only one determined setting behavior, the setting behavior can be directly determined as the behavior to be executed; if there are multiple determined setting behaviors, one can be selected from the determined setting behaviors, and its identified as pending action.
在本发明的一种具体实施方式中,如果确定的设定行为有多个,则可以将确定的设定行为中优先级最高的设定行为确定为待执行行为。比如,确定的设定行为分别为:关机和磁盘碎片整理,磁盘碎片整理的优先级高于关机的优先级,则可以将磁盘碎片整理确定为待执行行为。In a specific implementation manner of the present invention, if there are multiple determined setting actions, the setting action with the highest priority among the determined setting actions may be determined as the action to be executed. For example, the determined set behaviors are respectively: shutdown and disk defragmentation, and the priority of disk defragmentation is higher than that of shutdown, then disk defragmentation may be determined as the behavior to be executed.
需要说明的是,每个设定行为的优先级可以根据服务器所在的实际场景和用途进行设定和调整,本发明实施例对此不做限制。It should be noted that the priority of each set behavior can be set and adjusted according to the actual scenario and use of the server, which is not limited in this embodiment of the present invention.
确定待执行行为之后,可以直接执行该待执行行为,以解决硬盘出现的问题,进而保障服务器的正常运行。After the behavior to be executed is determined, the behavior to be executed can be directly executed to solve the problem of the hard disk, thereby ensuring the normal operation of the server.
在本发明的一种具体实施方式中,在确定待执行行为之后、执行该待执行行为之前,还可以包括以下步骤:In a specific implementation manner of the present invention, after the behavior to be executed is determined and before the behavior to be executed is executed, the following steps may also be included:
步骤一:输出针对待执行行为的提示信息;Step 1: output prompt information for the behavior to be executed;
步骤二:如果接收到针对待执行行为的确认指令,或者在设定时长内未接收到针对待执行行为的取消指令,则执行待执行行为。Step 2: If a confirmation instruction for the behavior to be executed is received, or a cancellation instruction for the behavior to be executed is not received within a set time period, the behavior to be executed is executed.
为便于描述,将上述两个步骤结合起来进行说明。For ease of description, the above two steps are combined for description.
在确定待执行行为之后,可以输出针对该待执行行为的提示信息,以提示管理者即将进行的行为,比如确定的待执行行为为关机,则可以输出针对关机的提示信息。管理者如果确定当前不能执行该待执行行为,则可以输入相应的取消指令。如果接收到针对待执行行为的确认指令,或者在设定时长内未接收到针对待执行行为的取消指令,则可以执行该待执行行为。或者,如果接收到针对待执行行为的取消指令,则可以取消执行该待执行行为。After the behavior to be executed is determined, prompt information for the behavior to be executed can be output to remind the manager of the upcoming behavior. For example, if the behavior to be executed is determined to be shutdown, then the prompt information for shutdown can be output. If the manager determines that the to-be-executed action cannot be performed at present, he can input a corresponding cancel instruction. If a confirmation instruction for the behavior to be executed is received, or a cancel instruction for the behavior to be executed is not received within a set time period, the behavior to be executed may be executed. Alternatively, if a cancel instruction for the behavior to be performed is received, the behavior to be performed may be canceled.
应用本发明实施例所提供的方法,在达到设定的触发条件时,可以获取硬盘的一个或多个运行参数信息,针对每个运行参数信息,可以判断该运行参数信息是否在其预先设定的相应参数范围内,根据判断结果,可以确定硬盘当前是否处于正常运行状态,如果确定硬盘未处于正常运行状态,则可以根据判断结果,确定待执行行为,并执行该待执行行为,以及时解决硬盘出现的问题,进而保障服务器的正常运行,实现了对服务器硬盘的有效监控。Applying the method provided by the embodiment of the present invention, when the set trigger condition is reached, one or more operating parameter information of the hard disk can be obtained, and for each operating parameter information, it can be judged whether the operating parameter information is in its preset According to the judgment result, it can be determined whether the hard disk is currently in the normal operation state. If it is determined that the hard disk is not in the normal operation state, the behavior to be executed can be determined according to the judgment result, and the behavior to be executed can be executed to solve the problem in time. Hard disk problems, thereby ensuring the normal operation of the server, and realizing effective monitoring of the server hard disk.
相应于上面的方法实施例,本发明实施例还提供了一种服务器硬盘监控装置,下文描述的一种服务器硬盘监控装置与上文描述的一种服务器硬盘监控方法可相互对应参照。Corresponding to the above method embodiment, the embodiment of the present invention also provides a server hard disk monitoring device, and the server hard disk monitoring device described below and the server hard disk monitoring method described above can be referred to in correspondence.
参见图2所示,该装置包括以下模块:Referring to shown in Figure 2, the device includes the following modules:
运行参数信息获取模块210,用于在达到设定的触发条件时,获取硬盘的一个或多个运行参数信息;An operating parameter information acquiring module 210, configured to acquire one or more operating parameter information of the hard disk when a set trigger condition is reached;
判断模块220,用于针对每个运行参数信息,判断该运行参数信息是否在其预先设定的相应参数范围内;Judging module 220, for each operating parameter information, judging whether the operating parameter information is within its preset corresponding parameter range;
状态确定模块230,用于根据每个运行参数信息对应的判断结果,确定硬盘是否处于正常运行状态,如果否,则触发待执行行为确定模块240;The state determination module 230 is used to determine whether the hard disk is in a normal operation state according to the judgment result corresponding to each operating parameter information, and if not, trigger the behavior determination module 240 to be executed;
待执行行为确定模块240,用于根据每个运行参数信息对应的判断结果,确定待执行行为;The to-be-executed behavior determination module 240 is configured to determine the to-be-executed behavior according to the judgment result corresponding to each operating parameter information;
行为执行模块250,用于执行待执行行为。The behavior execution module 250 is configured to execute the behavior to be executed.
应用本发明实施例所提供的装置,在达到设定的触发条件时,可以获取硬盘的一个或多个运行参数信息,针对每个运行参数信息,可以判断该运行参数信息是否在其预先设定的相应参数范围内,根据判断结果,可以确定硬盘当前是否处于正常运行状态,如果确定硬盘未处于正常运行状态,则可以根据判断结果,确定待执行行为,并执行该待执行行为,以及时解决硬盘出现的问题,进而保障服务器的正常运行,实现了对服务器硬盘的有效监控。Applying the device provided by the embodiment of the present invention, when the set trigger condition is reached, one or more operating parameter information of the hard disk can be obtained, and for each operating parameter information, it can be judged whether the operating parameter information is in its preset According to the judgment result, it can be determined whether the hard disk is currently in the normal operation state. If it is determined that the hard disk is not in the normal operation state, the behavior to be executed can be determined according to the judgment result, and the behavior to be executed can be executed to solve the problem in time. Hard disk problems, thereby ensuring the normal operation of the server, and realizing effective monitoring of the server hard disk.
在本发明的一种具体实施方式中,状态确定模块230,具体用于:In a specific implementation manner of the present invention, the state determination module 230 is specifically used for:
如果每个运行参数信息均在其相应参数范围内,则确定硬盘处于正常运行状态。If each operating parameter information is within its corresponding parameter range, it is determined that the hard disk is in a normal operating state.
在本发明的一种具体实施方式中,还包括:In a specific embodiment of the present invention, it also includes:
提示信息输出模块,用于在确定待执行行为之后、执行待执行行为之前,输出针对待执行行为的提示信息;如果接收到针对待执行行为的确认指令,或者在设定时长内未接收到针对待执行行为的取消指令,则触发行为执行模块250。The prompt information output module is used to output the prompt information for the behavior to be executed after the behavior to be executed is determined and before the behavior to be executed; The action execution module 250 is triggered by the cancel instruction of the action to be executed.
在本发明的一种具体实施方式中,待执行行为确定模块240,包括:In a specific implementation manner of the present invention, the to-be-executed behavior determination module 240 includes:
设定行为确定子模块,用于针对每个运行参数信息,如果该运行参数信息不在其相应参数范围内,则确定该运行参数信息对应的设定行为;The setting behavior determination submodule is used to determine the setting behavior corresponding to the operating parameter information if the operating parameter information is not within the corresponding parameter range for each operating parameter information;
待执行行为确定子模块,用于根据确定的设定行为,确定待执行行为。The to-be-executed behavior determination submodule is used to determine the to-be-executed behavior according to the determined set behavior.
在本发明的一种具体实施方式中,确定的设定行为有多个,待执行行为确定子模块,具体用于:In a specific implementation of the present invention, there are multiple determined set behaviors, and the submodule for determining the behavior to be executed is specifically used for:
将确定的设定行为中优先级最高的设定行为确定为待执行行为。The setting behavior with the highest priority among the determined setting behaviors is determined as the behavior to be executed.
在本发明的一种具体实施方式中,运行参数信息为转速信息、温度信息、电压信息、电流信息、写入速度信息或读取速度信息。In a specific embodiment of the present invention, the operating parameter information is rotational speed information, temperature information, voltage information, current information, writing speed information or reading speed information.
本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其它实施例的不同之处,各个实施例之间相同或相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。Each embodiment in this specification is described in a progressive manner, each embodiment focuses on the difference from other embodiments, and the same or similar parts of each embodiment can be referred to each other. As for the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and for the related information, please refer to the description of the method part.
专业人员还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Professionals can further realize that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software or a combination of the two. In order to clearly illustrate the possible Interchangeability, in the above description, the components and steps of each example have been generally described according to their functions. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.
结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。The steps of the methods or algorithms described in connection with the embodiments disclosed herein may be directly implemented by hardware, software modules executed by a processor, or a combination of both. Software modules can be placed in random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other Any other known storage medium.
本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的技术方案及其核心思想。应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以对本发明进行若干改进和修饰,这些改进和修饰也落入本发明权利要求的保护范围内。In this paper, specific examples are used to illustrate the principles and implementation methods of the present invention, and the descriptions of the above embodiments are only used to help understand the technical solutions and core ideas of the present invention. It should be pointed out that for those skilled in the art, without departing from the principles of the present invention, some improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the protection scope of the claims of the present invention.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610910645.8A CN106502813A (en) | 2016-10-19 | 2016-10-19 | A kind of server hard disc monitoring method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610910645.8A CN106502813A (en) | 2016-10-19 | 2016-10-19 | A kind of server hard disc monitoring method and device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN106502813A true CN106502813A (en) | 2017-03-15 |
Family
ID=58294325
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201610910645.8A Pending CN106502813A (en) | 2016-10-19 | 2016-10-19 | A kind of server hard disc monitoring method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN106502813A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108737469A (en) * | 2017-04-20 | 2018-11-02 | 北京雷石天地电子技术有限公司 | A kind of method and apparatus hard disk praameter monitoring and fed back |
| CN109460194A (en) * | 2018-11-16 | 2019-03-12 | 郑州云海信息技术有限公司 | A kind of storage array monitoring system and method |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN201111924Y (en) * | 2007-09-27 | 2008-09-10 | 联想(北京)有限公司 | Mobile hard disk |
| CN102141942A (en) * | 2011-04-01 | 2011-08-03 | 奇智软件(北京)有限公司 | Method and device for monitoring and protecting equipment |
| CN102982836A (en) * | 2012-11-21 | 2013-03-20 | 记忆科技(深圳)有限公司 | Method for improving reliability of solid state disk and solid state disk of method |
| CN103902478A (en) * | 2012-12-26 | 2014-07-02 | 联想(北京)有限公司 | Hard disc protection method and electronic device |
| CN105242876A (en) * | 2015-09-28 | 2016-01-13 | 联想(北京)有限公司 | Control method and electronic device |
-
2016
- 2016-10-19 CN CN201610910645.8A patent/CN106502813A/en active Pending
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN201111924Y (en) * | 2007-09-27 | 2008-09-10 | 联想(北京)有限公司 | Mobile hard disk |
| CN102141942A (en) * | 2011-04-01 | 2011-08-03 | 奇智软件(北京)有限公司 | Method and device for monitoring and protecting equipment |
| CN102982836A (en) * | 2012-11-21 | 2013-03-20 | 记忆科技(深圳)有限公司 | Method for improving reliability of solid state disk and solid state disk of method |
| CN103902478A (en) * | 2012-12-26 | 2014-07-02 | 联想(北京)有限公司 | Hard disc protection method and electronic device |
| CN105242876A (en) * | 2015-09-28 | 2016-01-13 | 联想(北京)有限公司 | Control method and electronic device |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108737469A (en) * | 2017-04-20 | 2018-11-02 | 北京雷石天地电子技术有限公司 | A kind of method and apparatus hard disk praameter monitoring and fed back |
| CN109460194A (en) * | 2018-11-16 | 2019-03-12 | 郑州云海信息技术有限公司 | A kind of storage array monitoring system and method |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10095598B2 (en) | Transaction server performance monitoring using component performance data | |
| US20130283090A1 (en) | Monitoring and resolving deadlocks, contention, runaway cpu and other virtual machine production issues | |
| CN108027859B (en) | Detecting software attacks on processes in a computing device | |
| US20160378579A1 (en) | Atypical Reboot Data Collection And Analysis | |
| JP2011175357A5 (en) | Management device and management program | |
| CN111581005B (en) | Terminal restoration method, terminal and storage medium | |
| CN110413432B (en) | Information processing method, electronic equipment and storage medium | |
| JP2016085727A (en) | Method and system of preventing device from turning power on after unrecoverable failure | |
| CN104346264A (en) | System and method for processing system event logs | |
| US10990284B1 (en) | Alert configuration for data protection | |
| CN111159038B (en) | Method for simulating CPU load and electronic equipment | |
| CN107092551B (en) | Server system performance optimization method and device | |
| CN111752822A (en) | A containerized pressure measurement scheduling method, computer device and readable storage medium | |
| US9645873B2 (en) | Integrated configuration management and monitoring for computer systems | |
| CN106502813A (en) | A kind of server hard disc monitoring method and device | |
| TWI518680B (en) | Method for maintaining file system of computer system | |
| US20150170107A1 (en) | Throttled task scheduling based upon observed task velocity | |
| US20150331734A1 (en) | Diagnostic testing based on information handling system variables | |
| US11372049B2 (en) | Method and system to determine power values of a battery | |
| CN111130856A (en) | A server configuration method, system, device, and computer-readable storage medium | |
| CN108874648A (en) | A kind of threshold setting method and relevant apparatus | |
| US10872019B2 (en) | Load and save recovery partition using mobile device | |
| CN106155793A (en) | A kind of resource regulating method and device | |
| US9372786B1 (en) | Constructing state-transition functions for mobile devices | |
| US20240177025A1 (en) | System and method for managing data processing systems hosting distributed inference models |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170315 |
|
| RJ01 | Rejection of invention patent application after publication |