Movatterモバイル変換


[0]ホーム

URL:


CN116244154A - Alarm method, device, storage medium and electronic equipment - Google Patents

Alarm method, device, storage medium and electronic equipment
Download PDF

Info

Publication number
CN116244154A
CN116244154ACN202211718780.4ACN202211718780ACN116244154ACN 116244154 ACN116244154 ACN 116244154ACN 202211718780 ACN202211718780 ACN 202211718780ACN 116244154 ACN116244154 ACN 116244154A
Authority
CN
China
Prior art keywords
hard disk
disk array
controller
array controller
cache
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
Application number
CN202211718780.4A
Other languages
Chinese (zh)
Inventor
王治大
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co LtdfiledCriticalSuzhou Inspur Intelligent Technology Co Ltd
Priority to CN202211718780.4ApriorityCriticalpatent/CN116244154A/en
Publication of CN116244154ApublicationCriticalpatent/CN116244154A/en
Pendinglegal-statusCriticalCurrent

Links

Images

Classifications

Landscapes

Abstract

Translated fromChinese

本申请实施例提供了一种告警方法、装置、存储介质以及电子设备,其中,该方法包括:在硬盘阵列控制器运行的情况下,识别硬盘阵列控制器中是否存在目标电容;在硬盘阵列控制器中不存在目标电容的情况下,监测硬盘阵列控制器的读写性能值,并根据读写性能值确定控制器缓存的运行状态;在运行状态为开启状态时,生成预设告警信息,并在硬盘阵列控制器再次启动时向显示设备发送预设告警信息。通过本申请,解决了相关技术中用户在RAID卡的缓存强制开启的状态下安装超级电容,导致RAID卡中的数据被清除的问题。

Figure 202211718780

An embodiment of the present application provides an alarm method, device, storage medium, and electronic equipment, wherein the method includes: when the hard disk array controller is running, identifying whether there is a target capacitor in the hard disk array controller; When the target capacitor does not exist in the hard disk array controller, monitor the read and write performance value of the hard disk array controller, and determine the operating status of the controller cache according to the reading and writing performance value; when the operating status is on, generate a preset alarm message, and When the hard disk array controller starts up again, preset alarm information is sent to the display device. The present application solves the problem in the related art that the data in the RAID card is cleared because the user installs the supercapacitor when the cache of the RAID card is forcibly turned on.

Figure 202211718780

Description

Translated fromChinese
告警方法、装置、存储介质以及电子设备Alarm method, device, storage medium and electronic equipment

技术领域technical field

本申请实施例涉及计算机领域,具体而言,涉及一种告警方法、装置、存储介质以及电子设备。The embodiments of the present application relate to the computer field, and in particular, relate to an alarm method, device, storage medium, and electronic equipment.

背景技术Background technique

客户在购买服务器的时候,出于成本的考虑和当时选配人员技术能力不足等原因,往往会出现服务器中的RAID卡(Redundant Arrays of Independent Disks硬盘阵列控制器)没有配置超级电容的情况,正常配置了超级电容的RAID卡的默认运行机制为:保持RAID卡中的缓存的开启,这样可以通过缓存加速RAID卡读写数据的性能,进而提升服务器的性能。When customers purchase servers, due to cost considerations and the lack of technical capabilities of the matching personnel at that time, it often happens that the RAID card (Redundant Arrays of Independent Disks) in the server is not equipped with a super capacitor. The default operation mechanism of the RAID card configured with a super capacitor is: keep the cache in the RAID card enabled, so that the performance of reading and writing data of the RAID card can be accelerated through the cache, thereby improving the performance of the server.

在RAID卡未配置超级电容的情况下,在服务器性能长时间不达标的情况下,往往会强制开启RAID卡的缓存来提升系统的性能,此时,如果在强制开启RAID卡的缓存的时候向RAID卡中安装超级电容,会导致RAID阵列中的数据被清除,进而导致RAID卡中的数据丢失。When the RAID card is not configured with a super capacitor, and the server performance is not up to standard for a long time, the RAID card cache is often forcibly enabled to improve system performance. At this time, if the RAID card cache is forcibly enabled to Installing a supercapacitor in the RAID card will cause the data in the RAID array to be cleared, resulting in the loss of data in the RAID card.

发明内容Contents of the invention

本申请实施例提供了一种告警方法、装置、存储介质以及电子设备,以至少解决相关技术中用户在RAID卡的缓存强制开启的状态下安装超级电容,导致RAID卡中的数据被清除的问题。The embodiment of the present application provides an alarm method, device, storage medium and electronic equipment to at least solve the problem in the related art that the user installs a supercapacitor when the cache of the RAID card is forcibly turned on, causing the data in the RAID card to be cleared. .

根据本申请的一个实施例,提供了一种告警方法,包括:According to one embodiment of the present application, a warning method is provided, including:

在一个示例性实施例中,在硬盘阵列控制器运行的情况下,识别硬盘阵列控制器中是否存在目标电容,其中,目标电容用于向硬盘阵列控制器中的控制器缓存供电;在硬盘阵列控制器中不存在目标电容的情况下,监测硬盘阵列控制器的读写性能值,并根据读写性能值确定控制器缓存的运行状态;在运行状态为开启状态时,生成预设告警信息,并在硬盘阵列控制器再次启动时向显示设备发送预设告警信息,其中,预设告警信息表征硬盘阵列控制器中不存在目标电容,并且控制器缓存处于开启状态。In an exemplary embodiment, when the hard disk array controller is running, it is identified whether there is a target capacitor in the hard disk array controller, wherein the target capacitor is used to supply power to the controller cache in the hard disk array controller; When there is no target capacitor in the controller, monitor the read-write performance value of the hard disk array controller, and determine the operating status of the controller cache according to the read-write performance value; when the operating status is on, generate a preset alarm message, And when the hard disk array controller starts up again, preset warning information is sent to the display device, wherein the preset warning information indicates that there is no target capacitor in the hard disk array controller, and the controller cache is in an open state.

可选地,根据读写性能值确定控制器缓存的运行状态包括:判断读写性能值是否小于预设性能值;在读写性能值大于等于预设性能值的情况下,确定运行状态为关闭状态;在读写性能值小于预设性能值的情况下,确定运行状态为开启状态。Optionally, determining the operating state of the controller cache according to the read-write performance value includes: judging whether the read-write performance value is less than a preset performance value; when the read-write performance value is greater than or equal to the preset performance value, determining that the operating state is off state; when the read/write performance value is less than the preset performance value, determine that the running state is the enabled state.

可选地,在根据读写性能值确定控制器缓存的运行状态之后,该方法还包括:在运行状态为开启状态时,检测硬盘阵列控制器在运行的情况下是否接收到目标电容的安装操作;在硬盘阵列控制器接收到目标电容的安装操作的情况下,发出第一告警信息,并控制硬盘阵列控制器停止运行,其中,第一告警信息表征控制器缓存正在运行。Optionally, after determining the operating state of the controller cache according to the read/write performance value, the method further includes: when the operating state is on, detecting whether the hard disk array controller receives the installation operation of the target capacitor when it is running ; When the hard disk array controller receives the installation operation of the target capacitor, it sends out a first warning message and controls the hard disk array controller to stop running, wherein the first warning message indicates that the controller cache is running.

