Server backplane light control method, complex programmable logic device and server

By using complex programmable logic devices and independent transmission channels on the server backplane, the problem of manual light control instructions being overwritten by automatic instructions is solved, improving server troubleshooting efficiency and ensuring the reliability of fault indications.

CN120371657BActive Publication Date: 2025-08-22INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510885235.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-06-30
Publication Date
2025-08-22
Estimated Expiration
2045-06-30

AI Technical Summary

Technical Problem

During the server operation and maintenance process, the fault light instructions manually triggered by the operation and maintenance personnel are easily overwritten by the automatic instructions of the substrate management controller, resulting in low troubleshooting efficiency.

Method used

By introducing complex programmable logic devices on the server backplane, two independent transmission channels are used to transmit manual and automatic light control instructions respectively, and prioritize them under the control of the state machine to ensure that manual instructions are not overwritten by automatic instructions, and non-volatile storage units are used to ensure that instructions are persisted.

Benefits of technology

The signal isolation between manual light control instructions and automatic light control instructions is realized, which avoids command transmission conflicts, improves the troubleshooting efficiency of operation and maintenance personnel, and ensures the continuous reliability of fault indications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120371657B_ABST
    Figure CN120371657B_ABST
Patent Text Reader

Abstract

The present application discloses a server backplane light control method, a complex programmable logic device, and a server, which relate to the field of server technology. The complex programmable logic device includes a first interface for transmitting manual light control instructions and a second interface for transmitting automatic light control instructions. The manual light control instructions and the automatic light control instructions are transmitted through two independent transmission channels, thereby achieving signal isolation between the manual light control instructions and the automatic light control instructions, and avoiding the transmission conflict between the two types of instructions from a physical level. In addition, when the current light control instruction is an automatic light-off instruction and the historical light control instruction is a manual light-on instruction, the manual light-on instruction is determined as the target light control instruction, and the backplane fault light is controlled according to the target light control instruction, thereby avoiding the situation where the manually triggered light-on state is forcibly changed by the automatic light-off instruction, thereby improving the efficiency of troubleshooting by operation and maintenance personnel.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of server technology, and in particular to a server backplane complex programmable logic device, a server, and a method for controlling a server backplane fault light. Background Art

[0002] In server backplane designs, backplane fault indicators are often used to indicate hard drive failures. Control of these indicators relies on the coordinated operation of the Baseboard Management Controller (BMC) and the Complex Programming Logic Device (CPLD). The BMC periodically polls the hard drive status and, based on the hard drive failure detection results, sends automatic light-on or light-off commands to the backplane's CPLD. The CPLD then turns the fault indicator on or off based on the received control command.

[0003] During the server operation and maintenance process, the operation and maintenance personnel will trigger the backplane fault light through manual commands to mark the hard disk that is found to have a fault during manual troubleshooting. However, the manual light control command issued by the operation and maintenance personnel will be overwritten by the automatic light control command issued by the baseboard management controller through polling. For example, the manual light-on command issued by the operation and maintenance personnel will be overwritten by the automatic light-off command issued by the baseboard management controller, causing the fault light manually triggered by the operation and maintenance personnel to be accidentally extinguished, forcing the fault to be checked and verified again, resulting in a decrease in the troubleshooting efficiency during the server hard disk operation and maintenance process. Summary of the Invention

[0004] The present application provides a server backplane complex programmable logic device, a server, and a server backplane fault light control method to at least solve the problem in the related art that the manual light-on command is overwritten by the automatic light-off command, and the fault troubleshooting efficiency is low during the server hard disk operation and maintenance process.

[0005] The present application provides a server backplane complex programmable logic device, which is connected to a baseboard management controller and a backplane fault light respectively, and includes a state machine, a register, and a first interface and a second interface for receiving light control instructions from the baseboard management controller.

[0006] The lighting control instruction includes a manual lighting instruction or a manual lighting off instruction transmitted to the first interface, indicating the result of manual troubleshooting, or an automatic lighting instruction or an automatic lighting off instruction transmitted to the second interface, indicating the result of polling troubleshooting by the baseboard management controller.

[0007] The state machine is used to receive the current light control instruction from the first interface or the second interface. When the current light control instruction is an automatic light-off instruction indicating that the server hard disk has no faults, and the historical light control instruction in the backplane fault light execution is a manual light-on instruction indicating that the server hard disk has a fault, the manual light-on instruction is determined to be the target light control instruction.

[0008] The register is used to control the backplane fault light according to the target light control instruction from the state machine.

[0009] The present application also provides a server, which includes a manual instruction tool, a baseboard management controller, a backplane fault light, and any of the above-mentioned complex programmable logic devices.

[0010] A first transmission channel and a second transmission channel corresponding to the first interface and the second interface respectively are provided between the baseboard management controller and the complex programmable logic device.

[0011] The backplane fault light indicates a server hard disk fault.

[0012] The manual command tool is used for operation and maintenance personnel to issue manual light-on or light-off commands based on the results of manual troubleshooting.

