CN117076179A - Hard disk indicator lamp control method and device, electronic equipment and storage medium - Google Patents

Hard disk indicator lamp control method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN117076179A
CN117076179A CN202311118590.3A CN202311118590A CN117076179A CN 117076179 A CN117076179 A CN 117076179A CN 202311118590 A CN202311118590 A CN 202311118590A CN 117076179 A CN117076179 A CN 117076179A
Authority
CN
China
Prior art keywords
hard disk
operation data
indicator lamp
fault
equipment
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
CN202311118590.3A
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.)
Inspur Shandong Computer Technology Co Ltd
Original Assignee
Inspur Shandong Computer 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 Inspur Shandong Computer Technology Co Ltd filed Critical Inspur Shandong Computer Technology Co Ltd
Priority to CN202311118590.3A priority Critical patent/CN117076179A/en
Publication of CN117076179A publication Critical patent/CN117076179A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0706Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment
    • G06F11/0727Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment in a storage system, e.g. in a DASD or network based storage system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0751Error or fault detection not based on redundancy
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information
    • G06F11/325Display of status information by lamps or LED's
    • G06F11/326Display of status information by lamps or LED's for error or online/offline status

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 provides a method, a device, electronic equipment and a storage medium for controlling a hard disk indicator lamp, which relate to the field of hardware working state monitoring, wherein the method is applied to a substrate management controller and can comprise the following steps: acquiring hard disk operation data acquired by host equipment for self hard disk equipment; determining the working state of the hard disk device according to the hard disk operation data; controlling a hard disk indicator lamp corresponding to the hard disk device and the working state on the backboard device to perform visual indication; because the central processing unit of the host equipment does not need to directly control the hard disk indicator lamp, only the hard disk operation data is required to be sent to the baseboard management controller, and the baseboard management controller is used for completing control, the defect that the central processing unit of the host equipment cannot control the hard disk indicator lamp under the condition that the central processing unit does not support virtual pin port communication can be overcome, and therefore the effectiveness of the control of the hard disk indicator lamp can be improved.

Description