可选地,在生成预设告警信息之后,该方法还包括:向显示设备发送第一提示信息,其中,第一提示信息用于告知用户控制器缓存的运行状态为开启状态;接收用户通过显示设备返回的第一指令信息,根据第一指令信息将控制器缓存的运行状态变更为关闭状态,并删除预设告警信息。Optionally, after the preset warning information is generated, the method further includes: sending first prompt information to the display device, wherein the first prompt information is used to inform the user that the running state of the controller buffer is enabled; According to the first instruction information returned by the device, the operating state of the controller cache is changed to the closed state according to the first instruction information, and the preset alarm information is deleted.

可选地,在根据读写性能值确定控制器缓存的运行状态之后,该方法还包括:检测控制器缓存的运行状态,得到当前运行状态;在读写性能值小于预设性能值的情况下,判断当前运行状态是否为开启状态,并在当前运行状态为开启状态的情况下,发出第二告警信息,其中,第二告警信息表征控制器缓存异常。Optionally, after determining the operating state of the controller cache according to the read-write performance value, the method further includes: detecting the operating state of the controller cache to obtain the current operating state; when the read-write performance value is less than the preset performance value , judging whether the current running state is on, and sending a second warning message if the current running state is on, wherein the second warning message indicates that the controller cache is abnormal.

可选地,在硬盘阵列控制器再次启动时向显示设备发送预设告警信息之后,该方法还包括:接收用户通过显示设备发送的第二指示信息;在第二指示信息指示用户需要安装目标电容的情况下,关闭控制器缓存;在第二指示信息指示用户不需要安装目标电容的情况下,关闭预设告警信息,并在显示设备中显示硬盘阵列控制器中的显示内容。Optionally, after the hard disk array controller sends preset warning information to the display device when the hard disk array controller starts up again, the method further includes: receiving second instruction information sent by the user through the display device; when the second instruction information indicates that the user needs to install the target capacitor In the case of , turn off the controller cache; in the case of the second instruction information indicating that the user does not need to install the target capacitor, turn off the preset warning information, and display the display content in the hard disk array controller on the display device.

可选地,在关闭控制器缓存之后,该方法还包括:按照预设时间间隔检测目标电容是否成功安装在硬盘阵列控制器上;在目标电容成功安装在硬盘阵列控制器上的情况下,检测开机指令,并在接收到开机指令的情况下,向显示设备发送第二提示信息,其中,第二提示信息表征目标电容安装成功;在目标电容未成功安装在硬盘阵列控制器上的情况下,检测开机指令,并在接收到开机指令的情况下,发出第三告警信息,并禁止硬盘阵列控制器开机,其中,第三告警信息表征目标电容异常安装。Optionally, after closing the controller cache, the method further includes: detecting whether the target capacitor is successfully installed on the hard disk array controller according to a preset time interval; in the case that the target capacitor is successfully installed on the hard disk array controller, detecting Power-on command, and in the case of receiving the power-on command, send a second prompt message to the display device, wherein the second prompt message indicates that the target capacitor is installed successfully; in the case that the target capacitor is not successfully installed on the hard disk array controller, Detecting a power-on command, and sending a third warning message when the power-on command is received, and prohibiting the hard disk array controller from being powered on, wherein the third warning message indicates that the target capacitor is abnormally installed.

根据本申请的另一个实施例,提供了一种告警装置,包括:识别模块,用于在硬盘阵列控制器运行的情况下,识别硬盘阵列控制器中是否存在目标电容,其中,目标电容用于向硬盘阵列控制器中的控制器缓存供电;确定模块,用于在硬盘阵列控制器中不存在目标电容的情况下,监测硬盘阵列控制器的读写性能值,并根据读写性能值确定控制器缓存的运行状态;生成模块,用于在运行状态为开启状态时,生成预设告警信息,并在硬盘阵列控制器再次启动时向显示设备发送预设告警信息,其中,预设告警信息表征硬盘阵列控制器中不存在目标电容,并且控制器缓存处于开启状态。According to another embodiment of the present application, an alarm device is provided, including: an identification module, configured to identify whether there is a target capacitance in the hard disk array controller when the hard disk array controller is running, wherein the target capacitance is used for Supply power to the controller cache in the hard disk array controller; determine the module, used to monitor the read and write performance value of the hard disk array controller when there is no target capacitor in the hard disk array controller, and determine the control according to the read and write performance value The running status of the storage device cache; the generating module is used to generate preset warning information when the running status is on, and send preset warning information to the display device when the hard disk array controller starts up again, wherein the preset warning information represents There is no target capacitor in the HDD array controller, and the controller cache is turned on.

根据本申请的又一个实施例,还提供了一种计算机可读存储介质,计算机可读存储介质中存储有计算机程序,其中,计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。According to yet another embodiment of the present application, a computer-readable storage medium is also provided, and a computer program is stored in the computer-readable storage medium, wherein the computer program is set to execute any one of the above-mentioned method embodiments when running. step.

根据本申请的又一个实施例,还提供了一种电子设备,包括存储器和处理器,存储器中存储有计算机程序,处理器被设置为运行计算机程序以执行上述任一项方法实施例中的步骤。According to yet another embodiment of the present application, there is also provided an electronic device, including a memory and a processor, where a computer program is stored in the memory, and the processor is configured to run the computer program to perform the steps in any one of the above method embodiments .

通过本申请,通过在RAID卡运行的时候识别RAID卡中是否安装目标电容,并在未安装的情况下根据RAID卡的运行性能确定是否需要强制启动RAID卡中的缓存,并在启动RAID卡的缓存后,生成相应的告警信息,从而使得用户再次使用RAID卡的时候,先向用户显示当前缓存的启用状态,从而告知用户在当前状态下不能进行目标电容的安装,进而通过根据缓存的当期状态生成对应的告警信息,直接向用户进行告知,达到了在RAID卡的缓存被强制启用的情况下不会出现向RAID卡中安装目标电容的现象发生的效果。因此,可以解决相关技术中用户在RAID卡的缓存强制开启的状态下安装超级电容,导致RAID卡中的数据被清除的问题。Through this application, by identifying whether the target capacitor is installed in the RAID card when the RAID card is running, and determining whether it is necessary to forcibly start the cache in the RAID card according to the operating performance of the RAID card if it is not installed, and start the RAID card After caching, corresponding alarm information is generated, so that when the user uses the RAID card again, the current cache enablement status is first displayed to the user, thereby informing the user that the target capacitor cannot be installed in the current state, and then according to the current status of the cache Corresponding alarm information is generated, and the user is notified directly, so that the phenomenon of installing the target capacitor in the RAID card does not occur when the cache of the RAID card is forcibly enabled. Therefore, it can solve the problem in the related art that the user installs the supercapacitor when the buffer of the RAID card is forcibly turned on, resulting in the data in the RAID card being cleared.

附图说明Description of drawings