[0013] The baseboard management controller is used to generate an automatic light-on instruction or an automatic light-off instruction based on the results of automatic polling detection of hard disk failure, and transmit the automatic light-on instruction or the automatic light-off instruction to the complex programmable logic device through the second transmission channel; receive a manual light-on instruction or a manual light-off instruction from a manual instruction tool, and transmit the manual light-on instruction or the manual light-off instruction to the complex programmable logic device through the first transmission channel.

[0014] The present application also provides a server backplane light control method, which is applied to the above-mentioned complex programmable logic device, and the method includes: receiving a current light control instruction from a first interface or a second interface; when the current light control instruction is an automatic light-off instruction indicating that the server hard disk has no fault, and the historical light control instruction in the execution of the backplane fault light is a manual light-on instruction indicating that there is a fault in the server hard disk, determining that the manual light-on instruction is a target light control instruction; and controlling the backplane fault light according to the target light control instruction.

[0015] Through the present application, the complex programmable logic device includes a first interface for transmitting manual light control instructions and a second interface for transmitting automatic light control instructions, respectively. The manual light control instructions and the automatic light control instructions are transmitted through two independent transmission channels, thereby achieving signal isolation between the manual light control instructions and the automatic light control instructions, and avoiding the transmission conflict between the two types of instructions from a physical level. In addition, the state machine in the complex programmable logic device is used to determine the manual light-on instruction as the target light control instruction when the current light control instruction is an automatic light-off instruction and the historical light control instruction is a manual light-on instruction, and the register controls the backplane fault light according to the target light control instruction. This can prevent the manual light-on instruction manually triggered by the operation and maintenance personnel from being overwritten by the automatic light-off instruction issued by the baseboard management controller according to the reset mechanism, and avoid the situation where the manually triggered light-on state is forcibly changed by the automatic light-off instruction, thereby improving the efficiency of troubleshooting by the operation and maintenance personnel. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0017] Figure 1 A schematic diagram of a server structure provided in an embodiment of the present application;

[0018] Figure 2 A schematic diagram of a server structure including a non-volatile storage unit provided in an embodiment of the present application;

[0019] Figure 3 A schematic diagram of a server structure including a manual instruction tool provided in an embodiment of the present application;

[0020] Figure 4 A flow chart of a server backplane light control method provided in an embodiment of the present application;

[0021] Figure 5 A schematic diagram of a process for receiving a current light control instruction provided by an embodiment of the present application;

[0022] Figure 6 An embodiment of the present application provides a logic diagram of lighting status switching. DETAILED DESCRIPTION

[0023] The following will be combined with the accompanying drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0024] It should be noted that, in the description of this application, the terms "comprises," "includes," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. The terms "first," "second," etc., in this application are used to distinguish similar objects, and are not used to describe a particular order or sequence.

[0025] In order to enable those skilled in the art to better understand the present application, the present application is further described in detail below with reference to the accompanying drawings and specific implementation methods.

[0026] The embodiment of the present application provides a server backplane complex programmable logic device, such as Figure 1 As shown, the server 100 includes a complex programmable logic device 110, a baseboard management controller 120, and a backplane fault indicator 130, wherein the complex programmable logic device 110 is connected to the baseboard management controller 120 and the backplane fault indicator 130. The complex programmable logic device 110 includes a state machine 111, a register 112, and a first interface 113 and a second interface 114.

[0027] The first interface 113 and the second interface 114 are used to receive lighting control instructions from the baseboard management controller.

[0028] The lighting control instructions include manual lighting on instructions or manual lighting off instructions transmitted to the first interface 113, indicating the results of manual troubleshooting, or automatic lighting on instructions or automatic lighting off instructions transmitted to the second interface 114, indicating the results of troubleshooting polled by the baseboard management controller 120. That is, the lighting control instructions include manual lighting control instructions and automatic lighting control instructions, the manual lighting control instructions include manual lighting on instructions and manual lighting off instructions, and the automatic lighting control instructions include automatic lighting on instructions and automatic lighting off instructions. The manual lighting control instructions are generated by the operation and maintenance personnel based on the results of manual troubleshooting and are transmitted to the backplane complex programmable logic device 110 through the baseboard management controller 120. The automatic lighting control instructions are generated by the baseboard management controller 120 based on the results of the troubleshooting by polling the hard disk health status parameters via the SMBus (System Management Bus) at a preset cycle. In some examples, the automatic lighting off instruction can be a reset instruction sent by the baseboard management controller 120 when all hard disk health status parameters are within the normal threshold range.

[0029] The state machine 111 is used to receive the current light control instruction from the first interface 113 or the second interface 114. When the current light control instruction is an automatic light-off instruction indicating that the server hard disk has no faults, and the historical light control instruction being executed by the backplane fault light 130 is a manual light-on instruction indicating that the server hard disk has a fault, the manual light-on instruction is determined to be the target light control instruction.