Hard disk indicator lamp control method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of hardware operating state monitoring, and in particular, to a method and apparatus for controlling a hard disk indicator lamp, an electronic device, and a storage medium.
Background
The hard disk indicator lamp is used for indicating the current working state of the hard disk. In the related art, the hard disk indicator lamp is generally controlled by the central processor of the host device through the virtual pin port. However, for a host device provided with a central processor that does not support virtual pin port communications, it will not be able to control the hard disk indicator light.
Disclosure of Invention
The invention aims to provide a method, a device, electronic equipment and a storage medium for controlling a hard disk indicator lamp, which can complete hard disk operation data acquisition by a host device and send the hard disk operation data to a baseboard management controller so as to realize the control effect of the hard disk indicator lamp through the baseboard management controller.
In order to solve the technical problems, the present invention provides a method for controlling a hard disk indicator lamp, which is applied to a baseboard management controller, and the method comprises:
acquiring hard disk operation data acquired by host equipment for self hard disk equipment;
determining the working state of the hard disk device according to the hard disk operation data;
and controlling the hard disk indicator lamp corresponding to the hard disk equipment and the working state on the backboard equipment to carry out visual indication.
Optionally, the determining the working state of the hard disk device according to the hard disk operation data includes:
extracting hard disk fault data in the hard disk operation data, and performing fault detection on the hard disk equipment by utilizing the hard disk fault data;
when the hard disk device is determined to not pass the fault detection, judging that the working state of the hard disk device is a fault state;
correspondingly, the control backboard device visually indicates the hard disk indicator lamp corresponding to the hard disk device and the working state, and the control backboard device comprises:
acquiring an access address of a programmable logic device on the backboard device on an integrated circuit interconnection bus;
and sending a fault signal to the programmable logic device according to the access address so that the programmable logic device adjusts a level signal in a signal line between the programmable logic device and a hard disk fault lamp to control the hard disk fault lamp to perform visual indication.
Optionally, the fault detection of the hard disk device by using the hard disk fault data includes:
judging whether abnormal hard disk fault data larger than a corresponding preset threshold value exist in each hard disk fault data;
if yes, judging that the hard disk equipment does not pass the fault detection;
if not, judging that the hard disk device passes the fault detection.
Optionally, the obtaining the hard disk operation data collected by the host device for the own hard disk device includes:
and receiving the hard disk operation data collected by the agent program in the host device to the hard disk device at regular intervals.
Optionally, the receiving the hard disk operation data collected by the agent program in the host device periodically for the hard disk device includes:
and receiving the hard disk operation data through an intelligent platform management interface protocol or a red fish protocol.
Optionally, the agent collects the hard disk operation data by executing a specified command, or collects the hard disk operation data through an application programming interface provided by a disk detection tool.
The invention also provides a control device of the hard disk indicator lamp, which is applied to the baseboard management controller, and comprises:
the acquisition module is used for acquiring hard disk operation data acquired by host equipment on own hard disk equipment;
the working state determining module is used for determining the working state of the hard disk device according to the hard disk operation data;
and the control module is used for controlling the hard disk indicator lights corresponding to the hard disk equipment and the working state on the backboard equipment to carry out visual indication.
The present invention also provides a baseboard management controller including:
a memory for storing a computer program;
and the processor is used for realizing the hard disk indicator lamp control method when executing the computer program.
The invention also provides a hard disk indicator lamp control system, which comprises:
the host equipment is used for collecting hard disk operation data and sending the hard disk operation data to the baseboard management controller;
a baseboard management controller for executing the hard disk indicator lamp control method as described above;
the backboard device is provided with a hard disk indicator lamp and is used for visually indicating the hard disk indicator lamp corresponding to the hard disk device and the working state of the hard disk device under the control of the baseboard management controller.
The invention also provides a computer readable storage medium, wherein the computer readable storage medium stores computer executable instructions, and when the computer executable instructions are loaded and executed by a processor, the hard disk indicator lamp control method is realized.
The invention provides a control method of a hard disk indicator lamp, which is applied to a baseboard management controller, and comprises the following steps: acquiring hard disk operation data acquired by host equipment for self hard disk equipment; determining the working state of the hard disk device according to the hard disk operation data; and controlling the hard disk indicator lamp corresponding to the hard disk equipment and the working state on the backboard equipment to carry out visual indication.
Therefore, the baseboard management controller can acquire the hard disk operation data acquired by the host device for the hard disk device, and determine the working state of the hard disk device according to the hard disk operation data, so as to control the hard disk indicator lights on the backboard device corresponding to the hard disk device and the working state to perform visual indication. Therefore, the central processor of the host equipment does not need to directly control the hard disk indicator lamp, only needs to send the hard disk operation data to the baseboard management controller, and the baseboard management controller can complete control, so that the defect that the central processor of the host equipment cannot control the hard disk indicator lamp under the condition of not supporting communication of the virtual pin port can be overcome, and the effectiveness of controlling the hard disk indicator lamp can be improved. The invention also provides a hard disk indicator lamp control device, electronic equipment and a computer readable storage medium, which have the beneficial effects.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present invention, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
FIG. 1 is a block diagram of a control system for a hard disk indicator lamp according to an embodiment of the present invention;
FIG. 2 is a flowchart of a method for controlling a hard disk indicator lamp according to an embodiment of the present invention;
FIG. 3 is a flowchart of another method for controlling a hard disk indicator lamp according to an embodiment of the present invention;
fig. 4 is a block diagram of a hard disk indicator lamp control device according to an embodiment of the present invention;
fig. 5 is a block diagram of a baseboard management controller according to an embodiment of the present invention;
fig. 6 is a block diagram of another control system for a hard disk indicator lamp according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In the related art, the hard disk indicator lamp is generally controlled by the central processor of the host device through the virtual pin port. However, for a host device provided with a central processor that does not support virtual pin port communications, it will not be able to control the hard disk indicator light. In view of this, the present invention provides a method for controlling a hard disk indicator lamp, in which a host device can complete the collection of hard disk operation data and send the hard disk operation data to a baseboard management controller, so as to achieve the control effect of the hard disk indicator lamp through the baseboard management controller.
For ease of understanding, please refer to fig. 1, fig. 1 is a block diagram of a hard disk indicator lamp control system according to an embodiment of the present invention. The system comprises a host device 10, a baseboard management controller 20 and a backboard device 30, wherein the backboard device 30 further comprises a hard disk indicator 31, and the host device 10 further comprises a hard disk device (not shown). It should be noted that the hard disk indicator lamp 31 may be plural to correspond to plural hard disk devices and plural operating states in the hard disk devices. In a specific application process, the host device 10 may collect hard disk operation data of the hard disk device and send the hard disk operation data to the baseboard management controller 20; the baseboard management controller 20 can determine the working state of the hard disk according to the hard disk operation data, so as to control the corresponding hard disk indicator lamp 31 on the backboard device 30 to perform visual indication according to the hard disk device and the working state. It should be noted that the embodiment of the present invention is not limited to the specific type of the host device 10, and may be, for example, a personal computer, a server, etc.
Based on the above description of the system structure, the method for controlling the hard disk indicator lamp according to the embodiment of the present invention will be described in detail. Referring to fig. 2, fig. 2 is a flowchart of a method for controlling a hard disk indicator lamp according to an embodiment of the present invention, where the method is applied to a baseboard management controller, and may include:
s201, acquiring hard disk operation data acquired by host equipment on own hard disk equipment.
In the embodiment of the invention, the hard disk operation data represent the working state of the hard disk device, can be acquired by the host device and sent to the baseboard management controller, so that the baseboard management controller can determine the working state of the hard disk according to the data.
It should be noted that, the embodiment of the present invention is not limited to specific hard disk operation data, and may be conventional hard disk operation data such as operation temperature, rotation speed, capacity usage, etc., and may also include hard disk failure data such as Media error (uncorrectable error), reallocated Sectors Count (number of reconfigured NAND physical blocks accumulated due to bad block growth), wear Leveling Count (average erase count of all logical blocks accumulated), error Correction Count (total number of accumulated end-to-end data errors), percentage of Lifetime Remaining (percentage of remaining life of current hard disk), etc., which may be selected according to practical application requirements.
Further, in order to realize automatic and active collection of hard disk operation data, the embodiment of the invention can set a proxy program in the host equipment, and the proxy program can periodically collect the hard disk operation data of the hard disk equipment and automatically send the hard disk operation data to the baseboard management controller. Further, the baseboard management controller only needs to wait for receiving the data sent by the agent program.
Based on this, the obtaining the hard disk operation data collected by the host device for the own hard disk device may include:
step 11: and receiving the hard disk operation data collected by the agent program in the host device to the hard disk device at regular intervals.
It should be noted that, the embodiment of the present invention is not limited to how the agent program collects the hard disk operation data, for example, the agent program may collect the hard disk operation data by executing a specified command, for example, for the Media error information of the hard disk device, may be obtained by the following commands:
smartctl-a/dev/sda|grep"Media Error Count";
the agent may collect hard disk operating data via an application programming interface (API interface, application Programming Interfac) provided by a disk detection tool (e.g., SMART tool, self-Monitoring, analysis and Reporting Technology, self-Monitoring analysis and reporting technology).
Further, the embodiment of the present invention does not limit how the agent program performs data transmission with the baseboard management controller, for example, the agent program sends hard disk operation data to the baseboard management controller through an intelligent platform management interface protocol (IPMI, intelligent Platform Management Interface, intelligent platform management interface) or a red fish protocol (redfish).
Based on this, the receiving the hard disk operation data periodically collected by the agent program in the host device for the hard disk device may include:
step 21: and receiving the hard disk operation data through an intelligent platform management interface protocol or a red fish protocol.
S202, determining the working state of the hard disk device according to the hard disk operation data.
It should be noted that the embodiment of the present invention is not limited to a specific working state, for example, the working state may be a fault, a non-fault, etc.; the embodiment of the invention is also not limited how to determine the working state of the hard disk device according to the hard disk operation data, for example, when the working state is fault or non-fault, the baseboard management controller can determine whether the hard disk is fault according to the hard disk fault data in the hard disk operation data. Of course, other manners may be adopted to determine other working states of the hard disk device under the condition that other working states of the hard disk device are preset, and the setting may be performed according to actual application requirements.
And S203, controlling the hard disk indicator lights corresponding to the hard disk equipment and the working state on the backboard equipment to perform visual indication.
After the working state corresponding to the hard disk device is determined, the baseboard management controller can control the hard disk indicator lamp corresponding to the hard disk device and the working state on the backboard device to carry out visual indication. It should be noted that, the embodiment of the present invention is not limited to the specific structure of the back board device, nor is it limited to how the hard disk device controls the back board device, for example, a programmable logic device (CPLD, complex Programmable Logic Device, complex programmable logic device) may be disposed on the back board device, and the programmable logic device is connected with each hard disk indicator lamp on the back board device through a signal line, and may perform unified control on the hard disk indicator lamps. Furthermore, the baseboard management controller can send a control signal to the programmable logic device to trigger the programmable logic device to adjust the level signal (such as up, down or back and forth conversion) in the corresponding signal line, thereby achieving the effect of controlling the corresponding hard disk indicator lamp to perform visual indication. Of course, if the backplane device has other forms, the baseboard management controller can also control the backplane device in other manners.
Further, the embodiment of the invention is not limited to a specific visual indication form, for example, the visual indication form can be on, off, flashing, and the like, and the visual indication form can be selected according to actual application requirements.
Based on the above embodiment, the baseboard management controller of the present invention can obtain the hard disk operation data collected by the host device for the hard disk device, and determine the working state of the hard disk device according to the hard disk operation data, so as to control the hard disk indicator lamp corresponding to the hard disk device and the working state on the backboard device to perform visual indication. Therefore, the central processor of the host equipment does not need to directly control the hard disk indicator lamp, only needs to send the hard disk operation data to the baseboard management controller, and the baseboard management controller can complete control, so that the defect that the central processor of the host equipment cannot control the hard disk indicator lamp under the condition of not supporting communication of the virtual pin port can be overcome, and the effectiveness of controlling the hard disk indicator lamp can be improved.
Based on the above embodiments, the above-described hard disk indicator lamp control method will be described in more detail below based on a specific hard disk operation state. In one possible case, the method may further comprise:
s301, acquiring hard disk operation data acquired by host equipment on own hard disk equipment.
The description of this step is identical to that of step S201, and will not be repeated here.
S302, extracting hard disk fault data in the hard disk operation data, and performing fault detection on the hard disk equipment by using the hard disk fault data.
It should be noted that, the embodiment of the present invention is not limited to the specific content of the hard disk failure data, for example, media error (uncorrectable error), reallocated Sectors Count (number of reconfigured NAND physical blocks accumulated due to bad block growth), wear Leveling Count (average erase count of all logical blocks accumulated), error Correction Count (total number of accumulated end-to-end data errors), percentage of Lifetime Remaining (current remaining life percentage of hard disk); in addition, the hard disk failure data may contain only one item of content or may contain a plurality of items of content. In order to improve the detection effect, the hard disk failure data in the embodiment of the invention contains a plurality of contents. Further, since the hard disk fault data is mainly a count value and a percentage value, a corresponding preset threshold value can be set for each hard disk fault data, and then after the hard disk fault data is determined to exceed the corresponding preset threshold value, the hard disk fault can be determined. It should be noted that, the embodiment of the present invention is not limited to a specific value of the preset threshold, and may be set according to actual application requirements. The embodiment of the invention also does not limit whether the preset thresholds corresponding to the fault data of each hard disk are the same, and the same preset threshold (for example, 0) can be set, different preset thresholds can be set, and the selection can be performed according to actual application requirements.
Based on this, the performing fault detection on the hard disk device using the hard disk fault data may include:
step 31: judging whether abnormal hard disk fault data larger than a corresponding preset threshold value exist in each hard disk fault data; if so, go to step 32; if not, go to step 33;
step 32: determining that the hard disk device fails the failure detection;
step 33: and judging that the hard disk device passes the fault detection.
S303, when the hard disk device is determined to not pass the fault detection, judging that the working state of the hard disk device is a fault state.
S304, the access address of the programmable logic device on the backboard device on the integrated circuit interconnection bus is obtained.
The invention can be provided with programmable logic devices (CPLD, complex Programmable Logic Device, complex programmable logic device) on the backboard equipment, the programmable logic devices are connected with all the hard disk indicator lamps on the backboard equipment through signal wires, and the hard disk indicator lamps can be controlled uniformly. In addition, the baseboard management controller can be connected with the programmable logic device through an integrated circuit interconnection bus (I2C, inter-Integrated Circuit). Furthermore, the baseboard management controller can send a control signal to the programmable logic device by accessing the I2C device to trigger the programmable logic device to adjust the level signal (such as up, down or back and forth conversion) in the corresponding signal line, thereby achieving the effect of controlling the corresponding hard disk indicator lamp to perform visual indication. It will be appreciated that in order to access the programmable logic device via the integrated circuit interconnect bus, the baseboard management controller needs to pre-fetch the access address of the baseboard management controller on the integrated circuit interconnect bus. This address may be preset in the baseboard management controller.
And S305, sending a fault signal to the programmable logic device according to the access address, so that the programmable logic device adjusts a level signal in a signal line between the programmable logic device and a hard disk fault lamp to control the hard disk fault lamp to perform visual indication.
It should be noted that, the fault signal is an indicator light control signal indicating that the corresponding hard disk device has a fault, and the hard disk fault is a hard disk indicator light indicating that the corresponding hard disk device has a fault. Steps S304 and S305 are described below as a specific example. For example, after determining that the hard disk fails, the baseboard management controller may access bit 6 of a programmable logic device (slave 0x22,CMD 0x04,byte2-byte x) on the backplane through the I2C to require the programmable logic device to light up the corresponding hard disk failure lamp. In the link design of the programmable logic device, the hard disk fault lamp may be connected to a GPIO (General purpose input/output) of the programmable logic device. The programmable logic device can control the high and low levels of the lamp through the GPIO, and the GPIO is pulled high to increase the voltage of the fault lamp so as to realize the lighting of the fault lamp. And the programmable logic device receives the fault lamp lighting signal sent by the baseboard management controller and then pulls the GPIO corresponding to the fault lamp of the hard disk from low to high so as to light the fault lamp of the hard disk.
Based on the above embodiments, the following will fully describe the present hard disk indicator lamp control method in combination with a specific flowchart. Referring to fig. 3, fig. 3 is a flowchart of another method for controlling a hard disk indicator lamp according to an embodiment of the present invention, where the method includes:
1. in step S101, when the server is designed in the whole machine, an LED lamp is designed for the hard disk on the back plate, and is used for displaying the state of the hard disk. The design can provide the function of monitoring the working state of the hard disk in real time, and help the manager and the user to know the operation condition of the hard disk.
2. In step S102, when designing the back plate, the I2C system can be supported for lighting.
3. In step S103, a proxy program is executed in a server Operating System (OS) to capture Media error information of the hard disk
4. In step S104, when the operating system detects a failure, failure information may be sent to the baseboard management controller (BMC, baseboard Management Controller) through IPMI (Intelligent Platform Management Interface) or Redfish. This mechanism allows the operating system to communicate with the underlying hardware management controller in order to monitor and manage the status and failure of the servers.
5. In step S105, the baseboard management controller may communicate with the CPLD on the back board through the I2C (serial interface), and the CPLD directly controls the LED lamp, so as to achieve the effect of lighting the fault lamp after the hard disk fails.
The following describes a hard disk indicator control device, a baseboard management controller, a hard disk indicator control system and a computer readable storage medium provided in the embodiments of the present invention, and the hard disk indicator control device, the baseboard management controller, the hard disk indicator control system and the computer readable storage medium described below and the hard disk indicator control method described above can be referred to correspondingly.
Referring to fig. 4, fig. 4 is a block diagram of a hard disk indicator lamp control device according to an embodiment of the present invention, where the device is applied to a baseboard management controller, and may include:
an obtaining module 401, configured to obtain hard disk operation data collected by a host device on a hard disk device of the host device;
a working state determining module 402, configured to determine a working state of the hard disk device according to the hard disk operation data;
and the control module 403 is configured to control the backboard device to perform visual indication with the hard disk indicator corresponding to the hard disk device and the working state.
Alternatively, the operation state determining module 402 may include:
the fault detection sub-module is used for extracting hard disk fault data in the hard disk operation data and carrying out fault detection on the hard disk equipment by utilizing the hard disk fault data; when the hard disk device is determined to not pass the fault detection, judging that the working state of the hard disk device is a fault state;
accordingly, the control module 403 may include:
an acquisition sub-module, configured to acquire an access address of a programmable logic device on the backplane device on an integrated circuit interconnection bus;
and the fault signal transmitting sub-module is used for transmitting a fault signal to the programmable logic device according to the access address so that the programmable logic device can adjust the level signal in the signal line between the programmable logic device and the hard disk fault lamp to control the hard disk fault lamp to perform visual indication.
Optionally, the fault detection sub-module is specifically configured to:
judging whether abnormal hard disk fault data larger than a corresponding preset threshold value exist in each hard disk fault data;
if yes, judging that the hard disk equipment does not pass the fault detection;
if not, judging that the hard disk device passes the fault detection.
Optionally, the obtaining module 401 is specifically configured to:
and receiving the hard disk operation data collected by the agent program in the host device to the hard disk device at regular intervals.
Optionally, the obtaining module 401 is specifically configured to:
and receiving the hard disk operation data through an intelligent platform management interface protocol or a red fish protocol.
Optionally, the agent collects the hard disk operation data by executing a specified command, or collects the hard disk operation data through an application programming interface provided by a disk detection tool.
Referring to fig. 5, fig. 5 is a block diagram illustrating a baseboard management controller according to an embodiment of the present invention, and the embodiment of the present invention provides a baseboard management controller 20, including a processor 21 and a memory 22; wherein the memory 22 is used for storing a computer program; the processor 21 is configured to execute the hard disk indicator lamp control method provided in the foregoing embodiment when executing the computer program.
For the specific process of the above-mentioned hard disk indicator lamp control method, reference may be made to the corresponding content provided in the foregoing embodiment, and no further description is given here.
The memory 22 may be a carrier for storing resources, such as a read-only memory, a random access memory, a magnetic disk or an optical disk, and the storage mode may be transient storage or permanent storage.
In addition, the baseboard management controller 20 further includes a power supply 23, a communication interface 24, an input/output interface 25, and a communication bus 26; wherein, the power supply 23 is used for providing working voltage for each hardware device on the baseboard management controller 20; the communication interface 24 can create a data transmission channel between the baseboard management controller 20 and an external device, and the communication protocol to be followed is any communication protocol applicable to the technical solution of the present invention, which is not specifically limited herein; the input/output interface 25 is used for acquiring external input data or outputting external output data, and the specific interface type thereof may be selected according to the specific application requirement, which is not limited herein.
Referring to fig. 1, fig. 1 is a block diagram of a control system for a hard disk indicator lamp according to an embodiment of the invention. The system comprises:
a host device 10 for collecting hard disk operation data and transmitting the hard disk operation data to the baseboard management controller 20;
the baseboard management controller 20 is configured to perform the hard disk indicator light control method as described above, for example, to obtain hard disk operation data collected by the host device 10 on its own hard disk device; determining the working state of the hard disk device according to the hard disk operation data; and controlling the hard disk indicator lamp 31 corresponding to the hard disk device and the working state on the backboard device 30 to perform visual indication.
The backboard device 30 is provided with a hard disk indicator lamp 31, which is used for visually indicating the hard disk indicator lamp corresponding to the hard disk device and the working state of the hard disk device under the control of the baseboard management controller 20.
Further, referring to fig. 6, fig. 6 is a block diagram of another control system for a hard disk indicator lamp according to an embodiment of the present invention. In the present system, the backplane device 30 may also include a programmable logic device 32. The programmable logic device 32 is connected with the hard disk indicator lamp 31 through a signal wire and is connected with the baseboard management controller 20 through an integrated circuit interconnection bus. Further, the baseboard management controller 20 may be further configured to send a fault signal to the programmable logic device 32, so that the programmable logic device 32 adjusts the level signal in the signal line with the hard disk fault lamp 31 to control the hard disk fault lamp 31 to perform visual indication.
The embodiment of the invention also provides a computer readable storage medium, and a computer program is stored on the computer readable storage medium, and when the computer program is executed by a processor, the steps of the hard disk indicator lamp control method in any embodiment are realized.
Since the embodiments of the computer readable storage medium portion and the embodiments of the hard disk indicator light control method portion correspond to each other, the embodiments of the storage medium portion are referred to the description of the embodiments of the hard disk indicator light control method portion, and are not repeated here.
In the description, each embodiment is described in a progressive manner, and each embodiment is mainly described by the differences from other embodiments, so that the same similar parts among the embodiments are mutually referred. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative elements and steps are described above generally in terms of functionality in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. The software modules may be disposed in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The method, the device, the electronic equipment and the storage medium for controlling the hard disk indicator lamp provided by the invention are described in detail. The principles and embodiments of the present invention have been described herein with reference to specific examples, the description of which is intended only to facilitate an understanding of the method of the present invention and its core ideas. It should be noted that it will be apparent to those skilled in the art that various modifications and adaptations of the invention can be made without departing from the principles of the invention and these modifications and adaptations are intended to be within the scope of the invention as defined in the following claims.