图1是本申请实施例的一种告警方法的移动终端的硬件结构框图;Fig. 1 is the block diagram of the hardware structure of the mobile terminal of a kind of warning method of the embodiment of the present application;

图2是根据本申请实施例的一种告警方法的流程图;Fig. 2 is a flow chart of an alarm method according to an embodiment of the present application;

图3是根据本申请实施例的可选的RAID模块的示意图;FIG. 3 is a schematic diagram of an optional RAID module according to an embodiment of the present application;

图4是根据本申请实施例的一种可选地告警方法的流程图;FIG. 4 is a flow chart of an optional alarm method according to an embodiment of the present application;

图5是根据本申请实施例的一种告警装置的示意图。Fig. 5 is a schematic diagram of an alarm device according to an embodiment of the present application.

具体实施方式Detailed ways

下文中将参考附图并结合实施例来详细说明本申请的实施例。Embodiments of the present application will be described in detail below with reference to the drawings and in combination with the embodiments.

需要说明的是,本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It should be noted that the terms "first" and "second" in the description and claims of the present application and the above drawings are used to distinguish similar objects, but not necessarily used to describe a specific sequence or sequence.

本申请实施例中所提供的方法实施例可以在移动终端(电子设备)、计算机终端或者类似的运算装置中执行。以运行在移动终端上为例,图1是本申请实施例的一种告警方法的移动终端的硬件结构框图。如图1所示,移动终端可以包括一个或多个(图1中仅示出一个)处理器102(处理器102可以包括但不限于微处理器MCU或可编程逻辑器件FPGA等的处理装置)和用于存储数据的存储器104,其中,上述移动终端还可以包括用于通信功能的传输设备106以及输入输出设备108。本领域普通技术人员可以理解,图1所示的结构仅为示意,其并不对上述移动终端的结构造成限定。例如,移动终端还可包括比图1中所示更多或者更少的组件,或者具有与图1所示不同的配置。The method embodiments provided in the embodiments of the present application may be executed in mobile terminals (electronic devices), computer terminals or similar computing devices. Taking running on a mobile terminal as an example, FIG. 1 is a block diagram of a hardware structure of a mobile terminal according to an alarm method according to an embodiment of the present application. As shown in Figure 1, the mobile terminal may include one or more (only one is shown in Figure 1) processors 102 (processors 102 may include but not limited to processing devices such as microprocessor MCU or programmable logic device FPGA, etc.) and amemory 104 for storing data, wherein the above-mentioned mobile terminal may also include atransmission device 106 and an input and output device 108 for communication functions. Those skilled in the art can understand that the structure shown in FIG. 1 is only for illustration, and it does not limit the structure of the above mobile terminal. For example, the mobile terminal may also include more or fewer components than those shown in FIG. 1 , or have a different configuration from that shown in FIG. 1 .

存储器104可用于存储计算机程序,例如,应用软件的软件程序以及模块,如本申请实施例中的告警方法对应的计算机程序,处理器102通过运行存储在存储器104内的计算机程序,从而执行各种功能应用以及数据处理,即实现上述的方法。存储器104可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器104可进一步包括相对于处理器102远程设置的存储器,这些远程存储器可以通过网络连接至移动终端。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。Thememory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the alarm method in the embodiment of the present application. The processor 102 executes various Functional application and data processing are to realize the above-mentioned method. Thememory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, thememory 104 may further include a memory that is remotely located relative to the processor 102, and these remote memories may be connected to the mobile terminal through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