[0030] The complex programmable logic device 110 establishes a communication connection with the baseboard management controller 120 via the first interface 113 and the second interface 114, forming a first transmission channel and a second transmission channel, respectively. Correspondingly, the first transmission channel is used to transmit manual light-on and manual light-off commands, and the second transmission channel is used to transmit automatic light-on and automatic light-off commands. In some examples, the first transmission channel and the second transmission channel can be physical channels for signal transmission between the baseboard management controller 120 and the complex programmable logic device 110, and can be either unidirectional or bidirectional channels.

[0031] Specifically, the state machine 111 determines the target light control instruction based on a preset light control priority, and uses the instruction with the highest priority as the target light control instruction. In the preset light control priority, the light control priority of the automatic light off instruction is lower than the light control priority of the manual light on instruction.

[0032] The register 112 is used to control the backplane fault light 130 according to the target light control instruction from the state machine 111 .

[0033] In the related art, there is only one channel between the baseboard management controller 120 and the backplane control unit for transmitting light control instructions, which may cause conflicts between manual light control instructions and automatic light control instructions during the transmission stage. The above-mentioned complex programmable logic device 110 includes a first interface 113 for transmitting manual light control instructions and a second interface 114 for transmitting automatic light control instructions. The manual light control instructions and the automatic light control instructions are transmitted through two independent transmission channels, thereby realizing signal isolation between manual light control instructions and automatic light control instructions, and avoiding the transmission conflict between the two types of instructions from a physical level. In addition, the state machine 111 in the complex programmable logic device 110 is used to determine the manual light-on instruction as the target light-control instruction when the current light-control instruction is the automatic light-off instruction and the historical light-control instruction is the manual light-on instruction, and the register 112 controls the backplane fault light 130 according to the target light-control instruction. This can prevent the manual light-on instruction manually triggered by the operation and maintenance personnel from being overwritten by the automatic light-off instruction issued by the baseboard management controller 120 according to the reset mechanism, and avoid the situation where the manually triggered light-on state is forcibly changed by the automatic light-off instruction, thereby improving the efficiency of troubleshooting by the operation and maintenance personnel.

[0034] In some embodiments, as Figure 2 As shown, the complex programmable logic device 110 in the server 200 further includes a non-volatile storage unit 210, which is used to receive and store target light control instructions.

[0035] In some examples, the non-volatile memory unit 210 may be an EEPROM (Electrically Erasable Programmable read only memory).

[0036] The non-volatile storage unit can be used to store target control instructions, and can automatically restore the last instruction state after the system is powered off or restarted, avoiding the loss of fault light instructions during execution and ensuring state persistence.

[0037] In some embodiments, the complex programmable logic device 110 provided in the present application further includes a status monitoring unit (not shown in the figure) for monitoring the operating status of the baseboard management controller 120 .

[0038] Specifically, the status monitoring unit can be implemented using a monitoring circuit solution. In some specific examples, a watchdog circuit can be used to monitor voltage values ​​to determine the operating status of the baseboard management controller 120. The status monitoring unit can also be implemented by adding sensors for monitoring, obtaining sensor data such as temperature, voltage, and strength to determine whether there are any abnormalities in the operating status of the baseboard management controller 120. Hardware communication error logs can also be used for monitoring and judgment. The specific monitoring method is not limited here, and those skilled in the art can configure it according to actual needs.

[0039] The register 112 is further used to control the backplane fault light 130 according to the last executed light control instruction recorded in the non-volatile storage unit when the operating status indicates that an abnormality exists.

[0040] By storing the target light control instructions executed by the backplane fault light 130 in a non-volatile storage unit and monitoring the operating status of the baseboard management controller 120, the last executed light control instruction can continue to be executed when the baseboard management controller 120 loses power or other abnormal interruptions occur, thereby ensuring the continuous reliability of the fault indication of the backplane fault light 130.

[0041] In some embodiments, the status monitoring unit is further configured to monitor the communication status of the first interface 113 and the second interface 114 .

[0042] The register 112 is further configured to control the backplane fault light 130 according to the last executed light control instruction recorded in the non-volatile storage unit when the communication status indicates that the communication is interrupted.

[0043] By storing the target light control instructions executed by the backplane fault light 130 in a non-volatile storage unit and monitoring the communication status of the interface, it is possible to continue to execute the last executed light control instruction when the communication in the transmission channel formed by the interface is interrupted due to an abnormal situation, thereby ensuring the continuous reliability of the fault indication of the backplane fault light 130.

[0044] In the related art, when a firmware-level fault occurs in the baseboard management controller 120 of the server motherboard or the communication of the complex programmable logic device 110 is interrupted, the system cannot maintain the fault indication state due to reliance on the volatile register 112, resulting in a hardware diagnostic vacuum. In the embodiment provided in the present application, a non-volatile storage unit is set, and the target light control instructions executed by the backplane fault light 130 are stored in the non-volatile storage unit. When it is detected that there is an abnormality in the operating status of the baseboard management controller 120 or the communication status of the complex programmable logic device 110 is interrupted, the control instruction last executed by the backplane fault light 130 recorded in the non-volatile storage unit is obtained, which can enable the backplane fault light 130 to continue to maintain the lighting state, thereby ensuring the continuity and reliability of the error indication.