Claims (10)

1. A method for controlling a hard disk indicator lamp, which is applied to a baseboard management controller, the method comprising:
acquiring hard disk operation data acquired by host equipment for self hard disk equipment;
determining the working state of the hard disk device according to the hard disk operation data;
and controlling the hard disk indicator lamp corresponding to the hard disk equipment and the working state on the backboard equipment to carry out visual indication.
2. The method for controlling a hard disk indicator lamp according to claim 1, wherein determining the operating state of the hard disk device according to the hard disk operation data comprises:
extracting hard disk fault data in the hard disk operation data, and performing fault detection on the hard disk equipment by utilizing the hard disk fault data;
when the hard disk device is determined to not pass the fault detection, judging that the working state of the hard disk device is a fault state;
correspondingly, the control backboard device visually indicates the hard disk indicator lamp corresponding to the hard disk device and the working state, and the control backboard device comprises:
acquiring an access address of a programmable logic device on the backboard device on an integrated circuit interconnection bus;
and sending a fault signal to the programmable logic device according to the access address so that the programmable logic device adjusts a level signal in a signal line between the programmable logic device and a hard disk fault lamp to control the hard disk fault lamp to perform visual indication.
3. The hard disk indicator light control method according to claim 2, wherein the fault detection of the hard disk device using the hard disk fault data comprises:
judging whether abnormal hard disk fault data larger than a corresponding preset threshold value exist in each hard disk fault data;
if yes, judging that the hard disk equipment does not pass the fault detection;
if not, judging that the hard disk device passes the fault detection.
4. The method for controlling a hard disk indicator lamp according to claim 1, wherein the obtaining the hard disk operation data collected by the host device for the own hard disk device includes:
and receiving the hard disk operation data collected by the agent program in the host device to the hard disk device at regular intervals.
5. The method of claim 4, wherein the receiving the hard disk operation data periodically collected by the agent program in the host device for the hard disk device comprises:
and receiving the hard disk operation data through an intelligent platform management interface protocol or a red fish protocol.
6. The hard disk indicator light control method according to claim 4, wherein the agent collects the hard disk operation data by executing a specified command or collects the hard disk operation data through an application programming interface provided by a disk detection tool.
7. A hard disk indicator light control apparatus, characterized by being applied to a baseboard management controller, comprising:
the acquisition module is used for acquiring hard disk operation data acquired by host equipment on own hard disk equipment;
the working state determining module is used for determining the working state of the hard disk device according to the hard disk operation data;
and the control module is used for controlling the hard disk indicator lights corresponding to the hard disk equipment and the working state on the backboard equipment to carry out visual indication.
8. A baseboard management controller, comprising:
a memory for storing a computer program;
a processor for implementing the hard disk indicator lamp control method according to any one of claims 1 to 6 when executing the computer program.
9. A hard disk indicator light control system, comprising:
the host equipment is used for collecting hard disk operation data and sending the hard disk operation data to the baseboard management controller;
a baseboard management controller for executing the hard disk indicator lamp control method according to any one of claims 1 to 6;
the backboard device is provided with a hard disk indicator lamp and is used for visually indicating the hard disk indicator lamp corresponding to the hard disk device and the working state of the hard disk device under the control of the baseboard management controller.
10. A computer readable storage medium having stored therein computer executable instructions which when loaded and executed by a processor implement the hard disk indicator light control method according to any one of claims 1 to 6.
CN202311118590.3A 2023-08-31 2023-08-31 Hard disk indicator lamp control method and device, electronic equipment and storage medium Pending CN117076179A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311118590.3A CN117076179A (en) 2023-08-31 2023-08-31 Hard disk indicator lamp control method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311118590.3A CN117076179A (en) 2023-08-31 2023-08-31 Hard disk indicator lamp control method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117076179A true CN117076179A (en) 2023-11-17