传输设备106用于经由一个网络接收或者发送数据。上述的网络具体实例可包括移动终端的通信供应商提供的无线网络。在一个实例中,传输设备106包括一个网络适配器(Network Interface Controller,简称为NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,传输设备106可以为射频(Radio Frequency,简称为RF)模块,其用于通过无线方式与互联网进行通讯。Transmission device 106 is used to receive or transmit data via a network. The specific example of the above network may include a wireless network provided by the communication provider of the mobile terminal. In one example, thetransmission device 106 includes a network interface controller (NIC for short), which can be connected to other network devices through a base station so as to communicate with the Internet. In an example, thetransmission device 106 may be a radio frequency (Radio Frequency, RF for short) module, which is used to communicate with the Internet in a wireless manner.

在本实施例中提供了一种运行于上述移动终端(电子设备)的方法,图2是根据本申请实施例的一种告警方法的流程图,如图2所示,该流程包括如下步骤:In this embodiment, a method for operating on the above-mentioned mobile terminal (electronic device) is provided. FIG. 2 is a flow chart of an alarm method according to an embodiment of the present application. As shown in FIG. 2, the process includes the following steps:

步骤S202,在硬盘阵列控制器运行的情况下,识别硬盘阵列控制器中是否存在目标电容,其中,目标电容用于向硬盘阵列控制器中的控制器缓存供电。Step S202, when the hard disk array controller is running, identify whether there is a target capacitor in the hard disk array controller, wherein the target capacitor is used to supply power to the controller cache in the hard disk array controller.

需要说明的是,图3是根据本申请实施例的可选的RAID模块的示意图,如图3所示,硬盘阵列控制器也即RAID卡,与BIOS模块和背板连接,并通过背板连接RAID阵列,其中,BIOS(Basic Input Output System基本输入输出系统)模块可用于确定RAID的运行读写性能以及缓存的启用情况,以及根据缓存的使用情况生成告警信息。It should be noted that FIG. 3 is a schematic diagram of an optional RAID module according to the embodiment of the present application. As shown in FIG. RAID array, wherein, the BIOS (Basic Input Output System) module can be used to determine the operation read and write performance of the RAID and the enablement of the cache, and generate alarm information according to the usage of the cache.

具体的,目标电容也即Super Cap(超级电容),可以给RAID卡的缓存进行供电,在RAID卡运行的时候,会通过背板向RAID阵列中进行数据的读写操作,从而进行数据的记录,在RAID卡与其余设备进行数据交互的时候,可以在存在目标电容的情况下,通过目标缓存提高RAID卡的数据读写效率,但是,由于在RAID卡的正常使用流程下,开启缓存需要保证RAID卡中存在目标电容,因此,在RAID卡运行的时候,首先需要确定RAID卡中是否安装目标电容,在RAID卡中存在目标电容的情况下,则无需进行后续监控流程,RAID卡中的缓存可以随着RAID卡的读写性能进行开启和关闭,均不会对RAID阵列中的存储信息产生影响。Specifically, the target capacitor is the Super Cap (super capacitor), which can supply power to the cache of the RAID card. When the RAID card is running, it will read and write data to the RAID array through the backplane to record the data. , when the RAID card interacts with other devices, the data reading and writing efficiency of the RAID card can be improved through the target cache in the presence of the target capacitor. However, due to the normal use process of the RAID card, the cache needs to be enabled There is a target capacitor in the RAID card. Therefore, when the RAID card is running, it is first necessary to determine whether the target capacitor is installed in the RAID card. If there is a target capacitor in the RAID card, there is no need for subsequent monitoring procedures. It can be turned on and off according to the read and write performance of the RAID card, and will not affect the storage information in the RAID array.

步骤S204,在硬盘阵列控制器中不存在目标电容的情况下,监测硬盘阵列控制器的读写性能值,并根据读写性能值确定控制器缓存的运行状态。Step S204, if the target capacitor does not exist in the hard disk array controller, monitor the read/write performance value of the hard disk array controller, and determine the operating status of the controller cache according to the read/write performance value.

具体的,在识别到RAID卡中不存在目标电容的情况下,需要检测RAID卡的读写性能,并在读写性能过低的时候通过强制开启控制器缓存的方式改变控制器缓存的运行状态,从而保证RAID卡的读写性能能够达到使用要求。Specifically, when it is recognized that the target capacitor does not exist in the RAID card, it is necessary to detect the read and write performance of the RAID card, and change the operating status of the controller cache by forcibly opening the controller cache when the read and write performance is too low , so as to ensure that the read and write performance of the RAID card can meet the usage requirements.

步骤S206,在运行状态为开启状态时,生成预设告警信息,并在硬盘阵列控制器再次启动时向显示设备发送预设告警信息,其中,预设告警信息表征硬盘阵列控制器中不存在目标电容,并且控制器缓存处于开启状态。Step S206, when the running state is on, generate preset alarm information, and send preset alarm information to the display device when the hard disk array controller restarts, wherein the preset alarm information indicates that there is no target in the hard disk array controller capacitor, and the controller cache is turned on.

具体的,在将RAID卡中的缓存开启后,需要在BIOS中生成预设告警信息,从而使得用户在再次使用RAID卡的时候,可以在开启RAID卡时,看到明显的告警信息,告知RAID卡在不存在目标电容的情况下仍然开启了控制器缓存,进而可以在用户要进行目标电容的安装之前,及时的提醒用户需要进行控制器缓存的关闭,并在关闭控制器缓存后再将目标电容进行安装,从而保证了RAID阵列中的数据不会丢失。Specifically, after the cache in the RAID card is enabled, preset alarm information needs to be generated in the BIOS, so that when the user uses the RAID card again, he can see the obvious alarm information when the RAID card is turned on, and inform the RAID controller. The card still turns on the controller cache when the target capacitor does not exist, and then it can remind the user in time that the controller cache needs to be turned off before the user installs the target capacitor, and the target can be turned off after the controller cache is turned off. Capacitors are installed to ensure that data in the RAID array will not be lost.

本申请通过步骤:在硬盘阵列控制器运行的情况下,识别硬盘阵列控制器中是否存在目标电容,其中,目标电容用于向硬盘阵列控制器中的控制器缓存供电;在硬盘阵列控制器中不存在目标电容的情况下,监测硬盘阵列控制器的读写性能值,并根据读写性能值确定控制器缓存的运行状态;在运行状态为开启状态时,生成预设告警信息,并在硬盘阵列控制器再次启动时向显示设备发送预设告警信息,其中,预设告警信息表征硬盘阵列控制器中不存在目标电容,并且控制器缓存处于开启状态。通过在RAID卡运行的时候识别RAID卡中是否安装目标电容,并在未安装的情况下根据RAID卡的运行性能确定是否需要强制启动RAID卡中的缓存,并在启动RAID卡的缓存后,生成相应的告警信息,从而使得用户再次使用RAID卡的时候,先向用户显示当前缓存的启用状态,从而告知用户在当前状态下不能进行目标电容的安装,进而通过根据缓存的当期状态生成对应的告警信息,直接向用户进行告知,达到了在RAID卡的缓存被强制启用的情况下不会出现向RAID卡中安装目标电容的现象发生的效果。因此,可以解决相关技术中用户在RAID卡的缓存强制开启的状态下安装超级电容,导致RAID卡中的数据被清除的问题。The application adopts the steps of: identifying whether there is a target capacitor in the hard disk array controller when the hard disk array controller is running, wherein the target capacitor is used to supply power to the controller buffer in the hard disk array controller; in the hard disk array controller When there is no target capacitor, monitor the read and write performance value of the hard disk array controller, and determine the operating status of the controller cache according to the read and write performance value; when the operating status is on, generate a preset alarm message and When the array controller starts up again, preset alarm information is sent to the display device, wherein the preset alarm information indicates that there is no target capacitor in the hard disk array controller, and the controller cache is in an open state. Identify whether the target capacitor is installed in the RAID card when the RAID card is running, and determine whether to forcibly start the cache in the RAID card according to the operating performance of the RAID card if it is not installed, and after starting the cache of the RAID card, generate Corresponding alarm information, so that when the user uses the RAID card again, the current cache enablement status is first displayed to the user, thereby informing the user that the target capacitor cannot be installed in the current state, and then the corresponding alarm is generated according to the current status of the cache The information is directly notified to the user, and the phenomenon of installing the target capacitor in the RAID card does not occur when the cache of the RAID card is forcibly enabled. Therefore, it can solve the problem in the related art that the user installs the supercapacitor when the buffer of the RAID card is forcibly turned on, resulting in the data in the RAID card being cleared.

其中,上述步骤的执行主体可以为移动终端(电子设备)、计算机终端或者类似的运算装置等,但不限于此。Wherein, the execution subject of the above steps may be a mobile terminal (electronic device), a computer terminal or a similar computing device, etc., but is not limited thereto.

可选地,根据读写性能值确定控制器缓存的运行状态包括:判断读写性能值是否小于预设性能值;在读写性能值大于等于预设性能值的情况下,确定运行状态为关闭状态;在读写性能值小于预设性能值的情况下,确定运行状态为开启状态。Optionally, determining the operating state of the controller cache according to the read-write performance value includes: judging whether the read-write performance value is less than a preset performance value; when the read-write performance value is greater than or equal to the preset performance value, determining that the operating state is off state; when the read/write performance value is less than the preset performance value, determine that the running state is the enabled state.

具体的,在RAID卡的读写性能值小于预设性能值的情况下,需要开启控制器缓存,从而提高RAID卡的读写性能值,保证RAID卡可以顺利的完成数据读写的操作,并且在RAID卡的读写性能值大于等于预设性能值的情况下,表明在不开启控制器缓存的情况下,仍然可以顺利的完成数据读写的操作,此时,可以及时的将RAID卡中的控制器缓存进行关闭,并在关闭后可以随时进行目标电容的安装,保证了不会发生RAID阵列中的数据丢失的现象。Specifically, when the read-write performance value of the RAID card is less than the preset performance value, the controller cache needs to be enabled to improve the read-write performance value of the RAID card and ensure that the RAID card can successfully complete data read-write operations, and When the read and write performance value of the RAID card is greater than or equal to the preset performance value, it indicates that the data read and write operations can still be successfully completed without enabling the controller cache. The cache of the controller is closed, and the target capacitor can be installed at any time after closing, so as to ensure that the data loss in the RAID array will not occur.

可选地,在根据读写性能值确定控制器缓存的运行状态之后,该方法还包括:在运行状态为开启状态时,检测硬盘阵列控制器在运行的情况下是否接收到目标电容的安装操作;在硬盘阵列控制器接收到目标电容的安装操作的情况下,发出第一告警信息,并控制硬盘阵列控制器停止运行,其中,第一告警信息表征控制器缓存正在运行。Optionally, after determining the operating state of the controller cache according to the read/write performance value, the method further includes: when the operating state is on, detecting whether the hard disk array controller receives the installation operation of the target capacitor when it is running ; When the hard disk array controller receives the installation operation of the target capacitor, it sends out a first warning message and controls the hard disk array controller to stop running, wherein the first warning message indicates that the controller cache is running.

具体的,在RAID卡中的控制器缓存为开启状态的情况下,由于BIOS只能在下次开启RAID卡的时候才可以进行告警信息的显示,因此,在RAID卡的当前运行状态下,用户无法知道缓存是否正在启用,因此,用户可能会在当前缓存正在启用的时候进行目标电容的安装操作,此时,需要在接收到目标电容的安装操作的时候,发出第一告警信息,并使得RAID卡停止运行,达到了即可以及时的提醒用户RAID卡中的控制器缓存正在运行,又可以及时的停止RAID卡的运行,保证了RAID阵列中的数据不会丢失,而是按照关机的流程进行数据存储。进而达到了保证RAID阵列中的数据不会丢失的效果。Specifically, when the controller cache in the RAID card is turned on, the BIOS can only display the alarm information when the RAID card is turned on next time. Therefore, in the current running state of the RAID card, the user cannot Know whether the cache is enabled, therefore, the user may install the target capacitor when the current cache is enabled. At this time, when receiving the installation operation of the target capacitor, it is necessary to send the first warning message and make the RAID card Stop running, when it is reached, the user can be reminded in time that the controller cache in the RAID card is running, and the running of the RAID card can be stopped in time to ensure that the data in the RAID array will not be lost, but the data will be processed according to the shutdown process storage. Furthermore, the effect of ensuring that the data in the RAID array will not be lost is achieved.

可选地,在生成预设告警信息之后,该方法还包括:向显示设备发送第一提示信息,其中,第一提示信息用于告知用户控制器缓存的运行状态为开启状态;接收用户通过显示设备返回的第一指令信息,根据第一指令信息将控制器缓存的运行状态变更为关闭状态,并删除预设告警信息。Optionally, after the preset warning information is generated, the method further includes: sending first prompt information to the display device, wherein the first prompt information is used to inform the user that the running state of the controller buffer is enabled; According to the first instruction information returned by the device, the operating state of the controller cache is changed to the closed state according to the first instruction information, and the preset alarm information is deleted.

具体的,在识别到当前状态下RAID卡中的控制器缓存正在运行时,可以通过BIOS向显示设备发送提示信息,从而提示用户控制器缓存处于开启状态,此时,用户可以根据当前需要进行信息反馈,并在用户反馈第一指令信息的情况下,证明用户需要关闭控制器缓存,从而保证不会出现在不存在目标电容的情况下缓存还在运行的情况,此时,由于已经根据用户的指令信息将控制器缓存进行关闭,因此,可以将BIOS中生成的预设告警信息进行删除,进而在用户下次开启RAID卡的时候,无需向用户进行缓存状态的显示,从而提高了RAID卡的自动化程度。Specifically, when it is recognized that the controller cache in the RAID card is running in the current state, a prompt message can be sent to the display device through the BIOS, thereby prompting the user that the controller cache is in the open state. feedback, and when the user feeds back the first instruction information, it proves that the user needs to turn off the controller cache, so as to ensure that the cache is still running when there is no target capacitor. At this time, due to the user’s The command information will close the controller cache, so the preset alarm information generated in the BIOS can be deleted, and then when the user turns on the RAID card next time, there is no need to display the cache status to the user, thereby improving the RAID card. degree of automation.

可选地,在根据读写性能值确定控制器缓存的运行状态之后,该方法还包括:检测控制器缓存的运行状态,得到当前运行状态;在读写性能值小于预设性能值的情况下,判断当前运行状态是否为开启状态,并在当前运行状态为开启状态的情况下,发出第二告警信息,其中,第二告警信息表征控制器缓存异常。Optionally, after determining the operating state of the controller cache according to the read-write performance value, the method further includes: detecting the operating state of the controller cache to obtain the current operating state; when the read-write performance value is less than the preset performance value , judging whether the current running state is on, and sending a second warning message if the current running state is on, wherein the second warning message indicates that the controller cache is abnormal.

具体的,在RAID卡中不存在目标电容的情况下,并且在RAID卡的读写性能值小于预设性能值的情况下,此时,控制器缓存应该处于关闭状态,因此,如果检测到当前时刻控制器缓存处于运行状态的情况下,需要发出第二告警信息,从而提示用户控制器缓存在应该关闭的时候仍处于开启状态,进而保证了用户可以及时的对RAID卡中的控制器缓存进行手动关闭或是进行异常修复。Specifically, when there is no target capacitor in the RAID card, and when the read/write performance value of the RAID card is less than the preset performance value, at this time, the controller cache should be in the closed state. Therefore, if it is detected that the current When the controller cache is in the running state at all times, a second alarm message needs to be sent to remind the user that the controller cache is still in the open state when it should be closed, thereby ensuring that the user can timely update the controller cache in the RAID card. Close it manually or perform abnormal repairs.

可选地,在硬盘阵列控制器再次启动时向显示设备发送预设告警信息之后,该方法还包括:接收用户通过显示设备发送的第二指示信息;在第二指示信息指示用户需要安装目标电容的情况下,关闭控制器缓存;在第二指示信息指示用户不需要安装目标电容的情况下,关闭预设告警信息,并在显示设备中显示硬盘阵列控制器中的显示内容。Optionally, after the hard disk array controller sends preset warning information to the display device when the hard disk array controller starts up again, the method further includes: receiving second instruction information sent by the user through the display device; when the second instruction information indicates that the user needs to install the target capacitor In the case of , turn off the controller cache; in the case of the second instruction information indicating that the user does not need to install the target capacitor, turn off the preset warning information, and display the display content in the hard disk array controller on the display device.

具体的,在向显示设备发送第二指示信息后,需要接收到用户发送的第二指示信息,从而确定用户需要进行目标电容的安装,或是不进行目标电容的安装,直接进行开机操作。在需要进行目标电容的安装的情况下,需要关闭RAID卡中的控制器缓存,并在控制器缓存关闭后,再进行目标电容的安装流程。在用户不需要安装目标电容的情况下,表明RAID卡可以直接开启,此时,可以将显示设备中的预设告警信息关闭,并直接使用RAID卡。Specifically, after sending the second instruction information to the display device, it is necessary to receive the second instruction information sent by the user, so as to determine that the user needs to install the target capacitor, or directly perform the boot operation without installing the target capacitor. In the case where the target capacitor needs to be installed, the controller cache in the RAID card needs to be turned off, and after the controller cache is turned off, the target capacitor installation process is performed. In the case that the user does not need to install the target capacitor, it indicates that the RAID card can be turned on directly. At this time, the preset alarm information in the display device can be turned off, and the RAID card can be used directly.

可选地,在关闭控制器缓存之后,该方法还包括:按照预设时间间隔检测目标电容是否成功安装在硬盘阵列控制器上;在目标电容成功安装在硬盘阵列控制器上的情况下,检测开机指令,并在接收到开机指令的情况下,向显示设备发送第二提示信息,其中,第二提示信息表征目标电容安装成功;在目标电容未成功安装在硬盘阵列控制器上的情况下,检测开机指令,并在接收到开机指令的情况下,发出第三告警信息,并禁止硬盘阵列控制器开机,其中,第三告警信息表征目标电容异常安装。Optionally, after closing the controller cache, the method further includes: detecting whether the target capacitor is successfully installed on the hard disk array controller according to a preset time interval; in the case that the target capacitor is successfully installed on the hard disk array controller, detecting Power-on command, and in the case of receiving the power-on command, send a second prompt message to the display device, wherein the second prompt message indicates that the target capacitor is installed successfully; in the case that the target capacitor is not successfully installed on the hard disk array controller, Detecting a power-on command, and sending a third warning message when the power-on command is received, and prohibiting the hard disk array controller from being powered on, wherein the third warning message indicates that the target capacitor is abnormally installed.

具体的,在关闭控制器缓存后,即可在RAID卡中进行目标电容的安装,并在安装目标电容后,检测开机指令,由于在安装目标电容的时候,需要关闭RAID卡,因此,需要进行重新开机,并检测目标电容是否成功安装,在成功安装的情况下,向显示设备发送第二提示信息,从而告知用户目标电容已经成功安装,在目标电容未成功安装的情况下的情况下,需要在用户开启RAID卡的时候,向显示设备发送告警信息,从而告知用户目标电容的安装出现异常,需要对目标电容进行检查。Specifically, after the controller cache is turned off, the target capacitor can be installed in the RAID card, and after the target capacitor is installed, the boot command is detected. Since the RAID card needs to be turned off when the target capacitor is installed, it is necessary to perform Restart the machine and check whether the target capacitor is installed successfully. If it is successfully installed, send a second prompt message to the display device to inform the user that the target capacitor has been successfully installed. If the target capacitor is not successfully installed, it needs to When the user turns on the RAID card, an alarm message is sent to the display device, thereby informing the user that the installation of the target capacitor is abnormal, and the target capacitor needs to be checked.

图4是根据本申请实施例的一种可选地告警方法的流程图,如图4所示,首先,需要确定用户服务器上的RAID卡上是否存在超级电容,在RAID卡上不存在超级电容的情况下,确定RAID卡的读写性能值是否大于预设性能值,并在读写性能值小于预设性能值的情况下,将RAID卡中的缓存设定为强制开启模式,并向BIOS发送缓存强制开启的信息,此时,在BIOS中生成缓存已经强制开启的告警信息,并在用户再次使用服务器的RAID卡的时候,向用户显示告警信息,例如:如果需要加装超级电容,请关闭RAID卡的缓存后进行操作,如果正常重启机器,请忽略此信息继续。从而通过在RAID卡运行的时候识别RAID卡中是否安装目标电容,并在未安装的情况下根据RAID卡的运行性能确定是否需要强制启动RAID卡中的缓存,并在启动RAID卡的缓存后,生成相应的告警信息,从而使得用户再次使用RAID卡的时候,先向用户显示当前缓存的启用状态,从而告知用户在当前状态下不能进行目标电容的安装,进而通过根据缓存的当期状态生成对应的告警信息,直接向用户进行告知,达到了在RAID卡的缓存被强制启用的情况下不会出现向RAID卡中安装目标电容的现象发生的效果。因此,可以解决相关技术中用户在RAID卡的缓存强制开启的状态下安装超级电容,导致RAID卡中的数据被清除的问题。Fig. 4 is a flow chart of an optional alarm method according to an embodiment of the present application. As shown in Fig. 4, first, it is necessary to determine whether there is a supercapacitor on the RAID card on the user server, and there is no supercapacitor on the RAID card In the case of , determine whether the read and write performance value of the RAID card is greater than the preset performance value, and if the read and write performance value is less than the preset performance value, set the cache in the RAID card to the forced open mode, and report to the BIOS Send the information that the cache is forcibly enabled. At this time, generate an alarm message that the cache has been forcibly enabled in the BIOS, and display the alarm information to the user when the user uses the server’s RAID card again. For example: if you need to install a super capacitor, please Close the cache of the RAID card before proceeding. If the machine restarts normally, please ignore this message and continue. Therefore, by identifying whether the target capacitor is installed in the RAID card when the RAID card is running, and determining whether it is necessary to forcibly start the cache in the RAID card according to the operating performance of the RAID card if it is not installed, and after starting the cache of the RAID card, Generate corresponding alarm information, so that when the user uses the RAID card again, the current cache enablement status is first displayed to the user, thereby informing the user that the target capacitor cannot be installed in the current state, and then by generating the corresponding according to the current status of the cache The alarm information is directly notified to the user, so that the phenomenon of installing the target capacitor in the RAID card will not occur when the cache of the RAID card is forcibly enabled. Therefore, it can solve the problem in the related art that the user installs the supercapacitor when the buffer of the RAID card is forcibly turned on, resulting in the data in the RAID card being cleared.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。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 implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the technical solution of the present application can be embodied in the form of a software product in essence or the part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, disk, CD) contains several instructions to enable a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present application.

