Server backplane hard disk lighting method, device, equipment and storage medium
Patent Information
- Application Number
- CN202310594493.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-24
- Publication Date
- 2026-09-11
- Estimated Expiration
- 2043-05-24
AI Technical Summary
[0003]有鉴于此,本发明提供了一种服务器背板硬盘点灯方法、装置、设备及存储介质,以解决现有非易失性内存标准硬盘在不打开卷管理设备的场景,通过虚拟引脚端口对非易失性内存标准硬盘的定位灯进行管理时,存在定位灯异常点亮的问题
[0003] In view of this, the present invention provides a method, apparatus, device and storage medium for lighting up server backplane hard drives, in order to solve the problem of abnormal lighting of positioning lights when managing the positioning lights of non-volatile memory standard hard drives through virtual pin ports in scenarios where the volume management device is not opened.
Smart Images

Figure CN116627762B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer technology, and specifically to a method, apparatus, device, and storage medium for lighting up the hard drive on the backplane of a server. Background Technology
[0002] In current server system designs, the virtual pinport LED specification is mandatory. However, in client applications, there are many scenarios where volume management devices are not accessed. If the client still manages the positioning LEDs of the non-volatile memory standard hard drive through the virtual pinport, the non-volatile memory standard hard drive positioning LEDs will malfunction and illuminate abnormally. Summary of the Invention
[0003] In view of this, the present invention provides a method, apparatus, device and storage medium for lighting up server backplane hard drives, in order to solve the problem of abnormal lighting of positioning lights when managing the positioning lights of non-volatile memory standard hard drives through virtual pin ports in scenarios where the volume management device is not opened.
[0004] Firstly, this invention provides a method for illuminating hard drive lights on a server backplane. The method includes: acquiring an access signal from a target hard drive; determining the access method of the target hard drive based on the access signal; if the access method is via an adapter board, opening the target volume management logic switch corresponding to the target hard drive to receive a virtual pin port illumination signal; and controlling the illumination of lights at the position corresponding to the target hard drive on the server backplane according to the virtual pin port illumination signal. Through this process, the abnormal illumination of the positioning lights on a non-volatile memory standard hard drive when the volume management device is not accessed can be avoided when managing the positioning lights of the non-volatile memory standard hard drive via a virtual pin port.
[0005] In one optional implementation, turning on the target volume management logic switch corresponding to the target hard drive includes:
[0006] Obtain the identifier of the target hard drive;
[0007] Based on the target hard drive's identifier, locate the logical management table to determine and enable the target volume management logical switch.
[0008] In an optional implementation, if the access method is a direct connection, the method further includes:
[0009] Get the status of the volume management device;
[0010] When the volume management device is in a state where the driver is not active, the lighting signal of the virtual pin port that controls the lighting of the target hard drive on the server backplane is disabled.
[0011] In one alternative implementation, the method further includes:
[0012] When the volume management device is in the driver active state, it receives the lighting signal of the virtual pin port corresponding to the target hard drive position on the server backplane to control the lighting.
[0013] In one alternative implementation, the method further includes:
[0014] When the target volume management logic switch corresponding to the current target hard drive is turned on, but the volume management device driver is not active, the lighting signal of the virtual pin port that controls the lighting of the target hard drive on the server backplane is blocked.
[0015] In one alternative implementation, the method further includes:
[0016] If the lighting control of the position corresponding to the target hard drive on the server backplane is not completed within the target time, a lighting request signal is sent to the server's baseboard management controller.
[0017] Receive the serial bus lighting signal fed back by the baseboard management controller in response to the lighting request signal;
[0018] The LEDs on the server backplane corresponding to the target hard drive are controlled by a serial bus LED signal.
[0019] In one alternative implementation, the method further includes:
[0020] When hot-plugging the target hard drive while the volume management device is off, the virtual pin port LED signal is acquired after a delay.
[0021] Secondly, this invention provides a server backplane hard drive LED lighting device according to an embodiment of the invention. The device mainly includes: an access signal acquisition module, an access signal determination module, an LED lighting logic activation module, and an LED lighting control module. The access signal acquisition module acquires the access signal of the target hard drive; the access signal determination module determines the access method of the target hard drive based on the access signal; the LED lighting logic activation module activates the target volume management logic switch corresponding to the target hard drive if the access method is via an adapter board, to receive the virtual pin port LED lighting signal; and the LED lighting control module activates the target hard drive according to the virtual pin port LED lighting signal. Through the above process, the abnormal lighting of the positioning lights of a non-volatile memory standard hard drive can be avoided when the volume management device is not accessed, and the positioning lights of the non-volatile memory standard hard drive are managed via the virtual pin port.
[0022] Thirdly, the present invention provides a computer device, comprising: a memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the computer instructions to perform the server backplane hard disk lighting method described in the first aspect or any corresponding embodiment.
[0023] Fourthly, the present invention provides a computer-readable storage medium storing computer instructions for causing a computer to perform the server backplane hard drive lighting method described in the first aspect or any corresponding embodiment thereof. Attached Figure Description
[0024] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0025] Figure 1 This is a schematic diagram of an application environment according to an embodiment of the present invention;
[0026] Figure 2 This is a flowchart illustrating the server backplane hard drive LED lighting method according to an embodiment of the present invention.
[0027] Figure 3 This is a flowchart illustrating another method for illuminating the hard drive backplane of a server according to an embodiment of the present invention.
[0028] Figure 4 This is a flowchart illustrating another method for lighting up a server backplane hard drive according to an embodiment of the present invention.
[0029] Figure 5 This is a flowchart illustrating another method for lighting up a server backplane hard drive according to an embodiment of the present invention.
[0030] Figure 6 This is a structural block diagram of the server backplane hard drive lighting device according to an embodiment of the present invention;
[0031] Figure 7 This is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. Detailed Implementation
[0032] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0033] The terms "first" and "second" in the specification, claims, and accompanying drawings of this invention are used to distinguish different objects, not to describe a specific order. Furthermore, the term "comprising" and any variations thereof are intended to cover non-exclusive protection. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or apparatuses. The term "multiple" in this invention can mean at least two, for example, two, three, or more, and the embodiments of this invention are not limited thereto.
[0034] Please see Figure 1 , Figure 1 This is a schematic diagram of an application environment provided by an embodiment of the present invention. The schematic diagram includes a motherboard and a backplate electrically connected to the motherboard.
[0035] Furthermore, the motherboard includes a Central Processing Unit (CPU), a first connector conn1 electrically connected to the CPU's first port, and a second connector conn2 electrically connected to the CPU's second port via a PCIe Switch (Peripheral Component Interconnect Express Switch). When the CPU is connected to the first connector conn1, it can receive virtual pin port LED signals and can also connect to the CPU via a Peripheral Component Interconnect Express (PCIe) connection. When the CPU is connected to the PCIe Switch, it is connected via a PCIe Interconnect Express (PCIe) connection. When the PCIe Switch is connected to the second connector conn2, it is also connected via a PCIe Interconnect Express (PCIe) connection. When the CPU is connected to the second connector conn2, it can receive virtual pin port LED signals. In specific implementations, four sampling signals (Strap1) can be used to distinguish which CPU port is actually connected.
[0036] Furthermore, the backplane is equipped with a Complex Programmable Logic Device (CPLD), a first connector (conn1) and a second connector (conn2) electrically connected to the CPLD, and LEDs. The CPLD also has an access signal acquisition port (Strap2) and a presence signal acquisition port (IFDET_N). The second connector (conn2) on the backplane connects to the second connector (conn2) on the motherboard, and the first connector (conn1) on the backplane connects to the first connector (conn1) on the motherboard. It receives virtual pin port lighting signals from different ports of the central processing unit (CPU) on the motherboard to control the lighting of the corresponding target hard drives on the server backplane. It also receives four sampling signals (Strap1) from the motherboard to distinguish which CPU port the target hard drive is actually connected to. Multiple target hard drives connect to the motherboard via connectors on the backplane and upload their attribute information, such as hard drive identification, directly to the CPU on the motherboard, or via an adapter board. Furthermore, the access signal input to the access signal acquisition port (Strap2) can be either a direct connection between the target hard drive and the CPU or a connection via an adapter board. In practice, the value can be determined by pull-up and pull-down resistors, or by pulse signals.
[0037] According to an embodiment of the present invention, a method for lighting up a server backplane hard drive is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0038] This embodiment provides a method for illuminating the hard drive LEDs on a server backplane, which can be used for the aforementioned backplane. Figure 2 This is a flowchart of a server backplane hard drive LED lighting method according to an embodiment of the present invention, as follows: Figure 2 As shown, the process includes the following steps:
[0039] Step S201: Obtain the access signal of the target hard drive.
[0040] In this embodiment, the access signal of the target hard drive is acquired to determine the access method of the target hard drive based on the access signal. The target hard drive in this embodiment can be a non-volatile memory standard hard drive.
[0041] In one alternative implementation, without opening the volume management device, the complex programmable logic device can obtain the access signal of the target hard drive from the access signal acquisition port Strap2.
[0042] Step S202: Determine the access method of the target hard drive based on the access signal.
[0043] In this embodiment, the access method of the target hard drive is determined by the access signal, and it is determined whether to turn on the target volume management logic switch corresponding to the target hard drive in order to receive the virtual pin port light signal.
[0044] In one optional implementation, the type of access signal can include direct connection between the target hard drive and the central processing unit (CPU), or connection to the central connector via an adapter board. Specifically, this can be determined by pull-down or pull-up resistors. For example, if the access signal acquisition port Strap2 is pulled down and Strap2 = 000, the complex programmable logic device (CPL) on the backplane can determine that the target hard drive and the central server are connected via an adapter board. Alternatively, it can be determined by a pulse signal. For example, if a low level is received, the CPL on the backplane can determine that the target hard drive and the central server are connected via an adapter board. Optionally, the connection method between the target hard drive and the CPU can also be determined by the target hard drive actively informing the CPU, or by the CPU informing the CPU.
[0045] In practical implementation, when the target hard drive is directly connected to the central processing unit (CPU), it connects to the first connector on the backplane via peripheral components, and then to the first connector on the motherboard. The first connector on the motherboard also connects to the CPU via peripheral components, thus achieving a direct connection between the target hard drive and the CPU, making it directly controllable by the CPU. When the target hard drive is indirectly connected to the CPU, or connected via an adapter board, it connects to the second connector on the backplane via peripheral components, and then to the second connector on the motherboard. The adapter board on the motherboard connects to the second connector on the motherboard via peripheral components, thus achieving a direct connection between the target hard drive and the adapter board. The adapter board can also connect to the CPU via peripheral components, thus achieving an indirect connection or transfer between the target hard drive and the CPU.
[0046] Understandably, the target hard drive can be directly connected to the central processing unit (CPU) via a quick interconnect via peripheral components, or indirectly connected to the CPU via an adapter board and other quick interconnect components. There can be multiple target hard drives, which can simultaneously use the same connection method to connect to the CPU, or they can use different connection methods.
[0047] Step S203: If the access method is through an adapter board, turn on the target volume management logic switch corresponding to the target hard drive to receive the virtual pin port light signal.
[0048] In this embodiment, when it is determined that the access method of the target hard drive is through the adapter board, the target volume management logic switch corresponding to the target hard drive is turned on to receive the virtual pin port light signal, thereby realizing normal light-up by receiving the virtual pin port light signal in the scenario where the volume management device is not turned on.
[0049] In one optional implementation, when the complex programmable logic device on the backplane determines that the connection between the target hard drive and the central processing unit (CPU) is via an adapter board, it activates the target volume management logic switch corresponding to the target hard drive to receive the virtual pin port indicator light signal. It is understood that when the target hard drive is connected to the CPU via an adapter board, it indicates that the user wishes to use the virtual pin port indicator light signal for control without opening the volume management device. Therefore, this embodiment actively activates the target volume management logic switch corresponding to the target hard drive to receive the virtual pin port indicator light signal, thereby controlling the indicator light at the location corresponding to the target hard drive on the server backplane.
[0050] Step S204: Based on the virtual pin port lighting signal, control the lighting of the position corresponding to the target hard drive on the server backplane.
[0051] In this implementation, the lighting control of the position corresponding to the target hard drive on the server backplane is performed according to the lighting signal of the virtual pin port, so as to realize the normal use of the virtual pin port lighting signal for lighting control without opening the volume management device.
[0052] In one optional implementation, when the complex programmable logic device on the backplane determines that the connection between the target hard disk and the central processing unit is via an adapter board, the target volume management logic switch corresponding to the target hard disk is turned on to receive the virtual pin port lighting signal forwarded by the adapter board. Then, the virtual pin port lighting signal is parsed to obtain the lighting signal to light up the LED on the server backplane corresponding to the location of the target hard disk.
[0053] The server backplane hard drive LED lighting method provided in this embodiment first acquires the access signal of the target hard drive to determine the access method of the target hard drive based on the access signal; by determining the access method of the target hard drive based on the access signal, a virtual pin port LED signal is received; when the access method is through an adapter board, the target volume management logic switch corresponding to the target hard drive is turned on to receive the virtual pin port LED signal, thereby enabling normal LED lighting by receiving the virtual pin port LED signal in a scenario where the volume management device is not opened; based on the virtual pin port LED signal, the LED control is performed on the position corresponding to the target hard drive on the server backplane, avoiding the abnormal lighting of the positioning LED of the non-volatile memory standard hard drive when the positioning LED of the non-volatile memory standard hard drive is managed through the virtual pin port in a scenario where the volume management device is not opened.
[0054] In one optional implementation, when hot-plugging the target hard drive while the volume management device is in a closed state, the virtual pin port LED signal is acquired after a delay to avoid LED malfunctions.
[0055] In one optional implementation, when hot-plugging the target hard drive while the volume management device is off, the time point at which the target hard drive's presence signal becomes active is obtained. For a threshold time following the time point at which the target hard drive's presence signal becomes active, the lighting signal of the virtual pin port corresponding to the target hard drive's location on the server backplane is blocked until the threshold time is reached, after which the lighting signal of the virtual pin port corresponding to the target hard drive's location on the server backplane is received again. The threshold time can range from 1.2s to 3s. It is understood that in other embodiments, the threshold time can also be calculated by integrating the hot-plugging time and the time the presence signal becomes active.
[0056] In practice, when hot-swapping the target hard drive under the system, the corresponding bit of the slot controller is changed. If the volume management device is in a closed state, the central processing unit or the adapter board will send a virtual pin port signal to light up the in-position LED once. Therefore, this embodiment can block the virtual pin port lighting signal for lighting up the target hard drive within a threshold time after the in-position signal takes effect, so as to avoid the situation where the in-position LED lights up abnormally after hot-swapping the target hard drive.
[0057] In one optional implementation, when a hot-plugging action on the target hard drive is detected, the number of hot-plugging operations on the target hard drive is counted within a first predetermined time period to determine whether it has reached a preset upper limit for the number of hot-plugging operations, and during this period, the virtual pin port indicator light signal is not received; if it is determined that the number of hot-plugging operations on the memory card has reached the preset upper limit for the number of hot-plugging operations within the first predetermined time period, the hot-plugging function is automatically disabled, and during this period, the virtual pin port indicator light signal can be received; after the hot-plugging function is disabled and a second predetermined time period has elapsed, the hot-plugging function is automatically restored, and the virtual pin port indicator light signal is acquired after a delay.
[0058] This embodiment provides a method for illuminating the hard drive backplane of a server, which can be used in the aforementioned server, where the server communicates with a central server via a local area network. Figure 3 This is a flowchart of a server backplane hard drive LED lighting method according to an embodiment of the present invention, as follows: Figure 3 As shown, the process includes the following steps:
[0059] Step S301: Obtain the access signal of the target hard drive.
[0060] In this embodiment, the access signal of the target hard drive is obtained so as to determine the access method of the target hard drive based on the access signal.
[0061] Please see details Figure 2 Step S201 of the illustrated embodiment will not be described again here.
[0062] Step S302: Determine the access method of the target hard drive based on the access signal.
[0063] In this embodiment, the access method of the target hard drive is determined by the access signal, and it is determined whether to turn on the target volume management logic switch corresponding to the target hard drive in order to receive the virtual pin port light signal.
[0064] Please see details Figure 2 Step S201 of the illustrated embodiment will not be described again here.
[0065] Step S303: If the access method is through an adapter board, turn on the target volume management logic switch corresponding to the target hard drive to receive the virtual pin port light signal.
[0066] In this embodiment, when it is determined that the access method of the target hard drive is through the adapter board, the target volume management logic switch corresponding to the target hard drive is turned on to receive the virtual pin port light signal, thereby realizing normal light-up by receiving the virtual pin port light signal in the scenario where the volume management device is not turned on.
[0067] Specifically, step S303 in opening the target volume management logic switch corresponding to the target hard drive includes:
[0068] Step S3031: Obtain the identifier of the target hard drive.
[0069] In this embodiment, by obtaining the identifier of the target hard drive, the necessary conditions are provided for determining the target volume management logic switch corresponding to the target hard drive.
[0070] Step S3032: Based on the identifier of the target hard disk, locate the logical management table to determine and turn on the target volume management logical switch.
[0071] In this embodiment, the target volume management logic switch is determined and turned on by looking up the logical management table based on the identifier of the target hard drive, so as to receive the virtual pin port lighting signal, thereby realizing the lighting control of the position corresponding to the target hard drive on the server backplane through the virtual pin port lighting signal.
[0072] In one optional implementation, when the target hard drive is connected to the central processing unit (CPU), it sends its attribute information (such as the hard drive serial number) to the CPU. Upon receiving the target hard drive's attribute information, the CPU determines the actual communication interface between the target hard drive and the CPU, and associates the actual communication interface with the target hard drive's attribute information to form a target hard drive identifier. This identifier is then sent to a complex programmable logic device (CPLD), enabling the CPLD to determine and activate the target volume management logic switch based on the received target hard drive identifier logic management table. The logic management table includes the identifier of each hard drive and its corresponding logic management switch, with each logic switch corresponding to the actual communication port on the target hard drive that receives the virtual pin port indicator signal.
[0073] Optionally, the target hard disk can also directly send its own identifier to the complex programmable logic device (CPLD), so that the CPLD can determine and turn on the target volume management logic switch based on the received identifier logic management table of the target hard disk.
[0074] Step S304: Based on the virtual pin port lighting signal, control the lighting of the corresponding position on the server backplane that corresponds to the target hard drive.
[0075] In this embodiment, when it is determined that the access method of the target hard drive is through the adapter board, the target volume management logic switch corresponding to the target hard drive is turned on to receive the virtual pin port light signal. This enables normal lighting by receiving the virtual pin port light signal in the scenario where the volume management device is not turned on, and is not limited by the connection topology of the peripheral component quick interconnect switch, thus improving flexibility.
[0076] In one optional implementation, when the complex programmable logic device on the backplane determines that the target hard drive is connected to the central processing unit via an adapter board, it turns on the target volume management logic switch corresponding to the target hard drive to receive the virtual pin port LED signal. This virtual pin port LED signal is then parsed to obtain the LED signal that illuminates the location of the LED on the server backplane corresponding to the target hard drive. It is understood that when the target hard drive is connected to the central processing unit via an adapter board, it indicates that the user wishes to use the virtual pin port LED signal for LED control without opening the volume management device. Therefore, this embodiment actively turns on the target volume management logic switch corresponding to the target hard drive to receive the virtual pin port LED signal, thereby controlling the LED on the server backplane corresponding to the target hard drive.
[0077] The server backplane hard drive LED lighting method provided in this embodiment first acquires the access signal of the target hard drive to determine the access method of the target hard drive based on the access signal; by determining the access method of the target hard drive based on the access signal, a virtual pin port LED signal is received; when the access method is through an adapter board, the target volume management logic switch corresponding to the target hard drive is turned on to receive the virtual pin port LED signal, thereby enabling normal LED lighting by receiving the virtual pin port LED signal in a scenario where the volume management device is not opened; based on the virtual pin port LED signal, the LED control is performed on the position corresponding to the target hard drive on the server backplane, avoiding the abnormal lighting of the positioning LED of the non-volatile memory standard hard drive when the positioning LED of the non-volatile memory standard hard drive is managed through the virtual pin port in a scenario where the volume management device is not opened.
[0078] In one optional implementation, when hot-plugging the target hard drive while the volume management device is in a closed state, the virtual pin port LED signal is acquired after a delay to avoid LED malfunctions.
[0079] In one optional implementation, when hot-plugging the target hard drive while the volume management device is in a closed state, the time point at which the target hard drive's presence signal takes effect is obtained; within a threshold time period after the time point at which the target hard drive's presence signal takes effect, the lighting signal of the virtual pin port corresponding to the target hard drive's position on the server backplane is blocked until the threshold time period is over, at which point the lighting signal of the virtual pin port corresponding to the target hard drive's position on the server backplane is received again.
[0080] In practice, when hot-swapping the target hard drive under the system, the corresponding bit of the slot controller is changed. If the volume management device is in a closed state, the central processing unit or the adapter board will send a virtual pin port signal to light up the in-position LED once. Therefore, this embodiment can block the virtual pin port lighting signal for lighting up the target hard drive within a threshold time after the in-position signal takes effect, so as to avoid the situation where the in-position LED lights up abnormally after hot-swapping the target hard drive.
[0081] This embodiment provides a method for activating LEDs on a server backplane hard drive, which can be used in the aforementioned server. The server communicates with a central server through a server cluster. Figure 4 This is a flowchart of a server backplane hard drive LED lighting method according to an embodiment of the present invention, as follows: Figure 4 As shown, the process includes the following steps:
[0082] Step S401: Obtain the access signal of the target hard drive.
[0083] Please see details Figure 2 Step S201 of the illustrated embodiment will not be described again here.
[0084] Step S402: Determine the access method of the target hard drive based on the access signal.
[0085] Please see details Figure 2 Step S202 of the illustrated embodiment will not be described again here.
[0086] Step S403: If the access method is through an adapter board, turn on the target volume management logic switch corresponding to the target hard drive.
[0087] Please see details Figure 3 Step S303 of the illustrated embodiment will not be described again here.
[0088] In step S404, when the target volume management logic switch corresponding to the current target hard drive is turned on, but the volume management device driver is not effective, the lighting signal of the virtual pin port that controls the lighting of the target hard drive on the server backplane is blocked.
[0089] In this embodiment, if the target volume management logic switch corresponding to the current target hard drive is turned on, but the volume management device driver is not effective, the lighting signal of the virtual pin port that controls the lighting of the position corresponding to the target hard drive on the server backplane is blocked. This is to prevent the positioning light from lighting abnormally when the target hard drive manages the positioning light of the non-volatile memory standard hard drive through the virtual pin port without turning on the volume management device.
[0090] In step S405, when the target volume management logic switch corresponding to the current target hard drive is turned on and the volume management device driver is activated, a virtual pin port lighting signal is received to control the lighting of the position corresponding to the target hard drive on the server backplane.
[0091] In this embodiment, if the target volume management logic switch corresponding to the current target hard drive is turned on and the volume management device driver is active, a virtual pin port lighting signal is received to control the lighting of the position corresponding to the target hard drive on the server backplane. This enables normal lighting by receiving the virtual pin port lighting signal in scenarios where the user does not turn on the volume management device, and is not limited by the connection topology of the peripheral component quick interconnect switch, thus improving flexibility.
[0092] For example, to ensure no random LEDs illuminate before the volume management device driver is fully loaded, the basic input / output system (BIOS) power-on self-test (POST) status can be obtained from the baseboard management controller. Only when the BIOS POST is complete and the volume management device driver is active should the virtual pin port LED signal be parsed. In other words, if the complex programmable logic device on the backplane determines that the BIOS POST is complete and the volume management device driver is active, it will parse the virtual pin port signal to illuminate the LEDs; otherwise, it will disable the corresponding LED signal.
[0093] Step S406: If the lighting control of the position corresponding to the target hard drive on the server backplane is not completed within the target time, a lighting request signal is sent to the server's baseboard management controller.
[0094] In this embodiment, if the lighting control for the location corresponding to the target hard drive on the server backplane is not completed within the target time, a lighting request signal is sent to the server's baseboard management controller to achieve lighting control for the location corresponding to the target hard drive on the server backplane. This lighting request signal may include the identifier of the target hard drive and the lighting request.
[0095] In one optional implementation, if the complex programmable logic device (CLPD) does not receive a virtual pin port LED signal from the central processing unit (CPU) via the adapter board within 5 seconds, or if the received virtual pin port LED signal is insufficient to control the LED display at the location corresponding to the target hard drive on the server backplane, it sends an LED request signal to the baseboard management controller (BMC) on the motherboard to enable LED control at the location corresponding to the target hard drive on the server backplane. It is understood that the BMC stores an LED display table for controlling the LED display at the location corresponding to the target hard drive on the server backplane, or can directly access such a table. This LED display table includes the identifier of the target hard drive and the corresponding serial bus LED signal.
[0096] Step S407: Receive the serial bus lighting signal fed back by the board management controller in response to the lighting request signal.
[0097] In this embodiment, by receiving the serial bus lighting signal fed back by the baseboard management controller in response to the lighting request signal, the lighting control of the position corresponding to the target hard drive on the server backplane is realized through the serial bus lighting signal.
[0098] Step S408: Control the lighting of the corresponding position on the server backplane to the target hard drive via the serial bus lighting signal.
[0099] In this embodiment, the LEDs at the location corresponding to the target hard drive on the server backplane are controlled via a serial bus LED signal. This enables LED control at the location corresponding to the target hard drive on the server backplane even if the virtual pin port LED signal reception fails or erroneous.
[0100] The server backplane hard drive LED lighting method provided in this embodiment first acquires the access signal of the target hard drive to determine the access method of the target hard drive based on the access signal; by determining the access method of the target hard drive based on the access signal, the virtual pin port LED signal is received; when the access method is through an adapter board, the target volume management logic switch corresponding to the target hard drive is turned on to receive the virtual pin port LED signal, thereby enabling normal LED lighting by receiving the virtual pin port LED signal in the scenario where the volume management device is not turned on; when the target volume management logic switch corresponding to the current target hard drive is turned on, but the volume management device driver is not active, the virtual pin port LED signal controlling the LED lighting of the position corresponding to the target hard drive on the server backplane is blocked to avoid abnormal lighting of the positioning light when the target hard drive manages the positioning light of the non-volatile memory standard hard drive through the virtual pin port in the scenario where the volume management device is not turned on; when the target volume management logic switch corresponding to the current target hard drive is turned on and the volume management device driver is active, the virtual pin port LED signal controlling the LED lighting of the position corresponding to the target hard drive on the server backplane is received. This system enables normal LED illumination using virtual pinport LED signals even when the user does not open the volume management device. It is not limited by the interconnect topology of peripheral components, improving flexibility and avoiding the abnormal lighting of positioning LEDs when managing them via virtual pinports without opening the volume management device. When the LEDs for the target hard drive on the server backplane are not illuminated within the target time, an LED illumination request signal is sent to the server's baseboard management controller to control the LEDs at that location. Furthermore, it receives serial bus LED signals from the baseboard management controller in response to the LED illumination request signal, enabling LED illumination control at the target hard drive location on the server backplane even in cases of virtual pinport LED signal reception failure or error.
[0101] In one optional implementation, when hot-plugging the target hard drive while the volume management device is in a closed state, the virtual pin port LED signal is acquired after a delay to avoid LED malfunctions.
[0102] In one optional implementation, when hot-plugging the target hard drive while the volume management device is off, the time point at which the target hard drive's presence signal becomes active is obtained. For a threshold time following the time point at which the target hard drive's presence signal becomes active, the lighting signal of the virtual pin port corresponding to the target hard drive's location on the server backplane is blocked until the threshold time is reached, after which the lighting signal of the virtual pin port corresponding to the target hard drive's location on the server backplane is received again. The threshold time can range from 1.2s to 3s. It is understood that in other embodiments, the threshold time can also be calculated by integrating the hot-plugging time and the time the presence signal becomes active.
[0103] In practice, when hot-swapping the target hard drive under the system, the corresponding bit of the slot controller is changed. If the volume management device is in a closed state, the central processing unit or the adapter board will send a virtual pin port signal to light up the in-position LED once. Therefore, this embodiment can block the virtual pin port lighting signal for lighting up the target hard drive within a threshold time after the in-position signal takes effect, so as to avoid the situation where the in-position LED lights up abnormally after hot-swapping the target hard drive.
[0104] This embodiment provides a method for activating LEDs on a server backplane hard drive, which can be used in the aforementioned server. The server communicates with a central server through a server cluster. Figure 5 This is a flowchart of a server backplane hard drive LED lighting method according to an embodiment of the present invention, as follows: Figure 5 As shown, the process includes the following steps:
[0105] Step S501: Obtain the access signal of the target hard drive.
[0106] Please see details Figure 2 Step S201 of the illustrated embodiment will not be described again here.
[0107] Step S502: Determine the access method of the target hard drive based on the access signal.
[0108] Please see details Figure 2 Step S201 of the illustrated embodiment will not be described again here.
[0109] Step S503: If the access method is through an adapter board, turn on the target volume management logic switch corresponding to the target hard drive to receive the virtual pin port light signal.
[0110] Please see details Figure 3 Step S303 of the illustrated embodiment will not be described again here.
[0111] Step S504: Based on the virtual pin port lighting signal, control the lighting of the corresponding position on the server backplane that corresponds to the target hard drive.
[0112] Please see details Figure 2 Step S204 of the illustrated embodiment will not be described again here.
[0113] Step S505: If the access method is direct connection, obtain the status of the volume management device.
[0114] In this embodiment, if the target hard drive is directly connected, the status of the volume management device is first obtained to determine whether to receive the virtual pin port light signal issued by the central processing unit.
[0115] Step S506: When the volume management device is in a state where the driver is not active, the lighting signal of the virtual pin port that controls the lighting of the target hard drive on the server backplane is disabled.
[0116] In this embodiment, when the volume management device is in a state of driver inactive, the lighting signal of the virtual pin port that controls the lighting of the target hard drive on the server backplane is blocked to avoid lighting errors.
[0117] Step S507: When the volume management device is in the state of driver activation, receive the virtual pin port lighting signal for lighting control of the location corresponding to the target hard disk on the server backplane.
[0118] In this embodiment, when the volume management device is in the state of driver activation, it receives the virtual pin port lighting signal for lighting control of the position corresponding to the target hard drive on the server backplane, thereby realizing normal lighting control of the position corresponding to the target hard drive on the server backplane.
[0119] The server backplane hard drive LED lighting method provided in this embodiment first acquires the access signal of the target hard drive to determine its access method. Based on the access signal, the access method is determined to receive the virtual pin port LED signal. When the access method is via an adapter board, the target volume management logic switch corresponding to the target hard drive is turned on to receive the virtual pin port LED signal, thus enabling normal LED lighting without opening the volume management device. Based on the virtual pin port LED signal, the LED control is applied to the position on the server backplane corresponding to the target hard drive, avoiding the need for non-volatile memory standard hard drives to be illuminated via virtual pin port LED signals without opening the volume management device. When the pin port manages the positioning lights of a non-volatile memory standard hard drive, there is a possibility of abnormal lighting of the positioning lights. When the target hard drive is directly connected, the status of the volume management device is first obtained to determine whether to receive the virtual pin port lighting signal issued by the central processing unit. When the status of the volume management device is "driver not enabled," the virtual pin port lighting signal for controlling the lighting of the target hard drive on the server backplane is blocked to avoid lighting errors. When the status of the volume management device is "driver enabled," the virtual pin port lighting signal for controlling the lighting of the target hard drive on the server backplane is received, thereby enabling normal lighting control of the target hard drive on the server backplane.
[0120] In one optional implementation, when hot-plugging the target hard drive while the volume management device is in a closed state, the virtual pin port LED signal is acquired after a delay to avoid LED malfunctions.
[0121] In one optional implementation, when hot-plugging the target hard drive while the volume management device is in a closed state, the time point at which the target hard drive's presence signal takes effect is obtained; within a threshold time period after the time point at which the target hard drive's presence signal takes effect, the lighting signal of the virtual pin port corresponding to the target hard drive's position on the server backplane is blocked until the threshold time period is over, at which point the lighting signal of the virtual pin port corresponding to the target hard drive's position on the server backplane is received again.
[0122] In practice, when hot-swapping the target hard drive under the system, the corresponding bit of the slot controller is changed. If the volume management device is in a closed state, the central processing unit or the adapter board will send a virtual pin port signal to light up the in-position LED once. Therefore, this embodiment can block the virtual pin port lighting signal for lighting up the target hard drive within a threshold time after the in-position signal takes effect, so as to avoid the situation where the in-position LED lights up abnormally after hot-swapping the target hard drive.
[0123] This embodiment also provides a server backplane hard drive LED lighting device, which is used to implement the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0124] This embodiment provides a server backplane hard drive indicator light device, such as... Figure 6 As shown, it includes:
[0125] The access signal acquisition module 601 is used to acquire the access signal of the target hard drive.
[0126] The access signal determination module 602 is used to determine the access method of the target hard drive based on the access signal.
[0127] The LED lighting logic activation module 603 is used to turn on the target volume management logic switch corresponding to the target hard drive to receive the LED signal from the virtual pin port if the access method is through an adapter board.
[0128] In some optional implementations, if the access method is direct connection, the light-up logic activation module 603 is also used to obtain the status of the volume management device;
[0129] When the volume management device is in a state where the driver is not active, the lighting signal of the virtual pin port that controls the lighting of the target hard drive on the server backplane is disabled.
[0130] When the volume management device is in the driver active state, it receives the lighting signal of the virtual pin port corresponding to the target hard drive position on the server backplane to control the lighting.
[0131] In some alternative implementations, the lighting logic activation module 603 includes:
[0132] The identifier acquisition unit is used to acquire the identifier of the target hard disk.
[0133] The switch-on unit is used to locate the target volume management logic switch by looking up the logical management table based on the identifier of the target hard drive.
[0134] The LED control module 604 is used to illuminate the target hard drive according to the LED signal from the virtual pin port.
[0135] In some alternative embodiments, the above-described apparatus further includes:
[0136] The signal shielding module is used to shield the lighting signal of the virtual pin port that controls the lighting of the target hard drive on the server backplane when the target volume management logic switch corresponding to the target hard drive is turned on, but the volume management device driver is not effective.
[0137] The LED lighting request module is used to send an LED lighting request signal to the server's baseboard management controller when the LED lighting control for the position corresponding to the target hard drive on the server backplane is not completed within the target time; receive the serial bus LED lighting signal fed back by the baseboard management controller in response to the LED lighting request signal; and perform LED lighting control for the position corresponding to the target hard drive on the server backplane through the serial bus LED lighting signal.
[0138] The delayed acquisition module is used to acquire the virtual pin port LED signal after a delay when hot-plugging the target hard drive while the volume management device is in a closed state.
[0139] Further functional descriptions of the above modules and units are the same as those in the corresponding embodiments described above, and will not be repeated here.
[0140] In this embodiment, the server backplane hard drive lighting device is presented in the form of a functional unit. Here, a unit refers to an ASIC (Application Specific Integrated Circuit), a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.
[0141] Further functional descriptions of the above modules and units are the same as those in the corresponding embodiments described above, and will not be repeated here.
[0142] This invention also provides a computer device having the above-described features. Figure 6 The server backplane hard drive indicator light is shown.
[0143] Please see Figure 7 , Figure 7 This is a schematic diagram of the structure of a computer device provided in an optional embodiment of the present invention, such as... Figure 7As shown, the computer device includes one or more processors 10, memory 20, and interfaces for connecting the components, including high-speed interfaces and low-speed interfaces. The components communicate with each other via different buses and can be mounted on a common motherboard or otherwise installed as needed. The processors can process instructions executed within the computer device, including instructions stored in or on memory to display graphical information of a GUI on external input / output devices (such as display devices coupled to the interfaces). In some alternative implementations, multiple processors and / or multiple buses can be used with multiple memories and multiple memory modules, if desired. Similarly, multiple computer devices can be connected, each providing some of the necessary operations (e.g., as a server array, a group of blade servers, or a multiprocessor system). Figure 7 Take a processor 10 as an example.
[0144] Processor 10 may be a central processing unit, a network processor, or a combination thereof. Processor 10 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The programmable logic device may be a complex programmable logic device (CAMP), a field-programmable gate array (FPGA), a general-purpose array logic (GDA), or any combination thereof.
[0145] The memory 20 stores instructions executable by at least one processor 10 to cause at least one processor 10 to perform the method shown in the above embodiments.
[0146] The memory 20 may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function; the data storage area may store data created based on the use of the computer device as shown by a landing page for an app. Furthermore, the memory 20 may include high-speed random access memory and may also include non-transient memory, such as at least one disk storage device, flash memory device, or other non-transient solid-state storage device. In some alternative embodiments, the memory 20 may optionally include memory remotely located relative to the processor 10, which can be connected to the computer device via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, server clusters, mobile communication networks, and combinations thereof.
[0147] The memory 20 may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as flash memory, hard disk or solid-state drive; the memory 20 may also include a combination of the above types of memory.
[0148] The computer device also includes a communication interface 30 for communicating with other devices or communication networks.
[0149] This invention also provides a computer-readable storage medium. The methods described above according to embodiments of the invention can be implemented in hardware or firmware, or implemented as computer code that can be recorded on a storage medium, or implemented as computer code downloaded via a network and originally stored on a remote storage medium or a non-transitory machine-readable storage medium and then stored on a local storage medium. Thus, the methods described herein can be processed by software stored on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. The storage medium can be a magnetic disk, optical disk, read-only memory, random access memory, flash memory, hard disk, or solid-state drive, etc.; further, the storage medium can also include combinations of the above types of memory. It is understood that computers, processors, microprocessor controllers, or programmable hardware include storage components capable of storing or receiving software or computer code, which, when accessed and executed by the computer, processor, or hardware, implements the methods shown in the above embodiments.
[0150] Although embodiments of the invention have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations all fall within the scope defined by the appended claims.
Claims
1. A method for illuminating the hard drive on a server backplane, characterized in that, The method includes: Obtain the access signal from the target hard drive; The access method of the target hard drive is determined based on the access signal; If the access method is through an adapter board, turn on the target volume management logic switch corresponding to the target hard drive to receive the virtual pin port light signal; Based on the LED signal from the virtual pin port, control the LEDs at the positions on the server backplane corresponding to the target hard drive.
2. The method according to claim 1, characterized in that, Turn on the target volume management logic switch corresponding to the target hard drive, including: Obtain the identifier of the target hard drive; Based on the identifier of the target hard drive, the logical management table is searched to determine and enable the target volume management logical switch.
3. The method according to claim 1, characterized in that, If the access method is a direct connection, the method further includes: Get the status of the volume management device; When the volume management device is in a state where the driver is not active, the lighting signal of the virtual pin port that controls the lighting of the target hard drive on the server backplane is blocked.
4. The method according to claim 3, characterized in that, The method further includes: When the volume management device is in the state of driver enabled, it receives a virtual pin port lighting signal to control the lighting of the virtual pin port corresponding to the target hard disk on the server backplane.
5. The method according to claim 1, characterized in that, The method further includes: When the target volume management logic switch corresponding to the target hard drive is turned on, but the volume management device driver is not active, the lighting signal of the virtual pin port that controls the lighting at the position corresponding to the target hard drive on the server backplane is blocked.
6. The method according to any one of claims 1 to 5, characterized in that, The method further includes: If the lighting control of the position corresponding to the target hard drive on the server backplane is not completed within the target time, a lighting request signal is sent to the server's baseboard management controller. Receive the serial bus lighting signal fed back by the baseboard management controller in response to the lighting request signal; The serial bus lighting signal controls the lighting of the position corresponding to the target hard drive on the server backplane.
7. The method according to claim 6, characterized in that, The method further includes: When hot-plugging the target hard drive while the volume management device is off, the virtual pin port light signal is acquired after a delay.
8. A server backplane hard drive LED lighting device, characterized in that, The device includes: The access signal acquisition module is used to acquire the access signal of the target hard drive; An access signal determination module is used to determine the access method of the target hard drive based on the access signal; The LED lighting logic activation module is used to turn on the target volume management logic switch corresponding to the target hard disk if the access method is through an adapter board, so as to receive the LED lighting signal of the virtual pin port. The lighting control module is used to illuminate the target hard disk according to the lighting signal from the virtual pin port.
9. A computer device, characterized in that, include: A memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, the processor executing the computer instructions to perform the method of any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions for causing the computer to perform the method of any one of claims 1 to 7.
Citation Information
Patent Citations
Server, hard disk lighting method and system and computer readable storage medium
CN110543404A
Method and equipment for controlling hard disk backboard LED
CN112506817A