[0045] In some embodiments, the state machine 111 is further configured to determine that the current light control instruction is the target light control instruction when both the current light control instruction and the historical light control instruction are from the first interface, or both are from the second interface.

[0046] Specifically, the current light control instruction and the historical light control instruction both come from the first interface, i.e., they are manual light control instructions, and both come from the second interface, i.e., they are automatic light control instructions. In some examples, the manual light control instruction is an IPMI (Intelligent Platform Management Interface) instruction, and the automatic light control instruction is an instruction generated by the baseboard management controller 120 based on the polling detection result.

[0047] Specifically, when the current light control instruction and the historical light control instruction are both manual light control instructions or both are automatic light control instructions, the same type of light control instructions can be directly switched, that is, the backplane fault light 130 is controlled according to the current light control instruction. For example, when the current light control instruction is a manual light-off instruction and the historical light control instruction is a manual light-on instruction, the backplane fault light 130 is controlled to execute the manual light-off instruction, and the backplane fault light 130 is switched from the manual light-on state to the manual light-off state. For another example, when the current light control instruction is an automatic light-on instruction and the historical light control instruction is an automatic light-off instruction, the state machine 111 determines that the automatic light-on instruction is the target light control instruction, that is, the backplane fault light 130 is switched from the automatic light-off state to the automatic light-on state.

[0048] In some specific implementations, the manual light control command may be an IPMI command sent by an operation and maintenance personnel through an IPMI command line tool. The IPMI command may be defined by a preset hard disk light-on command code. In some specific examples, the hard disk light-on command code may include a first byte indicating the backplane type, a second byte indicating the hard disk number, a third byte indicating the command control type, and a fourth byte indicating the control state.

[0049] The first byte may include 0x00, 0x01, and 0x02, representing the front backplane, center backplane, and rear backplane, respectively. The second byte may include 0x01, 0x02, and 0x03, representing slots 1, 2, and 3, respectively. The third byte may include 0x01, representing the fault indicator light. The fourth byte may include 0x00, indicating that the fault indicator light is off, and 0x01, indicating that the fault indicator light is on.

[0050] In some specific embodiments, the automatic light control instruction may be that the baseboard management controller 120 polls the hard disk health status through the SMBus system management bus according to a preset period. The preset period may be 5 seconds, 10 seconds, 15 seconds or other interval lengths. By collecting key parameters such as the original value of SMART (Self-Monitoring Analysis and Reporting Technology, a self-monitoring analysis and reporting technology of the hard disk) attributes, temperature sensor threshold, medium error count, etc., it is determined whether they are within the normal threshold range, and accordingly generates an automatic light-off instruction indicating that there is no fault and an automatic light-on instruction indicating that there is a fault.

[0051] In some embodiments, the state machine 111 is further configured to determine that the current light control instruction is a target light control instruction when the current light control instruction is an automatic light-on instruction and the historical light control instruction is a manual light-on instruction or a manual light-off instruction.

[0052] Specifically, the priority of the automatic lighting instruction is higher than the priority of the manual lighting control instruction, and the state machine 111 is used to determine the automatic lighting instruction as the target lighting control instruction.

[0053] In some embodiments, the state machine 111 is further configured to determine that the current lighting control instruction is a target lighting control instruction when the current lighting control instruction is a manual lighting instruction or an automatic lighting instruction, and the historical lighting control instruction is an automatic lighting off instruction or a manual lighting off instruction.

[0054] In some embodiments, the state machine 111 is also used to determine the instruction with higher priority as the candidate light control instruction according to preset priority information when a first light control instruction and a second light control instruction are received from different interfaces at the same time, wherein the priority of the light-on instruction is higher than the priority of the light-off instruction, and the candidate light control instruction is used as the current light control instruction.

[0055] When light control commands are received from different channels at the same time, the target light control command is determined according to the preset priority information, which solves the command conflict. Determining the command with high priority as the target light control command can ensure that the light-on command is successfully executed, avoiding the situation where the manual light-on command is overwritten by the automatic light-off command.

[0056] In some embodiments, the first interface 113 and the second interface 114 are integrated circuit bus interfaces, such as I2C (Inter-Integrated Circuit bus, a serial communication bus) interfaces.

[0057] The embodiment of the present application provides a server, such as Figure 3As shown, the server 300 includes a manual instruction tool 310, a baseboard management controller 120, a backplane fault light 130 and the complex programmable logic device 110 involved in any of the above embodiments, and the baseboard management controller 120 and the complex programmable logic device 110 include a first transmission channel 302 and a second transmission channel 304 corresponding to the first interface 113 and the second interface 114 respectively.

[0058] The manual command tool is used for operation and maintenance personnel to issue manual light-on or light-off commands based on the results of manual troubleshooting.

[0059] The backplane fault light 130 is used to indicate a server hard disk fault. In some examples, the fault condition can be indicated based on the light status and / or light color.

