Hard disk lighting method and device, computer equipment and storage medium
By using an electrically erasable programmable read-only memory and a node setting module in the baseboard management controller to obtain the hard disk mapping relationship and monitor the lighting instructions, the problems of low efficiency and high failure rate of the traditional hard disk lighting method are solved, and an efficient and reliable Hard disk lighting operation.
Patent Information
- Application Number
- CN202410860024.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-09-27
AI Technical Summary
The traditional hard disk lighting method has the problems of low lighting efficiency and high abnormal failure rate.
By introducing an electrically erasable programmable read-only memory and a node setting module into the baseboard management controller, the target node number identification is obtained, the mapping relationship of the hard disk is determined according to the configuration file, and the hard disk lighting instructions are monitored to achieve efficient lighting operation of the hard disk to be lit. Abnormal failures in lighting management under complex configurations are avoided.
It improves the efficiency of hard disk lighting, reduces the abnormal lighting failure rate, is suitable for flexible layout of multi-node servers, simplifies hardware and software design, and reduces failure rates and design costs.
Smart Images

Figure CN118708447A
Abstract
Description
Technical Field
[0001] The present application relates to the field of server technology, and in particular to a hard disk lighting method, device, computer equipment, multi-node server and storage medium. Background Art
[0002] Non Volatile Memory Express (NVMe) hard disks usually use Activity, Error or Locate LEDs to indicate the working status, health status or location of the hard disk. Common methods of lighting hard disks include Virtual Pin Port (VPP) lighting and Baseboard Management Controller (BMC) lighting. The BMC lighting is mainly used for manual lighting or when the BMC detects that the hard disk status is abnormal.
[0003] However, the traditional hard disk lighting method has problems such as low lighting efficiency or high lighting abnormality failure rate. Summary of the invention
[0004] Based on this, it is necessary to provide a hard disk lighting method, device, computer equipment, multi-node server and storage medium that can improve lighting efficiency and reduce abnormal lighting failure rate in response to the above technical problems.
[0005] In a first aspect, a hard disk lighting method is provided, the method is applied to a current baseboard management controller, a multi-node server includes a first preset number of hard disk lighting control devices; the hard disk lighting control device includes a baseboard management controller, an electrically erasable programmable read-only memory and a node setting module; the baseboard management controller is electrically connected to the electrically erasable programmable read-only memory and the node setting module; the baseboard management controller is used to electrically connect a second preset number of hard disks on a corresponding backplane through each integrated circuit bus; the current baseboard management controller is the baseboard management controller executing the method at the current moment; the method includes:
[0006] Obtaining a target node number identifier from a node setting module corresponding to the current baseboard management controller; wherein the target node number identifier is a node number identifier to which the current baseboard management controller belongs;
[0007] The target mapping relationship is determined according to the target node identifier and the configuration file; the configuration file is used to store the first mapping relationship and the second mapping relationship of all hard disks; the first mapping relationship is used to represent the mapping relationship between the drive letter of the hard disk and the corresponding node number of the baseboard management controller; the second mapping relationship is used to represent the mapping relationship between the drive letter of the hard disk and the integrated circuit bus signal number of the corresponding integrated circuit bus; the target mapping relationship includes the first mapping relationship and the second mapping relationship of each target hard disk; the target hard disk is the hard disk connected to the current baseboard management controller;
[0008] Monitor whether a hard disk lighting instruction is received; the hard disk lighting instruction is used to instruct the hard disk to be lit to be lit; the hard disk to be lit is the target hard disk waiting to be lit;
[0009] If a hard disk lighting instruction is received, the hard disk to be lit is lit according to the mapping relationship between the hard disk lighting instruction and the target.
[0010] In one of the embodiments, the hard disk lighting method further includes: in response to the current baseboard management controller completing the startup operation, loading a configuration file from the corresponding electrically erasable programmable read-only memory; detecting whether there is a configuration file in the electrically erasable programmable read-only memory corresponding to the current baseboard management controller; in response to the electrically erasable programmable read-only memory corresponding to the current baseboard management controller not having a configuration file, outputting configuration prompt information; the configuration prompt information is used to prompt that the current electrically erasable programmable read-only memory needs to be configured with a configuration file;
[0011] The step of acquiring the target node number identifier from the corresponding node setting module includes: in response to the existence of a configuration file in the electrically erasable programmable read-only memory corresponding to the current baseboard management controller, acquiring the target node number identifier from the node setting module corresponding to the current baseboard management controller.
[0012] In one of the embodiments, detecting whether there is a configuration file in the electrically erasable programmable read-only memory corresponding to the current baseboard management controller includes: detecting whether the electrically erasable programmable read-only memory corresponding to the current baseboard management controller is empty; if so, determining that there is no configuration file in the electrically erasable programmable read-only memory corresponding to the current baseboard management controller; if not, determining that there is a configuration file in the electrically erasable programmable read-only memory corresponding to the current baseboard management controller.
[0013] In one of the embodiments, determining the target mapping relationship according to the target node identifier and the configuration file includes: calculating according to the target node identifier to obtain the node number to which the current baseboard management controller belongs; and querying in the configuration file according to the node number to which the current baseboard management controller belongs to obtain the target mapping relationship.
[0014] In one of the embodiments, a hard disk to be turned on is operated according to a hard disk turning on instruction and a target mapping relationship, including: determining the instruction type of the hard disk turning on instruction according to the hard disk turning on instruction; the instruction types include a control turning on instruction and a fault turning on instruction; in response to the instruction type being a control turning on instruction, determining the drive letter of the hard disk to be turned on, the integrated circuit bus signal number of the integrated circuit bus corresponding to the drive letter of the hard disk to be turned on, and the turning on type according to the control turning on instruction and the target mapping relationship; the turning on type includes an operation positioning light, a data communication light, and a hard disk fault light; controlling the complex programmable logic device corresponding to the hard disk to be turned on to perform a turning on operation of a target color on the hard disk to be turned on according to the turning on type, the drive letter of the hard disk to be turned on, and the integrated circuit bus signal number of the integrated circuit bus corresponding to the drive letter of the hard disk to be turned on; the target color is determined according to the turning on type.
[0015] In one embodiment, the step of monitoring whether the hard disk light-on instruction is received also includes detecting whether the target hard disk has a fault; in response to the target hard disk having a fault, generating a fault light-on instruction; in response to the target hard disk not having a fault, returning to the step of detecting whether the target hard disk has a fault;
[0016] Among them, the hard disk to be lit is operated according to the hard disk lighting instruction and the target mapping relationship, including: in response to the instruction type being a fault lighting instruction, determining the lighting type as hard disk fault lighting, and determining the drive letter of the hard disk to be lit and the integrated circuit bus signal number of the integrated circuit bus corresponding to the drive letter of the hard disk to be lit according to the control lighting instruction and the target mapping relationship; controlling the complex programmable logic device corresponding to the hard disk to be lit to perform the target color lighting operation on the hard disk to be lit according to the lighting type, the drive letter of the hard disk to be lit and the integrated circuit bus signal number of the integrated circuit bus corresponding to the drive letter of the hard disk to be lit.
[0017] In one of the embodiments, the method further includes: if the hard disk light-on command is not received, returning to the step of monitoring whether the hard disk light-on command is received.
[0018] In a second aspect, a hard disk lighting device is provided, which is applied to a current baseboard management controller, and a multi-node server includes a first preset number of hard disk lighting control devices; the hard disk lighting control devices include a baseboard management controller, an electrically erasable programmable read-only memory and a node setting module; the baseboard management controller is electrically connected to the electrically erasable programmable read-only memory and the node setting module; the baseboard management controller is used to electrically connect a second preset number of hard disks on the corresponding backplane through each integrated circuit bus; the current baseboard management controller is the baseboard management controller that executes the method at the current moment; the device includes an identification acquisition module, a relationship query module, an instruction detection module and a lighting operation module.
[0019] Among them, the identification acquisition module is used to obtain the target node number identification from the node setting module corresponding to the current baseboard management controller; wherein the target node number identification is the node number identification belonging to the current baseboard management controller; the relationship query module is used to determine the target mapping relationship according to the target node identification and the configuration file; the configuration file is used to store the first mapping relationship and the second mapping relationship of all hard disks; the first mapping relationship is used to characterize the mapping relationship between the drive letter of the hard disk and the corresponding node number belonging to the baseboard management controller; the second mapping relationship is used to characterize the mapping relationship between the drive letter of the hard disk and the integrated circuit bus signal number of the corresponding integrated circuit bus; the target mapping relationship includes the first mapping relationship and the second mapping relationship of each target hard disk; the target hard disk is the hard disk connected to the current baseboard management controller; the instruction detection module is used to monitor whether the hard disk lighting instruction is received; the hard disk lighting instruction is used to indicate the lighting operation of the hard disk to be lit; the hard disk to be lit is the target hard disk waiting to be lit; the lighting operation module is used to, if the hard disk lighting instruction is received, perform the lighting operation on the hard disk to be lit according to the hard disk lighting instruction and the target mapping relationship.
[0020] In a third aspect, a computer device is provided. The computer device includes a memory and a processor. The memory stores a computer program. When the processor executes the computer program, the steps of any method in the above method embodiments are implemented.
[0021] In a fourth aspect, a multi-node server is provided, which includes a first preset number of hard disk lighting control devices; the hard disk lighting control devices include a baseboard management controller, an electrically erasable programmable read-only memory and a node setting module; the baseboard management controller is electrically connected to the electrically erasable programmable read-only memory and the node setting module; the baseboard management controller is used to electrically connect a second preset number of hard disks on the corresponding backplane through each integrated circuit bus; the baseboard management controller is also used to implement the steps of any method in the above method embodiments when executing a computer program.
[0022] In one of the embodiments, the hard disk lighting control device further includes a third preset number of sideband signal connectors; each integrated circuit bus is pluggably electrically connected to the hard disk on the corresponding backplane through the corresponding sideband signal connector.
[0023] In one of the embodiments, the node setting module is electrically connected to the server common board via a cable.
[0024] In a fifth aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of any method in the above method embodiments are implemented.
[0025] The hard disk lighting method, device, multi-node server, computer equipment and storage medium described above obtain the target node number identification from the node setting module corresponding to the current baseboard management controller; wherein the target node number identification is the node number identification of the current baseboard management controller; then, the target mapping relationship is determined according to the target node identification and the configuration file; the configuration file is used to store the first mapping relationship and the second mapping relationship of all hard disks; the first mapping relationship is used to represent the mapping relationship between the drive letter of the hard disk and the node number of the corresponding baseboard management controller; the second mapping relationship is used to represent the mapping relationship between the drive letter of the hard disk and the integrated circuit bus signal number of the corresponding integrated circuit bus; the target mapping relationship includes the first mapping relationship and the second mapping relationship of each target hard disk; the target hard disk is the current baseboard management controller. The hard disk connected to the baseboard management controller is monitored; then, whether a hard disk lighting instruction is received; the hard disk lighting instruction is used to instruct the lighting operation of the hard disk to be lit; the hard disk to be lit is the target hard disk waiting to be lit; finally, if a hard disk lighting instruction is received, the hard disk to be lit is lit according to the hard disk lighting instruction and the target mapping relationship, thereby realizing a one-to-one correspondence between the drive letter of the hard disk connected to the current baseboard management controller and the corresponding node number of the baseboard management controller, and also realizing a one-to-one correspondence between the drive letter of the hard disk connected to the current baseboard management controller and the integrated circuit bus signal number of the corresponding integrated circuit bus, thereby avoiding abnormal failures in lighting management under complex configurations of multi-node servers, facilitating the flexible layout of multi-node servers, improving lighting efficiency, and reducing abnormal lighting failure rate. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 A diagram showing an application environment of a hard disk lighting method in an embodiment;
[0027] Figure 2 A first flow chart of a method for lighting a hard disk in one embodiment;
[0028] Figure 3 A second flow chart of a method for lighting a hard disk in one embodiment;
[0029] Figure 4 A schematic diagram of a process of detecting whether a configuration file exists in the electrically erasable programmable read-only memory corresponding to the current baseboard management controller in one embodiment;
[0030] Figure 5 A schematic diagram of a process for determining a target mapping relationship according to a target node identifier and a configuration file in an embodiment;
[0031] Figure 6 An internal structure diagram of a single hard disk lighting control device in one embodiment
[0032] Figure 7A third flow chart of a method for lighting a hard disk in one embodiment;
[0033] Figure 8 It is a flowchart of performing a lighting operation on a hard disk to be lit according to a hard disk lighting instruction and a target mapping relationship in one embodiment;
[0034] Fig. 9 A structural block diagram of a hard disk lighting device in one embodiment;
[0035] Fig.10 An internal structure diagram of a computer device in one embodiment
[0036] Fig.11 A structural block diagram of a node setting module in an embodiment. DETAILED DESCRIPTION
[0037] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0038] In order to facilitate understanding of the present application, the present application will be described more fully below with reference to the relevant drawings. Embodiments of the present application are provided in the drawings. However, the present application can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present application more thorough and comprehensive.
[0039] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application.
[0040] It is understood that the terms "first", "second", etc. used in this application may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish a first element from another element. For example, without departing from the scope of this application, a first resistor may be referred to as a second resistor, and similarly, a second resistor may be referred to as a first resistor. Both the first resistor and the second resistor are resistors, but they are not the same resistor.
[0041] It can be understood that the “connection” in the following embodiments should be understood as “electrical connection”, “communication connection”, etc. if the connected circuits, modules, units, etc. have electrical signals or data transmission between each other.
[0042] When used herein, the singular forms "a", "an", and "said / the" may also include plural forms, unless the context clearly indicates otherwise. It should also be understood that the terms "include / comprise" or "have" etc. specify the presence of stated features, wholes, steps, operations, components, parts or combinations thereof, but do not exclude the possibility of the presence or addition of one or more other features, wholes, steps, operations, components, parts or combinations thereof.
[0043] Next, the application environment of the hard disk lighting method provided in the embodiment of the present application will be briefly described.
[0044] like Figure 1 As shown, the multi-node server provided by this application can be applied to Figure 1 In the application environment shown. The multi-node server includes a first preset number of hard disk lighting control devices 1000; the hard disk lighting control device 1000 includes a baseboard management controller 1100, an electrically erasable programmable read-only memory (EEPROM) 1200 and a node setting module 1300; the baseboard management controller 1100 is electrically connected to the EEPROM 1200 and the node setting module 1300; the baseboard management controller 1100 is used to electrically connect the second preset number of hard disks 2300 on the corresponding backplane 2200 through each integrated circuit bus (Inter-Integrated Circuit, I2C) 2100; the baseboard management controller 1100 is also used to implement the steps of any method in the above method embodiment when executing a computer program.
[0045] In a specific example, if Figure 1 As shown, the hard disk lighting control device 1000 also includes a third preset number of sideband signal connectors 1400; each integrated circuit bus 2100 is pluggably electrically connected to the hard disk 2300 on the corresponding backplane 2200 through the corresponding sideband signal connector 1400. The hard disk 2300 can be, but is not limited to, a non-volatile memory specification hard disk (NonVolatile Memory Express, NVMe). The above is only a specific example. In actual applications, it can be flexibly set according to needs and is not limited here.
[0046] First, as Figure 2 As shown, a hard disk lighting method is provided, and the method is applied to Figure 1 Taking the current baseboard management controller in as an example, the method includes the following steps 201 to 204.
[0047] Step 201: Obtain a target node number identifier from a node setting module corresponding to the current baseboard management controller.
[0048] The current BMC is the BMC 1100 currently executing the hard disk lighting method. The target node number identifier is the node number identifier of the current BMC. The node setting module 1300 is used to store and set the node number identifier of the corresponding BMC 1100.
[0049] Specifically, the current baseboard management controller obtains the target node number identifier from the node setting module 1300 corresponding to the current baseboard management controller 1100, so as to know the node number identifier to which the current baseboard management controller belongs.
[0050] In one embodiment, if Figure 3 As shown, the hard disk lighting method also includes steps 301 to 303, and step 304.
[0051] Step 301 : in response to the current baseboard management controller completing a startup operation, loading a configuration file from a corresponding electrically erasable programmable read-only memory.
[0052] Step 302: Detect whether there is a configuration file in the electrically erasable programmable read-only memory corresponding to the current baseboard management controller.
[0053] Step 303: In response to the fact that the EEPROM corresponding to the current baseboard management controller does not have a configuration file, output configuration prompt information.
[0054] Among them, the configuration prompt information is used to prompt that the electrically erasable programmable read-only memory 1200 corresponding to the current baseboard management controller needs to be configured with a configuration file. Specifically, when the current baseboard management controller recognizes that the current baseboard management controller has completed the startup operation, it loads the configuration file from the corresponding electrically erasable programmable read-only memory 1200 into the current baseboard management controller; then, it detects whether there is a configuration file in the electrically erasable programmable read-only memory 1200 corresponding to the current baseboard management controller; then, when there is no configuration file in the electrically erasable programmable read-only memory 1200 corresponding to the current baseboard management controller, it outputs configuration prompt information to prompt that the electrically erasable programmable read-only memory 1200 corresponding to the current baseboard management controller needs to be configured with a configuration file, thereby improving the accuracy and reliability of hard disk lighting.
[0055] Wherein, obtaining the target node number identifier from the corresponding node setting module 1300 includes:
[0056] Step 304 : in response to the existence of a configuration file in the electrically erasable programmable read-only memory corresponding to the current baseboard management controller, obtaining a target node number identifier from a node setting module corresponding to the current baseboard management controller.
[0057] Specifically, when the current baseboard management controller has a configuration file in the electrically erasable programmable read-only memory 1200 corresponding to the current baseboard management controller, the current baseboard management controller obtains the target node number identifier from the node setting module 1300 corresponding to the current baseboard management controller, thereby improving the accuracy and reliability of hard disk lighting.
[0058] In this embodiment, in response to the current baseboard management controller completing the startup operation, a configuration file is loaded from the corresponding electrically erasable programmable read-only memory 1200; then, it is detected whether there is a configuration file in the electrically erasable programmable read-only memory 1200 corresponding to the current baseboard management controller; then, in response to the fact that there is no configuration file in the electrically erasable programmable read-only memory 1200 corresponding to the current baseboard management controller, configuration prompt information is output; at the same time, in response to the fact that there is a configuration file in the electrically erasable programmable read-only memory 1200 corresponding to the current baseboard management controller, the target node number identifier is obtained from the node setting module 1300 corresponding to the current baseboard management controller, thereby improving the accuracy and reliability of hard disk lighting.
[0059] In one embodiment, if Figure 4 As shown, detecting whether there is a configuration file in the electrically erasable programmable read-only memory corresponding to the current baseboard management controller includes steps 401 to 403.
[0060] Step 401, detecting whether the electrically erasable programmable read-only memory corresponding to the current baseboard management controller is empty;
[0061] Step 402: If yes, determine that the EEPROM corresponding to the current BMC does not have a configuration file;
[0062] Step 403: If not, determine whether a configuration file exists in the EEPROM corresponding to the current baseboard management controller.
[0063] Specifically, the current baseboard management controller detects whether the electrically erasable programmable read-only memory 1200 corresponding to the current baseboard management controller is empty; then, if the current baseboard management controller detects that the electrically erasable programmable read-only memory 1200 is empty, it is determined that there is no configuration file for the electrically erasable programmable read-only memory 1200 corresponding to the current baseboard management controller; then, if the current baseboard management controller detects that the electrically erasable programmable read-only memory 1200 is not empty, it is determined that there is a configuration file for the electrically erasable programmable read-only memory 1200 corresponding to the current baseboard management controller.
[0064] In this embodiment, it is detected whether the electrically erasable programmable read-only memory 1200 corresponding to the current baseboard management controller is empty; then, if so, it is determined that there is no configuration file in the electrically erasable programmable read-only memory 1200 corresponding to the current baseboard management controller; then, if not, it is determined that there is a configuration file in the electrically erasable programmable read-only memory 1200 corresponding to the current baseboard management controller, thereby improving the efficiency and convenience of detecting whether there is a configuration file.
[0065] Step 202: Determine the target mapping relationship according to the target node identifier and the configuration file.
[0066] Among them, the configuration file is used to store the first mapping relationship and the second mapping relationship of all hard disks 2300; the first mapping relationship is used to represent the mapping relationship between the drive letter of the hard disk 2300 and the corresponding node number of the baseboard management controller 1100; the second mapping relationship is used to represent the mapping relationship between the drive letter of the hard disk 2300 and the corresponding integrated circuit bus signal number of the integrated circuit bus 2100; the target mapping relationship includes the first mapping relationship and the second mapping relationship of each target hard disk; the target hard disk is the hard disk 2300 connected to the current baseboard management controller.
[0067] In a specific example, the drive letter of the hard disk 2300 can be, but is not limited to, determined based on the silk screen information of the hard disk 2300. The above is only a specific example and can be flexibly set according to needs in actual applications and is not limited here.
[0068] Specifically, the current baseboard management controller can determine the target mapping relationship according to the target node identifier and the configuration file, so as to understand the first mapping relationship and the second mapping relationship of the hard disk 2300 connected to the current baseboard management controller through the target mapping relationship.
[0069] In one embodiment, if Figure 5 As shown, determining the target mapping relationship according to the target node identifier and the configuration file includes step 501 and step 502.
[0070] Step 501: Calculate according to the target node identifier to obtain the node number to which the current baseboard management controller belongs.
[0071] Step 502: query the configuration file according to the node number to which the current baseboard management controller belongs, and obtain the target mapping relationship.
[0072] Specifically, the current baseboard management controller can calculate according to the target node identifier to obtain the node number to which the current baseboard management controller belongs; then, according to the node number to which the current baseboard management controller belongs, it queries in the configuration file to obtain the target mapping relationship, thereby improving the efficiency and convenience of determining the target mapping relationship.
[0073] In a specific example, the target node identifier, i.e., the node number identifier of the current baseboard management controller, may be, but is not limited to, a binary identifier; the node number of the current baseboard management controller may be, but is not limited to, a node ID. The corresponding relationship between the node number identifier of the current baseboard management controller and the node number of the current baseboard management controller is shown in the following table:
[0074]
[0075] The above are only specific examples, which can be flexibly configured according to actual needs in practical applications and are not limited here.
[0076] In this embodiment, calculation is performed based on the target node identifier to obtain the node number of the current baseboard management controller; then, a query is performed in the configuration file based on the node number of the current baseboard management controller to obtain the target mapping relationship, thereby improving the efficiency and convenience of determining the target mapping relationship.
[0077] In a specific example, the configuration file may be, but is not limited to, a configuration relationship table. Figure 1 The configuration relationship table corresponding to the multi-node server shown is shown in the following table.
[0078]
[0079] The above are only specific examples, which can be flexibly configured according to actual needs in practical applications and are not limited here.
[0080] In a specific example, the configuration file may be, but is not limited to, a configuration relationship table. Figure 6 The configuration relationship table corresponding to the single hard disk lighting control device 1000 is shown in the following table:
[0081]
[0082]
[0083] The above are only specific examples, which can be flexibly configured according to actual needs in practical applications and are not limited here.
[0084] Step 203, monitoring whether a hard disk light-on instruction is received.
[0085] The hard disk lighting instruction is used to instruct the hard disk to be lit to be lit to be lit; the hard disk to be lit is the target hard disk waiting to be lit. Specifically, the current baseboard management controller can monitor whether the hard disk lighting instruction is received.
[0086] Step 204: If a hard disk lighting instruction is received, a lighting operation is performed on the hard disk to be lit according to the hard disk lighting instruction and the target mapping relationship.
[0087] Specifically, when the current baseboard management controller receives a hard disk lighting instruction, it can turn on the hard disk to be turned on according to the hard disk lighting instruction and the target mapping relationship, thereby realizing a one-to-one correspondence between the drive letter of the hard disk connected to the current baseboard management controller and the corresponding node number of the baseboard management controller 1100, and also realizing a one-to-one correspondence between the drive letter of the hard disk connected to the current baseboard management controller and the corresponding integrated circuit bus signal number of the integrated circuit bus 2100, thereby avoiding abnormal failures in the lighting management under the complex configuration of the multi-node server and facilitating the flexible layout of the multi-node server.
[0088] In one embodiment, if Figure 7 As shown, the method further includes step 701.
[0089] Step 701, if the hard disk light-on command is not received, return to the step of monitoring whether the hard disk light-on command is received.
[0090] Specifically, when the current baseboard management controller does not receive the hard disk light-on instruction, it returns to the step of monitoring whether the hard disk light-on instruction is received, thereby being able to implement cyclic real-time monitoring of whether the hard disk light-on instruction is received.
[0091] In this embodiment, if the hard disk light-on instruction is not received, the process returns to the step of monitoring whether the hard disk light-on instruction is received, thereby enabling cyclic real-time monitoring of whether the hard disk light-on instruction is received.
[0092] Based on this, the above-mentioned hard disk lighting method obtains the target node number identifier from the node setting module 1300 corresponding to the current baseboard management controller; wherein the target node number identifier is the node number identifier belonging to the current baseboard management controller; then, the target mapping relationship is determined according to the target node identifier and the configuration file; the configuration file is used to store the first mapping relationship and the second mapping relationship of all hard disks 2300; the first mapping relationship is used to represent the mapping relationship between the drive letter of the hard disk 2300 and the corresponding node number of the baseboard management controller 1100; the second mapping relationship is used to represent the mapping relationship between the drive letter of the hard disk 2300 and the corresponding integrated circuit bus 2100 The integrated circuit bus signal number; the target mapping relationship includes the first mapping relationship and the second mapping relationship of each target hard disk; the target hard disk is connected to the current baseboard management controller hard disk 2300; then, monitor whether a hard disk lighting instruction is received; the hard disk lighting instruction is used to instruct the lighting operation of the hard disk to be lit; the hard disk to be lit is the target hard disk waiting to be lit; finally, if a hard disk lighting instruction is received, the lighting operation is performed on the hard disk to be lit according to the hard disk lighting instruction and the target mapping relationship, thereby realizing a one-to-one correspondence between the drive letter of the hard disk 2300 connected to the current baseboard management controller and the corresponding node number of the baseboard management controller 1100, and also realizing a one-to-one correspondence between the drive letter of the hard disk 2300 connected to the current baseboard management controller and the corresponding integrated circuit bus signal number of the integrated circuit bus 2100, thereby avoiding abnormal failures in lighting management under complex configurations of multi-node servers, facilitating the flexible layout of multi-node servers, improving lighting efficiency, and reducing abnormal lighting failure rate. In addition, the hardware design of all hard disk lighting control devices 1000 is the same, and the configuration files in each electrically erasable programmable read-only memory 1200 are the same, which avoids the need to burn different configuration files in the hard disk lighting control devices 1000 in different servers, reduces the design cost and reduces the failure rate of hardware and software assembly.
[0093] In one embodiment, if Figure 8 As shown, the lighting operation is performed on the hard disk to be lit according to the hard disk lighting instruction and the target mapping relationship, including steps 801 to 803.
[0094] Step 801, determining the instruction type of the hard disk light-on instruction according to the hard disk light-on instruction.
[0095] The instruction types include control lighting instructions and fault lighting instructions. The current baseboard management controller can determine the instruction type of the hard disk lighting instruction according to the hard disk lighting instruction. In a specific example, the control lighting instruction can be issued by a manual interaction device of a multi-node server, or it can be automatically generated and issued according to other computer programs. The above is only a specific example. In actual applications, it can be flexibly set according to needs and is not limited here.
[0096] Step 802, in response to the instruction type being a lighting control instruction, determine the drive letter of the hard disk to be lit, the integrated circuit bus signal number of the integrated circuit bus 2100 corresponding to the drive letter of the hard disk to be lit, and the lighting type according to the lighting control instruction and the target mapping relationship.
[0097] The lighting types include an operation positioning light, a data communication light, and a hard disk fault light. Specifically, when the current baseboard management controller recognizes that the instruction type is a control lighting instruction, it determines the drive letter of the hard disk to be lit, the integrated circuit bus signal number of the integrated circuit bus 2100 corresponding to the drive letter of the hard disk to be lit, and the lighting type according to the control lighting instruction and the target mapping relationship.
[0098] Step 803, controlling the complex programmable logic device corresponding to the hard disk to be lit to perform a lighting operation of the target color on the hard disk to be lit according to the lighting type, the drive letter of the hard disk to be lit and the integrated circuit bus signal number of the integrated circuit bus corresponding to the drive letter of the hard disk to be lit.
[0099] The target color is determined according to the lighting type. The current baseboard management controller controls the complex programmable logic device (CPLD) corresponding to the hard disk to be lit to perform the lighting operation of the target color on the hard disk to be lit according to the lighting type, the drive letter of the hard disk to be lit and the integrated circuit bus signal number of the integrated circuit bus 2100 corresponding to the drive letter of the hard disk to be lit, thereby improving the lighting efficiency and reducing the abnormal lighting failure rate.
[0100] In a specific example, according to the lighting type, the drive letter of the hard disk to be lit, and the integrated circuit bus signal number of the integrated circuit bus 2100 corresponding to the drive letter of the hard disk to be lit, the complex programmable logic device corresponding to the hard disk to be lit is controlled to perform a lighting operation of a target color on the hard disk to be lit, including:
[0101] In response to the lighting type being the operation positioning light, a first lighting control signal is generated according to the drive letter of the hard disk to be lit and the integrated circuit bus signal number of the integrated circuit bus 2100 corresponding to the drive letter of the hard disk to be lit, so as to control the complex programmable logic device corresponding to the hard disk to be lit to perform a blue lighting operation on the hard disk to be lit according to the first lighting control signal;
[0102] In response to the lighting type being a data communication light, a second lighting control signal is generated according to the drive letter of the hard disk to be lit and the integrated circuit bus signal number of the integrated circuit bus 2100 corresponding to the drive letter of the hard disk to be lit, so as to control the complex programmable logic device corresponding to the hard disk to be lit to perform a green lighting operation on the hard disk to be lit according to the second lighting control signal;
[0103] In response to the lighting type being a hard disk fault light, a third lighting control signal is generated according to the drive letter of the hard disk to be lit and the integrated circuit bus signal number of the integrated circuit bus 2100 corresponding to the drive letter of the hard disk to be lit, thereby controlling the complex programmable logic device corresponding to the hard disk to be lit to perform a green lighting operation on the hard disk to be lit according to the third lighting control signal. The above is only a specific example, which can be flexibly set according to needs in actual applications and is not limited here.
[0104] In one embodiment, before monitoring whether a hard disk light-on instruction is received, the method further includes:
[0105] Check whether the target hard disk has any faults;
[0106] In response to a target hard disk failure, generating a failure light-on instruction;
[0107] In response to the target hard disk not having any fault, the process returns to the step of detecting whether the target hard disk has any fault.
[0108] The step of lighting up the hard disk to be lit up according to the hard disk lighting up instruction and the target mapping relationship includes:
[0109] In response to the instruction type being a fault lighting instruction, determining the lighting type as hard disk fault lighting, and determining the drive letter of the hard disk to be lit and the integrated circuit bus signal number of the integrated circuit bus 2100 corresponding to the drive letter of the hard disk to be lit according to the control lighting instruction and the target mapping relationship;
[0110] According to the lighting type, the drive letter of the hard disk to be lit and the integrated circuit bus signal number of the integrated circuit bus 2100 corresponding to the drive letter of the hard disk to be lit, the complex programmable logic device corresponding to the hard disk to be lit is controlled to perform the lighting operation of the target color on the hard disk to be lit.
[0111] Specifically, the current baseboard management controller detects whether there is a fault in the target hard disk; then, when there is a fault in the target hard disk, a fault lighting instruction is generated; at the same time, when there is no fault in the target hard disk, it returns to the step of detecting whether there is a fault in the target hard disk, and performs real-time monitoring of the cyclic fault; then, when the instruction type is a fault lighting instruction, the lighting type is determined to be a hard disk fault lighting, so that the drive letter of the hard disk to be lit and the integrated circuit bus signal number of the integrated circuit bus 2100 corresponding to the drive letter of the hard disk to be lit can be determined according to the control lighting instruction and the target mapping relationship; finally, according to the lighting type, the drive letter of the hard disk to be lit and the integrated circuit bus signal number of the integrated circuit bus 2100 corresponding to the drive letter of the hard disk to be lit, the complex programmable logic device corresponding to the hard disk to be lit is controlled to perform the target color lighting operation on the hard disk to be lit, thereby realizing automatic identification of hard disk faults, thereby improving the hard disk fault identification efficiency and reducing the abnormal lighting failure rate.
[0112] In the present embodiment, it is detected whether the target hard disk has a fault; then, in response to the target hard disk having a fault, a fault lighting instruction is generated; at the same time, in response to the target hard disk not having a fault, the step of detecting whether the target hard disk has a fault is returned; at the same time, in response to the target hard disk not having a fault, the step of detecting whether the target hard disk has a fault is returned; then, in response to the instruction type being a fault lighting instruction, the lighting type is determined to be hard disk fault lighting, and the drive letter of the hard disk to be lit and the integrated circuit bus signal number of the integrated circuit bus 2100 corresponding to the drive letter of the hard disk to be lit are determined according to the control lighting instruction and the target mapping relationship; finally, according to the lighting type, the drive letter of the hard disk to be lit and the integrated circuit bus signal number of the integrated circuit bus 2100 corresponding to the drive letter of the hard disk to be lit, the complex programmable logic device corresponding to the hard disk to be lit is controlled to perform the target color lighting operation on the hard disk to be lit, thereby realizing automatic identification of hard disk faults, thereby improving the hard disk fault identification efficiency and reducing the abnormal lighting failure rate.
[0113] It should be understood that although Figure 2-Figure 5 and Figure 7-Figure 8 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2-Figure 5 and Figure 7-Figure 8 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0114] Second, as Fig. 9 As shown, a hard disk lighting device is provided, the device is applied to the current baseboard management controller, and the multi-node server includes a first preset number of hard disk lighting control devices 1000; the hard disk lighting control device 1000 includes a baseboard management controller 1100, an electrically erasable programmable read-only memory 1200 and a node setting module 1300; the baseboard management controller 1100 is electrically connected to the electrically erasable programmable read-only memory 1200 and the node setting module 1300; the baseboard management controller 1100 is used to electrically connect the second preset number of hard disks on the corresponding backplane 2200 through each integrated circuit bus 2100; the current baseboard management controller is the baseboard management controller 1100 that executes the method at the current moment; the device includes an identification acquisition module 910, a relationship query module 920, an instruction detection module 930 and a lighting operation module 940.
[0115] Among them, the identification acquisition module 910 is used to obtain the target node number identification from the node setting module 1300 corresponding to the current baseboard management controller; wherein the target node number identification is the node number identification belonging to the current baseboard management controller; the relationship query module 920 is used to determine the target mapping relationship according to the target node identification and the configuration file; the configuration file is used to store the first mapping relationship and the second mapping relationship of all hard disks 2300; the first mapping relationship is used to characterize the mapping relationship between the drive letter of the hard disk 2300 and the corresponding node number belonging to the baseboard management controller 1100; the second mapping relationship is used to characterize the mapping relationship between the drive letter of the hard disk 2300 and the signal number of the integrated circuit bus 2100 of the corresponding integrated circuit bus; the target mapping relationship includes the first mapping relationship and the second mapping relationship of each target hard disk; the target hard disk is the hard disk connected to the current baseboard management controller; the instruction detection module 930 is used to monitor whether the hard disk lighting instruction is received; the hard disk lighting instruction is used to indicate the lighting operation of the hard disk to be lit; the hard disk to be lit is the target hard disk waiting to be lit; the lighting operation module 940 is used to, if the hard disk lighting instruction is received, perform the lighting operation on the hard disk to be lit according to the hard disk lighting instruction and the target mapping relationship.
[0116] In one of the embodiments, the hard disk lighting device further includes a configuration file detection module.
[0117] The configuration file detection module is used to load the configuration file from the corresponding electrically erasable programmable read-only memory 1200 in response to the current baseboard management controller completing the startup operation; the configuration file detection module is used to detect whether there is a configuration file in the electrically erasable programmable read-only memory 1200 corresponding to the current baseboard management controller; the configuration file detection module is used to output configuration prompt information in response to the electrically erasable programmable read-only memory 1200 corresponding to the current baseboard management controller not having a configuration file; the configuration prompt information is used to prompt that the current electrically erasable programmable read-only memory 1200 needs to be configured with a configuration file;
[0118] The step of obtaining the target node number identifier from the corresponding node setting module 1300 includes: in response to the existence of a configuration file in the EEPROM 1200 corresponding to the current baseboard management controller, obtaining the target node number identifier from the node setting module 1300 corresponding to the current baseboard management controller.
[0119] In one embodiment, the configuration file detection module includes a configuration file detection unit.
[0120] Among them, the configuration file detection unit is used to detect whether the electrically erasable programmable read-only memory 1200 corresponding to the current baseboard management controller is empty; the configuration file detection unit is used to determine if so, that there is no configuration file in the electrically erasable programmable read-only memory 1200 corresponding to the current baseboard management controller; the configuration file detection unit is used to determine if not, that there is a configuration file in the electrically erasable programmable read-only memory 1200 corresponding to the current baseboard management controller.
[0121] In one embodiment, the relationship query module 920 includes a relationship query unit.
[0122] The relationship query unit is used to calculate according to the target node identifier to obtain the node number of the current baseboard management controller; the relationship query unit is used to query in the configuration file according to the node number of the current baseboard management controller to obtain the target mapping relationship.
[0123] In one embodiment, the lighting operation module 940 includes a first lighting unit.
[0124] Among them, the first lighting unit is used to determine the instruction type of the hard disk lighting instruction according to the hard disk lighting instruction; the instruction types include control lighting instructions and fault lighting instructions; the first lighting unit is used to respond to the instruction type being a control lighting instruction, and determine the drive letter of the hard disk to be lit, the integrated circuit bus signal number of the integrated circuit bus corresponding to the drive letter of the hard disk to be lit, and the lighting type according to the control lighting instruction and the target mapping relationship; the lighting types include an operation positioning light, a data communication light, and a hard disk fault light; the first lighting unit is used to control the complex programmable logic device corresponding to the hard disk to be lit to perform a lighting operation of a target color on the hard disk to be lit according to the lighting type, the drive letter of the hard disk to be lit, and the integrated circuit bus signal number of the integrated circuit bus 2100 corresponding to the drive letter of the hard disk to be lit; the target color is determined according to the lighting type.
[0125] In one embodiment, the lighting operation module 940 includes a second lighting unit.
[0126] The second lighting unit is used to detect whether the target hard disk has a fault; the second lighting unit is used to generate a fault lighting instruction in response to the target hard disk having a fault; the second lighting unit is used to return to the step of detecting whether the target hard disk has a fault in response to the target hard disk not having a fault;
[0127] Among them, the second lighting unit is used to respond to the instruction type being a fault lighting instruction, determine the lighting type as a hard disk fault lighting, and determine the drive letter of the hard disk to be lit and the integrated circuit bus signal number of the integrated circuit bus 2100 corresponding to the drive letter of the hard disk to be lit according to the control lighting instruction and the target mapping relationship; the second lighting unit is used to control the complex programmable logic device corresponding to the hard disk to be lit to perform a lighting operation of the target color on the hard disk to be lit according to the lighting type, the drive letter of the hard disk to be lit and the integrated circuit bus signal number of the integrated circuit bus 2100 corresponding to the drive letter of the hard disk to be lit.
[0128] In one embodiment, the lighting operation module 940 is further configured to return to the step of monitoring whether a hard disk lighting instruction is received if no hard disk lighting instruction is received.
[0129] The specific definition of the hard disk lighting device can be found in the definition of the hard disk lighting method above, which will not be repeated here. Each module in the above hard disk lighting device can be implemented in whole or in part by software, hardware and their combination. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the corresponding operations of each of the above modules.
[0130] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Fig.10 As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store hard disk lighting instruction data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a hard disk lighting method is implemented.
[0131] Those skilled in the art will understand that Fig.10 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0132] In a third aspect, a computer device is provided. The computer device includes a memory and a processor. The memory stores a computer program. When the processor executes the computer program, the steps of any method in the above method embodiments are implemented.
[0133] In a fourth aspect, a multi-node server is provided, which includes a first preset number of hard disk lighting control devices 1000; the hard disk lighting control device 1000 includes a baseboard management controller 1100, an electrically erasable programmable read-only memory 1200 and a node setting module 1300; the baseboard management controller 1100 is electrically connected to the electrically erasable programmable read-only memory 1200 and the node setting module 1300; the baseboard management controller 1100 is used to electrically connect a second preset number of hard disks 2300 on the corresponding backplane 2200 through each integrated circuit bus 2100; the baseboard management controller 1100 is also used to implement the steps of any method in the above method embodiments when executing a computer program.
[0134] In this embodiment, the multi-node server obtains the target node number identifier from the node setting module 1300 corresponding to the current baseboard management controller; wherein the target node number identifier is the node number identifier of the current baseboard management controller; then, the target mapping relationship is determined according to the target node identifier and the configuration file; the configuration file is used to store the first mapping relationship and the second mapping relationship of all hard disks 2300; the first mapping relationship is used to represent the mapping relationship between the drive letter of the hard disk 2300 and the corresponding node number of the baseboard management controller 1100; the second mapping relationship is used to represent the mapping relationship between the drive letter of the hard disk 2300 and the corresponding integrated circuit bus 2100 The integrated circuit bus signal number; the target mapping relationship includes the first mapping relationship and the second mapping relationship of each target hard disk; the target hard disk is the current baseboard management controller The hard disk connected to the baseboard management controller is detected; then, whether a hard disk lighting instruction is received; the hard disk lighting instruction is used to instruct the lighting operation of the hard disk to be lit; the hard disk to be lit is the target hard disk waiting for lighting; finally, if the hard disk lighting instruction is received, the hard disk to be lit is lit according to the hard disk lighting instruction and the target mapping relationship, thereby realizing the one-to-one correspondence between the drive letter of the hard disk connected to the current baseboard management controller and the corresponding node number of the baseboard management controller 1100, and also realizing the one-to-one correspondence between the drive letter of the hard disk connected to the current baseboard management controller and the corresponding integrated circuit bus signal number of the integrated circuit bus 2100, avoiding abnormal lighting management failures under the complex configuration of multi-node servers, facilitating the flexible layout of multi-node servers, improving lighting efficiency, and reducing abnormal lighting failure rate. In addition, the hardware design of all hard disk lighting control devices 1000 is the same, and the configuration files in each electrically erasable programmable read-only memory 1200 are the same, avoiding the need to burn different configuration files in the hard disk lighting control devices 1000 in different servers, reducing the design cost and the failure rate of hardware and software assembly.
[0135] In one of the embodiments, the hard disk lighting control device 1000 further includes a third preset number of sideband signal connectors 1400 ; each integrated circuit bus 2100 is pluggably electrically connected to the hard disk 2300 on the corresponding backplane 2200 via the corresponding sideband signal connector 1400 .
[0136] In this embodiment, by setting a third preset number of sideband signal connectors 1400 on the hard disk lighting control device 1000, the hard disk 2300 is conveniently electrically connected to the corresponding baseboard management controller 1100, which facilitates the flexible layout of the hard disk lighting control device 1000.
[0137] In one of the embodiments, the node setting module 1300 is electrically connected to the server common board via a cable.
[0138] Specifically, the node setting module 1300 is electrically connected to the server common board through a cable, so that the corresponding node number identifier of the current baseboard management controller can be flexibly set through the server common board.
[0139] In a specific example, if Fig.11 As shown, the node setting module 1300 presets the node number identifier of the current baseboard management controller to a full high level by pulling up the node number identifier of the current baseboard management controller to the power supply. At this time, the node number identifier of the current baseboard management controller is set to node 0 by default. The node setting module 1300 is connected to the server public board through cables and cable connectors, and the on and off state of each cable is controlled by the cable connector of the public board, so that any bit of the node number identifier of the current baseboard management controller can be changed to a low level. In addition, the maximum number of nodes N in the multi-node server and the number of bits n of the minimum value of the node number identifier of the baseboard management controller 1100 must satisfy 2 n ≥ N. The above are only specific examples, which can be flexibly set according to needs in practical applications and are not limited here.
[0140] In this embodiment, the node setting module 1300 is electrically connected to the server common board through a cable, so that the corresponding node number identifier of the current baseboard management controller can be flexibly set through the server common board.
[0141] In a fifth aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of any method in the above method embodiments are implemented.
[0142] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0143] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0144] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A hard disk lighting method, the method is applied to a current baseboard management controller, the multi-node server includes a first preset number of hard disk lighting control devices; the hard disk lighting control device includes the baseboard management controller, an electrically erasable programmable read-only memory and a node setting module; the baseboard management controller is electrically connected to the electrically erasable programmable read-only memory and the node setting module; The baseboard management controller is used to electrically connect a second preset number of hard disks on the corresponding backplane through each integrated circuit bus; The current baseboard management controller is the baseboard management controller that currently executes the method; the method comprises: Obtaining a target node number identifier from the node setting module corresponding to the current baseboard management controller; wherein the target node number identifier is a node number identifier to which the current baseboard management controller belongs; The target mapping relationship is determined according to the target node identifier and the configuration file; the configuration file is used to store the first mapping relationship and the second mapping relationship of all the hard disks; the first mapping relationship is used to characterize the mapping relationship between the drive letter of the hard disk and the corresponding node number of the baseboard management controller; the second mapping relationship is used to characterize the mapping relationship between the drive letter of the hard disk and the corresponding integrated circuit bus signal number of the integrated circuit bus; the target mapping relationship includes the first mapping relationship and the second mapping relationship of each target hard disk; the target hard disk is the hard disk currently connected to the baseboard management controller; Monitoring whether a hard disk lighting instruction is received; the hard disk lighting instruction is used to instruct the hard disk to be lit to be lit to be lit; the hard disk to be lit is the target hard disk waiting to be lit; If the hard disk lighting instruction is received, the hard disk to be lit is lit according to the hard disk lighting instruction and the target mapping relationship.
2. The method according to claim 1, characterized in that The hard disk lighting method also includes: In response to the current baseboard management controller completing a startup operation, loading the configuration file from the corresponding electrically erasable programmable read-only memory; Detecting whether the configuration file exists in the electrically erasable programmable read-only memory corresponding to the current baseboard management controller; In response to the fact that the electrically erasable programmable read-only memory corresponding to the current baseboard management controller does not have the configuration file, outputting configuration prompt information; the configuration prompt information is used to prompt that the electrically erasable programmable read-only memory needs to be configured with the configuration file; Wherein, the obtaining of the target node number identifier from the corresponding node setting module includes: In response to the configuration file existing in the electrically erasable programmable read-only memory corresponding to the current baseboard management controller, the target node number identifier is obtained from the node setting module corresponding to the current baseboard management controller.
3. The method according to claim 2, characterized in that The detecting whether the electrically erasable programmable read-only memory corresponding to the current baseboard management controller has the configuration file comprises: Detecting whether the electrically erasable programmable read-only memory corresponding to the current baseboard management controller is empty; If yes, determining that the electrically erasable programmable read-only memory corresponding to the current baseboard management controller does not contain the configuration file; If not, it is determined that the electrically erasable programmable read-only memory corresponding to the current baseboard management controller contains the configuration file.
4. The method according to claim 1, characterized in that The determining the target mapping relationship according to the target node identifier and the configuration file includes: Calculate according to the target node identifier to obtain the node number to which the current baseboard management controller belongs; The target mapping relationship is obtained by querying the configuration file according to the node number to which the current baseboard management controller belongs.
5. The method according to claim 1, characterized in that The step of lighting up the hard disk to be lit up according to the hard disk lighting instruction and the target mapping relationship includes: Determining the instruction type of the hard disk lighting instruction according to the hard disk lighting instruction; the instruction type includes a control lighting instruction and a fault lighting instruction; In response to the instruction type being the lighting control instruction, determining the drive letter of the hard disk to be lit, the integrated circuit bus signal number of the integrated circuit bus corresponding to the drive letter of the hard disk to be lit, and the lighting type according to the lighting control instruction and the target mapping relationship; the lighting type includes an operation positioning light, a data communication light, and a hard disk fault light; According to the lighting type, the drive letter of the hard disk to be lit and the integrated circuit bus signal number of the integrated circuit bus corresponding to the drive letter of the hard disk to be lit, the complex programmable logic device corresponding to the hard disk to be lit is controlled to perform a lighting operation of a target color on the hard disk to be lit; the target color is determined according to the lighting type.
6. The method according to claim 5, characterized in that The monitoring of whether the hard disk light-on instruction is received also includes detecting whether the target hard disk has a fault; in response to the target hard disk having a fault, generating the fault light-on instruction; in response to the target hard disk not having a fault, returning to the step of detecting whether the target hard disk has a fault; The step of lighting up the hard disk to be lit up according to the hard disk lighting instruction and the target mapping relationship includes: In response to the instruction type being the fault lighting instruction, determining the lighting type as the hard disk fault lighting, and determining the drive letter of the hard disk to be lit and the integrated circuit bus signal number of the integrated circuit bus corresponding to the drive letter of the hard disk to be lit according to the control lighting instruction and the target mapping relationship; According to the lighting type, the drive letter of the hard disk to be lit and the integrated circuit bus signal number of the integrated circuit bus corresponding to the drive letter of the hard disk to be lit, the complex programmable logic device corresponding to the hard disk to be lit is controlled to perform a lighting operation of a target color on the hard disk to be lit.
7. The method according to claim 1, characterized in that The method further comprises: If the hard disk light-on command is not received, return to the step of monitoring whether the hard disk light-on command is received.
8. A hard disk lighting device, characterized in that: The device is applied to the current baseboard management controller, the multi-node server includes a first preset number of hard disk lighting control devices; the hard disk lighting control device includes the baseboard management controller, an electrically erasable programmable read-only memory and a node setting module; the baseboard management controller is electrically connected to the electrically erasable programmable read-only memory and the node setting module; The baseboard management controller is used to electrically connect a second preset number of hard disks on the corresponding backplane through each integrated circuit bus; The current baseboard management controller is the baseboard management controller that currently executes the method; the device comprises: An identification acquisition module, used to acquire a target node number identification from the node setting module corresponding to the current baseboard management controller; wherein the target node number identification is a node number identification to which the current baseboard management controller belongs; A relationship query module, used to determine a target mapping relationship according to the target node identifier and a configuration file; the configuration file is used to store a first mapping relationship and a second mapping relationship of all the hard disks; the first mapping relationship is used to characterize a mapping relationship between a drive letter of the hard disk and a corresponding node number of the baseboard management controller; the second mapping relationship is used to characterize a mapping relationship between a drive letter of the hard disk and a corresponding integrated circuit bus signal number of the integrated circuit bus; the target mapping relationship includes the first mapping relationship and the second mapping relationship of each target hard disk; the target hard disk is the hard disk currently connected to the baseboard management controller; An instruction detection module is used to monitor whether a hard disk lighting instruction is received; the hard disk lighting instruction is used to instruct the hard disk to be lit to be lit to be lit; the hard disk to be lit is the target hard disk waiting to be lit; The lighting operation module is used to, if receiving the hard disk lighting instruction, perform a lighting operation on the hard disk to be lit according to the hard disk lighting instruction and the target mapping relationship.
9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A multi-node server, characterized in that: The multi-node server includes a first preset number of hard disk lighting control devices; the hard disk lighting control device includes a baseboard management controller, an electrically erasable programmable read-only memory and a node setting module; the baseboard management controller is electrically connected to the electrically erasable programmable read-only memory and the node setting module; the baseboard management controller is used to electrically connect a second preset number of hard disks on the corresponding backplane through each integrated circuit bus; the baseboard management controller is also used to implement the steps of the method described in any one of claims 1 to 7 when executing a computer program.
11. The multi-node server according to claim 10, characterized in that: The hard disk lighting control device also includes a third preset number of sideband signal connectors; each integrated circuit bus is pluggably electrically connected to the hard disk on the corresponding backplane through the corresponding sideband signal connector.
12. The multi-node server according to claim 11, characterized in that: The node setting module is electrically connected to the server common board through a cable.
13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Hard disk test method, device and equipment and readable storage medium
CN119724304A
A hard disk testing method, device, equipment and readable storage medium
CN119724304B
Lighting control system, lighting control method, electronic device, medium and product
CN120091485A
Lighting control system, lighting control method, electronic equipment, medium and product
CN120091485B
