CN119311524A - Device system and hard disk status monitoring method, device, program product and medium thereof - Google Patents
Device system and hard disk status monitoring method, device, program product and medium thereof Download PDFInfo
- Publication number
- CN119311524A CN119311524A CN202411839804.0A CN202411839804A CN119311524A CN 119311524 A CN119311524 A CN 119311524A CN 202411839804 A CN202411839804 A CN 202411839804A CN 119311524 A CN119311524 A CN 119311524A
- Authority
- CN
- China
- Prior art keywords
- hard disk
- management controller
- status information
- baseboard management
- indicator light
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The application discloses an equipment system and a hard disk state monitoring method, equipment, a program product and a medium thereof, and relates to the technical field of computers. The device comprises a device main board and a hard disk backboard, wherein a central processing unit and a baseboard management controller are arranged on the main board, an indicator lamp device and hard disks with different interface standards are arranged on the backboard, a device system adopts any one of a plurality of preset hard disk connection structures, the central processing unit and the baseboard management controller are respectively connected with the hard disk to establish a communication transmission link, the baseboard management controller is connected with the indicator lamp device and is used for acquiring health state information of the hard disk through the communication transmission link, and color display control is carried out on the indicator lamp device based on display state information matched from a preset indicator lamp multi-mode state table so as to judge the health state of the hard disk through the display color of the indicator lamp device. By the technical scheme, each health state of the hard disk has corresponding color display, and fault judgment is convenient.
Description
Technical Field
The present invention relates to the field of computer technologies, and in particular, to an apparatus system, a method, an apparatus, a program product, and a medium for monitoring a hard disk state of the apparatus system.
Background
The computer hard disk is the most main storage device of the computer, and a large amount of important data is lost due to hard disk faults, so that the stability of the hard disk is the basis for ensuring the stable operation of the device for processing the stored data and the upper layer application. Currently, when fault determination is performed on a hard disk, a mode of consulting and analyzing SMART (Self-Monitoring, ANALYSIS AND Reporting Technology, self-Monitoring, analysis and reporting technology) information of the hard disk is generally adopted, so that the operation is complex and the efficiency is low. In addition, when the existing hard disk equipment fails, the hard disk status lamp only has three states of blue positioning lamp, red failure and rebuild (reset) yellow status. Smart health status information rich in hard disk cannot be displayed through three-color lamps
Therefore, how to provide a solution to the above technical problem is a problem that a person skilled in the art needs to solve at present.
Disclosure of Invention
Accordingly, the present invention is directed to an apparatus system, and a method, an apparatus, a program product, and a medium for monitoring states of hard disks, which can visually display health states of hard disks, and each health state of hard disk has a color display corresponding to the health state, so as to facilitate recognition of equipment anomalies by field operation and maintenance personnel in a data center. The specific scheme is as follows:
In a first aspect, the application discloses an equipment system, which comprises an equipment main board and a hard disk backboard, wherein the equipment main board is provided with a central processing unit and a baseboard management controller, the hard disk backboard is provided with an indicator light device and hard disks with different interface standards,
The equipment system adopts any one hard disk connection structure among a plurality of preset hard disk connection structures, and establishes communication transmission links with the central processing unit and the baseboard management controller respectively;
The substrate management controller is connected with the indicator light device and is used for acquiring health state information of the hard disk through the communication transmission link in any hard disk connection structure, and performing color display control on the indicator light device based on display state information of the indicator light device corresponding to the health state information, which is matched from a preset indicator light multi-mode state table, so as to judge the health state of the hard disk through the display color of the indicator light device, wherein the preset indicator light multi-mode state table is used for recording corresponding relations between different health state information and different display state information.
Optionally, a light emitting diode chip adopting a single-wire return-to-zero communication mechanism is arranged in the indicator light device, and brightness of each color on the three primary color channels of the light emitting diode chip corresponds to different levels so as to complete full-true color display.
Optionally, the baseboard management controller is configured to send, based on display status information of the indicator device corresponding to the health status information matched from a multimodal status table of a preset indicator, the display status information to the indicator device through a first universal input/output port by using the single-wire return-to-zero code communication mechanism, so as to perform color display control on the indicator device.
Optionally, the second general input/output port of the baseboard management controller is connected with the equipment motherboard through the third general input/output port of the target connection terminal.
Optionally, the baseboard management controller is further configured to adjust the object code to change display state information corresponding to different health state information and/or health state information corresponding to different display state information;
The target code is a code for configuring the multi-mode state table of the preset indicator lamp.
Optionally, the device system adopts a first hard disk connection structure, and the central processing unit and the baseboard management controller respectively establish a first communication transmission link with the hard disk through a south bridge chip;
The central processing unit is connected with the south bridge chip based on a direct media interface, the baseboard management controller is connected with the south bridge chip based on a simplified pin bus, and the hard disk is a hard disk based on a hard disk interface standard of a serial transmission technology.
Optionally, the central processor is configured to poll each hard disk on the hard disk backboard with a hard disk monitoring tool based on the first communication transmission link through a system in-band program, so as to obtain health status information of each hard disk, and transmit the health status information to the baseboard management controller through the system in-band program.
Optionally, the baseboard management controller is configured to obtain the health status information transmitted by the central processing unit based on the intelligent platform management interface based on the first communication transmission link.
Optionally, the device system adopts a second hard disk connection structure, and the central processing unit and the baseboard management controller respectively establish a second communication transmission link with the hard disk through target hardware devices, wherein the target hardware devices are hardware devices which support management by using a monitoring management tool and comprise independent redundant disk array cards and/or serial connection SCSI interface cards;
the CPU is connected with the target hardware device through an interface based on a high-speed serial computer expansion bus standard, the baseboard management controller is connected with the target hardware device through an integrated circuit bus interface, and the hard disk is a hard disk with different interface standards.
Optionally, the baseboard management controller is configured to access each hard disk connected to the target hardware device by using the monitoring management tool integrated therein through the second communication transmission link in the second hard disk connection structure, so as to obtain health status information of each hard disk.
Optionally, the device system adopts a third hard disk connection structure, and the central processing unit and the baseboard management controller are directly connected with the hard disk to establish a third communication transmission link;
The CPU is connected with the hard disk through an interface based on a high-speed serial computer expansion bus standard, the baseboard management controller is connected with the hard disk through a management interface based on a hard disk with a nonvolatile memory host controller interface specification, and the hard disk is a hard disk which can be directly monitored and managed through the baseboard management controller.
The application discloses a method for monitoring the state of a hard disk of an equipment system, wherein the equipment system comprises an equipment main board and a hard disk backboard, a central processing unit and a baseboard management controller are arranged on the equipment main board, an indicator lamp device and hard disks with different interface standards are arranged on the hard disk backboard, the equipment system adopts any one hard disk connection structure among a plurality of preset hard disk connection structures, and the central processing unit and the baseboard management controller are respectively connected with the hard disks in a communication transmission way, wherein the method comprises the following steps:
Acquiring health state information of the hard disk through the communication transmission link in any hard disk connection structure;
The display state information of the indicator lamp device corresponding to the health state information is matched from a preset indicator lamp multi-mode state table, wherein the preset indicator lamp multi-mode state table is used for recording the corresponding relation between different health state information and different display state information;
And performing color display control on the indicator lamp device based on the display state information so as to judge the health state of the hard disk through the display color of the indicator lamp device.
In a second aspect, the present application discloses an electronic device, comprising:
a memory for storing a computer program;
And the processor is used for loading and executing the computer program to realize the hard disk state monitoring method of the equipment system.
In a third aspect, the present application discloses a computer program product comprising computer programs/instructions which, when executed by a processor, implement the steps of the aforementioned method for monitoring the state of a hard disk of a device system.
In a fourth aspect, the present application discloses a computer readable storage medium storing a computer program, which when executed by a processor, implements the method for monitoring the state of a hard disk of the foregoing device system.
The application provides an equipment system, which comprises an equipment main board and a hard disk backboard, wherein a central processing unit and a substrate management controller are arranged on the equipment main board, an indicator lamp device and hard disks with different interface standards are arranged on the hard disk backboard, the equipment system adopts any one of a plurality of preset hard disk connection structures, the central processing unit and the substrate management controller are respectively connected with the hard disks to establish communication transmission links, the substrate management controller is connected with the indicator lamp device and is used for acquiring health state information of the hard disks through the communication transmission links in any one of the hard disk connection structures, and color display control is carried out on the indicator lamp device based on display state information of the indicator lamp device corresponding to the health state information matched from a preset indicator lamp multi-mode state table so as to judge the health state of the hard disks through the display color of the indicator lamp device, and the preset indicator lamp multi-mode state table is used for recording the corresponding relation between different health state information and different display state information.
The application has the beneficial technical effects that the equipment system can adopt different hard disk connection structures, a communication transmission link is established between the central processing unit and the base plate management controller as well as the hard disk, and the health status monitoring of the hard disk with different interface standards commonly used by the server on the market is realized. The substrate management controller manages the hard disk by using a preset indicator lamp multi-mode state table, controls the corresponding indicator lamp device to display the health state of the hard disk, and can display the color of different lamplight aiming at different hard disk faults, so that the abnormal state information of each hard disk has the color display corresponding to the abnormal state information. Therefore, the equipment abnormality identification is conveniently carried out by the field operation and maintenance personnel of the data center, the abnormal equipment is processed and replaced in advance before the hard disk is completely failed, and the downtime probability of the server of the data center is reduced.
In addition, the method, the device, the program product and the medium for monitoring the hard disk state of the equipment system correspond to the equipment system and have the same 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 schematic diagram of an apparatus system according to the present disclosure;
FIG. 2 is a circuit diagram of a hard disk connection LED chip disclosed by the application;
fig. 3 is a schematic diagram of a data transmission process of an LED chip according to the present disclosure;
FIG. 4 is a schematic diagram of a first hard disk connection structure according to the present disclosure;
FIG. 5 is a schematic diagram illustrating a system operation flow of a first hard disk connection structure according to the present application;
FIG. 6 is a schematic diagram of a second hard disk connection structure according to the present disclosure;
FIG. 7 is a schematic diagram illustrating a system operation flow of a second hard disk connection structure according to the present application;
FIG. 8 is a schematic diagram of a third hard disk connection structure according to the present disclosure;
FIG. 9 is a schematic diagram illustrating a system operation flow of a third hard disk connection structure according to the present application;
FIG. 10 is a flow chart of a method for monitoring the state of a hard disk of an equipment system according to the present application;
FIG. 11 is a schematic diagram of a hard disk status monitor device of an equipment system according to the present application;
fig. 12 is a block diagram of an electronic device according to the present disclosure.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. 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.
For ease of understanding, a brief description of the relevant knowledge referred to herein follows.
Hard disks are one of the core components of computer storage and are classified in a variety of ways, with knowledge of these classifications being better able to manage and use the storage device. The classification of hard disks is as follows:
1. classifying according to interface types:
Mechanical hard disks, i.e., conventional hard disk drives (HDD, hard Disk Drive), are types of hard disks based on the principle of magnetic storage. HDDs are typically interfaced using SATA (SERIAL ATA, serial ATA interface hard disk), a type of computer bus interface for interfacing the motherboard with the storage device. The HDD is characterized by large capacity, low price, but relatively slow speed, and is suitable for large capacity data storage requirements.
Solid state disk (SSD, solid STATE DRIVES) is a storage device based on flash technology that stores data much faster than HDDs. SSDs can be further categorized according to interface and protocol:
SATA SSDs use SATA interfaces that are relatively slow in transfer speed, but still much faster than conventional HDDs. SATA SSDs are typically the upgrade of choice for older systems.
NVME (Non-Volatile Memory Express, nonvolatile memory host controller interface) SSD is one of the fastest solid state disk types at present. The data processing device uses PCIE (Peripheral Component Interconnect Express) interfaces to directly communicate with a CPU (Central Processing Unit, a central processing unit), the transmission speed can reach 32Gbps, the data reading and writing performance is greatly improved, and the data processing device is very suitable for application scenes with high requirements on speed.
2. Sorting by storage medium:
The mechanical hard disk adopts a mechanical turntable and a magnetic head to read and write data, so that the speed is limited by mechanical movement. Nevertheless, HDDs still have an unparalleled price advantage over mass data storage.
The solid state disk does not contain any mechanical parts, and the semiconductor memory chip is completely used for data storage, so that the read-write speed is extremely high, and the shock resistance is excellent. SSDs can be further classified into SLC (Single-LEVEL CELL, single layer Unit), MLC (Multi-LEVEL CELL, multi-layer Unit), TLC (Triple-LEVEL CELL, triple-layer Unit) and QLC (Quad-LEVEL CELL, four-layer Unit) depending on the flash memory chips. Typically, SLC has the longest life but the highest cost, and QLC has the highest storage density but a relatively short life.
SATA and SAS (SERIAL ATTACHED SCSI ) hard disk management based on RAID (Redundant Arrays of INDEPENDENT DISKS, disk array) cards currently exist. In general, a RAID card driver has management of a hard disk positioning lamp, management of a hard disk device failure, and lighting of a failure indication lamp. Indicator lights of a hard disk (NVME of a PCIE interface directly connected to a CPU) managed by a current RAID card generally have three states of a positioning light blue, a fault red, and a rebuild (reset) state yellow. The display state of the indicator lamp is not easy to be found when being monitored. Usually, shell script is used for lighting the indicator lights and checking the status of the indicator lights on the NVME hard disk, and the characters are colored to make the user clear at a glance. However, the method is improved only on the display of the indicator lamp, no indicator lamp can display the real-time health state of the hard disk, and the red color is displayed only after the hard disk is completely failed, so that the method is not beneficial to preventive replacement and maintenance in the field of the data center.
Therefore, the application provides a hard disk state monitoring scheme of the equipment system, which can visually display the health states of the hard disks, and each health state of the hard disk has a corresponding color display, so that the equipment abnormality can be conveniently identified by on-site operation and maintenance personnel of a data center.
The embodiment of the invention discloses a device system 01, which is shown in fig. 1, wherein the device system 01 comprises a device main board 011 and a hard disk backboard 012, the device main board 011 is provided with a central processing unit 0111 and a baseboard management controller 0112, the hard disk backboard 012 is provided with an indicator lamp device 0121 and hard disks 0122 with different interface standards,
The device system 01 adopts any one hard disk connection structure of a plurality of preset hard disk connection structures, and establishes communication transmission links between the central processing unit 0111 and the baseboard management controller 0112 and the hard disk 0122 respectively;
The baseboard management controller 0112 is connected with the indicator lamp device 0121, and is configured to obtain health status information of the hard disk 0122 through the communication transmission link in any hard disk connection structure, and perform color display control on the indicator lamp device 0121 based on display status information of the indicator lamp device 0121 corresponding to the health status information, which is matched from a preset indicator lamp multi-mode status table, so as to determine the health status of the hard disk 0122 through the display color of the indicator lamp device 0121, where the preset indicator lamp multi-mode status table is used to record correspondence between different health status information and different display status information.
In the embodiment of the application, in order to realize health state judgment of different hard disks commonly used by a server on the market, different hard disk connection structures are adopted through an equipment system, and hard disks with different interface standards are managed under the different hard disk connection structures. Each hard disk connection structure corresponds to a respective communication transmission link, and the central processing unit and the baseboard management controller (BMC, baseboard Management Controller) can directly or indirectly obtain the health status information of the hard disk through the corresponding communication transmission links.
In a specific embodiment, the health status information of the hard disk may be obtained through SMART information. The SMART information includes a plurality of attributes, each of which describes a particular aspect of the hard disk, the attribute values of which are generally closely related to the health of the hard disk, and when a potential problem occurs in the hard disk, the SMART information gives an alarm in advance to help the user take measures in time.
In the embodiment of the application, the multi-mode state table of the preset indicator lamp with corresponding relation and the display state information is constructed in advance according to different health state information. That is, the information of the display color of the indicator light device corresponding to the hard disk in a certain health state is recorded in the preset indicator light multi-mode state table. The display state information corresponds to the display color of the indicator light device under the condition of the current health state information of the hard disk, and each health state information of the hard disk is displayed with the corresponding color.
And after the display state information of the corresponding indicator lamp device is matched from the preset indicator lamp multi-mode state table according to the acquired health state information of the hard disk, performing color display control on the indicator lamp device according to the display state information. Because each health status information of the hard disk has the corresponding color display, the health status of the hard disk can be judged through the display color of the indicator light device, and the abnormal equipment can be processed and replaced in advance before the hard disk equipment is completely failed, so that the probability of downtime of the data center server is reduced.
The application provides an equipment system, which comprises an equipment main board and a hard disk backboard, wherein a central processing unit and a substrate management controller are arranged on the equipment main board, an indicator lamp device and hard disks with different interface standards are arranged on the hard disk backboard, the equipment system adopts any one of a plurality of preset hard disk connection structures, the central processing unit and the substrate management controller are respectively connected with the hard disks to establish communication transmission links, the substrate management controller is connected with the indicator lamp device and is used for acquiring health state information of the hard disks through the communication transmission links in any one of the hard disk connection structures, and color display control is carried out on the indicator lamp device based on display state information of the indicator lamp device corresponding to the health state information matched from a preset indicator lamp multi-mode state table so as to judge the health state of the hard disks through the display color of the indicator lamp device, and the preset indicator lamp multi-mode state table is used for recording the corresponding relation between different health state information and different display state information.
The application has the beneficial technical effects that the equipment system can adopt different hard disk connection structures, a communication transmission link is established between the central processing unit and the base plate management controller as well as the hard disk, and the health status monitoring of the hard disk with different interface standards commonly used by the server on the market is realized. The substrate management controller manages the hard disk by using a preset indicator lamp multi-mode state table, controls the corresponding indicator lamp device to display the health state of the hard disk, and can display the color of different lamplight aiming at different hard disk faults, so that the abnormal state information of each hard disk has the color display corresponding to the abnormal state information. Therefore, the equipment abnormality identification is conveniently carried out by the field operation and maintenance personnel of the data center, the abnormal equipment is processed and replaced in advance before the hard disk is completely failed, and the downtime probability of the server of the data center is reduced.
In a specific embodiment, regarding improvement of hardware, a Light-Emitting Diode (LED) chip adopting a single-wire return-to-zero communication mechanism is disposed in the indicator Light device, and brightness of each color on three primary color channels of the LED chip corresponds to different levels, so as to complete full-true color display.
For example, the indicator light element can use a WS2812B tricolor LED chip, the LED chip can realize 256-level brightness display, and the full true color display characteristic of 16777216 colors is realized, so that the indicator light element can be used for performing multifunctional positioning on the hard disk, namely positioning the hard disk and visually displaying the health state.
It should be noted that a second General-purpose input/output (GPIO) port of the BMC is connected to the device motherboard through a third General-purpose input/output port of the target connection terminal. Fig. 2 is a schematic circuit diagram of a hard disk connected with an LED chip, where P1 is a target connection terminal on a device motherboard, pin 1 in P1 is connected with a GPIO of a BMC, and Data information is sent to the BMC through a Data GPIO of the connection terminal P1. After display state information of an indicator lamp device corresponding to current health state information of a hard disk is matched in a preset indicator lamp multi-mode state table, the BMC sends the display state information to the indicator lamp device through a first general input/output port by utilizing the single-wire return-to-zero code communication mechanism so as to perform color display control on the indicator lamp device.
In the embodiment of the application, the 0 and 1 of the LED chip are not simply pulled up and pulled down, but have different duty ratios of the high level and the low level in one period. In this way, the brightness of the indicator light element is adjusted by changing the duty ratio.
Illustratively, the 1 code-high level occupies 580ns-1us (high followed by low), and the low level occupies 220ns-380ns. The 0 code high level occupies 580ns-1us (low before high), and the low level occupies 580ns-1us. Whereas the interval between 1 frame and 1 frame is more than 280us low. Fig. 3 shows a schematic diagram of a data transmission process of the LED chip. Wherein D1 is data sent by MCU (Microcontroller Unit, micro control unit) end, D2, D3, D4 are data automatically shaped and forwarded by cascade circuit. Wherein the cascading of circuits, the process includes connecting the output of one circuit to the input of another circuit to form a continuous operational relationship. This cascading is accomplished by connecting an output port in one circuit with an input port in another circuit. The current is supplied next to each other, and a first signal (24 bits) is supplied to the first LED and then a second signal (24 bits) is supplied to the second LED. One frame is refreshed before the next frame begins. The operation code analysis of the LED chip is as follows:
module ws2812 ctrl(
input clk,// system clock.
Input rst_n,// reset.
The data input of output din// ws2812 b.
);
PARAMETER TIME =7'd 64;// maximum time to transmit a data 64 x 20 = 1280ns.
ParameterZhen = 5'd 24;// a frame has 24 data per lamp data.
PARAMETER MAX =7'd 64;// a total of 64 lamps.
ParameterRGB =24' b 80880800_80081111_00008800;// red.
PARAMETER RGB = 24'b00001111 00000000 00000000;// blue.
PARAMETER RGB2 = 24'b00000000 00000000 00001111;// green.
Reg [6:0] cnte;// count the longest period of a bit data transmission.
Wire add_cnte0;
Wire end_cnte0;
Reg [4:0] cnt_1z;// one bead requires 24bit data.
wire add_cnt_1z;
wire end_cnt_1z;
Reg [6:0] cnt_64z;// together 64 for the beads.
wire add_cnt_64z;
wire end_cnt_64z;
Reg [26:0] cnt_rst;// count reset signal for auto-refresh meter class.
wire add_cnt_rst;
wire end_cnt_rst;
Reg [8:0] cnt_state;// three states of bead blinking, one color for one frame, 3 color cycles.
wire add_cnt_state;
wire end_cnt_state;
Reg [23:0] cnt_b;// three states of bead blinking, one color for one frame, 3 color cycles.
Regtx_done;// 1bit data complete enable signal.
Reg RGB r;// registers RGB data for each transfer.
Reg data_out1;// 1 code and 0 code.
endmodule。
In a specific embodiment, an example of a specific preset indicator light multi-mode state table is shown in table 1. And the corresponding relation between different health state information and different display state information is recorded in the multi-mode state table of the preset indicator lamp.
Table 1 Multi-modal state table of preset indicators
It should be noted that, in a specific actual operation, the hard disk state information corresponding to the required color may be changed according to the requirement by the code, and the color corresponding to the required hard disk state information may also be changed. For example, the color of the indicator light corresponding to the health status information of the "hard disk in health status" may be changed to blue through the code, or the hard disk status information corresponding to the display status information of the "green" may be changed to be positioned on through the code.
Specifically, the baseboard management controller is further configured to adjust an object code to change display state information corresponding to different health state information and/or health state information corresponding to different display state information, where the object code is a code for configuring the multi-mode state table of the preset indicator lamp.
In addition, to avoid that too many indicator light colors cause difficulty in finding and distinguishing, the same indicator light colors may be set for different kinds of certain faults. Therefore, when the display color of the indicator lamp is corresponding, the current type of faults are determined according to the display color, and then the fault type is determined by subdivision, so that the comparison searching time is saved, and meanwhile, the display color of the indicator lamp device can be distinguished more easily to a certain extent.
Based on the above embodiments, the description will be given of a first hard disk connection structure among a plurality of preset hard disk connection structures in the device system. Fig. 4 is a schematic diagram of a first hard disk connection structure. The equipment system adopts a first hard disk connection structure, and the central processing unit and the baseboard management controller respectively establish a first communication transmission link with the hard disk through a south bridge chip (Platform Controller Hub, PCH);
The central processing unit is connected with the south bridge chip based on a direct media interface, the baseboard management controller is connected with the south bridge chip based on a simplified pin bus, and the hard disk is a hard disk based on a hard disk interface standard of a serial transmission technology.
In the embodiment of the application, the main board of the BMC management device is directly connected with the hard disk of the south bridge PCH, and the hard disk is a hard disk based on a hard disk interface standard of a serial transmission technology, such as a SATA hard disk or SAS (Serial Attached SCSI) hard disk. And the hard disk monitoring tool polls each hard disk on the hard disk backboard, and the corresponding health state information of the device is obtained. Illustratively, the hard disk monitoring tool takes Smartmontools as an example, and reads SMART information directly from the hard disk with smartctl commands contained in Smartmontools open source toolset. When smartctl is used, a device path is specified, for example smartctl-a/dev/sda (sda is the drive letter of a certain sata hard disk).
It should be noted that the south bridge chip is connected with the CPU through DMI (DIRECT MEDIA INTERFACE ) technology, so that the north bridge pressure is released, the overall performance of the system is improved, and the BMC communicates with the CPU of the device system through LPC (Low Pin Count Bus, reduced pin bus) for managing hardware resources of the device system.
As shown in the circuit diagram of fig. 2, taking a hard disk as an example, the hard disk SATA1 corresponds to LED1 and the hard disk SATA2 corresponds to LED2. The server OS (Operating System) runs commands related to the IPMI (INTELLIGENT PLATFORM MANAGEMENT INTERFACE ) interface in-band, and transmits the health status information of the hard disk to the BMC. And the BMC displays the multi-mode display state information according to the health state information of the SATA hard disk.
Specifically, the central processing unit is configured to poll each hard disk on the hard disk backboard by using a hard disk monitoring tool based on the first communication transmission link through a system in-band program, so as to obtain health status information of each hard disk, and transmit the health status information to the baseboard management controller through the system in-band program.
The baseboard management controller is used for acquiring the health state information transmitted by the central processing unit based on the intelligent platform management interface based on the first communication transmission link.
Fig. 5 is a flowchart illustrating the determination of the health status of the hard disk according to the hardware connection structure implementation of fig. 4. The method comprises the steps that an equipment system is a server, firstly, a server OS in-band program obtains hard disk SMART information by using smartctl-a/dev/sda, secondly, the server OS in-band program transmits the SMART information to a BMC by using an IPMI interface, the BMC generates display state information corresponding to the hard disk according to the SMART information in a table look-up mode, the display state information corresponding to each hard disk is obtained through polling, and then the BMC transmits the display state information corresponding to each indicator lamp device on a hard disk backboard through GPIO by adopting a single-wire return-to-zero communication mechanism. When the indicator light device receives the display status information, as shown in the LED data transmission flow chart recorded in fig. 3, after the display control information of the first data is intercepted and used, the remaining data information is forwarded and pushed to the following LED.
Based on the above embodiment, the description will be given of presetting a second hard disk connection structure in a plurality of hard disk connection structures in the device system. Fig. 6 is a schematic diagram of a second hard disk connection structure. The device system adopts a second hard disk connection structure, and the central processing unit and the baseboard management controller respectively establish a second communication transmission link with the hard disk through target hardware devices, wherein the target hardware devices are hardware devices supporting management by using a monitoring management tool and comprise independent redundant disk array cards and/or serial connection SCSI interface cards;
the CPU is connected with the target hardware device through an interface based on a high-speed serial computer expansion bus standard, the baseboard management controller is connected with the target hardware device through an integrated circuit bus interface, and the hard disk is a hard disk with different interface standards.
In the embodiment of the application, the BMC manages the hard disk connected by the target device, wherein the target device can comprise a RAID card and/or an SAS card, and the target device and the SAS card are hardware devices supporting management by using a monitoring management tool. The BMC accesses the SMART information through a monitoring management tool (e.g., storCLI of MegaRAID) integrated within the BMC firmware. Such as:
sudo storcli /c0 /eall /sall show;
sudo smartctl-a-D MEGARAID, N/dev/sdX, where N is the device ID on the RAID controller.
Specifically, the baseboard management controller is configured to access each hard disk connected to the target hardware device by using the internal integrated monitoring management tool through the second communication transmission link in the second hard disk connection structure, so as to obtain health status information of each hard disk.
It should be noted that, the CPU is connected to the target hardware device through a PCIE interface, and the BMC is connected to the target hardware device through an I2C (Inter-INTEGRATED CIRCUIT) interface.
Fig. 7 is a flowchart illustrating the determination of the health status of the hard disk according to the hardware connection structure implementation of fig. 6. The method comprises the steps that a BMC (baseboard management controller) manages hard disks connected by RAID (redundant array of independent disks), firstly, the BMC uses a monitoring management tool integrated in firmware of the BMC to access SMART information of all hard disks under a RAID card, secondly, the BMC generates display state information corresponding to the hard disks according to the SMART information in a table look-up mode, and finally, the BMC transmits the corresponding display state information to each indicator lamp device on a hard disk backboard through GPIO by adopting a single-wire return-to-zero communication mechanism. When the indicator light device receives the display status information, as shown in the LED data transmission flow chart recorded in fig. 3, after the display control information of the first data is intercepted and used, the remaining data information is forwarded and pushed to the following LED.
Based on the above embodiments, the description will be given of presetting a third hard disk connection structure among a plurality of hard disk connection structures in the device system. Fig. 8 is a schematic diagram of a third hard disk connection structure. The equipment system adopts a third hard disk connection structure, and the central processing unit and the baseboard management controller are directly connected with the hard disk to establish a third communication transmission link;
The CPU is connected with the hard disk through an interface based on a high-speed serial computer expansion bus standard, the baseboard management controller is connected with the hard disk through a management interface based on a hard disk with a nonvolatile memory host controller interface specification, and the hard disk is a hard disk which can be directly monitored and managed through the baseboard management controller.
In the embodiment of the application, the NVME hard disk directly connected with PCIE (Peripheral Component Interconnect Express) interfaces of the CPU is taken as an example for BMC management. The NVME is provided with an NVME-MI interface that allows the NVME device to be monitored and managed by a management controller such as the BMC without relying on the host operating system. This approach typically uses SMBUS (SYSTEM MANAGEMENT Bus)/I2C or PCIE VDM (Vendor DEFINED MESSAGES) as a transmission channel. The BMC manages NVME hard disk of PCIE interface directly connected with CPU.
Fig. 9 is a flowchart illustrating the determination of the health status of the hard disk according to the hardware connection structure implementation of fig. 8. The method comprises the steps that a BMC (baseboard management controller) is used for acquiring SMART (SMART technology) information of all NVME hard disks by using an NVME-MI interface, secondly, the BMC looks up and produces display state information corresponding to the hard disk according to the SMART information, and finally, the BMC transmits the corresponding display state information to each indicator lamp device on a hard disk backboard by using a single-wire return-to-zero communication mechanism through GPIO. When the indicator light device receives the display status information, as shown in the LED data transmission flow chart recorded in fig. 3, after the display control information of the first data is intercepted and used, the remaining data information is forwarded and pushed to the following LED.
Further, the embodiment of the invention discloses a method for monitoring the state of a hard disk of an equipment system, wherein the equipment system comprises an equipment main board and a hard disk backboard, a central processing unit and a baseboard management controller are arranged on the equipment main board, an indicator lamp device and hard disks with different interface standards are arranged on the hard disk backboard, the equipment system adopts any hard disk connection structure of a plurality of preset hard disk connection structures, and the central processing unit and the baseboard management controller respectively establish communication transmission links with the hard disks, as shown in fig. 10, the method comprises the following steps:
And S11, acquiring health state information of the hard disk through the communication transmission link in any hard disk connection structure.
And step S12, the display state information of the indicator light device corresponding to the health state information is matched from a preset indicator light multi-mode state table, and the preset indicator light multi-mode state table is used for recording the corresponding relation between different health state information and different display state information.
And step S13, performing color display control on the indicator lamp device based on the display state information so as to judge the health state of the hard disk through the display color of the indicator lamp device.
The more specific working process of the above steps may refer to the corresponding content disclosed in the foregoing embodiment, and will not be described herein.
The application discloses a hard disk state monitoring method of an equipment system, which comprises an equipment main board and a hard disk backboard, wherein a central processing unit and a baseboard management controller are arranged on the equipment main board, an indicator lamp device and hard disks with different interface standards are arranged on the hard disk backboard, the equipment system adopts any one hard disk connection structure among a plurality of preset hard disk connection structures, the central processing unit and the baseboard management controller are respectively connected with the hard disks in a communication transmission mode, health state information of the hard disks is obtained through the communication transmission link in any one hard disk connection structure, display state information of the indicator lamp device corresponding to the health state information is matched from a preset indicator lamp multi-mode state table, the preset indicator lamp multi-mode state table is used for recording corresponding relations between different health state information and different display state information, and color display control is carried out on the indicator lamp device based on the display state information so as to judge the health state of the hard disks through the display color of the indicator lamp device.
The application has the beneficial technical effects that the equipment system can adopt different hard disk connection structures, a communication transmission link is established between the central processing unit and the base plate management controller as well as the hard disk, and the health status monitoring of the hard disk with different interface standards commonly used by the server on the market is realized. The substrate management controller manages the hard disk by using a preset indicator lamp multi-mode state table, controls the corresponding indicator lamp device to display the health state of the hard disk, and can display the color of different lamplight aiming at different hard disk faults, so that the abnormal state information of each hard disk has the color display corresponding to the abnormal state information. Therefore, the equipment abnormality identification is conveniently carried out by the field operation and maintenance personnel of the data center, the abnormal equipment is processed and replaced in advance before the hard disk is completely failed, and the downtime probability of the server of the data center is reduced.
Correspondingly, the embodiment of the application also discloses a hard disk state monitoring device of an equipment system, wherein the equipment system comprises an equipment main board and a hard disk backboard, the equipment main board is provided with a central processing unit and a baseboard management controller, the hard disk backboard is provided with an indicator lamp device and hard disks with different interface standards, the equipment system adopts any one hard disk connection structure among a plurality of preset hard disk connection structures to respectively establish a communication transmission link between the central processing unit and the baseboard management controller and the hard disks, and the device comprises the following components as shown in fig. 11:
the health state information obtaining module 11 is configured to obtain health state information of the hard disk through the communication transmission link in the arbitrary hard disk connection structure;
The display state information acquisition module 12 is used for matching display state information of the indicator light device corresponding to the health state information from a preset indicator light multi-mode state table, wherein the preset indicator light multi-mode state table is used for recording corresponding relations between different health state information and different display state information;
And the health state judging module 13 is used for performing color display control on the indicator light device based on the display state information so as to judge the health state of the hard disk through the display color of the indicator light device.
The more specific working process of each module may refer to the corresponding content disclosed in the foregoing embodiment, and will not be described herein.
The device system comprises a device main board and a hard disk backboard, wherein a central processing unit and a baseboard management controller are arranged on the device main board, an indicator lamp device and hard disks with different interface standards are arranged on the hard disk backboard, the device system adopts any one of a plurality of preset hard disk connection structures to respectively establish communication transmission links with the central processing unit and the baseboard management controller and the hard disks, and concretely, health state information of the hard disks is obtained through the communication transmission links in any one of the hard disk connection structures, display state information of the indicator lamp device corresponding to the health state information is matched from a preset indicator lamp multi-mode state table, the preset indicator lamp multi-mode state table is used for recording corresponding relations between different health state information and different display state information, and color display control is carried out on the indicator lamp device based on the display state information so as to judge the health state of the hard disks through display colors of the indicator lamp device.
The application has the beneficial technical effects that the equipment system can adopt different hard disk connection structures, a communication transmission link is established between the central processing unit and the base plate management controller as well as the hard disk, and the health status monitoring of the hard disk with different interface standards commonly used by the server on the market is realized. The substrate management controller manages the hard disk by using a preset indicator lamp multi-mode state table, controls the corresponding indicator lamp device to display the health state of the hard disk, and can display the color of different lamplight aiming at different hard disk faults, so that the abnormal state information of each hard disk has the color display corresponding to the abnormal state information. Therefore, the equipment abnormality identification is conveniently carried out by the field operation and maintenance personnel of the data center, the abnormal equipment is processed and replaced in advance before the hard disk is completely failed, and the downtime probability of the server of the data center is reduced.
Further, the embodiment of the present application further discloses an electronic device, and fig. 12 is a block diagram of an electronic device 20 according to an exemplary embodiment, where the content of the figure is not to be considered as any limitation on the scope of use of the present application.
Fig. 12 is a schematic structural diagram of an electronic device 20 according to an embodiment of the present application. The electronic device 20 may include, in particular, at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input-output interface 25, and a communication bus 26. The memory 22 is configured to store a computer program, where the computer program is loaded and executed by the processor 21 to implement relevant steps in the method for monitoring a hard disk state of an apparatus system disclosed in any of the foregoing embodiments. In addition, the electronic device 20 in the present embodiment may be a server.
In this embodiment, the power supply 23 is configured to provide working voltages for each hardware device on the electronic device 20, the communication interface 24 is capable of creating a data transmission channel with an external device for the electronic device 20, and the communication protocol to be followed is any communication protocol applicable to the technical solution of the present application, which is not specifically limited herein, and the input/output interface 25 is configured to obtain external input data or output data to the external device, and the specific interface type of the input/output interface may be selected according to the specific application needs and is not specifically limited herein.
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 resources stored thereon may include an operating system 221, a computer program 222, data 223, and the like, and the data 223 may include various data. The storage means may be a temporary storage or a permanent storage.
The operating system 221 is used for managing and controlling various hardware devices on the electronic device 20 and the computer program 222, which may be Windows Server, netware, unix, linux, etc. The computer program 222 may further include a computer program that can be used to perform other specific tasks in addition to the computer program that can be used to perform the method of monitoring the state of a hard disk of a device system executed by the electronic device 20 as disclosed in any of the previous embodiments.
Further, embodiments of the present application also disclose a computer readable storage medium, where the computer readable storage medium includes random access Memory (Random Access Memory, RAM), memory, read-Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, magnetic disk, or optical disk, or any other form of storage medium known in the art. The computer program, when executed by the processor, implements the method for monitoring the hard disk state of the device system. For specific steps of the method, reference may be made to the corresponding contents disclosed in the foregoing embodiments, and no further description is given here.
Further, the embodiment of the application also provides a computer program product, which comprises a computer program/instruction, wherein the computer program/instruction realizes any one of the method for realizing the monitoring method of the hard disk state of the equipment system when being executed by a processor.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, so that the same or similar parts between the embodiments are referred to each other. 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.
The steps of a hard disk state monitoring method or algorithm of a device system 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.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.
The foregoing describes the principles and embodiments of the present invention in detail using specific examples to facilitate understanding of the method and core ideas of the present invention, and meanwhile, the present invention should not be construed as being limited to the embodiments and application scope of the present invention, since the technical personnel in the art can change the method and core ideas according to the ideas of the present invention.
Claims (15)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202411839804.0A CN119311524A (en) | 2024-12-13 | 2024-12-13 | Device system and hard disk status monitoring method, device, program product and medium thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202411839804.0A CN119311524A (en) | 2024-12-13 | 2024-12-13 | Device system and hard disk status monitoring method, device, program product and medium thereof |
Publications (1)
Publication Number | Publication Date |
---|---|
CN119311524A true CN119311524A (en) | 2025-01-14 |
Family
ID=94190865
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202411839804.0A Pending CN119311524A (en) | 2024-12-13 | 2024-12-13 | Device system and hard disk status monitoring method, device, program product and medium thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN119311524A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103645981A (en) * | 2013-11-15 | 2014-03-19 | 华为技术有限公司 | Hard disk identification method and system |
CN109117342A (en) * | 2018-08-13 | 2019-01-01 | 郑州云海信息技术有限公司 | A kind of server and its hard disk health status monitoring system |
CN109446003A (en) * | 2018-10-17 | 2019-03-08 | 郑州云海信息技术有限公司 | A kind of method of state instruction, controller and storage medium |
CN109857602A (en) * | 2019-01-04 | 2019-06-07 | 郑州云海信息技术有限公司 | A kind of server hard disk back plane health status monitoring device, method and system |
CN117076179A (en) * | 2023-08-31 | 2023-11-17 | 浪潮(山东)计算机科技有限公司 | A hard disk indicator light control method, device, electronic equipment and storage medium |
CN118012507A (en) * | 2024-04-09 | 2024-05-10 | 安擎计算机信息股份有限公司 | Management method of PCH (physical downlink control channel) direct-out hard disk and server |
-
2024
- 2024-12-13 CN CN202411839804.0A patent/CN119311524A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103645981A (en) * | 2013-11-15 | 2014-03-19 | 华为技术有限公司 | Hard disk identification method and system |
CN109117342A (en) * | 2018-08-13 | 2019-01-01 | 郑州云海信息技术有限公司 | A kind of server and its hard disk health status monitoring system |
CN109446003A (en) * | 2018-10-17 | 2019-03-08 | 郑州云海信息技术有限公司 | A kind of method of state instruction, controller and storage medium |
CN109857602A (en) * | 2019-01-04 | 2019-06-07 | 郑州云海信息技术有限公司 | A kind of server hard disk back plane health status monitoring device, method and system |
CN117076179A (en) * | 2023-08-31 | 2023-11-17 | 浪潮(山东)计算机科技有限公司 | A hard disk indicator light control method, device, electronic equipment and storage medium |
CN118012507A (en) * | 2024-04-09 | 2024-05-10 | 安擎计算机信息股份有限公司 | Management method of PCH (physical downlink control channel) direct-out hard disk and server |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10896113B2 (en) | Method for implementing backplane lighting for multiple NVMe hard disks | |
CN106776196A (en) | A kind of server hard disc method for monitoring state and system | |
CN107832199A (en) | Hard disk monitoring system based on CPLD | |
CN107491148A (en) | A kind of server hard disc attachment structure | |
US7356431B2 (en) | Method for testing an input/output functional board | |
US8082368B2 (en) | Display device for indicating connection statuses of a communication channel provided between two systems and method thereof | |
CN105955898A (en) | Hard disk backboard compatible with SAS hard disk and NVMe hard disk | |
CN107577569A (en) | A kind of server hard disc attachment structure and its application process | |
CN111400121B (en) | Server hard disk slot positioning and maintaining method | |
US20150149684A1 (en) | Handling two ses sidebands using one smbus controller on a backplane controller | |
US9507744B2 (en) | Handling two SGPIO channels using single SGPIO decoder on a backplane controller | |
CN108845763A (en) | A kind of system and method for managing disk state concentratedly | |
CN108563549A (en) | A kind of interface hard disk state instruction control system and method based on CPLD-FPGA | |
CN109446142B (en) | Electronic equipment, mainboard and control method | |
CN102479140A (en) | Computer system and hard disk state display method thereof | |
US8005993B2 (en) | System and method of a storage expansion unit for a network attached storage device | |
CN101163308B (en) | Intelligent platform management controller | |
CN102376338B (en) | Hard disk module | |
CN102841838B (en) | I2C and SGPIO automatic detection device, system and method thereof | |
US7096155B2 (en) | Method, system and apparatus for providing real-time led status of embedded controllers to system management software | |
US20150370679A1 (en) | Server and device for analyzing a signal thereof | |
CN113204475B (en) | Lighting device and method for hard disk of server backboard and server | |
CN119311524A (en) | Device system and hard disk status monitoring method, device, program product and medium thereof | |
CN118377428A (en) | Method, device, equipment and medium for determining hard disk working state | |
TWI823378B (en) | Hard drive indicator circuit and hard drive backplane |
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 |