[0060] The baseboard management controller 120 is configured to generate an automatic light-on command or an automatic light-off command based on the result of automatic polling detection of hard disk failures, and transmit the automatic light-on command or the automatic light-off command to the complex programmable logic device 110 via the second transmission channel. The baseboard management controller 120 is configured to receive a manual light-on command or a manual light-off command from a manual command tool, and transmit the manual light-on command or the manual light-off command to the complex programmable logic device 110 via the first transmission channel.

[0061] In some specific implementations, the manual instruction tool 310 may be an IPMI command line tool, and correspondingly, the manual light control instruction is an IPMI instruction.

[0062] In some specific embodiments, the manual light control command is determined based on an IPMI hard drive light-on command code. Operations and maintenance personnel can manually trigger the manual light-on and light-off commands using predefined IPMI hard drive light-on command codes. In some examples, to manually trigger the error indicator light in slot 1 of the front backplane, the complete IPMI command may be: "ipmi tool raw 0x3C 0x50 0x00 0x01 0x01 0x01."

[0063] In some embodiments, the server further includes a non-volatile storage unit and a status monitoring circuit.

[0064] The non-volatile storage unit is used to record the light control instruction last executed by the backplane fault light 130 of the server.

[0065] The status monitoring circuit is used to monitor the communication status of the first channel and the second channel.

[0066] The backplane control unit is also used to obtain the last executed light control instruction recorded in the non-volatile storage unit when the communication status indicates that the communication is interrupted, and control the backplane fault light 130 to continue to execute the last executed light control instruction.

[0067] In some embodiments, the status monitoring circuit is also used to monitor the operating status of the baseboard management controller 120 of the server motherboard.

[0068] The backplane control unit is also used to obtain the last executed light control instruction recorded in the non-volatile storage unit when the operating status indicates that there is an abnormality, and control the backplane fault light 130 to continue to execute the last executed light control instruction.

[0069] In some embodiments, the baseboard management controller 120 is installed on the server motherboard, the complex programmable logic device 110, the hard disk, and the backplane fault light 130 are all installed on the backplane, and the server motherboard and the backplane can be connected through the SFF-8643 interface, and the slot number of the hard disk is aligned with the silk screen mark.

[0070] The embodiment of the present application provides a server backplane light control method, which is applied to the complex programmable logic device 110 in the above embodiment, such as Figure 4 As shown, the backlight control method may include steps S401 to S403. Each step is described below.

[0071] Step S401 : receiving a current light control instruction from the first interface 113 or the second interface 114 .

[0072] Step S402: When the current light control instruction is an automatic light-off instruction indicating that the server hard disk has no faults, and the historical light control instruction being executed by the backplane fault light 130 is a manual light-on instruction indicating that the server hard disk has a fault, determine the manual light-on instruction as the target light control instruction.

[0073] Step S403: Control the backplane fault light 130 according to the target light control instruction.

[0074] Specifically, the current light control instruction received by the complex programmable logic device 110 is a manual light on instruction, a manual light off instruction, an automatic light on instruction, or an automatic light off instruction. The explanation of the light control instruction is expanded in the previous text and will not be repeated here.

[0075] The complex programmable logic device 110 can obtain the historical light control instructions currently being executed by the backplane fault light 130 from its built-in or external storage device.

[0076] Specifically, when the backplane fault light 130 is executing a manual lighting instruction generated by the operation and maintenance personnel based on the manual troubleshooting results, if the complex programmable logic device 110 receives an automatic lighting off instruction from the second channel, the lighting control priority of the automatic lighting off instruction is lower than the lighting control priority of the manual lighting instruction, the complex programmable logic device 110 determines that the manual lighting instruction is the target lighting control instruction to control the backplane fault light 130 to execute the target lighting control instruction and keep it lit.

[0077] In some examples, the complex programmable logic device 110 can control the backplane fault light 130 through register 112 mapping. For example, this can be achieved by accessing a specific memory address or I / O (Input / Output) port and writing a predefined bit pattern (e.g., 0x01 = light on, 0x00 = light off). The manner in which the complex programmable logic device 110 controls the backplane fault light 130 to execute the light control command is not limited herein, and those skilled in the art can configure it according to actual needs.

[0078] In some embodiments, the backplane light control method further includes the step of storing the target light control instruction in a non-volatile storage unit.

[0079] In some embodiments, the backplane light control method also includes the steps of: monitoring the operating status of the baseboard management controller 120 of the server motherboard, and when the operating status indicates an abnormality, obtaining the last executed light control instruction recorded in the non-volatile storage unit, and controlling the backplane fault light 130 to continue executing the last executed light control instruction.

[0080] In some embodiments, the backplane light control method also includes the steps of: monitoring the communication status of the first interface 113 and the second interface 114, and when the communication status indicates that the communication is interrupted, obtaining the last executed light control instruction recorded in the non-volatile storage unit, and controlling the backplane fault light 130 to continue executing the last executed light control instruction.

[0081] By storing the light control instructions executed by the backplane fault light 130 in a non-volatile storage unit, the last instruction state can be automatically restored after the system is powered off or restarted, avoiding the loss of the fault light instructions in execution and ensuring the state persistence.

[0082] In some specific embodiments, the server backplane fault light control method may also include the following steps: establishing a historical instruction log based on the light control instructions recorded in the non-volatile storage unit to analyze the triggering rules of the backplane fault light 130 for operation and maintenance personnel to review.

[0083] In some specific embodiments, storing the light control command executed by the backplane fault light 130 in a non-volatile storage unit includes storing the light control command executed by the backplane fault light 130, a timestamp, and the command type in the non-volatile storage unit. Accordingly, the server backplane fault light control method may further include generating a server hard drive failure analysis report based on the light control command recorded in the non-volatile storage unit for reference by operation and maintenance personnel.

[0084] In some embodiments, as Figure 5 As shown, step S401 may include step S501 and step S502.

[0085] Step S501: When a first light control instruction and a second light control instruction are received simultaneously from different channels, the instruction with the higher priority is determined as a candidate light control instruction according to preset priority information, wherein the priority of the light-on instruction is higher than the priority of the light-off instruction;

[0086] Step S502: taking the candidate light control instruction as the current light control instruction.

[0087] The priority of the light-on command is higher than the priority of the light-off command. For example, when the first light-control command is a manual light-off command and the second light-control command is an automatic light-on command, the automatic light-on command has a higher priority than the manual light-off command, and the second light-control command is the target light-control command.

[0088] In some embodiments, the priorities of the automatic light-on command, the manual light-on command, the manual light-off command, and the automatic light-off command are ranked in descending order. For example, when the first light-control command is the manual light-on command and the second light-control command is the automatic light-off command, since the manual light-on command has a higher priority than the automatic light-off command, the manual light-on command is selected as a candidate light-control command and is then selected as the current light-control command.

[0089] When light control commands are received from different channels at the same time, the target light control command is determined according to the preset priority information, which solves the command conflict. Determining the command with high priority as the target light control command can ensure that the light-on command is successfully executed, avoiding the situation where the manual light-on command is overwritten by the automatic light-off command.

[0090] In some embodiments, the server backplane fault light control method further includes the following steps: when the current light control instruction and the historical light control instruction are both manual light control instructions, or both are automatic light control instructions, controlling the backplane fault light 130 to continue executing the current light control instruction.

[0091] Specifically, when the current light control instruction and the historical light control instruction are both manual light control instructions or both are automatic light control instructions, the same type of light control instructions can be directly switched, that is, the backplane fault light 130 is controlled according to the current light control instruction. For example, when the current light control instruction is a manual light-off instruction and the historical light control instruction is a manual light-on instruction, the backplane fault light 130 is controlled to execute the manual light-off instruction, and the backplane fault light 130 is switched from the manual light-on state to the manual light-off state. For another example, when the current light control instruction is an automatic light-on instruction and the historical light control instruction is an automatic light-off instruction, the backplane fault light 130 is controlled to execute the automatic light-on instruction, and the backplane fault light 130 is switched from the automatic light-off state to the automatic light-on state.

[0092] In some embodiments, the server backplane fault light control method further includes the following steps: when the current light control instruction is an automatic light-on instruction and the historical light control instruction is a manual light control instruction, controlling the backplane fault light 130 to execute the current light control instruction.

[0093] Specifically, the priority of the automatic lighting instruction is higher than the priority of the manual lighting instruction. The complex programmable logic device 110 can control the backplane fault light 130 to automatically light up according to the automatic lighting instruction.

[0094] In some embodiments, the server backplane fault light control method also includes the following steps: when the current light control instruction is a manual light on instruction or an automatic light on instruction, and the historical light control instruction is an automatic light off instruction or a manual light off instruction, control the backplane fault light 130 to execute the current light control instruction.

[0095] Specifically, the priority of the light-on instruction is higher than the priority of the light-off instruction. When the historical light control instruction currently executed by the backplane fault light 130 is an automatic light-off instruction or a manual light-off instruction, and the current light control instruction is a manual light-on instruction or an automatic light-on instruction, the complex programmable logic device 110 can control the backplane fault light 130 to light up according to the light-on instruction.

[0096] In some embodiments, the backplane fault light 130 has multiple lighting states corresponding to various lighting control instructions, and each lighting state corresponds to a different scene. The specific correspondence between the instructions and the lighting state is shown in Table 1.

[0097] Table 1:

[0098]

[0099] When the lighting state is automatic lighting and manual lighting, the backplane fault light 130 performs a red light constant lighting action; when the lighting state is manual extinguishing and automatic extinguishing, the backplane fault light 130 performs a red light extinguishing action.