在本实施例中还提供了一种告警装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In this embodiment, an alarm device is also provided, which is used to implement the above embodiments and preferred implementation modes, and what has been described will not be repeated. As used below, the term "module" may be a combination of software and/or hardware that realizes a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementations in hardware, or a combination of software and hardware are also possible and contemplated.

图5是根据本申请实施例的一种告警装置的示意图,如图5所示,该装置包括:识别模块51,确定模块52,生成模块53。FIG. 5 is a schematic diagram of an alarm device according to an embodiment of the present application. As shown in FIG. 5 , the device includes: anidentification module 51 , adetermination module 52 , and ageneration module 53 .

识别模块51,用于在硬盘阵列控制器运行的情况下,识别硬盘阵列控制器中是否存在目标电容,其中,目标电容用于向硬盘阵列控制器中的控制器缓存供电。Theidentification module 51 is configured to identify whether there is a target capacitor in the hard disk array controller when the hard disk array controller is running, wherein the target capacitor is used to supply power to the controller cache in the hard disk array controller.

确定模块52,用于在硬盘阵列控制器中不存在目标电容的情况下,监测硬盘阵列控制器的读写性能值,并根据读写性能值确定控制器缓存的运行状态。The determiningmodule 52 is configured to monitor the read/write performance value of the hard disk array controller when there is no target capacitor in the hard disk array controller, and determine the operating status of the controller cache according to the read/write performance value.

生成模块53,用于在运行状态为开启状态时,生成预设告警信息,并在硬盘阵列控制器再次启动时向显示设备发送预设告警信息,其中,预设告警信息表征硬盘阵列控制器中不存在目标电容,并且控制器缓存处于开启状态。The generatingmodule 53 is configured to generate preset alarm information when the running state is on, and send the preset alarm information to the display device when the hard disk array controller restarts, wherein the preset alarm information represents No target capacitor present and controller cache is on.

本申请实施例提供的告警装置,通过识别模块51在硬盘阵列控制器运行的情况下,识别硬盘阵列控制器中是否存在目标电容,其中,目标电容用于向硬盘阵列控制器中的控制器缓存供电;确定模块52在硬盘阵列控制器中不存在目标电容的情况下,监测硬盘阵列控制器的读写性能值,并根据读写性能值确定控制器缓存的运行状态;生成模块53在运行状态为开启状态时,生成预设告警信息,并在硬盘阵列控制器再次启动时向显示设备发送预设告警信息,其中,预设告警信息表征硬盘阵列控制器中不存在目标电容,并且控制器缓存处于开启状态。通过在RAID卡运行的时候识别RAID卡中是否安装目标电容,并在未安装的情况下根据RAID卡的运行性能确定是否需要强制启动RAID卡中的缓存,并在启动RAID卡的缓存后,生成相应的告警信息,从而使得用户再次使用RAID卡的时候,先向用户显示当前缓存的启用状态,从而告知用户在当前状态下不能进行目标电容的安装,进而通过根据缓存的当期状态生成对应的告警信息,直接向用户进行告知,达到了在RAID卡的缓存被强制启用的情况下不会出现向RAID卡中安装目标电容的现象发生的效果。因此,可以解决相关技术中用户在RAID卡的缓存强制开启的状态下安装超级电容,导致RAID卡中的数据被清除的问题。The alarm device provided in the embodiment of the present application uses theidentification module 51 to identify whether there is a target capacitance in the hard disk array controller under the condition that the hard disk array controller is running, wherein the target capacitance is used to buffer the hard disk array controller Power supply; thedetermination module 52 monitors the read/write performance value of the hard disk array controller when there is no target capacitor in the hard disk array controller, and determines the operating state of the controller cache according to the read/write performance value; the generatingmodule 53 is in the operating state When it is in the open state, a preset warning message is generated, and the preset warning message is sent to the display device when the hard disk array controller restarts, wherein the preset warning message indicates that there is no target capacitor in the hard disk array controller, and the controller caches is on. Identify whether the target capacitor is installed in the RAID card when the RAID card is running, and determine whether to forcibly start the cache in the RAID card according to the operating performance of the RAID card if it is not installed, and after starting the cache of the RAID card, generate Corresponding alarm information, so that when the user uses the RAID card again, the current cache enablement status is first displayed to the user, thereby informing the user that the target capacitor cannot be installed in the current state, and then the corresponding alarm is generated according to the current status of the cache The information is directly notified to the user, and the phenomenon of installing the target capacitor in the RAID card does not occur when the cache of the RAID card is forcibly enabled. Therefore, it can solve the problem in the related art that the user installs the supercapacitor when the buffer of the RAID card is forcibly turned on, resulting in the data in the RAID card being cleared.

