CN114758715B - Method, device and equipment for lighting hard disk fault lamp and readable storage medium - Google Patents

Method, device and equipment for lighting hard disk fault lamp and readable storage medium Download PDF

Info

Publication number
CN114758715B
CN114758715B CN202210466979.6A CN202210466979A CN114758715B CN 114758715 B CN114758715 B CN 114758715B CN 202210466979 A CN202210466979 A CN 202210466979A CN 114758715 B CN114758715 B CN 114758715B
Authority
CN
China
Prior art keywords
hard disk
target
information
fault
asset information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210466979.6A
Other languages
Chinese (zh)
Other versions
CN114758715A (en
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 CN202210466979.6A priority Critical patent/CN114758715B/en
Publication of CN114758715A publication Critical patent/CN114758715A/en
Application granted granted Critical
Publication of CN114758715B publication Critical patent/CN114758715B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C29/00Checking stores for correct operation ; Subsequent repair; Testing stores during standby or offline operation
    • G11C29/04Detection or location of defective memory elements, e.g. cell constructio details, timing of test signals
    • G11C29/08Functional testing, e.g. testing during refresh, power-on self testing [POST] or distributed testing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3037Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a memory, e.g. virtual memory, cache
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention discloses a method for lighting a hard disk fault lamp, which comprises the following steps: when detecting that the NVMe hard disk faults exist, receiving target asset information of the fault NVMe hard disk read in the CPU band; asset information respectively corresponding to each NVMe hard disk in a system read out of the CPLD band is received; respectively comparing each asset information with the target asset information to obtain target identification information of the fault NVMe hard disk; the target identification information is sent to the CPLD, so that the CPLD determines a target fault lamp corresponding to the fault NVMe hard disk according to the target identification information, and controls the target fault lamp to be lightened; the CPLD is pre-stored with the corresponding relation between each piece of identification information and each fault lamp. The invention meets the requirement of clients on realizing real-time lighting of the NVMe hard disk faults and realizes the early warning of the NVMe hard disk faults. The invention also discloses a device, equipment and storage medium for lighting the hard disk fault lamp, which have corresponding technical effects.

Description

Method, device and equipment for lighting hard disk fault lamp and readable storage medium
Technical Field
The present invention relates to the field of storage technologies, and in particular, to a method, an apparatus, a device, and a computer readable storage medium for lighting a hard disk fault lamp.
Background
At present, on some CPU (Central Processing Unit ) platform servers, such as a marine light CPU platform server, because of platform limitation, a fault lamp of an NVMe (NVM Express, nonvolatile storage) hard disk cannot be automatically lightened, so that the fault early warning of the NVMe hard disk cannot be realized, and a plurality of inconveniences are brought to users and manufacturers of the whole machine.
In summary, how to effectively solve the problem that the fault lamp of the NVMe hard disk cannot be automatically turned on due to the limitation of the platform is a problem that needs to be solved by those skilled in the art.
Disclosure of Invention
The invention aims to provide a method for lighting a hard disk fault lamp, which meets the requirement of customers on realizing real-time lighting of NVMe hard disk faults and realizes the early warning of the NVMe hard disk faults; another object of the present invention is to provide a hard disk malfunction lamp lighting apparatus, device, and computer-readable storage medium.
In order to solve the technical problems, the invention provides the following technical scheme:
a method for lighting a hard disk failure lamp, comprising:
when detecting that the NVMe hard disk faults exist, receiving target asset information of the fault NVMe hard disk read in the CPU band;
asset information respectively corresponding to each NVMe hard disk in a system read out of the CPLD band is received;
respectively comparing each asset information with the target asset information to obtain target identification information of the fault NVMe hard disk;
the target identification information is sent to the CPLD, so that the CPLD determines a target fault lamp corresponding to the fault NVMe hard disk according to the target identification information, and controls the target fault lamp to be lightened; and the CPLD is pre-stored with the corresponding relation between each piece of identification information and each fault lamp.
In a specific embodiment of the present invention, comparing each asset information with the target asset information to obtain the target identification information of the failed NVMe hard disk, including:
respectively comparing each asset information with the target asset information to obtain a target I2C bus serial number corresponding to the fault NVMe hard disk;
the target identification information is sent to the CPLD, so that the CPLD determines a target fault lamp corresponding to the fault NVMe hard disk according to the target identification information, and the target fault lamp comprises:
the target I2C bus serial number is sent to the CPLD, so that the CPLD determines a target fault lamp corresponding to the fault NVMe hard disk according to the target I2C bus serial number; and the CPLD is pre-stored with the corresponding relation between each I2C bus serial number and each fault lamp.
In a specific embodiment of the present invention, the determining, by the CPLD, the target fault lamp corresponding to the faulty NVMe hard disk according to the target I2C bus serial number includes:
the CPLD determines a target slot corresponding to the fault NVMe hard disk according to the target I2C bus serial number, and determines a fault lamp corresponding to the target slot as the target fault lamp; and the CPLD is pre-stored with the corresponding relation between each I2C bus serial number and each slot, and the corresponding relation between each slot and each fault lamp.
In one embodiment of the present invention, receiving target asset information of a failed NVMe hard disk read in-band by a CPU includes:
receiving target asset information of a fault NVMe hard disk sent by a BIOS; wherein the target asset information is read by the BIOS from a first register of the CPU; the CPU reads and stores the target asset information in advance through in-band.
In one embodiment of the present invention, the method for receiving the target asset information of the failed NVMe hard disk sent by the BIOS includes
And receiving target asset information of the fault NVMe hard disk sent by the BIOS through an LPC protocol.
In one embodiment of the present invention, comparing each of the asset information with the target asset information, respectively, includes:
storing the target asset information and each of the asset information in a second register;
and retrieving the target asset information and each asset information from the second register, and comparing each asset information with the target asset information respectively.
In one embodiment of the present invention, receiving target asset information of a failed NVMe hard disk read in-band by a CPU includes:
receiving fault information of the fault NVMe hard disk and the target asset information read in the CPU band;
after controlling the target fault lamp to be lighted, the method further comprises the following steps:
and outputting and displaying the fault information.
A hard disk failure lamp lighting device, comprising:
the first information receiving module is used for receiving target asset information of the fault NVMe hard disk read in the CPU band when the fault of the NVMe hard disk is detected;
the second information receiving module is used for receiving asset information respectively corresponding to each NVMe hard disk in the system read out of the CPLD band;
the identification information obtaining module is used for respectively comparing each asset information with the target asset information to obtain the target identification information of the fault NVMe hard disk;
the fault lamp lighting control module is used for sending the target identification information to the CPLD so that the CPLD can determine a target fault lamp corresponding to the fault NVMe hard disk according to the target identification information and control the target fault lamp to be lighted; and the CPLD is pre-stored with the corresponding relation between each piece of identification information and each fault lamp.
A hard disk failure lamp lighting device, comprising:
a memory for storing a computer program;
and the processor is used for realizing the steps of the hard disk fault lamp lighting method when executing the computer program.
A computer readable storage medium having stored thereon a computer program which when executed by a processor implements the steps of a hard disk hazard lamp lighting method as described above.
According to the method for lighting the fault lamp of the hard disk, when the fault of the NVMe hard disk is detected, the target asset information of the fault NVMe hard disk read in the CPU band is received; asset information respectively corresponding to each NVMe hard disk in a system read out of the CPLD band is received; respectively comparing each asset information with the target asset information to obtain target identification information of the fault NVMe hard disk; the target identification information is sent to the CPLD, so that the CPLD determines a target fault lamp corresponding to the fault NVMe hard disk according to the target identification information, and controls the target fault lamp to be lightened; the CPLD is pre-stored with the corresponding relation between each piece of identification information and each fault lamp.
According to the technical scheme, the target asset information of the fault NVMe hard disk is read in-band by utilizing the CPU, asset information corresponding to each NVMe hard disk in the CPLD out-of-band reading system is utilized, and the asset information read out-of-band is compared with the target asset information, so that the target identification information of the fault NVMe hard disk is determined. And the CPLD pre-stores the corresponding relation between the identification information of each NVMe hard disk and each fault lamp, determines the target fault lamp corresponding to the fault NVMe hard disk according to the target identification information after determining the target identification information of the fault NVMe hard disk, and controls the target fault lamp to be lightened. Therefore, the requirement of clients on real-time lighting of the NVMe hard disk faults is met, and the NVMe hard disk fault early warning is realized.
Correspondingly, the invention also provides a hard disk fault lamp lighting device, equipment and a computer readable storage medium corresponding to the hard disk fault lamp lighting method, which have the technical effects and are not repeated herein.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a method for lighting a hard disk failure lamp according to an embodiment of the present invention;
FIG. 2 is a flowchart of another embodiment of a method for lighting a hard disk failure lamp according to the present invention;
FIG. 3 is a flowchart of another embodiment of a method for lighting a hard disk failure lamp according to the present invention;
FIG. 4 is a block diagram of a system for lighting a hard disk failure lamp according to an embodiment of the present invention;
FIG. 5 is a block diagram of a device for lighting a hard disk failure lamp according to an embodiment of the present invention;
FIG. 6 is a block diagram of a hard disk failure lamp lighting device according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a specific structure of a hard disk fault lamp lighting device according to the present embodiment.
Detailed Description
In order to better understand the aspects of the present invention, the present invention will be described in further detail with reference to the accompanying drawings and detailed description. It will be apparent that the described embodiments are only some, but not all, embodiments of the 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.
Referring to fig. 1, fig. 1 is a flowchart of a method for lighting a hard disk fault lamp according to an embodiment of the present invention, where the method may include the following steps:
s101: and when detecting that the NVMe hard disk faults exist, receiving target asset information of the fault NVMe hard disk read in the CPU.
During the running process of the server, a baseboard management controller (Baseboard Management Controller, BMC) detects faults of each NVMe hard disk in the server. When detecting that the NVMe hard disk faults exist, the CPU is utilized to read target asset information of the fault NVMe hard disk in an in-band mode, and the baseboard management controller receives the target asset information of the fault NVMe hard disk read in the in-band mode. Because only the target asset information of the fault NVMe hard disk is read in-band, the direct and rapid reading of the target asset information of the fault NVMe hard disk can be realized without occupying excessive server network resources.
The target asset information may include hard disk size information, manufacturer information, firmware information, serial number information, etc. of the failed NVMe hard disk.
S102: and receiving asset information respectively corresponding to each NVMe hard disk in the system read out of the CPLD band.
When detecting that the fault exists in the NVMe hard disk, asset information corresponding to each NVMe hard disk in the system is read out through a CPLD (Complex Programmable Logic Device ) in an out-of-band mode, and the baseboard management controller receives the asset information corresponding to each NVMe hard disk in the system read out through the CPLD in an out-of-band mode. Because the asset information data quantity of the plurality of NVMe hard disks is larger, the occupation of network resources of the server is avoided by the asset information corresponding to each NVMe hard disk in the CPLD out-of-band reading system.
S103: and respectively comparing the asset information with the target asset information to obtain the target identification information of the fault NVMe hard disk.
After receiving the target asset information of the fault NVMe hard disk read in the CPU band and receiving asset information corresponding to each NVMe hard disk in the system read out of the CPLD band, respectively comparing each asset information with the target asset information, for example, respectively comparing the hard disk size information, manufacturer information, firmware information and serial number information of each NVMe hard disk with the hard disk size information, manufacturer information, firmware information and serial number information of the fault NVMe hard disk, determining the NVMe hard disk corresponding to the asset information which is the same as the target asset information of the fault NVMe hard disk and read by the CPLD as the fault NVMe hard disk, and obtaining the identification information of the fault NVMe hard disk to obtain the target identification information of the fault NVMe hard disk.
The target identification information is information having a unique identification function on the NVMe hard disk, for example, may be serial number information of the NVMe hard disk.
S104: and transmitting the target identification information to the CPLD so that the CPLD determines a target fault lamp corresponding to the fault NVMe hard disk according to the target identification information and controls the target fault lamp to be lightened.
The CPLD is pre-stored with the corresponding relation between each piece of identification information and each fault lamp.
The CPLD stores the corresponding relation between each identification information and each fault lamp in advance. After the target identification information of the failed NVMe hard disk is obtained through comparison, the target identification information is sent to the CPLD, and the CPLD determines a target fault lamp corresponding to the failed NVMe hard disk according to the target identification information and controls the target fault lamp to be lightened. Therefore, through cooperation of different firmware of the server, the requirements of clients on realizing real-time lighting of the NVMe hard disk faults are met, and the NVMe hard disk fault early warning is realized.
In a specific embodiment of the present invention, receiving the target asset information of the failed NVMe hard disk read in-band by the CPU may include the following steps:
receiving fault information and target asset information of a fault NVMe hard disk read in a CPU (Central processing Unit) band;
accordingly, after the control target fault lamp is turned on, the method may further include the steps of:
and outputting and displaying the fault information.
When detecting that the fault exists in the NVMe hard disk, the CPU can read the fault information of the fault NVMe hard disk besides the target asset information of the fault NVMe hard disk. And the baseboard management controller receives the fault information of the fault NVMe hard disk, and outputs and displays the fault information after the control target fault lamp is lightened. Thereby facilitating maintenance personnel to maintain the fault NVMe hard disk according to the displayed fault information.
According to the technical scheme, the target asset information of the fault NVMe hard disk is read in-band by utilizing the CPU, asset information corresponding to each NVMe hard disk in the CPLD out-of-band reading system is utilized, and the asset information read out-of-band is compared with the target asset information, so that the target identification information of the fault NVMe hard disk is determined. And the CPLD pre-stores the corresponding relation between the identification information of each NVMe hard disk and each fault lamp, determines the target fault lamp corresponding to the fault NVMe hard disk according to the target identification information after determining the target identification information of the fault NVMe hard disk, and controls the target fault lamp to be lightened. Therefore, the requirement of clients on real-time lighting of the NVMe hard disk faults is met, and the NVMe hard disk fault early warning is realized.
It should be noted that, based on the above embodiments, the embodiments of the present invention further provide corresponding improvements. The following embodiments relate to the same steps as those in the above embodiments or the steps corresponding to the steps may be referred to each other, and the corresponding beneficial effects may also be referred to each other, which will not be described in detail in the following modified embodiments.
Referring to fig. 2, fig. 2 is a flowchart of another implementation of a method for lighting a hard disk fault lamp according to an embodiment of the present invention, where the method may include the following steps:
s201: and when detecting that the NVMe hard disk faults exist, receiving target asset information of the fault NVMe hard disk read in the CPU.
S202: and receiving asset information respectively corresponding to each NVMe hard disk in the system read out of the CPLD band.
S203: and respectively comparing the asset information with the target asset information to obtain the target I2C bus serial number corresponding to the fault NVMe hard disk.
Each asset information read out by the CPLD in an out-of-band way comprises an I2C bus serial number of each NVMe hard disk, and the target asset information read by the CPU comprises a target I2C bus serial number corresponding to the fault NVMe hard disk. And respectively comparing the asset information with the target asset information to obtain the target I2C bus serial number corresponding to the fault NVMe hard disk.
S204: and sending the target I2C bus serial number to the CPLD so that the CPLD determines a target fault lamp corresponding to the fault NVMe hard disk according to the target I2C bus serial number and controls the target fault lamp to be lightened.
The CPLD is pre-stored with the corresponding relation between each I2C bus serial number and each fault lamp.
The CPLD is pre-stored with the corresponding relation between each I2C bus serial number and each fault lamp. After the target I2C bus serial numbers corresponding to the faulty NVMe hard disks are obtained through comparison, the target I2C bus serial numbers are sent to the CPLD, and the CPLD determines target fault lamps corresponding to the faulty NVMe hard disks according to the target I2C bus serial numbers and controls the target fault lamps to be lightened. The uniqueness of the I2C bus serial number is fully utilized, so that the target fault lamp is rapidly and accurately positioned.
In a specific embodiment of the present invention, the CPLD determines, according to the target I2C bus serial number, a target fault lamp corresponding to the faulty NVMe hard disk, and may include the following steps:
the CPLD determines a target slot corresponding to the fault NVMe hard disk according to the target I2C bus serial number, and determines a fault lamp corresponding to the target slot as a target fault lamp; the CPLD is pre-stored with the corresponding relation between each I2C bus serial number and each slot, and the corresponding relation between each slot and each fault lamp.
The CPLD is pre-stored with the corresponding relation between each I2C bus serial number and each slot (slot), and the corresponding relation between each slot and each fault lamp is stored. After the CPLD receives the target I2C bus serial number of the fault NVMe hard disk, a target slot corresponding to the fault NVMe hard disk is determined according to the target I2C bus serial number, and a fault lamp corresponding to the target slot is determined as a target fault lamp.
Referring to fig. 3, fig. 3 is a flowchart illustrating another implementation of a method for lighting a hard disk fault lamp according to an embodiment of the present invention, where the method may include the following steps:
s301: and when detecting that the NVMe hard disk faults exist, receiving target asset information of the fault NVMe hard disk sent by the BIOS.
The target asset information is read by the BIOS from a first register of the CPU; the CPU reads and stores the target asset information in advance through in-band.
Referring to fig. 4, fig. 4 is a block diagram illustrating a hard disk failure lamp lighting system according to an embodiment of the present invention. A first register for storing information read from the failed NVMe hard disk is previously divided in the CPU. When detecting that the NVMe hard disk is in fault, the CPU reads target asset information of the fault NVMe hard disk in-band through PCIE (Peripheral Component Interconnect Express, high-speed serial computer expansion bus) in advance through action (1), and stores the read target asset information into a first register through action (2). The BIOS (Basic Input Output System) reads the target asset information from the first register of the CPU through the action (3) based on the input/output system, and transmits the target asset information of the failed NVMe hard disk to the baseboard management controller through the action (4), and the baseboard management controller receives the target asset information of the failed NVMe hard disk sent by the BIOS. The mutual collaboration of different firmware in the server is fully utilized, and the effective acquisition of the target asset information of the fault NVMe hard disk is realized.
In a specific embodiment of the present invention, receiving the target asset information of the failed NVMe hard disk sent by the BIOS may include the following steps:
and receiving target asset information of the fault NVMe hard disk sent by the BIOS through the LPC protocol.
After the BIOS reads the target asset information, the target asset information of the failed NVMe hard disk may be sent to the baseboard management controller through the LPC protocol. And the baseboard management controller receives target asset information of the fault NVMe hard disk, which is sent by the BIOS through the LPC protocol. The advantage of easy layout of the LPC protocol bus is fully utilized.
S302: and receiving asset information respectively corresponding to each NVMe hard disk in the system read out of the CPLD band.
S303: and respectively comparing the asset information with the target asset information to obtain the target identification information of the fault NVMe hard disk.
In one embodiment of the present invention, comparing each asset information with the target asset information, respectively, may include the steps of:
step one: storing the target asset information and each asset information in a second register;
step two: and retrieving the target asset information and the asset information from the second register, and comparing the asset information with the target asset information respectively.
For convenience of description, the above two steps may be combined for explanation.
As shown in fig. 4, the baseboard management controller is pre-divided into a second register storing the hard disk information read in-band and out-of-band. After receiving the target asset information of the in-band read failure NVMe hard disk and reading each asset information through action (7), the baseboard management controller stores the target asset information and each asset information in a second register, retrieves the target asset information and each asset information from the second register, and compares each asset information with the target asset information.
S304: and transmitting the target identification information to the CPLD so that the CPLD determines a target fault lamp corresponding to the fault NVMe hard disk according to the target identification information and controls the target fault lamp to be lightened.
The CPLD is pre-stored with the corresponding relation between each piece of identification information and each fault lamp.
As shown in fig. 4, after comparing the target identification information of the failed NVMe hard disk, the baseboard management controller sends the target identification information to the CPLD through action (5), and the CPLD determines a target failure lamp corresponding to the failed NVMe hard disk according to the target identification information, and controls the target failure lamp to be turned on through action (6).
Corresponding to the above method embodiment, the present invention further provides a hard disk fault lamp lighting device, where the hard disk fault lamp lighting device described below and the hard disk fault lamp lighting method described above can be referred to correspondingly.
Referring to fig. 5, fig. 5 is a block diagram illustrating a hard disk fault lamp lighting device according to an embodiment of the present invention, where the device may include:
the first information receiving module 51 is configured to receive, when detecting that an NVMe hard disk failure exists, target asset information of the failed NVMe hard disk read in-band by the CPU;
the second information receiving module 52 is configured to receive asset information corresponding to each NVMe hard disk in the system read out of band by the CPLD;
the identification information obtaining module 53 is configured to compare each asset information with the target asset information to obtain target identification information of the failed NVMe hard disk;
the fault lamp lighting control module 54 is configured to send target identification information to the CPLD, so that the CPLD determines a target fault lamp corresponding to the faulty NVMe hard disk according to the target identification information, and controls the target fault lamp to be lighted; the CPLD is pre-stored with the corresponding relation between each piece of identification information and each fault lamp.
According to the technical scheme, the target asset information of the fault NVMe hard disk is read in-band by utilizing the CPU, asset information corresponding to each NVMe hard disk in the CPLD out-of-band reading system is utilized, and the asset information read out-of-band is compared with the target asset information, so that the target identification information of the fault NVMe hard disk is determined. And the CPLD pre-stores the corresponding relation between the identification information of each NVMe hard disk and each fault lamp, determines the target fault lamp corresponding to the fault NVMe hard disk according to the target identification information after determining the target identification information of the fault NVMe hard disk, and controls the target fault lamp to be lightened. Therefore, the requirement of clients on real-time lighting of the NVMe hard disk faults is met, and the NVMe hard disk fault early warning is realized.
In a specific embodiment of the present invention, the identification information obtaining module 53 is specifically a module for comparing each asset information with the target asset information to obtain the target I2C bus serial number corresponding to the failed NVMe hard disk;
the fault lamp lighting control module 54 specifically is a module that sends the target I2C bus serial number to the CPLD, so that the CPLD determines a target fault lamp corresponding to the faulty NVMe hard disk according to the target I2C bus serial number; the CPLD is pre-stored with the corresponding relation between each I2C bus serial number and each fault lamp.
In a specific embodiment of the present invention, the fault lamp lighting control module 54 is specifically a module that, by using the CPLD, determines a target slot corresponding to the faulty NVMe hard disk according to the target I2C bus serial number, and determines the fault lamp corresponding to the target slot as the target fault lamp; the CPLD is pre-stored with the corresponding relation between each I2C bus serial number and each slot, and the corresponding relation between each slot and each fault lamp.
In one embodiment of the present invention, the first information receiving module 51 is specifically a module for receiving the target asset information of the failed NVMe hard disk sent by the BIOS; the target asset information is read by the BIOS from a first register of the CPU; the CPU reads and stores the target asset information in advance through in-band.
In one embodiment of the present invention, the first information receiving module 51 is specifically a module that receives the target asset information of the failed NVMe hard disk sent by the BIOS through the LPC protocol.
In one embodiment of the present invention, the identification information obtaining module 53 includes:
an information storage sub-module for storing the target asset information and the asset information in a second register;
and the information comparison sub-module is used for retrieving the target asset information and each asset information from the second register and respectively comparing each asset information with the target asset information.
In one embodiment of the present invention, the first information receiving module 51 is specifically a module for receiving the fault information and the target asset information of the fault NVMe hard disk read in-band by the CPU;
the apparatus may further include:
and the information output display module is used for performing output display operation on the fault information after the control target fault lamp is lightened.
Corresponding to the above method embodiment, referring to fig. 6, fig. 6 is a schematic diagram of a hard disk fault lamp lighting device provided by the present invention, where the device may include:
a memory 332 for storing a computer program;
and a processor 322, configured to implement the steps of the hard disk fault lamp lighting method according to the above method embodiment when executing the computer program.
Specifically, referring to fig. 7, fig. 7 is a schematic diagram of a specific structure of a hard disk fault lamp lighting device according to the present embodiment, where the hard disk fault lamp lighting device may have relatively large differences due to different configurations or performances, and may include a processor (central processing units, CPU) 322 (e.g., one or more processors) and a memory 332, where the memory 332 stores one or more computer applications 342 or data 344. Wherein the memory 332 may be transient storage or persistent storage. The program stored in memory 332 may include one or more modules (not shown), each of which may include a series of instruction operations in the data processing apparatus. Still further, the processor 322 may be configured to communicate with the memory 332 to perform a series of instruction operations in the memory 332 on the hard disk hazard lamp lighting device 301.
The hard disk hazard lamp lighting device 301 may also include one or more power supplies 326, one or more wired or wireless network interfaces 350, one or more input output interfaces 358, and/or one or more operating systems 341.
The steps in the above-described hard disk hazard lamp lighting method may be implemented by the structure of the hard disk hazard lamp lighting apparatus.
Corresponding to the above method embodiments, the present invention also provides a computer readable storage medium having a computer program stored thereon, which when executed by a processor, performs the steps of:
when detecting that the NVMe hard disk faults exist, receiving target asset information of the fault NVMe hard disk read in the CPU band; asset information respectively corresponding to each NVMe hard disk in a system read out of the CPLD band is received; respectively comparing each asset information with the target asset information to obtain target identification information of the fault NVMe hard disk; the target identification information is sent to the CPLD, so that the CPLD determines a target fault lamp corresponding to the fault NVMe hard disk according to the target identification information, and controls the target fault lamp to be lightened; the CPLD is pre-stored with the corresponding relation between each piece of identification information and each fault lamp.
The computer readable storage medium may include: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
For the description of the computer-readable storage medium provided by the present invention, refer to the above method embodiments, and the disclosure is not repeated here.
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. The apparatus, device and computer readable storage medium of the embodiments are described more simply because they correspond to the methods of the embodiments, and the description thereof will be given with reference to the method section.
The principles and embodiments of the present invention have been described herein with reference to specific examples, but the description of the examples above is only for aiding in understanding the technical solution 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 (9)

1. A method for lighting a hard disk fault lamp, which is applied to a baseboard management controller, comprising:
when detecting that the NVMe hard disk faults exist, the baseboard management controller receives target asset information of the fault NVMe hard disk read in the CPU band;
the baseboard management controller receives asset information respectively corresponding to each NVMe hard disk in the system read out of the CPLD; the asset information at least comprises hard disk size information, manufacturer information, firmware information and serial number information of each NVMe hard disk;
comparing each asset information with the target asset information to determine the faulty NVMe hard disk, and obtaining the target identification information of the faulty NVMe hard disk by carrying out identification information on the faulty NVMe hard disk; the target identification information is information with unique identification function on the NVMe hard disk; wherein said comparing each of said asset information with said target asset information, respectively, comprises: respectively comparing the hard disk size information, manufacturer information, firmware information and serial number information of each NVMe hard disk with the hard disk size information, manufacturer information, firmware information and serial number information of the fault NVMe hard disk;
the target identification information is sent to the CPLD, so that the CPLD determines a target fault lamp corresponding to the fault NVMe hard disk according to the target identification information, and controls the target fault lamp to be lightened; wherein, the CPLD is pre-stored with the corresponding relation between each identification information and each fault lamp;
the baseboard management controller receives target asset information of the fault NVMe hard disk read in the CPU band, and the target asset information comprises:
the baseboard management controller receives the target asset information of the fault NVMe hard disk sent by the BIOS; wherein the target asset information is read by the BIOS from a first register of the CPU; the CPU reads and stores the target asset information in advance through in-band;
wherein the CPU previously reading and storing the target asset information by in-band includes:
and the CPU reads the target asset information of the fault NVMe hard disk in-band through a PCIE high-speed line, and stores the read target asset information into the first register.
2. The method for lighting a hard disk fault lamp according to claim 1, wherein comparing each asset information with the target asset information to obtain target identification information of the faulty NVMe hard disk, respectively, comprises:
respectively comparing each asset information with the target asset information to obtain a target I2C bus serial number corresponding to the fault NVMe hard disk;
the target identification information is sent to the CPLD, so that the CPLD determines a target fault lamp corresponding to the fault NVMe hard disk according to the target identification information, and the target fault lamp comprises:
the target I2C bus serial number is sent to the CPLD, so that the CPLD determines a target fault lamp corresponding to the fault NVMe hard disk according to the target I2C bus serial number; and the CPLD is pre-stored with the corresponding relation between each I2C bus serial number and each fault lamp.
3. The method for lighting a fault lamp of a hard disk according to claim 2, wherein the CPLD determines a target fault lamp corresponding to the faulty NVMe hard disk according to the target I2C bus serial number, including:
the CPLD determines a target slot corresponding to the fault NVMe hard disk according to the target I2C bus serial number, and determines a fault lamp corresponding to the target slot as the target fault lamp; and the CPLD is pre-stored with the corresponding relation between each I2C bus serial number and each slot, and the corresponding relation between each slot and each fault lamp.
4. The method of claim 1, wherein receiving the target asset information of the failed NVMe hard disk sent by the BIOS comprises
And receiving target asset information of the fault NVMe hard disk sent by the BIOS through an LPC protocol.
5. The hard disk failure lamp lighting method according to claim 1, wherein comparing each of the asset information with the target asset information, respectively, comprises:
storing the target asset information and each of the asset information in a second register;
and retrieving the target asset information and each asset information from the second register, and comparing each asset information with the target asset information respectively.
6. The method for lighting a hard disk failure lamp according to any one of claims 1 to 5, wherein receiving the target asset information of the failed NVMe hard disk read in-band by the CPU comprises:
receiving fault information of the fault NVMe hard disk and the target asset information read in the CPU band;
after controlling the target fault lamp to be lighted, the method further comprises the following steps:
and outputting and displaying the fault information.
7. A hard disk failure lamp lighting device, characterized by being applied to a baseboard management controller, comprising:
the first information receiving module is used for receiving target asset information of the fault NVMe hard disk read in the CPU band when the fault of the NVMe hard disk is detected;
the second information receiving module is used for receiving asset information respectively corresponding to each NVMe hard disk in the system read out of the band by the CPLD by the baseboard management controller; the asset information at least comprises hard disk size information, manufacturer information, firmware information and serial number information of each NVMe hard disk;
the identification information obtaining module is used for respectively comparing each asset information with the target asset information to determine the fault NVMe hard disk, and obtaining the target identification information of the fault NVMe hard disk by carrying out identification information obtaining on the fault NVMe hard disk; the target identification information is information with unique identification function on the NVMe hard disk; wherein said comparing each of said asset information with said target asset information, respectively, comprises: respectively comparing the hard disk size information, manufacturer information, firmware information and serial number information of each NVMe hard disk with the hard disk size information, manufacturer information, firmware information and serial number information of the fault NVMe hard disk;
the fault lamp lighting control module is used for sending the target identification information to the CPLD so that the CPLD can determine a target fault lamp corresponding to the fault NVMe hard disk according to the target identification information and control the target fault lamp to be lighted; wherein, the CPLD is pre-stored with the corresponding relation between each identification information and each fault lamp;
the baseboard management controller receives target asset information of the fault NVMe hard disk read in the CPU band, and the target asset information comprises:
the baseboard management controller receives the target asset information of the fault NVMe hard disk sent by the BIOS; wherein the target asset information is read by the BIOS from a first register of the CPU; the CPU reads and stores the target asset information in advance through in-band; wherein the CPU previously reading and storing the target asset information by in-band includes:
and the CPU reads the target asset information of the fault NVMe hard disk in-band through a PCIE high-speed line, and stores the read target asset information into the first register.
8. A hard disk hazard lamp lighting apparatus, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the hard disk hazard lamp lighting method according to any one of claims 1 to 6 when executing the computer program.
9. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the hard disk hazard lamp lighting method of any one of claims 1 to 6.
CN202210466979.6A 2022-04-29 2022-04-29 Method, device and equipment for lighting hard disk fault lamp and readable storage medium Active CN114758715B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210466979.6A CN114758715B (en) 2022-04-29 2022-04-29 Method, device and equipment for lighting hard disk fault lamp and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210466979.6A CN114758715B (en) 2022-04-29 2022-04-29 Method, device and equipment for lighting hard disk fault lamp and readable storage medium

Publications (2)

Publication Number Publication Date
CN114758715A CN114758715A (en) 2022-07-15
CN114758715B true CN114758715B (en) 2023-12-22

Family

ID=82333308

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210466979.6A Active CN114758715B (en) 2022-04-29 2022-04-29 Method, device and equipment for lighting hard disk fault lamp and readable storage medium

Country Status (1)

Country Link
CN (1) CN114758715B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9612896B1 (en) * 2015-08-24 2017-04-04 EMC IP Holding Company LLC Prediction of disk failure
CN108733500A (en) * 2017-04-13 2018-11-02 阿里巴巴集团控股有限公司 Fault Locating Method and device, the generation method of correspondence and device
CN109117347A (en) * 2018-07-10 2019-01-01 深圳市同泰怡信息技术有限公司 The method of BMC control hard disk indication lamp state
CN109240894A (en) * 2018-08-30 2019-01-18 郑州云海信息技术有限公司 A kind of method, system and the computer readable storage medium of hard disk lighting
CN112732617A (en) * 2021-01-08 2021-04-30 苏州浪潮智能科技有限公司 Control method, device and equipment for NVME hard disk LED lamp and readable medium
CN113190396A (en) * 2021-03-15 2021-07-30 山东英信计算机技术有限公司 Method, system and medium for collecting CPU register data
CN113204474A (en) * 2021-04-25 2021-08-03 山东英信计算机技术有限公司 Lighting method, device and equipment based on AMD platform and readable medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9612896B1 (en) * 2015-08-24 2017-04-04 EMC IP Holding Company LLC Prediction of disk failure
CN108733500A (en) * 2017-04-13 2018-11-02 阿里巴巴集团控股有限公司 Fault Locating Method and device, the generation method of correspondence and device
CN109117347A (en) * 2018-07-10 2019-01-01 深圳市同泰怡信息技术有限公司 The method of BMC control hard disk indication lamp state
CN109240894A (en) * 2018-08-30 2019-01-18 郑州云海信息技术有限公司 A kind of method, system and the computer readable storage medium of hard disk lighting
CN112732617A (en) * 2021-01-08 2021-04-30 苏州浪潮智能科技有限公司 Control method, device and equipment for NVME hard disk LED lamp and readable medium
CN113190396A (en) * 2021-03-15 2021-07-30 山东英信计算机技术有限公司 Method, system and medium for collecting CPU register data
CN113204474A (en) * 2021-04-25 2021-08-03 山东英信计算机技术有限公司 Lighting method, device and equipment based on AMD platform and readable medium

Also Published As

Publication number Publication date
CN114758715A (en) 2022-07-15

Similar Documents

Publication Publication Date Title
CN103324495A (en) Method and system for data center server boot management
CN110247725B (en) Line fault troubleshooting method and device for OTN (optical transport network) and terminal equipment
GB2507604A (en) Rack and method thereof for simultaneously updating basic input output systems
CN105183575A (en) Processor fault diagnosis method, device and system
US10628338B2 (en) Selection of a location for installation of a CPU in a compute node using predicted performance scores
CN104613607A (en) Data interaction method and device and air-conditioner control system
CN112328440A (en) Hard disk physical position determining method and device
CN103279434A (en) Method and device for modifying address of slave unit
CN111897697A (en) Server hardware fault repairing method and device
CN111027724A (en) Fault processing method and device, electronic equipment and storage medium
CN114758715B (en) Method, device and equipment for lighting hard disk fault lamp and readable storage medium
CN113608970A (en) Core board, server, failure recovery method, device and storage medium
US11403243B2 (en) Mainboard of a server and method of populating DIMM slots of a mainboard
CN105468123A (en) Rack management controller, power management program update system and method
CN112817883A (en) Method, device and system for adapting interface platform and computer readable storage medium
CN116340075A (en) Hard disk testing device, system, method and computer readable storage medium
CN115242753A (en) Network card MAC address burning method, system, electronic equipment and storage medium
CN114218001A (en) Fault repairing method and device, electronic equipment and readable storage medium
CN111090553B (en) Test system, test method and test device
CN107193701A (en) Server master board and method for diagnosing faults with fault diagnosis functions
US20170092082A1 (en) Server devices with integrated pathways of error indicator lights and methods thereof
CN113726543A (en) Operation and maintenance service processing method, device, system, server and storage medium
CN111552631A (en) System testing method, device and computer readable storage medium
CN111399871A (en) System updating method, device, equipment and medium for HBA card
CN111007815A (en) Centralized control host supporting dual-computer hot standby

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
GR01 Patent grant
GR01 Patent grant