[0100] As shown in Table 1, each light control command corresponds to a specific scenario. In some examples, when the baseboard management controller 120 detects a hard drive failure, the complex programmable logic device 110 receives an automatic light-on command from the baseboard management controller 120, lighting the backplane fault light 130. When the baseboard management controller 120 detects a normal hard drive, the complex programmable logic device 110 receives an automatic light-off command from the baseboard management controller 120, extinguishing the backplane fault light 130. When an operation and maintenance personnel marks a failed hard drive using an IPMI command, the complex programmable logic device 110 receives a manual light-on command, lighting the backplane fault light 130. When the operation and maintenance personnel unmark the failed device, the complex programmable logic device 110 extinguishes the backplane fault light 130 according to the received manual light-off command.

[0101] In some embodiments, the lighting state of the backplane fault light 130 further includes a default state. In the default state, the backplane fault light 130 is off.

[0102] In some specific embodiments, the lighting state switching logic of the backplane fault lamp 130 can be as follows: Figure 6 As shown. The arrow direction in the figure indicates the switching logic between the two states. Specifically, the switching logic may include the following:

[0103] (1) When the current lighting state of the backplane fault light 130 is the default state, its state can be switched to the manual lighting state and the automatic lighting state according to the manual lighting instruction and the automatic lighting instruction respectively;

[0104] (2) When the current lighting state of the backplane fault light 130 is the manual lighting state, its state can be switched to the automatic lighting state and the manual lighting state according to the automatic lighting instruction and the manual lighting instruction respectively;

[0105] (3) When the current lighting state of the back panel fault light 130 is the automatic lighting state, its state can be switched to the automatic lighting off state according to the automatic lighting off instruction;

[0106] (4) When the current lighting state of the back panel fault light 130 is the manual lighting-off state, its state can be switched to the automatic lighting state and the manual lighting state according to the automatic lighting instruction and the manual lighting instruction, respectively. It can also be switched to the default state when the manual lighting-off state is maintained for a period exceeding a preset time;

[0107] (5) When the current lighting state of the back panel fault light 130 is the automatic lighting state, its state can be switched to the automatic lighting state according to the automatic lighting instruction, and can also be switched to the default state when the automatic lighting state is maintained for a period exceeding a preset time.

[0108] The duration of the manual and automatic lights-off states can be monitored by the baseboard management controller 120 or the complex programmable logic device 110. The preset duration can be set to 1 minute, 2 minutes, or 3 minutes. There are no particular limitations on the monitoring method, monitoring subject, or setting time for the duration, and those skilled in the art can configure the duration based on actual needs. Furthermore, the preset duration corresponding to the manual lights-off state and the preset duration corresponding to the automatic lights-off state can be the same or different.

[0109] In some specific embodiments, a priority level can be set for the lighting instructions. When the backplane fault light 130 is currently in the lighting state (including manual lighting and automatic lighting) (i.e., when the currently executed instruction is a manual lighting instruction or an automatic lighting instruction), the instruction to be executed is determined according to a preset first priority level to control the execution of the backplane fault light 130. Within the preset first priority level, the priority of the manual lighting instruction is higher than the priority of the automatic lighting off instruction, the priority of the manual lighting off instruction is higher than the priority of the manual lighting on instruction, and the priority of the automatic lighting off instruction is higher than the priority of the automatic lighting on instruction. That is, when the backplane fault light 130 is currently in the manual lighting state, it needs to be switched to the off state. It will be successfully switched only upon receiving a manual lighting off instruction; the automatic lighting off instruction will not be executed.

[0110] In some other specific embodiments, when the current lighting state of the backplane fault light 130 is off (automatically off, manually off, or default), receiving any lighting instruction (automatically on or manually on) can switch the state of the backplane fault light 130 (light up).

[0111] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus the necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method.

[0112] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any of the above-mentioned server backplane light control method embodiments.

[0113] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above-mentioned server backplane light control method embodiments when running.

[0114] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk, or an optical disk.

[0115] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps of any of the above-mentioned server backplane light control method embodiments are implemented.

[0116] An embodiment of the present application also provides another computer program product, including a non-volatile computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the steps in any of the above-mentioned server backplane light control method embodiments.

[0117] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the above description has generally described the components and steps of each example according to their functions. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0118] The above is a detailed introduction to the server backplane light control method, complex programmable logic device, and server provided by this application. This article uses specific examples to illustrate the principles and implementation methods of this application. The description of the above embodiments is only intended to help understand the method and core concept of this application. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of this application, several improvements and modifications can be made to this application, and these improvements and modifications also fall within the scope of protection of this application.

Claims

1. A server backplane complex programmable logic device, connected to a baseboard management controller and a backplane fault light for indicating a server hard disk fault, characterized in that: It includes a state machine, a register, and a first interface and a second interface for receiving light control instructions from the baseboard management controller; The light control instruction includes a manual light-on instruction or a manual light-off instruction transmitted to the first interface, indicating a manual troubleshooting result, or an automatic light-on instruction or an automatic light-off instruction transmitted to the second interface, indicating a polling troubleshooting result of the baseboard management controller, wherein the manual light-on instruction and the manual light-off instruction are IPMI instructions; The state machine is configured to: receive a current light control instruction from the first interface or the second interface; and when the current light control instruction is an automatic light-off instruction indicating that the server hard disk is fault-free, and when the historical light control instruction being executed by the backplane fault light is a manual light-on instruction indicating that the server hard disk is faulty, determine that the manual light-on instruction is a target light control instruction; The register is used to control the backplane fault light according to the target light control instruction from the state machine.