可选地,在本申请实施例提供的告警装置中,确定模块52包括:判断子模块,用于判断读写性能值是否小于预设性能值;第一确定子模块,用于在读写性能值大于等于预设性能值的情况下,确定运行状态为关闭状态;第二确定子模块,用于在读写性能值小于预设性能值的情况下,确定运行状态为开启状态。Optionally, in the alarm device provided in the embodiment of the present application, the determiningmodule 52 includes: a judging submodule, used to judge whether the read-write performance value is less than a preset performance value; When the value is greater than or equal to the preset performance value, determine that the running state is the closed state; the second determining submodule is used to determine that the running state is the open state when the read and write performance value is less than the preset performance value.

可选地,在本申请实施例提供的告警装置中,该装置还包括:第一检测模块,用于在运行状态为开启状态时,检测硬盘阵列控制器在运行的情况下是否接收到目标电容的安装操作;第一发送模块,用于在硬盘阵列控制器接收到目标电容的安装操作的情况下,发出第一告警信息,并控制硬盘阵列控制器停止运行,其中,第一告警信息表征控制器缓存正在运行。Optionally, in the alarm device provided in the embodiment of the present application, the device further includes: a first detection module, configured to detect whether the hard disk array controller receives the target capacitance when the operating state is in the on state installation operation; the first sending module is configured to send the first warning information when the hard disk array controller receives the installation operation of the target capacitor, and control the hard disk array controller to stop running, wherein the first warning information represents the control server cache is running.

可选地,在本申请实施例提供的告警装置中,该装置还包括:第二发送模块,用于向显示设备发送第一提示信息,其中,第一提示信息用于告知用户控制器缓存的运行状态为开启状态;第一接收模块,用于接收用户通过显示设备返回的第一指令信息,根据第一指令信息将控制器缓存的运行状态变更为关闭状态,并删除预设告警信息。Optionally, in the alarm device provided in the embodiment of the present application, the device further includes: a second sending module, configured to send the first prompt information to the display device, wherein the first prompt information is used to inform the user of the The running state is on; the first receiving module is used to receive the first instruction information returned by the user through the display device, change the running state of the controller buffer to the off state according to the first instruction information, and delete the preset alarm information.

可选地,在本申请实施例提供的告警装置中,该装置还包括:第二检测模块,用于检测控制器缓存的运行状态,得到当前运行状态;第三发送模块,用于在读写性能值小于预设性能值的情况下,判断当前运行状态是否为开启状态,并在当前运行状态为开启状态的情况下,发出第二告警信息,其中,第二告警信息表征控制器缓存异常。Optionally, in the alarm device provided in the embodiment of the present application, the device further includes: a second detection module, configured to detect the operating state of the controller cache, to obtain the current operating state; a third sending module, configured to read and write When the performance value is less than the preset performance value, it is judged whether the current running state is on, and if the current running state is on, a second warning message is issued, wherein the second warning message indicates that the controller cache is abnormal.

可选地,在本申请实施例提供的告警装置中,该装置还包括:第二接收模块,用于接收用户通过显示设备发送的第二指示信息;第一关闭模块,用于在第二指示信息指示用户需要安装目标电容的情况下,关闭控制器缓存;第二关闭模块,用于在第二指示信息指示用户不需要安装目标电容的情况下,关闭预设告警信息,并在显示设备中显示硬盘阵列控制器中的显示内容。Optionally, in the alarm device provided in the embodiment of the present application, the device further includes: a second receiving module, configured to receive the second instruction information sent by the user through the display device; a first closing module, configured to When the information indicates that the user needs to install the target capacitor, turn off the controller cache; the second closing module is used to turn off the preset warning information when the second instruction information indicates that the user does not need to install the target capacitor, and display it in the display device Displays the display contents in the HDD array controller.