Family

ID=88702249

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311118590.3A Pending CN117076179A (en) 2023-08-31 2023-08-31 Hard disk indicator lamp control method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117076179A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117971613A (en) * 2024-03-29 2024-05-03 苏州元脑智能科技有限公司 Hard disk monitoring system, method, equipment, storage medium and baseboard management controller
CN117971608A (en) * 2024-03-29 2024-05-03 苏州元脑智能科技有限公司 Method, device, equipment and medium for acquiring and sending hard disk logs

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117971613A (en) * 2024-03-29 2024-05-03 苏州元脑智能科技有限公司 Hard disk monitoring system, method, equipment, storage medium and baseboard management controller
CN117971608A (en) * 2024-03-29 2024-05-03 苏州元脑智能科技有限公司 Method, device, equipment and medium for acquiring and sending hard disk logs
CN117971608B (en) * 2024-03-29 2024-06-07 苏州元脑智能科技有限公司 Method, device, equipment and medium for acquiring and sending hard disk logs

Similar Documents

Publication Publication Date Title
CN117076179A (en) Hard disk indicator lamp control method and device, electronic equipment and storage medium
US8812913B2 (en) Method and apparatus for isolating storage devices to facilitate reliable communication
US10175973B2 (en) Microcode upgrade in a storage system
US8640118B2 (en) Managing firmware on a system board
US20140122931A1 (en) Performing diagnostic tests in a data center
CN102132523A (en) Device power management using network connections
CN112286709A (en) Diagnosis method, diagnosis device and diagnosis equipment for server hardware faults
CN110321255B (en) Method and system for checking cable errors
CN110162446A (en) A kind of backboard hard disk ignition method based on BMC
CN117251333A (en) Method, device, equipment and storage medium for acquiring hard disk information
CN112118144B (en) Ethernet data frame output method and system
CN105137881B (en) Locomotive intelligent display system and method
US8819484B2 (en) Dynamically reconfiguring a primary processor identity within a multi-processor socket server
CN106899436A (en) A kind of cloud platform failure predication diagnostic system
CN117453036A (en) Method, system and device for adjusting power consumption of equipment in server
CN107885626A (en) The system of on-chip system programming device starts the device and method of Autonomous test
CN116913350A (en) Test method and test platform based on modern standby of solid state disk
CN109446002B (en) Jig plate, system and method for grabbing SATA hard disk by server
CN115480975A (en) Wiring checking method and device
CN104678292A (en) Test method and device for CPLD (Complex Programmable Logic Device)
CN115048255A (en) Automatic test method, device, host and storage medium
CN210670075U (en) Distributed optical cable on-line monitoring system and device
CN107194258A (en) Method and device for monitoring code vulnerability, electronic equipment and storage medium
CN116302844B (en) Method and device for acquiring hard disk information, computer equipment and storage medium
US20190171481A1 (en) Performing maintenance tasks on composed systems during workload execution

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination