Hard disk backboard lighting method and device, computer equipment and storage medium
By generating lighting configuration files and control signals, analyzing the type information of the hard disk backplane to set the hard disk indicator status, the problem that the hard disk backplane cannot support x1-bit wide NVMe hard disk lighting is solved, reducing development costs and time, and improving compatibility .
Patent Information
- Application Number
- CN202411055346.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-02
- Publication Date
- 2024-12-13
AI Technical Summary
The existing hard disk backplane cannot support the x1-bit wide NVMe hard disk lighting function, and the compatibility of the UBM backplane is unverified, which is costly and requires a lot of labor costs to develop and test verification.
By obtaining the type information of the hard disk backplane, a lighting configuration file is generated, including the correspondence between the lighting signal and the state of the hard disk group and the correspondence between the hard disk status and the indicator status, a control signal is generated and sent to the controller, and the signal is parsed to set the hard disk indication. Light status, so that the hard disk backplane supports x1-bit wide hard disk light.
Reduces development time and cost, realizes the support of the hard disk backplane for x1-bit wide hard disk lighting, and improves compatibility and efficiency.
Smart Images

Figure CN119127626A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of hard disk backplanes, and in particular to a method, device, computer equipment and storage medium for lighting a hard disk backplane. Background Art
[0002] With the rapid development of the server industry, users have higher and higher requirements for server performance. For example, in a certain application scenario, a motherboard is required to be matched with multiple backplanes to realize VPP (Vritual Pin Port) lighting.
[0003] like Figure 1 As shown in the figure, one VPP signal corresponds to a x4-bit wide NVMe (Non-Volatile Memory Express, non-volatile memory host controller interface specification) hard disk. This solution can also be used when NVMe is connected to a RAID (Redundant Array of Independent Disks) card, and the VPP signal is sent by the RAID card. In the VPP backplane lighting solution, one VPP signal can only support the lighting function of x4-bit or x2-bit wide NVMe, and cannot support the lighting and management functions of x1-bit wide NVMe.
[0004] In addition, the existing UBM (Universal Backplane Management) backplane x1-bit lighting solution requires the redevelopment of the backplane and controller, and its compatibility has not been verified, and it may not support RAID cards or SAS (Serial Attached SCSI) cards. In addition, the UBM backplane uses UBM chips, which are much more expensive than the VPP backplane, and requires a lot of manpower costs for development and testing verification.
[0005] Therefore, it is urgent to propose a method, device, computer equipment and storage medium for lighting a hard disk backplane that can enable the hard disk backplane to support lighting of a hard disk with a x1 bit width at the software level. Summary of the invention
[0006] Based on this, it is necessary to provide a method, device, computer equipment and storage medium for lighting a hard disk backplane that can support lighting a hard disk with a width of x1 at the software level in order to address the above technical problems.
[0007] In a first aspect, a method for lighting a hard disk backplane is provided, the method comprising:
[0008] Acquire type information of the hard disk backplane, and generate a lighting configuration file according to the type information, wherein the lighting configuration file includes a first correspondence relationship and a second correspondence relationship, the first correspondence relationship indicates a correspondence relationship between a lighting signal and a hard disk group state, the second correspondence relationship indicates a correspondence relationship between a hard disk state and a hard disk indicator light state, the hard disk group includes at least a first hard disk and a second hard disk, the first hard disk is provided with a first hard disk indicator light, and the second hard disk is provided with a second hard disk indicator light;
[0009] Generate a control signal, and send the control signal to a controller, wherein the control signal includes a lighting signal;
[0010] According to the first correspondence and the second correspondence, the control signal is parsed by the controller to obtain the first hard disk indicator light state and the second hard disk indicator light state, and the first hard disk indicator light is set to the first hard disk indicator light state, and the second hard disk indicator light is set to the second hard disk indicator light state.
[0011] In one embodiment, the obtaining of the first hard disk indicator light state and the second hard disk indicator light state by parsing the control signal by the controller according to the first corresponding relationship and the second corresponding relationship includes:
[0012] Identifying, by the controller, a lighting signal in the control signal;
[0013] According to the first corresponding relationship, the controller analyzes the lighting signal to obtain the hard disk group status, wherein the hard disk group status includes the first hard disk status and the second hard disk status;
[0014] According to the second corresponding relationship and the hard disk group status, the hard disk indicator status is obtained, wherein the hard disk indicator status includes a first hard disk indicator status and a second hard disk indicator status.
[0015] In one embodiment, the lighting signal includes an attention indicator light signal and a power indicator light signal, and the method further includes:
[0016] Parsing the lighting signal to obtain the attention indicator light signal and the power indicator light signal;
[0017] Generate the first corresponding relationship by permutation and combination according to the attention indicator light signal, the power indicator light signal, the first hard disk state and the second hard disk state;
[0018] The controller is configured according to the first corresponding relationship.
[0019] In one embodiment, the method further comprises:
[0020] Obtaining a correspondence rule between the hard disk indicator light status and the hard disk status;
[0021] According to the corresponding rule, the hard disk indicator light status is matched with the hard disk status one by one to generate the second corresponding relationship;
[0022] The controller is configured according to the second corresponding relationship.
[0023] In one embodiment, after obtaining the type information of the hard disk backplane, the method further includes:
[0024] Configuring a target transmission protocol according to the type information, and configuring the controller according to the target transmission protocol, wherein the target transmission protocol includes a position of an attention indicator light signal in a control signal, and a position of a power indicator light signal in a control signal;
[0025] sending the control signal to a controller according to the target transmission protocol;
[0026] Based on the target transmission protocol, the controller identifies an attention indicator light signal and a power indicator light signal in the control signal.
[0027] In one embodiment, the method further comprises:
[0028] In response to not receiving the control signal, setting both the first hard disk indicator light and the second hard disk indicator light to an off state;
[0029] According to the second corresponding relationship, the first hard disk state corresponding to the first hard disk indicator light in the off state and the second hard disk state corresponding to the second hard disk indicator light in the off state are obtained, wherein the first hard disk state and the second hard disk state are both normal states.
[0030] In one embodiment, the method for generating the control signal includes:
[0031] Monitoring at least one hard disk in the hard disk group to obtain a hard disk status of the at least one hard disk, wherein the hard disk status includes a normal status, a fault status, a rebuilding status, and a positioning status;
[0032] Generate corresponding hard disk status information of the at least one hard disk according to the hard disk status of the at least one hard disk, wherein the hard disk status information includes normal status information, fault status information, rebuilding status information and positioning status information;
[0033] generating a control signal corresponding to the at least one hard disk according to the hard disk status information of the at least one hard disk;
[0034] In response to the normal state information of the at least one hard disk being at a high level, determining that the hard disk state of the at least one hard disk is the normal state;
[0035] In response to the fault status information of the at least one hard disk being at a high level and the positioning status information being at a low level, determining that the hard disk status of the at least one hard disk is the fault status;
[0036] In response to the fault status information of the at least one hard disk being at a low level and the positioning status information being at a high level, determining that the hard disk status of the at least one hard disk is the positioning status;
[0037] In response to the fault status information of the at least one hard disk and the positioning status information being both at a high level, it is determined that the hard disk status of the at least one hard disk is the rebuilding status.
[0038] In a second aspect, a lighting device for a hard disk backplane is provided, the device comprising:
[0039] An acquisition module, the acquisition module is used to acquire type information of the hard disk backplane;
[0040] a first generating module, the first generating module being used to generate a lighting configuration file according to the type information, wherein the lighting configuration file comprises a first corresponding relationship and a second corresponding relationship, the first corresponding relationship representing a corresponding relationship between a lighting signal and a hard disk group state, the second corresponding relationship representing a corresponding relationship between a hard disk state and a hard disk indicator light state, the hard disk group comprising at least a first hard disk and a second hard disk, the first hard disk being provided with a first hard disk indicator light, and the second hard disk being provided with a second hard disk indicator light;
[0041] A second generating module, the second generating module is used to generate a control signal, wherein the control signal includes a lighting signal;
[0042] A transmission module, wherein the transmission module is used to send the control signal to a controller;
[0043] An analysis module, the analysis module is used to analyze the control signal through the controller according to the first corresponding relationship and the second corresponding relationship to obtain the first hard disk indicator light state and the second hard disk indicator light state;
[0044] A setting module, wherein the setting module is used to set the first hard disk indicator light to the first hard disk indicator light state and the second hard disk indicator light to the second hard disk indicator light state through the controller.
[0045] In a third aspect, a computer device is provided, comprising one or more processors; and a memory associated with the one or more processors, the memory being used to store program instructions, which, when read and executed by the one or more processors, execute the steps of the method described in any one of the first aspects above.
[0046] In a fourth 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 the method described in any one of the first aspects are performed.
[0047] In a fifth aspect, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor, the steps of the method described in any one of the above-mentioned first aspects are implemented.
[0048] The above-mentioned hard disk backplane lighting method, device, computer equipment and storage medium generate a first correspondence relationship between a control signal and a hard disk status, and a second correspondence relationship between a hard disk status and an indicator light status according to the type information of the hard disk backplane; generate a control signal, and send the control signal to a controller; according to the first correspondence relationship and the second correspondence relationship, the control signal is parsed by the controller to obtain a first indicator light status and a second indicator light status, and the first indicator light and the second indicator light status are respectively set according to the first indicator light status and the second indicator light status, so that the hard disk backplane supports the lighting of hard disks with a width of x1, thereby reducing a lot of development time and cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 It is a flow chart of the method for lighting the hard disk backplane in the background technology;
[0050] Figure 2 A schematic diagram of a process of lighting a hard disk backplane in one embodiment;
[0051] Figure 3 is a schematic diagram of the format of a target control signal in one embodiment;
[0052] Figure 4 A structural block diagram of a lighting device for a hard disk backplane in one embodiment;
[0053] Figure 5 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0054] 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.
[0055] Embodiment 1
[0056] In one embodiment, Figure 2 As shown, a method for lighting a hard disk backplane is provided, the method comprising:
[0057] Acquire type information of the hard disk backplane, and generate a lighting configuration file according to the type information, wherein the lighting configuration file includes a first correspondence relationship and a second correspondence relationship, the first correspondence relationship indicates a correspondence relationship between a lighting signal and a hard disk group state, the second correspondence relationship indicates a correspondence relationship between a hard disk state and a hard disk indicator light state, the hard disk group includes at least a first hard disk and a second hard disk, the first hard disk is provided with a first hard disk indicator light, and the second hard disk is provided with a second hard disk indicator light;
[0058] Generate a control signal, and send the control signal to a controller, wherein the control signal includes a lighting signal;
[0059] According to the first correspondence and the second correspondence, the control signal is parsed by the controller to obtain the first hard disk indicator light state and the second hard disk indicator light state, and the first hard disk indicator light is set to the first hard disk indicator light state, and the second hard disk indicator light is set to the second hard disk indicator light state.
[0060] Specifically, a first correspondence between a control signal and a hard disk status, and a second correspondence between a hard disk status and an indicator light status are generated according to type information of the hard disk backplane; a control signal is generated and sent to a controller; according to the first correspondence and the second correspondence, the control signal is parsed by the controller to obtain a first indicator light status and a second indicator light status, and the first indicator light and the second indicator light status are respectively set according to the first indicator light status and the second indicator light status, so that the hard disk backplane supports lighting of hard disks with a width of x1, thereby reducing a lot of development time and cost.
[0061] Specifically, the type information of the hard disk backplane is x1 NVMe backplane.
[0062] In one embodiment, Figure 3 As shown, according to the first corresponding relationship and the second corresponding relationship, the controller parses the control signal to obtain the first hard disk indicator light state and the second hard disk indicator light state, including:
[0063] Identifying, by the controller, a lighting signal in the control signal;
[0064] According to the first corresponding relationship, the controller analyzes the lighting signal to obtain the hard disk group status, wherein the hard disk group status includes the first hard disk status and the second hard disk status;
[0065] According to the second corresponding relationship and the hard disk group status, the hard disk indicator status is obtained, wherein the hard disk indicator status includes a first hard disk indicator status and a second hard disk indicator status.
[0066] Specifically, the controller identifies the lighting signal and obtains the first indicator light state and the second indicator light state corresponding to the lighting signal according to the first corresponding relationship and the second corresponding relationship, so that the controller controls the first indicator light and the second indicator light to be set according to the first indicator light state and the second indicator light state respectively.
[0067] In one embodiment, the lighting signal includes an attention indicator light signal and a power indicator light signal, and the method further includes:
[0068] Parsing the lighting signal to obtain the attention indicator light signal and the power indicator light signal;
[0069] Generate the first corresponding relationship by permutation and combination according to the attention indicator light signal, the power indicator light signal, the first hard disk state and the second hard disk state;
[0070] The controller is configured according to the first corresponding relationship.
[0071] Specifically, using lighting signals, namely, an attention indicator signal (Attention Indicator Control) and a power indicator signal (Power Indicator Control), the first corresponding relationship is generated by permutation and combination according to the attention indicator signal, the power indicator signal, the first hard disk status and the second hard disk status, so that the controller can parse and obtain the hard disk status according to the first corresponding relationship.
[0072] Specifically, the first corresponding relationship is shown in the following table:
[0073]
[0074] In one embodiment, the method further comprises:
[0075] Obtaining a correspondence rule between the hard disk indicator light status and the hard disk status;
[0076] According to the corresponding rule, the hard disk indicator light status is matched with the hard disk status one by one to generate the second corresponding relationship;
[0077] The controller is configured according to the second corresponding relationship.
[0078] Specifically, the indicator light status is matched to the hard disk status in a one-to-one manner to generate the second corresponding relationship, so that the controller obtains the indicator light status according to the second corresponding relationship.
[0079] Specifically, taking a single-color indicator light as an example, the second corresponding relationship is shown in the following table:
[0080] Indicator status Hard disk status Off state Normal state First frequency flashing Positioning status Long light state Fault Status Second frequency flashing Rebuilding Status
[0081] In one embodiment, after obtaining the type information of the hard disk backplane, the method further includes:
[0082] Configuring a target transmission protocol according to the type information, and configuring the controller according to the target transmission protocol, wherein the target transmission protocol includes a position of an attention indicator light signal in a control signal, and a position of a power indicator light signal in a control signal;
[0083] sending the control signal to a controller according to the target transmission protocol;
[0084] Based on the target transmission protocol, the controller identifies an attention indicator light signal and a power indicator light signal in the control signal.
[0085] Specifically, the target transmission protocol is configured according to the type information of the hard disk backplane, and the controller is configured according to the target transmission protocol, so that the controller can identify the lighting signal in the control signal.
[0086] In one embodiment, the method further comprises:
[0087] In response to not receiving the control signal, setting both the first hard disk indicator light and the second hard disk indicator light to an off state;
[0088] According to the second corresponding relationship, the first hard disk state corresponding to the first hard disk indicator light in the off state and the second hard disk state corresponding to the second hard disk indicator light in the off state are obtained, wherein the first hard disk state and the second hard disk state are both normal states.
[0089] In one embodiment, the method for generating the control signal includes:
[0090] Monitoring at least one hard disk in the hard disk group to obtain a hard disk status of the at least one hard disk, wherein the hard disk status includes a normal status, a fault status, a rebuilding status, and a positioning status;
[0091] Generate corresponding hard disk status information of the at least one hard disk according to the hard disk status of the at least one hard disk, wherein the hard disk status information includes normal status information, fault status information, rebuilding status information and positioning status information;
[0092] generating a control signal corresponding to the at least one hard disk according to the hard disk status information of the at least one hard disk;
[0093] In response to the normal state information of the at least one hard disk being at a high level, determining that the hard disk state of the at least one hard disk is the normal state;
[0094] In response to the fault status information of the at least one hard disk being at a high level and the positioning status information being at a low level, determining that the hard disk status of the at least one hard disk is the fault status;
[0095] In response to the fault status information of the at least one hard disk being at a low level and the positioning status information being at a high level, determining that the hard disk status of the at least one hard disk is the positioning status;
[0096] In response to the fault status information of the at least one hard disk and the positioning status information being both at a high level, it is determined that the hard disk status of the at least one hard disk is the rebuilding status.
[0097] Specifically, according to the corresponding relationship between the hard disk state and the control signal, the indicator light state obtained according to the control signal is consistent with the hard disk state.
[0098] Specifically, take the RAID card as an example, with an x1 NVMe backplane that supports 8 disks. The RAID card can support 2 x4 NVMe disks or 4 x2 NVMe disks. Divide the 8 x1 NVMe disks into four groups, each group corresponds to a lighting signal, and a VPP signal bit stream corresponds to the first x1 NVMe and the second x1 NVMe of this group of disks. The RAID card lights up to verify the lighting function, the disk is removed to verify the fault light function, and the new disk is replaced to verify the reconstruction function.
[0099] In one embodiment, monitoring at least one hard disk in the hard disk group to obtain the hard disk status of the at least one hard disk includes:
[0100] In response to monitoring that the server is powered on, using the system startup controller to detect version numbers of the hard disk out-of-band monitoring controller and the hard disk to be monitored, and determining whether the hard disk out-of-band monitoring controller and the hard disk to be monitored both support the out-of-band monitoring function based on the version numbers;
[0101] In response to the system startup controller determining that both the hard disk out-of-band monitoring controller and the hard disk to be monitored support the out-of-band monitoring function, the hard disk to be monitored is used as the target hard disk, and the out-of-band monitoring functions of the hard disk out-of-band monitoring controller and the target hard disk are enabled, and information of the target hard disk is sent to the hard disk out-of-band monitoring controller, so that the hard disk out-of-band monitoring controller obtains the hard disk log data of the target hard disk;
[0102] Sending pin configuration information to the target hard disk, and obtaining a target signal output by the target hard disk after being configured accordingly according to the pin configuration information, wherein the pin configuration information includes an identifier for indicating a hard disk status pin in the target hard disk that outputs the target signal, and configuration parameters for configuring a signal modulation process of the hard disk status signal corresponding to the hard disk status pin and hard disk log data of the target hard disk;
[0103] The target signal is demodulated to obtain the hard disk log data, and a monitoring task for the target hard disk is performed based on the hard disk log data.
[0104] Specifically, a target signal is generated, and hard disk log data is obtained by demodulating the target signal, so as to perform a monitoring task on the target hard disk according to the hard disk log data.
[0105] It should be understood that although Figure 2 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 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.
[0106] Embodiment 2
[0107] In one embodiment, Figure 4 As shown, a lighting device for a hard disk backplane is provided, the device comprising:
[0108] An acquisition module, the acquisition module is used to acquire type information of the hard disk backplane;
[0109] a first generating module, the first generating module being used to generate a lighting configuration file according to the type information, wherein the lighting configuration file comprises a first corresponding relationship and a second corresponding relationship, the first corresponding relationship representing a corresponding relationship between a lighting signal and a hard disk group state, the second corresponding relationship representing a corresponding relationship between a hard disk state and a hard disk indicator light state, the hard disk group comprising at least a first hard disk and a second hard disk, the first hard disk being provided with a first hard disk indicator light, and the second hard disk being provided with a second hard disk indicator light;
[0110] A second generating module, the second generating module is used to generate a control signal, wherein the control signal includes a lighting signal;
[0111] A transmission module, wherein the transmission module is used to send the control signal to a controller;
[0112] An analysis module, the analysis module is used to analyze the control signal through the controller according to the first corresponding relationship and the second corresponding relationship to obtain the first hard disk indicator light state and the second hard disk indicator light state;
[0113] A setting module, wherein the setting module is used to set the first hard disk indicator light to the first hard disk indicator light state and the second hard disk indicator light to the second hard disk indicator light state through the controller.
[0114] In one embodiment, the parsing module parses the control signal through the controller according to the first corresponding relationship and the second corresponding relationship to obtain the first hard disk indicator light state and the second hard disk indicator light state, including:
[0115] Identifying, by the controller, a lighting signal in the control signal;
[0116] According to the first corresponding relationship, the controller analyzes the lighting signal to obtain the hard disk group status, wherein the hard disk group status includes the first hard disk status and the second hard disk status;
[0117] According to the second corresponding relationship and the hard disk group status, the hard disk indicator status is obtained, wherein the hard disk indicator status includes a first hard disk indicator status and a second hard disk indicator status.
[0118] In one embodiment, the lighting signal includes an attention indicator light signal and a power indicator light signal, and the device further includes:
[0119] The analysis module is also used to analyze the lighting signal to obtain the attention indicator light signal and the power indicator light signal;
[0120] a permutation and combination module, the permutation and combination module being used to generate the first corresponding relationship by permutation and combination according to the attention indicator light signal, the power indicator light signal, the first hard disk state and the second hard disk state;
[0121] A configuration module, wherein the configuration module is used to configure the controller according to the first corresponding relationship.
[0122] In one embodiment, the apparatus further comprises:
[0123] The acquisition module is also used to acquire the correspondence rule between the hard disk indicator light state and the hard disk state;
[0124] a third generating module, the third generating module being used for generating the second corresponding relationship by making a one-to-one correspondence between the hard disk indicator light status and the hard disk status according to the corresponding rule;
[0125] The configuration module is further used to configure the controller according to the second corresponding relationship.
[0126] In one embodiment, after the acquisition module acquires the type information of the hard disk backplane, the device further includes:
[0127] The configuration module is further used to configure a target transmission protocol according to the type information, and configure the controller according to the target transmission protocol, wherein the target transmission protocol includes a position of an attention indicator light signal in a control signal, and a position of a power indicator light signal in a control signal;
[0128] The transmission module is also used to send the control signal to the controller according to the target transmission protocol;
[0129] An identification module is used to identify the attention indicator light signal and the power indicator light signal in the control signal through the controller based on the target transmission protocol.
[0130] In one embodiment, the apparatus further comprises:
[0131] The setting module is further used for setting both the first hard disk indicator light and the second hard disk indicator light to an off state in response to not receiving the control signal;
[0132] The acquisition module is also used to obtain, according to the second corresponding relationship, a first hard disk state corresponding to the first hard disk indicator light in the off state, and a second hard disk state corresponding to the second hard disk indicator light in the off state, wherein the first hard disk state and the second hard disk state are both normal states.
[0133] In one embodiment, the device further includes a fourth generating module, and the fourth generating module is used to generate a control signal, including:
[0134] Monitoring at least one hard disk in the hard disk group to obtain a hard disk status of the at least one hard disk, wherein the hard disk status includes a normal status, a fault status, a rebuilding status, and a positioning status;
[0135] Generate corresponding hard disk status information of the at least one hard disk according to the hard disk status of the at least one hard disk, wherein the hard disk status information includes normal status information, fault status information, rebuilding status information and positioning status information;
[0136] generating a control signal corresponding to the at least one hard disk according to the hard disk status information of the at least one hard disk;
[0137] In response to the normal state information of the at least one hard disk being at a high level, determining that the hard disk state of the at least one hard disk is the normal state;
[0138] In response to the fault status information of the at least one hard disk being at a high level and the positioning status information being at a low level, determining that the hard disk status of the at least one hard disk is the fault status;
[0139] In response to the fault status information of the at least one hard disk being at a low level and the positioning status information being at a high level, determining that the hard disk status of the at least one hard disk is the positioning status;
[0140] In response to the fault status information of the at least one hard disk and the positioning status information being both at a high level, it is determined that the hard disk status of the at least one hard disk is the rebuilding status.
[0141] The specific definition of the lighting device of the hard disk backplane can be found in the definition of the lighting method of the hard disk backplane mentioned above, which will not be repeated here. Each module in the lighting device of the hard disk backplane can be implemented in whole or in part by software, hardware and a combination thereof. Each of 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 operations corresponding to each of the above modules.
[0142] Embodiment 3
[0143] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:
[0144] Acquire type information of the hard disk backplane, and generate a lighting configuration file according to the type information, wherein the lighting configuration file includes a first correspondence relationship and a second correspondence relationship, the first correspondence relationship indicates a correspondence relationship between a lighting signal and a hard disk group state, the second correspondence relationship indicates a correspondence relationship between a hard disk state and a hard disk indicator light state, the hard disk group includes at least a first hard disk and a second hard disk, the first hard disk is provided with a first hard disk indicator light, and the second hard disk is provided with a second hard disk indicator light;
[0145] Generate a control signal, and send the control signal to a controller, wherein the control signal includes a lighting signal;
[0146] According to the first correspondence and the second correspondence, the control signal is parsed by the controller to obtain the first hard disk indicator light state and the second hard disk indicator light state, and the first hard disk indicator light is set to the first hard disk indicator light state, and the second hard disk indicator light is set to the second hard disk indicator light state.
[0147] When the program instructions are read and executed by the one or more processors, the program instructions may also perform operations corresponding to the steps in the above method embodiments, and the above description may be referred to, which will not be repeated here. Figure 5 , which exemplarily shows the architecture of a computer device, which may specifically include a processor 510, a video display adapter 511, a disk drive 512, an input / output interface 513, a network interface 514, and a memory 520. The processor 510, the video display adapter 511, the disk drive 512, the input / output interface 513, the network interface 514, and the memory 520 may be communicatively connected via a communication bus 530.
[0148] Among them, the processor 510 can be implemented by a general-purpose central processing unit (CPU), a microprocessor, an application specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solution provided in this application.
[0149] The memory 520 can be implemented in the form of a read-only memory (ROM), a random access memory (RAM), a static storage device, a dynamic storage device, etc. The memory 520 can store an operating system 521 for controlling the operation of the computer device 500, and a basic input and output system (BIOS) 522 for controlling the low-level operation of the computer device 500. In addition, a web browser 523, a data storage manager 524, and an icon font processing system 525, etc. can also be stored. The above-mentioned icon font processing system 525 can be an application program that specifically implements the operations of the aforementioned steps in the embodiment of the present application. In short, when the technical solution provided by the present application is implemented by software or firmware, the relevant program code is stored in the memory 520 and is called and executed by the processor 510.
[0150] The input / output interface 513 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.
[0151] The network interface 514 is used to connect to a communication module (not shown) to realize communication interaction between the device and other devices. The communication module can realize communication through a wired mode (such as USB, network cable, etc.) or a wireless mode (such as mobile network, WIFI, Bluetooth, etc.).
[0152] The bus 530 comprises a pathway for transmitting information between the various components of the device (eg, the processor 510, the video display adapter 511, the disk drive 512, the input / output interface 513, the network interface 514, and the memory 520).
[0153] In addition, the computer device 500 can also obtain information on specific collection conditions from the virtual resource object collection condition information database 541 for use in condition judgment, etc.
[0154] It should be noted that, although the above-mentioned computer device 500 only shows a processor 510, a video display adapter 511, a disk drive 512, an input / output interface 513, a network interface 514, a memory 520, a bus 530, etc., in the specific implementation process, the computer device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above-mentioned device may also only include components necessary for implementing the solution of the present application, and does not necessarily include all the components shown in the figure.
[0155] It can be known from the description of the above implementation methods that those skilled in the art can clearly understand that the present application can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present application can be essentially or partly contributed to the prior art in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a disk, an optical disk, etc., including several instructions for enabling a computer device (which can be a personal computer, a cloud server, or a network device, etc.) to execute the methods described in the various embodiments of the present application or certain parts of the embodiments.
[0156] Embodiment 4
[0157] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0158] Acquire type information of the hard disk backplane, and generate a lighting configuration file according to the type information, wherein the lighting configuration file includes a first correspondence relationship and a second correspondence relationship, the first correspondence relationship indicates a correspondence relationship between a lighting signal and a hard disk group state, the second correspondence relationship indicates a correspondence relationship between a hard disk state and a hard disk indicator light state, the hard disk group includes at least a first hard disk and a second hard disk, the first hard disk is provided with a first hard disk indicator light, and the second hard disk is provided with a second hard disk indicator light;
[0159] Generate a control signal, and send the control signal to a controller, wherein the control signal includes a lighting signal;
[0160] According to the first correspondence and the second correspondence, the control signal is parsed by the controller to obtain the first hard disk indicator light state and the second hard disk indicator light state, and the first hard disk indicator light is set to the first hard disk indicator light state, and the second hard disk indicator light is set to the second hard disk indicator light state.
[0161] 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).
[0162] 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.
[0163] 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.
[0164] Embodiment 5
[0165] In one embodiment, a computer program product is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0166] Acquire type information of the hard disk backplane, and generate a lighting configuration file according to the type information, wherein the lighting configuration file includes a first correspondence relationship and a second correspondence relationship, the first correspondence relationship indicates a correspondence relationship between a lighting signal and a hard disk group state, the second correspondence relationship indicates a correspondence relationship between a hard disk state and a hard disk indicator light state, the hard disk group includes at least a first hard disk and a second hard disk, the first hard disk is provided with a first hard disk indicator light, and the second hard disk is provided with a second hard disk indicator light;
[0167] Generate a control signal, and send the control signal to a controller, wherein the control signal includes a lighting signal;
[0168] According to the first correspondence and the second correspondence, the control signal is parsed by the controller to obtain the first hard disk indicator light state and the second hard disk indicator light state, and the first hard disk indicator light is set to the first hard disk indicator light state, and the second hard disk indicator light is set to the second hard disk indicator light state.
[0169] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing related hardware through a computer program. The computer program can be stored in a computer program product. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods.
[0170] 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.
[0171] 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 method for lighting a hard disk backplane, characterized in that: The method comprises: Acquire type information of the hard disk backplane, and generate a lighting configuration file according to the type information, wherein the lighting configuration file includes a first correspondence relationship and a second correspondence relationship, the first correspondence relationship indicates a correspondence relationship between a lighting signal and a hard disk group state, the second correspondence relationship indicates a correspondence relationship between a hard disk state and a hard disk indicator light state, the hard disk group includes at least a first hard disk and a second hard disk, the first hard disk is provided with a first hard disk indicator light, and the second hard disk is provided with a second hard disk indicator light; Generate a control signal, and send the control signal to a controller, wherein the control signal includes a lighting signal; According to the first correspondence and the second correspondence, the control signal is parsed by the controller to obtain the first hard disk indicator light state and the second hard disk indicator light state, and the first hard disk indicator light is set to the first hard disk indicator light state, and the second hard disk indicator light is set to the second hard disk indicator light state.
2. The method according to claim 1, characterized in that: The step of parsing the control signal by the controller according to the first corresponding relationship and the second corresponding relationship to obtain the first hard disk indicator light state and the second hard disk indicator light state includes: identifying, by the controller, a lighting signal in the control signal; According to the first corresponding relationship, the controller analyzes the lighting signal to obtain the hard disk group status, wherein the hard disk group status includes the first hard disk status and the second hard disk status; According to the second corresponding relationship and the hard disk group status, the hard disk indicator status is obtained, wherein the hard disk indicator status includes a first hard disk indicator status and a second hard disk indicator status.
3. The method according to claim 1, characterized in that: The lighting signal includes an attention indicator light signal and a power indicator light signal, and the method further includes: Parsing the lighting signal to obtain the attention indicator light signal and the power indicator light signal; Generate the first corresponding relationship by permutation and combination according to the attention indicator light signal, the power indicator light signal, the first hard disk state and the second hard disk state; The controller is configured according to the first corresponding relationship.
4. The method according to claim 1, characterized in that: The method further comprises: Obtaining a correspondence rule between the hard disk indicator light status and the hard disk status; According to the corresponding rule, the hard disk indicator light status is matched with the hard disk status one by one to generate the second corresponding relationship; The controller is configured according to the second corresponding relationship.
5. The method according to claim 3, characterized in that: After obtaining the type information of the hard disk backplane, the method further includes: Configuring a target transmission protocol according to the type information, and configuring the controller according to the target transmission protocol, wherein the target transmission protocol includes a position of an attention indicator light signal in a control signal, and a position of a power indicator light signal in a control signal; sending the control signal to a controller according to the target transmission protocol; Based on the target transmission protocol, the controller identifies an attention indicator light signal and a power indicator light signal in the control signal.
6. The method according to claim 1, characterized in that: The method further comprises: In response to not receiving the control signal, setting both the first hard disk indicator light and the second hard disk indicator light to an off state; According to the second corresponding relationship, the first hard disk state corresponding to the first hard disk indicator light in the off state and the second hard disk state corresponding to the second hard disk indicator light in the off state are obtained, wherein the first hard disk state and the second hard disk state are both normal states.
7. The method according to claim 1, characterized in that: The method for generating the control signal includes: Monitoring at least one hard disk in the hard disk group to obtain a hard disk status of the at least one hard disk, wherein the hard disk status includes a normal status, a fault status, a rebuilding status, and a positioning status; Generate corresponding hard disk status information of the at least one hard disk according to the hard disk status of the at least one hard disk, wherein the hard disk status information includes normal status information, fault status information, rebuilding status information and positioning status information; generating a control signal corresponding to the at least one hard disk according to the hard disk status information of the at least one hard disk; In response to the normal state information of the at least one hard disk being at a high level, determining that the hard disk state of the at least one hard disk is the normal state; In response to the fault status information of the at least one hard disk being at a high level and the positioning status information being at a low level, determining that the hard disk status of the at least one hard disk is the fault status; In response to the fault status information of the at least one hard disk being at a low level and the positioning status information being at a high level, determining that the hard disk status of the at least one hard disk is the positioning status; In response to the fault status information of the at least one hard disk and the positioning status information being both at a high level, it is determined that the hard disk status of the at least one hard disk is the rebuilding status.
8. A lighting device for a hard disk backplane, characterized in that: The device comprises: An acquisition module, the acquisition module is used to acquire type information of the hard disk backplane; a first generating module, the first generating module being used to generate a lighting configuration file according to the type information, wherein the lighting configuration file comprises a first corresponding relationship and a second corresponding relationship, the first corresponding relationship representing a corresponding relationship between a lighting signal and a hard disk group state, the second corresponding relationship representing a corresponding relationship between a hard disk state and a hard disk indicator light state, the hard disk group comprising at least a first hard disk and a second hard disk, the first hard disk being provided with a first hard disk indicator light, and the second hard disk being provided with a second hard disk indicator light; A second generating module, the second generating module is used to generate a control signal, wherein the control signal includes a lighting signal; A transmission module, wherein the transmission module is used to send the control signal to a controller; An analysis module, the analysis module is used to analyze the control signal through the controller according to the first corresponding relationship and the second corresponding relationship to obtain the first hard disk indicator light state and the second hard disk indicator light state; A setting module, wherein the setting module is used to set the first hard disk indicator light to the first hard disk indicator light state and the second hard disk indicator light to the second hard disk indicator light state through the controller.
9. An electronic 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 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.