可选地,在本申请实施例提供的告警装置中,该装置还包括:第三检测模块,用于按照预设时间间隔检测目标电容是否成功安装在硬盘阵列控制器上;第四检测模块,用于在目标电容成功安装在硬盘阵列控制器上的情况下,检测开机指令,并在接收到开机指令的情况下,向显示设备发送第二提示信息,其中,第二提示信息表征目标电容安装成功;第五检测模块,用于在目标电容未成功安装在硬盘阵列控制器上的情况下,检测开机指令,并在接收到开机指令的情况下,发出第三告警信息,并禁止硬盘阵列控制器开机,其中,第三告警信息表征目标电容异常安装。Optionally, in the alarm device provided in the embodiment of the present application, the device further includes: a third detection module, configured to detect whether the target capacitor is successfully installed on the hard disk array controller according to a preset time interval; a fourth detection module, It is used to detect a power-on command when the target capacitor is successfully installed on the hard disk array controller, and to send a second prompt message to the display device when the power-on command is received, wherein the second prompt message indicates that the target capacitor is installed Success; the fifth detection module is used to detect the power-on command when the target capacitor is not successfully installed on the hard disk array controller, and when the power-on command is received, send the third warning message and prohibit the hard disk array control The device is turned on, wherein the third warning message indicates that the target capacitor is installed abnormally.

需要说明的是,上述各个模块是可以通过软件或硬件来实现的,上述模块均位于同一处理器中;或者,上述各个模块以任意组合的形式分别位于不同的处理器中。It should be noted that each of the above-mentioned modules can be realized by software or hardware, and all of the above-mentioned modules are located in the same processor; or, the above-mentioned various modules are respectively located in different processors in any combination.

本申请的实施例还提供了一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,其中,该计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。Embodiments of the present application also provide a computer-readable storage medium, in which a computer program is stored, wherein the computer program is set to execute the steps in any one of the above method embodiments when running.

在一个示例性实施例中,上述计算机可读存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储计算机程序的介质。In an exemplary embodiment, the above-mentioned computer-readable storage medium may include but not limited to: U disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM) , mobile hard disk, magnetic disk or optical disk and other media that can store computer programs.

本申请的实施例还提供了一种电子设备,包括存储器和处理器,该存储器中存储有计算机程序,该处理器被设置为运行计算机程序以执行上述任一项方法实施例中的步骤。An embodiment of the present application also provides an electronic device, including a memory and a processor, where a computer program is stored in the memory, and the processor is configured to run the computer program to perform the steps in any one of the above method embodiments.

在一个示例性实施例中,上述电子设备还可以包括传输设备以及输入输出设备,其中,该传输设备和上述处理器连接,该输入输出设备和上述处理器连接。In an exemplary embodiment, the electronic device may further include a transmission device and an input and output device, wherein the transmission device is connected to the processor, and the input and output device is connected to the processor.

本实施例中的具体示例可以参考上述实施例及示例性实施方式中所描述的示例,本实施例在此不再赘述。For specific examples in this embodiment, reference may be made to the examples described in the foregoing embodiments and exemplary implementation manners, and details will not be repeated here in this embodiment.

显然,本领域的技术人员应该明白,上述的本申请的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本申请不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that each module or each step of the above-mentioned application can be realized by a general-purpose computing device, and they can be concentrated on a single computing device, or distributed in a network composed of multiple computing devices In fact, they can be implemented in program code executable by a computing device, and thus, they can be stored in a storage device to be executed by a computing device, and in some cases, can be executed in an order different from that shown here. Or described steps, or they are fabricated into individual integrated circuit modules, or multiple modules or steps among them are fabricated into a single integrated circuit module for implementation. As such, the present application is not limited to any specific combination of hardware and software.

以上所述仅为本申请的优选实施例而已,并不用于限制本申请,对于本领域的技术人员来说,本申请可以有各种更改和变化。凡在本申请的原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above descriptions are only preferred embodiments of the present application, and are not intended to limit the present application. For those skilled in the art, there may be various modifications and changes in the present application. Any modifications, equivalent replacements, improvements, etc. made within the principles of this application shall be included within the scope of protection of this application.

Claims (10)

CN202211718780.4A2022-12-292022-12-29 Alarm method, device, storage medium and electronic equipmentPendingCN116244154A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202211718780.4ACN116244154A (en)2022-12-292022-12-29 Alarm method, device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202211718780.4ACN116244154A (en)2022-12-292022-12-29 Alarm method, device, storage medium and electronic equipment

Publications (1)

Publication NumberPublication Date
CN116244154Atrue CN116244154A (en)2023-06-09

Family

ID=86628791

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202211718780.4APendingCN116244154A (en)2022-12-292022-12-29 Alarm method, device, storage medium and electronic equipment

Country Status (1)

CountryLink
CN (1)CN116244154A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN118860747A (en)*2024-09-242024-10-29山东云海国创云计算装备产业创新中心有限公司 Data recovery method, storage medium, electronic device, and program product

Cited By (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN118860747A (en)*2024-09-242024-10-29山东云海国创云计算装备产业创新中心有限公司 Data recovery method, storage medium, electronic device, and program product

Similar Documents

PublicationPublication DateTitle
US9946600B2 (en)Method of detecting power reset of a server, a baseboard management controller, and a server
CN115658113A (en) Server self-starting method, device, readable storage medium and electronic equipment
CN110908838B (en)Data processing method and device, electronic equipment and storage medium
US20090138740A1 (en)Method and computer device capable of dealing with power fail
CN107608828A (en)Method, system, device and the storage medium that data center's power down recovers automatically
CN114168401A (en)Log recording method and device and electronic equipment
CN105739668A (en)Power management method and power management system of notebook computers
JP2018025925A (en)Start method of electronic circuit system and control device
US8117465B2 (en)Mobile device and power control method thereof
CN116244154A (en) Alarm method, device, storage medium and electronic equipment
CN113590405A (en)Hard disk error detection method and device, storage medium and electronic device
US20170075742A1 (en)Method for maintaining file system of computer system
WO2025138566A1 (en)Data block verification method and apparatus, non-volatile readable storage medium, and electronic device
WO2020223862A1 (en)Mounting processing method and apparatus, electronic device, and computer readable storage medium
CN116339479A (en)Control method and device of server power supply, storage medium and electronic device
CN115328743B (en)Android device abnormity early warning processing method and system and readable storage medium
CN110737319B (en) A server operation control method, device and storage medium
CN105303639A (en)Fault information recording method and related apparatus
CN115457995A (en)Solid state disk power supply management method, system, terminal device and storage medium
CN108536545B (en) Information processing method and device for terminal equipment
CN117033063B (en)Server liquid leakage processing method, system, device, electronic equipment and medium
US20240411637A1 (en)Electronic device providing warning message through communication interface, and method of operating the same
US12032462B2 (en)Preserving hardware status points in operating system environment for use in preboot diagnostics
US12072745B2 (en)Method and system to extend CMOS battery life
CN113075992B (en)Memory power-on method, device, equipment and computer readable storage medium

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
CB02Change of applicant information

Country or region after:China

Address after:215000 Building 9, No.1 guanpu Road, Guoxiang street, Wuzhong Economic Development Zone, Suzhou City, Jiangsu Province

Applicant after:Suzhou Yuannao Intelligent Technology Co.,Ltd.

Address before:215000 Building 9, No.1 guanpu Road, Guoxiang street, Wuzhong Economic Development Zone, Suzhou City, Jiangsu Province

Applicant before:SUZHOU LANGCHAO INTELLIGENT TECHNOLOGY Co.,Ltd.

Country or region before:China


[8]ページ先頭

©2009-2025 Movatter.jp