2. The complex programmable logic device according to claim 1, wherein: The complex programmable logic device further includes a non-volatile storage unit, which is used to receive and store the target light control instruction.

3. The complex programmable logic device according to claim 2, characterized in that: The complex programmable logic device further includes a status monitoring unit for monitoring the operating status of the baseboard management controller; The register is further used to: when the operating state indicates that an abnormality exists, control the backplane fault light according to the last executed light control instruction recorded in the non-volatile storage unit.

4. The complex programmable logic device according to claim 3, characterized in that: The status monitoring unit is further configured to monitor the communication status of the first interface and the second interface; The register is further used to control the backplane fault light according to the last executed light control instruction recorded in the non-volatile storage unit when the communication status indicates that the communication is interrupted.

5. The complex programmable logic device according to claim 1, wherein: The state machine is also used to: When the current light control instruction and the historical light control instruction both come from the first interface, or both come from the second interface, the current light control instruction is determined to be the target light control instruction.

6. The complex programmable logic device according to claim 1, wherein: The state machine is also used to: When the current light control instruction is the automatic light-on instruction and the historical light control instruction is the manual light-on instruction or the manual light-off instruction, or when the current light control instruction is the manual light-on instruction or the automatic light-on instruction and the historical light control instruction is the automatic light-off instruction or the manual light-off instruction, The current light control instruction is determined to be the target light control instruction.

7. The complex programmable logic device according to claim 1, wherein: The state machine is also used to: When a first light control instruction and a second light control instruction are received from different interfaces at the same time, the instruction with the higher priority is determined as a candidate light control instruction according to preset priority information, wherein the priority of the light-on instruction is higher than the priority of the light-off instruction; The candidate light control instruction is used as the current light control instruction.

8. The complex programmable logic device according to claim 1, wherein: The first interface and the second interface are integrated circuit bus interfaces.

9. A server, characterized in that: The server comprises a manual instruction tool, a baseboard management controller, a backplane fault light, and the complex programmable logic device according to any one of claims 1 to 8, wherein a first transmission channel and a second transmission channel corresponding to the first interface and the second interface respectively are provided between the baseboard management controller and the complex programmable logic device; the backplane fault light is used to indicate a hard disk failure of the server; The manual instruction tool is used for the operation and maintenance personnel to issue the manual light-on instruction or the manual light-off instruction according to the manual detection and troubleshooting results; The baseboard management controller is used for: generating the automatic light-on instruction or the automatic light-off instruction according to the result of the automatic polling detection of the hard disk failure, and transmitting the automatic light-on instruction or the automatic light-off instruction to the complex programmable logic device through the second transmission channel; The manual light-on instruction or the manual light-off instruction is received from the manual instruction tool, and the manual light-on instruction or the manual light-off instruction is transmitted to the complex programmable logic device through the first transmission channel.

10. The server according to claim 9, wherein: The manual instruction tool is a command line tool of the intelligent platform management interface.

11. A server backplane light control method, characterized in that: Applied to the complex programmable logic device according to any one of claims 1 to 8, the method comprising: receiving a current light control instruction from the first interface or the second interface; When the current light control instruction is the automatic light-off instruction indicating that the server hard disk has no fault, and the historical light control instruction in execution of the backplane fault light is the manual light-on instruction indicating that the server hard disk has a fault, determining the manual light-on instruction as the target light control instruction; The backplane fault light is controlled according to the target light control instruction.

12. The method according to claim 11, characterized in that The method further includes: storing the target light control instruction in a non-volatile storage unit.

13. The method according to claim 12, characterized in that The method further comprises: Monitor the operating status of the baseboard management controller of the server motherboard; When the operating state indicates that an abnormality exists, the last executed light control instruction recorded in the non-volatile storage unit is obtained, and the backplane fault light is controlled to continue to execute the last executed light control instruction.

14. The method according to claim 12, characterized in that The method further comprises: monitoring the communication status of the first interface and the second interface; When the communication status indicates that the communication is interrupted, the last executed light control instruction recorded in the non-volatile storage unit is obtained, and the backplane fault light is controlled to continue to execute the last executed light control instruction.

15. The method according to claim 11, characterized in that The receiving the current light control instruction from the first interface or the second interface includes: When a first light control instruction and a second light control instruction are received from different channels at the same time, the instruction with the higher priority is determined as a candidate light control instruction according to preset priority information, wherein the priority of the light-on instruction is higher than the priority of the light-off instruction; The candidate light control instruction is used as the current light control instruction.

Citation Information

Patent Citations

  • An on-board SATA hard disk lighting system and method based on IPMI

    CN109086192A

  • Hard disk lighting method and device, server and product

    CN118245335A