CN114758715A - 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
CN114758715A
CN114758715A CN202210466979.6A CN202210466979A CN114758715A CN 114758715 A CN114758715 A CN 114758715A CN 202210466979 A CN202210466979 A CN 202210466979A CN 114758715 A CN114758715 A CN 114758715A
Authority
CN
China
Prior art keywords
hard disk
target
fault
asset information
nvme hard
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.)
Granted
Application number
CN202210466979.6A
Other languages
Chinese (zh)
Other versions
CN114758715B (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

Images

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Mathematical Physics (AREA)
  • Debugging And Monitoring (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

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

Description

Method, device and equipment for lighting hard disk fault lamp and readable storage medium
Technical Field
The invention relates to the technical field of storage, in particular to a method, a device and equipment for lighting a hard disk fault lamp and a computer readable storage medium.
Background
At present, on some CPU (Central Processing Unit) platform servers, such as a marine light CPU platform server, due to platform limitation, a fault lamp of an NVMe (NVM Express, nonvolatile storage) hard disk cannot be automatically turned on, and the NVMe hard disk fault early warning cannot be realized, so that inconvenience is brought to users and manufacturers of complete machines.
In summary, how to effectively solve the problem that the lamp cannot be automatically turned on due to the limitation of the NVMe hard disk by the platform is a problem that needs to be solved urgently 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 a customer on lighting the NVMe hard disk fault in real time and realizes early warning of the NVMe hard disk fault; another object of the present invention is to provide a hard disk malfunction light lighting device, apparatus, and computer-readable storage medium.
In order to solve the technical problems, the invention provides the following technical scheme:
a hard disk fault lamp lighting method comprises the following steps:
when the NVMe hard disk fault is detected, receiving target asset information of the fault NVMe hard disk read in-band by a CPU;
receiving asset information which is read out by a CPLD and corresponds to each NVMe hard disk in the system respectively;
Respectively comparing the asset information with the target asset information to obtain target identification information of the fault NVMe hard disk;
sending 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 turned on; and the CPLD is prestored with corresponding relations between each identification information and each fault lamp.
In a specific embodiment of the present invention, comparing each of the asset information with the target asset information to obtain target identification information of the failed NVMe hard disk includes:
respectively comparing the asset information with the target asset information to obtain a target I2C bus serial number corresponding to the fault NVMe hard disk;
sending 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, including:
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; the CPLD is prestored 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, a target faulty lamp corresponding to the faulty NVMe hard disk according to the serial number of the target I2C bus includes:
the CPLD determines a target slot corresponding to the 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; the CPLD prestores a correspondence relationship between each I2C bus serial number and each slot, and stores a correspondence relationship between each slot and each faulty lamp.
In a specific 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 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; and the CPU reads and stores the target asset information in-band in advance.
In a specific embodiment of the invention, the receiving of the target asset information of the failed NVMe hard disk sent by the BIOS includes
And receiving target asset information of the NVMe hard disk with the fault, which is sent by the BIOS through an LPC protocol.
In an 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 calling the target asset information and each asset information from the second register, and comparing each asset information with the target asset information respectively.
In a specific 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 read in the CPU band and the target asset information;
after controlling the target fault lamp to light, the method further comprises the following steps:
and carrying out output display operation on the fault information.
A hard disk fault lamp lighting device comprising:
the first information receiving module is used for receiving target asset information of a fault NVMe hard disk read in a CPU (central processing unit) band when the NVMe hard disk fault is detected;
the second information receiving module is used for receiving the asset information which is read out by the CPLD and corresponds to each NVMe hard disk in the system;
the identification information obtaining module is used for respectively comparing the asset information with the target asset information to obtain 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 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 lighted; and the CPLD is prestored with corresponding relations between each 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 being executed by a processor, carries out the steps of the hard disk fault lamp lighting method as set forth above.
According to the method for lighting the hard disk fault lamp, when the NVMe hard disk fault is detected, target asset information of the fault NVMe hard disk read in a CPU (central processing unit) band is received; receiving asset information which is read out by a CPLD and corresponds to each NVMe hard disk in the system respectively; respectively comparing the asset information with the target asset information to obtain target identification information of the fault NVMe hard disk; sending the target identification information to the CPLD, so that the CPLD determines a target fault lamp corresponding to the NVMe hard disk according to the target identification information and controls the target fault lamp to be turned on; the CPLD is pre-stored with corresponding relations between each 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 the CPU, the asset information corresponding to each NVMe hard disk in the CPLD out-of-band reading system is used, 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 pre-storing the corresponding relation between the identification information of each NVMe hard disk and each fault lamp in the CPLD, and after determining the target identification information of the fault NVMe hard disk, determining the target fault lamp corresponding to the fault NVMe hard disk by the CPLD according to the target identification information and controlling the target fault lamp to be lightened. Therefore, the requirement of a customer for realizing real-time lighting of the NVMe hard disk fault 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, and the technical effects are achieved, and the details are not repeated herein.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flowchart illustrating a method for lighting a hard disk fault lamp according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating another embodiment of the hard disk fault lamp lighting method according to the embodiment of the present invention;
fig. 3 is a flowchart illustrating another embodiment of the hard disk fault lamp lighting method according to the embodiment of the present invention;
fig. 4 is a block diagram of a hard disk fault lamp lighting system according to an embodiment of the present invention;
fig. 5 is a block diagram illustrating a structure of a hard disk fault lamp lighting device according to an embodiment of the present invention;
fig. 6 is a block diagram of a hard disk fault lamp lighting device according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a hard disk fault lamp lighting device according to this embodiment.
Detailed Description
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a flowchart illustrating an implementation of a hard disk fault lamp lighting method according to an embodiment of the present invention, where the method may include the following steps:
S101: and when the NVMe hard disk fault is detected, receiving target asset information of the fault NVMe hard disk read in the CPU band.
In the running process of the server, a Baseboard Management Controller (BMC) performs fault detection on each NVMe hard disk in the server. When the NVMe hard disk fault is detected, target asset information of the fault NVMe hard disk is read in a CPU (central processing unit) band, and the target asset information of the fault NVMe hard disk read in the CPU band is received by the substrate management controller. Because only the target asset information of the fault NVMe hard disk is read in-band, the target asset information of the fault NVMe hard disk can be directly and quickly read 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 which is read out by the CPLD and corresponds to each NVMe hard disk in the system.
When the NVMe hard disk fault is detected, the asset information corresponding to each NVMe hard disk in the system is read out of band through a CPLD (Complex Programmable Logic Device), and the asset information corresponding to each NVMe hard disk in the system read out of band by the CPLD is received by the baseboard management controller. Due to the fact that the asset information data volume of the NVMe hard disks is large, the CPLD is used for reading the asset information corresponding to each NVMe hard disk in the system out of band, and occupation of network resources of the server is avoided.
S103: and respectively comparing the asset information with the target asset information to obtain target identification information of the fault NVMe hard disk.
After receiving target asset information of the faulty NVMe hard disk read in the CPU (central processing unit) in-band and receiving asset information which is read out of the CPLD and corresponds to each NVMe hard disk in the system respectively, comparing the asset information with the target asset information respectively, if the size information, the manufacturer information, the firmware information and the serial number information of each NVMe hard disk are compared with the size information, the manufacturer information, the firmware information and the serial number information of the faulty NVMe hard disk one by one, determining the NVMe hard disk which is read by the CPLD and corresponds to the asset information which is the same as the target asset information of the faulty NVMe hard disk as the faulty NVMe hard disk, and acquiring identification information of the faulty NVMe hard disk to obtain target identification information of the faulty NVMe hard disk.
The target identification information is information having a unique identification function on the NVMe hard disk, for example, serial number information of the NVMe hard disk.
S104: and sending the target identification information to the CPLD so that the CPLD can determine a target fault lamp corresponding to the NVMe according to the target identification information and control the target fault lamp to be lightened.
The CPLD is pre-stored with corresponding relations between each identification information and each fault lamp.
The CPLD prestores corresponding relations between each identification information and each fault lamp. After the target identification information of the 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 NVMe hard disk and controls the target fault lamp to be turned on according to the target identification information. Therefore, the requirement of a client for lighting the NVMe hard disk fault in real time is met through cooperation of different firmware of the server, and the NVMe hard disk fault early warning is realized.
In a specific embodiment of the present invention, receiving target asset information of a failed NVMe hard disk read in-band by a CPU may include the following steps:
receiving fault information and target asset information of the fault NVMe hard disk read in a CPU (central processing unit) band;
accordingly, after the control target failed lamp is lighted, the method may further include the steps of:
and carrying out output display operation on the fault information.
When the NVMe hard disk fault is detected, 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 substrate management controller receives the fault information of the NVMe hard disk, and outputs and displays the fault information after the control target fault lamp is lightened. Therefore, operation and maintenance personnel can conveniently maintain the NVMe hard disk according to the displayed fault information.
According to the technical scheme, the target asset information of the failed NVMe hard disk is read in band by the CPU, the asset information corresponding to each NVMe hard disk in the system is read out of band by the CPLD, and the asset information read out of band is compared with the target asset information respectively, so that the target identification information of the failed NVMe hard disk is determined. And after the target identification information of the failed NVMe hard disk is determined, the CPLD determines a target failed lamp corresponding to the failed NVMe hard disk according to the target identification information and controls the target failed lamp to be lightened. Therefore, the requirement of a customer on the 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 also provide corresponding improvements. In the following embodiments, the same steps or corresponding steps as those in the above embodiments may be referred to each other, and the corresponding beneficial effects may also be referred to each other, which are not described in detail in the following modified embodiments.
Referring to fig. 2, fig. 2 is a flowchart of another implementation of the hard disk fault lamp lighting method in the embodiment of the present invention, where the method may include the following steps:
S201: and when the NVMe hard disk fault is detected, receiving target asset information of the fault NVMe hard disk read in the CPU band.
S202: and receiving asset information which is read out by the CPLD and corresponds to each NVMe hard disk in the system.
S203: and respectively comparing the asset information with the target asset information to obtain a target I2C bus serial number corresponding to the fault NVMe hard disk.
The asset information read by the CPLD out-of-band comprises the I2C bus serial number of each NVMe hard disk, and the target asset information read by the CPU comprises the target I2C bus serial number corresponding to the failed NVMe hard disk. And respectively comparing the asset information with the target asset information to obtain a target I2C bus serial number corresponding to the fault NVMe hard disk.
S204: and sending the bus serial number of the target I2C to the CPLD, so that the CPLD determines a target fault lamp corresponding to the NVMe hard disk according to the bus serial number of the target I2C and controls the target fault lamp to be lightened.
The CPLD prestores therein the correspondence between the respective I2C bus serial numbers and the respective faulty lamps.
The CPLD stores in advance the correspondence between the respective I2C bus numbers and the respective faulty lamps. After the target I2C bus serial number corresponding to the fault NVMe hard disk is obtained through comparison, the target I2C bus serial number is sent to the CPLD, the CPLD determines a target fault lamp corresponding to the fault NVMe hard disk according to the target I2C bus serial number, and the target fault lamp is controlled to be turned on. The uniqueness of the I2C bus serial number is fully utilized, so that the target fault lamp is quickly and accurately positioned.
In a specific embodiment of the present invention, the determining, by the CPLD, a target fault lamp corresponding to the faulty NVMe hard disk according to the target I2C bus serial number may include the following steps:
the CPLD determines a target slot corresponding to the 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 prestores therein the correspondence between each I2C bus serial number and each slot, and the correspondence between each slot and each faulty lamp.
In the CPLD, the correspondence between each I2C bus serial number and each slot (slot) is prestored, and the correspondence between each slot and each faulty lamp is stored. After receiving the target I2C bus serial number of the fault NVMe hard disk, 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.
Referring to fig. 3, fig. 3 is a flowchart illustrating another implementation of a hard disk fault lamp lighting method according to an embodiment of the present invention, where the method may include the following steps:
s301: and when the NVMe hard disk fault is detected, 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-band in advance.
Referring to fig. 4, fig. 4 is a block diagram of a hard disk fault lamp lighting system according to an embodiment of the present invention. A first register for storing information read from a faulty NVMe hard disk is partitioned in advance in a CPU. When the NVMe hard disk fault is detected, the CPU reads the target asset information of the fault NVMe hard disk in advance through action (i) in a PCIE (Peripheral Component Interconnect Express) high-speed line band, and stores the read target asset information into a first register through action (ii). And the BIOS (Basic Input Output System, based on an Input/Output System) reads the target asset information from the first register of the CPU through the action (c), transmits the target asset information of the fault NVMe hard disk to the substrate management controller through the action (c), and the substrate management controller receives the target asset information of the fault NVMe hard disk sent by the BIOS. The mutual cooperation of different firmware in the server is fully utilized, and the target asset information of the fault NVMe hard disk is effectively acquired.
In a specific embodiment of the present invention, receiving target asset information of a failed NVMe hard disk sent by a BIOS may include the following steps:
And receiving target asset information of the fault NVMe hard disk sent by the BIOS through an LPC protocol.
After the BIOS reads the target asset information, the target asset information of the fault NVMe hard disk can be sent to the substrate management controller through an LPC protocol. And the baseboard management controller receives the target asset information of the fault NVMe hard disk 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 which is read out by the CPLD and corresponds to each NVMe hard disk in the system.
S303: and respectively comparing the asset information with the target asset information to obtain target identification information of the fault NVMe hard disk.
In an embodiment of the present invention, comparing each asset information with the target asset information respectively may include the following steps:
the method comprises the following steps: storing the target asset information and the asset information in a second register;
step two: and calling 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 illustration.
As shown in fig. 4, the baseboard management controller is divided into a second register for storing the hard disk information read out in-band and out-of-band in advance. After receiving the target asset information of the in-band read fault NVMe hard disk and reading each asset information through action of the base plate management controller, storing the target asset information and each asset information in a second register, calling the target asset information and each asset information from the second register, and comparing each asset information with the target asset information respectively.
S304: and sending the target identification information to the CPLD so that the CPLD can determine a target fault lamp corresponding to the NVMe according to the target identification information and control the target fault lamp to be lightened.
The CPLD is pre-stored with corresponding relations between each identification information and each fault lamp.
As shown in fig. 4, after obtaining the target identification information of the failed NVMe hard disk through comparison, the baseboard management controller sends the target identification information to the CPLD through an action of (c), and the CPLD determines a target failed lamp corresponding to the failed NVMe hard disk according to the target identification information and controls the target failed lamp to be turned on through an action of (c).
Corresponding to the above method embodiment, the present invention further provides a hard disk fault lamp lighting device, and the hard disk fault lamp lighting device described below and the hard disk fault lamp lighting method described above may be referred to in correspondence with each other.
Referring to fig. 5, fig. 5 is a block diagram of a hard disk fault lamp lighting device according to an embodiment of the present invention, where the device may include:
a first information receiving module 51, configured to receive, when it is detected that there is a failure in the NVMe hard disk, target asset information of the failed NVMe hard disk read in a CPU band;
the second information receiving module 52 is configured to receive asset information that is read out by the CPLD out-of-band and corresponds to each NVMe hard disk in the system;
An identification information obtaining module 53, configured to compare the asset information with target asset information, respectively, to obtain target identification information of the failed NVMe hard disk;
the fault lamp lighting control module 54 is configured to send the 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 turned on; the CPLD is pre-stored with corresponding relations between each 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 the CPU, the asset information corresponding to each NVMe hard disk in the CPLD out-of-band reading system is used, 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 pre-storing the corresponding relation between the identification information of each NVMe hard disk and each fault lamp in the CPLD, and after determining the target identification information of the fault NVMe hard disk, determining the target fault lamp corresponding to the fault NVMe hard disk by the CPLD according to the target identification information and controlling the target fault lamp to be lightened. Therefore, the requirement of a customer on the 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 that compares each asset information with the target asset information to obtain a target I2C bus serial number corresponding to the failed NVMe hard disk;
the fault lamp lighting control module 54 is specifically a module that sends the bus serial number of the target I2C to the CPLD, so that the CPLD determines the target fault lamp corresponding to the faulty NVMe hard disk according to the bus serial number of the target I2C; the CPLD prestores therein the correspondence between each I2C bus serial number and each faulty lamp.
In a specific embodiment of the present invention, the fault lamp lighting control module 54 is specifically a module that determines, by the CPLD, a target slot corresponding to the NVMe hard disk with the fault 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 prestores therein the correspondence between each I2C bus serial number and each slot, and the correspondence between each slot and each faulty lamp.
In a specific embodiment of the present invention, the first information receiving module 51 is specifically a module for receiving target asset information of a failed NVMe hard disk sent by a 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-band in advance.
In a specific embodiment of the present invention, the first information receiving module 51 is specifically a module that receives target asset information of a failed NVMe hard disk sent by the BIOS through an LPC protocol.
In one embodiment of the present invention, the identification information obtaining module 53 includes:
the information storage submodule is used for storing the target asset information and the asset information in a second register;
and the information comparison submodule is used for calling the target asset information and the asset information from the second register and comparing the asset information with the target asset information respectively.
In a specific embodiment of the present invention, the first information receiving module 51 is specifically a module that receives fault information and target asset information of a faulty NVMe hard disk read in-band by a CPU;
the apparatus may further include:
and the information output display module is used for outputting and displaying 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 foregoing 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 failure lamp lighting device provided in this embodiment, the hard disk failure lamp lighting device may generate a relatively large difference due to different configurations or performances, and may include a processor (CPU) 322 (for example, one or more processors) and a memory 332, where the memory 332 stores one or more computer application programs 342 or data 344. Memory 332 may be, among other things, 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 sequence of instructions operating on the data processing apparatus. Still further, the processor 322 may be configured to communicate with the memory 332 to execute a series of instruction operations in the memory 332 on the hard disk fault light illumination device 301.
Hard disk trouble light illumination apparatus 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 hard disk malfunction light lighting method described above can be realized by the structure of the hard disk malfunction light lighting device.
Corresponding to the above method embodiment, the present invention further provides a computer-readable storage medium having a computer program stored thereon, the computer program, when executed by a processor, implementing the steps of:
when the NVMe hard disk fault is detected, receiving target asset information of the fault NVMe hard disk read in a CPU (central processing unit) band; receiving asset information which is read out by a CPLD and corresponds to each NVMe hard disk in the system respectively; respectively comparing the asset information with the target asset information to obtain target identification information of the fault NVMe hard disk; sending the target identification information to the CPLD, so that the CPLD determines a target fault lamp corresponding to the NVMe hard disk according to the target identification information and controls the target fault lamp to be turned on; the CPLD is pre-stored with corresponding relations between each identification information and each fault lamp.
The computer-readable storage medium may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
For the introduction of the computer-readable storage medium provided by the present invention, please refer to the above method embodiments, which are not described herein again.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device, the apparatus and the computer-readable storage medium disclosed in the embodiments correspond to the method disclosed in the embodiments, so that the description is simple, and the relevant points can be referred to the description of the method.
The principle and the implementation of the present invention are explained in the present application by using specific examples, and the above description of the embodiments is only used to help understanding the technical solution and the core idea of the present invention. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.

Claims (10)

1. A method for lighting a hard disk fault lamp is characterized by comprising the following steps:
when the NVMe hard disk fault is detected, receiving target asset information of the fault NVMe hard disk read in-band by a CPU;
receiving asset information which is read out by a CPLD and corresponds to each NVMe hard disk in the system respectively;
Respectively comparing the asset information with the target asset information to obtain target identification information of the fault NVMe hard disk;
sending 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; and the CPLD is prestored with corresponding relations between each identification information and each fault lamp.
2. The method for lighting the hard disk fault lamp according to claim 1, wherein the step of comparing each asset information with the target asset information to obtain the target identification information of the fault NVMe hard disk comprises the steps of:
respectively comparing the asset information with the target asset information to obtain a target I2C bus serial number corresponding to the fault NVMe hard disk;
sending 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, including:
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; the CPLD prestores a correspondence between each I2C bus serial number and each faulty lamp.
3. The method for lighting the hard disk fault lamp according to claim 2, wherein the CPLD determines the target fault lamp corresponding to the faulty NVMe hard disk according to the target I2C bus serial number, and the method comprises the following steps:
the CPLD determines a target slot corresponding to the 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; the CPLD prestores a correspondence between each I2C bus serial number and each slot, and stores a correspondence between each slot and each faulty lamp.
4. The method for lighting the hard disk fault lamp according to claim 1, wherein the step of receiving target asset information of the fault NVMe hard disk read in a CPU (Central processing Unit) band comprises the following steps:
receiving 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; and the CPU reads and stores the target asset information in-band in advance.
5. The method of claim 4, wherein receiving 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.
6. The method of claim 1, wherein comparing each of the asset information and the target asset information respectively comprises:
storing the target asset information and each of the asset information in a second register;
and calling the target asset information and each asset information from the second register, and comparing each asset information with the target asset information respectively.
7. The method for lighting the fault lamp of the hard disk according to any one of claims 1 to 6, wherein the step of receiving target asset information of the fault NVMe hard disk read in-band by the CPU comprises the following steps:
receiving fault information of the fault NVMe hard disk read in the CPU band and the target asset information;
after controlling the target fault lamp to light, the method further comprises the following steps:
and carrying out output display operation on the fault information.
8. A hard disk malfunction lamp lighting device characterized by comprising:
the first information receiving module is used for receiving target asset information of a fault NVMe hard disk read in a CPU (central processing unit) band when the NVMe hard disk fault is detected;
The second information receiving module is used for receiving asset information which is read out of a CPLD band and corresponds to each NVMe hard disk in the system respectively;
the identification information obtaining module is used for respectively comparing the asset information with the target asset information to obtain 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 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 lighted; and the CPLD is prestored with corresponding relations between each identification information and each fault lamp.
9. A hard disk fault lamp lighting device characterized by comprising:
a memory for storing a computer program;
a processor for implementing the steps of the hard disk failure lamp lighting method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the hard disk fault lamp lighting method according to any one of claims 1 to 7.
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 true CN114758715A (en) 2022-07-15
CN114758715B 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)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118012507A (en) * 2024-04-09 2024-05-10 安擎计算机信息股份有限公司 Management method of PCH (physical downlink control channel) direct-out hard disk and server
CN118012507B (en) * 2024-04-09 2024-06-07 安擎计算机信息股份有限公司 Management method of PCH (physical downlink control channel) direct-out hard disk and server

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

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118012507A (en) * 2024-04-09 2024-05-10 安擎计算机信息股份有限公司 Management method of PCH (physical downlink control channel) direct-out hard disk and server
CN118012507B (en) * 2024-04-09 2024-06-07 安擎计算机信息股份有限公司 Management method of PCH (physical downlink control channel) direct-out hard disk and server

Also Published As

Publication number Publication date
CN114758715B (en) 2023-12-22

Similar Documents

Publication Publication Date Title
CN106055361B (en) Integrated firmware implementation method and system for multiple different types based on BMC (baseboard management controller)
CN111143256B (en) Method and device for reading field replaceable unit information
CN111722990A (en) Method and device for checking cable connection between main back boards
US10628338B2 (en) Selection of a location for installation of a CPU in a compute node using predicted performance scores
CN110618918A (en) Control method, control device and control equipment for hard disk status lamp in PCH
CN111897697A (en) Server hardware fault repairing method and device
CN112286709A (en) Diagnosis method, diagnosis device and diagnosis equipment for server hardware faults
CN113127299A (en) Server operation and maintenance method, device and system and computer readable storage medium
CN111176897A (en) Closed BIOS self-repairing method, system, terminal and storage medium
CN114758715A (en) Method, device and equipment for lighting hard disk fault lamp and readable storage medium
CN100392631C (en) Multiple host support for remote expansion apparatus
US20200004704A1 (en) Mainboard of a server and method of populating dimm slots of a mainboard
CN116521081A (en) Method, device, equipment and storage medium for assembling on-board redundant array of independent disks
CN114996069A (en) Mainboard test method, device and medium
CN111007815B (en) Centralized control host supporting dual-computer hot standby
CN111399871A (en) System updating method, device, equipment and medium for HBA card
CN113448786A (en) PCIe equipment testing method, device, equipment and readable storage medium
CN113110970A (en) Method, device, equipment and medium for monitoring components in server working mode
CN113568858B (en) Equipment management method, device and storage medium
CN114443446B (en) Hard disk indicator lamp control method, system, terminal and storage medium
US20220020248A1 (en) Programmable dynamic information handling system rack lighting system
CN116431410A (en) Method, system and related device for detecting hard disk in server
CN111639005A (en) Independent monitoring system and method for server state
CN116107821A (en) Method, device, equipment and medium for testing switching on and switching off of whole system
CN116010141A (en) Method, device and medium for positioning starting abnormality of multipath server

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