Method, system and device for realizing hot plug and lighting functions of hard disk based on BMC (Baseboard Management Controller)
The BMC is used to implement hard disk hot-swapping and lighting functions on different CPU platforms, and the I2C bus and backplane CPLD are used to monitor the hard disk status, which solves the problem of strong dependence on the hard disk lighting function in traditional technology and improves system flexibility and scalability. , simplifies hard drive management.
Patent Information
- Application Number
- CN202410707300.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-03
- Publication Date
- 2024-08-27
AI Technical Summary
Traditional hard drive status monitoring and lighting functions rely on CPU models and specific interfaces, resulting in inconsistent implementation methods and inability to work properly on different CPU platforms. This increases system complexity and cost, and makes development and maintenance difficult.
The BMC uses the I2C bus to monitor hard disk status information in real time, feedback plug-in events and health status, and uses the backplane CPLD and PCA9545 for expansion. The independent I2C bus accesses the hard disk status, realizes hard disk hot-swapping and lighting functions, and avoids changes in CPU models and Dependencies on specific interfaces.
It realizes cross-platform hard disk hot-swapping and lighting functions, improves system flexibility and scalability, simplifies administrator work, and reduces development and maintenance costs.
Smart Images

Figure CN118550797A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of hard disk plugging and electric light management, and in particular to a method, system and device for realizing hard disk hot plugging and lighting functions based on BMC. Background Art
[0002] With the rapid development of information technology, the popularity and application of computer hardware such as servers, workstations and storage devices are becoming more and more widespread. Among these devices, hard disks are key components for data storage, and their status monitoring and fault indication are crucial to the stability and maintainability of the system. Traditional hard disk status monitoring and lighting functions mainly rely on the support of CPU and specific interfaces, such as the HPI2C interface in the Intel VMD specification.
[0003] On the x86 platform, the hard disk light function usually follows the Intel VMD specification, which defines how the CPU detects the hard disk's presence and health status through its HPI2C interface. Once the CPU detects a change in the hard disk's status, it controls the light through the CPLD (Complex Programmable Logic Device) on the hard disk backplane, thereby providing intuitive hard disk status information to users or system administrators. However, traditional hard disk status monitoring and light-up technologies still have the following defects:
[0004] In traditional technology, the implementation of the hard disk light function is highly dependent on the CPU model and the support of specific interfaces. Due to the differences between different CPU manufacturers and models, the implementation methods of the hard disk light function are different, lacking unified standards and universality. Especially for those CPU platforms without hotphug I2C interfaces, the hard disk light function is often restricted and cannot work properly. In addition, since the hard disk light function depends on the support of the CPU and specific interfaces, it will also increase the complexity and cost of the system. And due to the differences between different CPU manufacturers and models, it will also lead to a lot of customization and adaptation work for different platforms during the development and maintenance process, which increases the difficulty and cost of development and maintenance. Summary of the invention
[0005] Based on this, the purpose of the present invention is to propose a method, system and device for realizing hard disk hot plug and light-up functions based on BMC, so as to solve the above-mentioned problems.
[0006] The method for realizing hard disk hot plugging and lighting functions based on BMC proposed in the present invention is applied to BMC, and is characterized in that the method includes:
[0007] Real-time monitoring of hard disk status information through the I2C bus, including hard disk presence status and health status;
[0008] According to the monitored hard disk in-place status information, the hard disk plug-in and unplug events are fed back to the CPU, and the hard disk plug-in indicator on the backplane is synchronously lit according to the hardware plug-in and unplug events. The hard disk fault indicator on the backplane is also lit according to the monitored hard disk health status information, realizing the hard disk hot plug and lighting functions.
[0009] Furthermore, before the step of real-time monitoring of hard disk status information via the I2C bus, the step further includes:
[0010] The hard disk in-place status signal is obtained through the backplane CPLD monitoring and stored in the custom register;
[0011] The step of real-time monitoring of hard disk status information via the I2C bus includes:
[0012] The I2C bus includes an I2C1 bus;
[0013] The backplane is accessed through the I2C1 bus, and the hard disk in-place status information stored in the custom register of the backplane CPLD is read.
[0014] Furthermore, the step of feeding back the hard disk plugging and unplugging event to the CPU according to the monitored hard disk in-place status information includes:
[0015] Send the hard disk in-place status to the mainboard CPLD via the SGPIO bus;
[0016] When the hard disk is plugged in or out, the hard disk plugging and unplugging event reflected by the hard disk in-place status is mapped to the corresponding pin of the CPU through the mainboard CPLD, so that the system can know the plugging and unplugging event of the hard disk in real time.
[0017] Furthermore, the step of real-time monitoring of hard disk status information via the I2C bus also includes:
[0018] The I2C bus also includes an I2C2 bus;
[0019] The hard disk is directly accessed through the I2C2 bus to obtain the health status information of the hard disk.
[0020] Furthermore, the step of synchronously lighting up the hard disk plug-in indicator light on the backplane according to the hardware plug-in event includes:
[0021] When the monitored hard disk in-place status information reflects that the hard disk is plugged or unplugged, the hard disk plug-in and unplug-in indicator lights on the backplane are lit simultaneously according to the VMD standard specification.
[0022] Furthermore, the step of lighting up the hard disk fault indicator light on the backplane according to the monitored hard disk health status information includes:
[0023] When the hard disk health status information monitored contains information about an unrecoverable fault, the hard disk fault indicator light will be on.
[0024] Furthermore, the step of real-time monitoring of hard disk status information via the I2C bus also includes:
[0025] PCA9545 is used to expand I2C so that each hard disk occupies a set of independent I2C buses, and the backplane is accessed through the independent I2C buses to read the status information of each corresponding hard disk.
[0026] The present invention also provides a system for realizing hard disk hot plugging and lighting functions based on BMC, which is used to realize the method for realizing hard disk hot plugging and lighting functions based on BMC, comprising:
[0027] at least one hard disk, configured with a storage medium for storing data and an interface for providing hard disk status information;
[0028] A backplane, on which at least one hard disk slot and a circuit for monitoring a hard disk presence signal are arranged, wherein the circuit for monitoring a hard disk presence signal comprises a backplane CPLD for receiving a hard disk slot presence signal and storing the hard disk slot presence signal in a custom register;
[0029] BMC is connected to the backplane CPLD through the I2C bus and is used to access the backplane CPLD through the I2C interface bus to obtain the hard disk in-place status information. The I2C bus is extended through PCA9545, and each hard disk occupies a separate set of I2C buses;
[0030] The motherboard is equipped with a CPU and a motherboard CPLD, which are connected to the CPU through specific pins. The BMC sends the acquired hard disk status information to the motherboard CPLD through the SGPIO bus, and the motherboard CPLD maps the hard disk plugging and unplugging events to the corresponding pins of the CPU according to the received information.
[0031] BMC detects the hard disk status through two different I2C buses, namely I2C1 bus and I2C2 bus. I2C1 bus is used to access the backplane CPLD to obtain the hard disk status and light up the corresponding hard disk plug-in indicator according to the hard disk plug-in event.
[0032] The I2C2 bus is used to directly access the hard disk to obtain the hard disk health status information. When irrecoverable fault information in the hard disk health status information is identified, the corresponding hard disk fault indicator light is lit accordingly.
[0033] The present invention also provides a device for realizing hard disk hot plugging and lighting functions based on BMC, which is applied to BMC and includes:
[0034] Status information acquisition module: used to monitor the hard disk status information in real time through the I2C bus. The hard disk status information includes the hard disk in-place status and health status;
[0035] Plug and unplug feedback and lighting module: It is used to feedback the hard disk plug and unplug events to the CPU according to the monitored hard disk in-place status information, and to synchronously light up the hard disk plug and unplug indicator on the backplane according to the hardware plug and unplug events, and to light up the hard disk fault indicator on the backplane according to the monitored hard disk health status information, so as to realize the hard disk hot plug and lighting functions.
[0036] In summary, the present invention proposes a method for realizing hard disk hot-plugging and lighting functions based on BMC. BMC monitors hard disk status information in real time through I2C bus. Hard disk status information includes hard disk in-place status and health status. According to the monitored hard disk in-place status information, hard disk plug-in events are fed back to CPU, and hard disk plug-in indicator light on the backplane is synchronously lit according to hardware plug-in events, and hard disk fault indicator light on the backplane is lit according to the monitored hard disk health status information, so as to realize hard disk hot-plugging and lighting functions. In the present invention, BMC directly communicates with the hard disk backplane through I2C bus, realizes monitoring of hard disk status and lighting control, monitors hard disk in-place and health status by BMC, feeds back plug-in events to CPU, and synchronously lights up the backplane hard disk indicator light. This method does not rely on CPU manufacturer model or specific interface, and can realize hard disk hot-plugging and lighting functions across platforms on different operating systems, hardware architectures and product series.
[0037] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description or will be learned through embodiments of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0039] Figure 1 It is a flow chart of a method for realizing hard disk hot-swap and lighting functions based on BMC of the present invention;
[0040] Figure 2 It is a principle structure diagram of realizing the hard disk hot-swap function based on BMC of the present invention;
[0041] Figure 3 A system block diagram of the present invention for realizing the hard disk hot-swap function based on BMC;
[0042] Figure 4This is a principle structure diagram of the present invention's BMC-based implementation of the hard disk plug-in and plug-out lighting function;
[0043] Figure 5 This is a system block diagram of the present invention that realizes the hard disk plug-in and plug-out lighting function based on BMC;
[0044] Figure 6 This is a principle structure diagram of the hard disk fault lighting function based on BMC of the present invention;
[0045] Figure 7 This is a system block diagram of the present invention for realizing the hard disk fault lighting function based on BMC;
[0046] Figure 8 The present invention is a schematic diagram of a device for realizing hard disk hot-swap and lighting functions based on BMC. DETAILED DESCRIPTION
[0047] In order to facilitate the understanding of the present invention, the present invention will be described more fully below with reference to the relevant drawings. Several embodiments of the present invention are given in the drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present invention more thorough and comprehensive.
[0048] It should be noted that when an element is referred to as being "fixed to" another element, it may be directly on the other element or there may be a central element. When an element is considered to be "connected to" another element, it may be directly connected to the other element or there may be a central element at the same time. The terms "vertical", "horizontal", "left", "right" and similar expressions used herein are for illustrative purposes only.
[0049] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used herein in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more related listed items.
[0050] refer to Figures 1 to 7 The present invention provides a method for realizing hard disk hot plug and light function based on BMC, which is applied to BMC. Figure 1 This is a flow chart of a method for implementing hard disk hot-swap and lighting functions based on BMC according to one embodiment of the present invention, and the flow includes the following steps S101 to S102:
[0051] S101, real-time monitoring of hard disk status information via the I2C bus, where the hard disk status information includes hard disk in-place status and health status.
[0052] It should be noted that the I2C bus is a simple, bidirectional, two-wire synchronous serial bus that requires only two wires (data line SDA and clock line SCL) to transmit information between devices connected to the bus.
[0053] The motherboard is integrated with an onboard BMC (Baseboard Management Controller) management module, which is used to read the hard disk status information in the hard disk backplane through the I2C link. Through the I2C bus, the BMC can obtain the hard disk status information in real time, including the hard disk's in-place status information and its health status information.
[0054] S102, based on the monitored hard disk in-place status information, the hard disk plug-in and unplug event is fed back to the CPU, and the hard disk plug-in indicator light on the backplane is synchronously lit according to the hardware plug-in and unplug event, and the hard disk fault indicator light on the backplane is lit according to the monitored hard disk health status information, to realize the hard disk hot plug and lighting function.
[0055] It should be noted that the BMC can monitor the hard disk in-place status information in real time through the communication between the I2C bus and the backplane. This real-time performance ensures that when the hard disk is plugged in or out, the BMC can immediately sense this change and respond accordingly. Once the plug-in and pull-out event of the hard disk is detected, the BMC will not only feedback this event to the mainboard CPLD through the SGPIO bus, but the mainboard CPLD will also further map this event to the corresponding pin of the CPU. In this way, the CPU can obtain the plug-in and pull-out event of the hard disk in real time, so that it can take corresponding actions as needed, such as updating the system configuration, starting or stopping services, etc. The BMC will also synchronously light up the hard disk plug-in and pull-out indicator light (such as the "located" LED) on the backplane. The hard disk fault indicator light (such as the "fault" LED) on the backplane is lit according to the monitored hard disk health status information. This design allows the administrator to intuitively understand the current status of the hard disk by observing the status of the indicator light. For example, when the hard disk is inserted and correctly identified, the "located" LED indicator light will light up; and when the hard disk has an unrecoverable fault, the "fault" LED indicator light will light up.
[0056] This solution for implementing the hard disk hot-swap and lighting functions based on BMC not only avoids the reliance on the CPU's built-in Hotplug I2C interface in traditional technologies, but also improves the flexibility and scalability of the system. Regardless of whether the CPU supports the Hotplug I2C interface, this embodiment can effectively implement the hard disk hot-swap and lighting functions, providing a more convenient and efficient hard disk management method for system administrators.
[0057] The method for implementing the hard disk hot-swap and lighting functions based on BMC described in the above embodiment is further introduced below.
[0058] Further optionally, before step 101, the step of real-time monitoring of hard disk status information through the I2C bus also includes:
[0059] The hard disk in-place status signal is obtained through the backplane CPLD monitoring and stored in the custom register.
[0060] It is understandable that CPLD (Complex Programmable Logic Device) is a complex programmable logic device that can be used to monitor hardware status. The CPLD on the backplane can monitor the hard disk in-place status and store this status information in a custom register for BMC to read.
[0061] Based on this step, in the hard disk management system of this embodiment, the hard disk in-place status signal is first monitored and obtained through the backplane CPLD, and these signals are then stored in the custom register. Next, the BMC will read the hard disk status information stored in the register in real time through the I2C bus. Once the hard disk plug-in or status change is detected, the BMC can not only feed back the relevant information to the mainboard CPLD through the SGPIO bus, but also map it to the corresponding pin of the CPU, so that the CPU can perceive the change of the hard disk status in real time and make corresponding processing; at the same time, the BMC will also synchronously light up the hard disk indicator light on the backplane according to the monitored hard disk in-place status information, so as to intuitively understand the working status of each hard disk. This integrated management method not only simplifies the work of the system administrator, but also improves the reliability and stability of the system.
[0062] Further optionally, in step 101, the step of monitoring the hard disk status information in real time through the I2C bus includes:
[0063] The I2C bus includes an I2C1 bus;
[0064] The backplane is accessed through the I2C1 bus, and the hard disk in-place status information stored in the custom register of the backplane CPLD is read.
[0065] Based on this step, in the practice of hard disk status monitoring, the status information of the hard disk is monitored in real time through the I2C bus. In this process, in particular, this embodiment uses the I2C1 bus as the main communication medium, through which the backplane is accessed and the hard disk in-place status information stored in the custom register in the backplane CPLD is read. This enables the BMC to grasp the current status of the hard disk in real time, including key information such as whether it is in place, thereby ensuring the stable operation of the hard disk and timely status feedback.
[0066] Further optionally, in step 102, the step of feeding back the hard disk plugging and unplugging event to the CPU according to the monitored hard disk in-place status information includes:
[0067] Send the hard disk in-place status to the mainboard CPLD via the SGPIO bus;
[0068] When the hard disk is plugged in or out, the hard disk plugging and unplugging event reflected by the hard disk in-place status is mapped to the corresponding pin of the CPU through the mainboard CPLD, so that the system can know the plugging and unplugging event of the hard disk in real time.
[0069] As you can understand, SGPIO (Serial General Purpose Input / Output) is a serial general purpose input / output bus. When the hard disk in-place status changes, the BMC can send this status information to the CPLD on the motherboard through the SGPIO bus. Then, the motherboard CPLD can map this status information to a pin of the CPU so that the CPU can know the hard disk plug-in and unplug events in real time.
[0070] Based on this step, in the hard disk management of this embodiment, when the hard disk is plugged in or out, the BMC will go through a series of steps to ensure that the CPU can be informed of this event in real time. First, the hard disk's in-place status information is sent to the CPLD on the mainboard through the SGPIO bus. Subsequently, the mainboard CPLD will map this status to the corresponding pin of the CPU based on the received hard disk in-place status information. In this way, the CPU can sense the hard disk plugging and unplugging events in real time, and thus take corresponding processing measures, such as updating the system configuration or starting the corresponding service. This process ensures that the BMC can achieve rapid response and accurate processing of hard disk plugging and unplugging events, thereby improving the stability and reliability of the system.
[0071] Further optionally, in step 101, the step of monitoring the hard disk status information in real time through the I2C bus includes:
[0072] The I2C bus also includes an I2C2 bus;
[0073] The hard disk is directly accessed through the I2C2 bus to obtain the health status information of the hard disk.
[0074] Based on this step, in the practice of hard disk status monitoring in this embodiment, the I2C bus is used for real-time monitoring. The I2C bus includes the I2C1 bus and the I2C2 bus. The I2C1 bus is used by the BMC to connect to the CPLD on the backplane. The BMC can read the hard disk in-place status information stored in the CPLD custom register through this bus. Through the I2C2 bus, the BMC can directly access the hard disk to obtain the health status information of the hard disk. If unrecoverable fault information is identified, the hard disk fault indicator (such as the "fault" LED) on the backplane will be lit.
[0075] Further optionally, in step 102, the step of synchronously lighting up the hard disk plug-in indicator light on the backplane according to the hardware plug-in event includes:
[0076] When the monitored hard disk in-place status information reflects that the hard disk is plugged or unplugged, the hard disk plug-in and unplug-in indicator lights on the backplane are lit simultaneously according to the VMD standard specification.
[0077] It is understandable that VMD (Virtual Media Device) is a standard specification for remote management and access to hardware devices. When a hard disk is inserted or removed, the BMC can light up the corresponding indicator light according to the VMD standard specification to indicate the insertion and removal status of the hard disk.
[0078] Based on this step, when the BMC detects that the hard disk in-place status information indicates that the hard disk has been plugged in or out, it will immediately light up the hard disk plug-in indicator on the backplane in accordance with the VMD standard specification to help the system quickly identify and feedback the plug-in status of the external hard disk. The BMC can not only feedback the hard disk plug-in event to the CPU in a timely manner, but also light up the plug-in indicator (such as the "located" LED) in a synchronous manner to facilitate and quickly implement the hard disk plug-in and light functions.
[0079] Further optionally, in step 102, the step of lighting up the hard disk fault indicator light on the backplane according to the monitored hard disk health status information includes:
[0080] When the hard disk health status information monitored contains information about an unrecoverable fault, the hard disk fault indicator light will be on.
[0081] Based on this step, when the BMC detects that an irrecoverable fault message appears in the hard disk health status information, the hard disk fault indicator light (such as a "fault" LED) on the backplane will be automatically lit to provide a hard disk fault warning. In this embodiment, the BMC can not only timely feedback the hard disk plug-in and unplug event to the CPU and simultaneously light up the plug-in and unplug indicator light, but also can timely light up the fault indicator light when a recoverable hard disk fault occurs, so as to facilitate and quickly realize the hard disk plug-in and unplug and comprehensive light functions.
[0082] Further optionally, in step 101, the step of real-time monitoring of hard disk status information via the I2C bus further includes:
[0083] PCA9545 is used to expand I2C so that each hard disk occupies a set of independent I2C buses, and the backplane is accessed through the independent I2C buses to read the status information of each corresponding hard disk.
[0084] As you can understand, PCA9545 is an I2C multiplexer / switch, which can expand one I2C bus into multiple independent I2C buses. In this way, each hard drive can be connected to its own independent I2C bus, thus avoiding conflicts and interference on the bus.
[0085] Based on this step, in the practice of real-time monitoring of hard disk status information through the I2C bus, this embodiment uses PCA9545 as an I2C expander to optimize the acquisition process of hard disk status information. Through the extended function of PCA9545, each hard disk occupies a separate set of I2C buses, which means that each hard disk enjoys an independent communication channel. Through this design, the BMC can access the backplane separately through each independent I2C bus, so as to accurately read the status information of each corresponding hard disk. This design not only ensures that the system monitors the plug-in and unplug and fault status of multiple hard disks in real time, but also improves the response speed and troubleshooting efficiency of the system. And through the independent I2C bus, the system can process the status information of multiple hard disks at the same time, so as to achieve efficient management in a multi-hard disk environment.
[0086] The specific implementation steps of the BMC of this embodiment to realize the hard disk hot-swap function are as follows, which can be referred to as follows: Figures 2 to 3 :
[0087] When the hard disk is plugged in or out, the hard disk status signal is obtained through the backplane CPLD monitoring and stored in the custom register;
[0088] PCA9545 is used to expand I2C so that each hard disk occupies a set of independent I2C buses, and the backplane is accessed through the independent I2C buses to read the in-place status information of each corresponding hard disk stored in the custom register of the backplane CPLD;
[0089] Send the hard disk in-place status to the mainboard CPLD via the SGPIO bus;
[0090] The hard disk plugging and unplugging event reflected by the hard disk in-place status is mapped to the pin corresponding to the CPU through the mainboard CPLD, so that the system can obtain the hard disk in-place status information in real time.
[0091] A hard disk hot-swap solution implemented by BMC based on this embodiment. When the hard disk is plugged in or out, the backplane CPLD (complex programmable logic device) is responsible for monitoring and capturing the hard disk's in-place status signal, and then storing these signals in a custom register. In order to increase the scalability and parallel communication capabilities of the system, this embodiment uses PCA9545 to expand the I2C bus, ensuring that each hard disk can occupy a separate set of I2C buses, and communicate with the backplane CPLD through their own independent I2C buses to read the hard disk in-place status information corresponding to each. Subsequently, the BMC sends the collected hard disk in-place status information to the mainboard CPLD through the SGPIO (serial general purpose input / output) bus. The mainboard CPLD maps the hard disk plug-in and unplug events to the pins corresponding to the CPU based on this information, so that the system can obtain the hard disk in-place status information in real time.
[0092] This BMC-based hard disk hot-swap implementation not only avoids the reliance on the CPU's built-in Hotplug I2C interface in traditional technology, but also improves the flexibility and scalability of the system. Regardless of whether the CPU supports the Hotplug I2C interface, this embodiment can effectively implement the hard disk hot-swap function, achieving a more convenient and efficient hard disk management method.
[0093] The specific implementation steps of the BMC in this embodiment to realize the hard disk light function are as follows:
[0094] The BMC accesses the backplane CPLD through the I2C1 bus to obtain the hard disk in-place status from the custom register of the backplane CPLD, and lights up the hard disk plug-in and unplug indicator (such as the "located" LED) on the backplane according to the VMD standard specification. Figures 4 to 5 .
[0095] Directly access the hard disk through the I2C2 bus to obtain the hard disk health status information. When the irrecoverable fault information in the hard disk health status information is identified, the hard disk fault indicator (such as the "fault" LED) is lit. For reference Figure 6 to Figure 7 .
[0096] A new solution for the hard disk lighting function is implemented by BMC based on this embodiment. BMC communicates with the backplane CPLD (complex programmable logic device) through the I2C1 bus and reads the hard disk in-place status from the custom register of the backplane CPLD. Once the hard disk in-place status information is obtained, the BMC will light up the corresponding hard disk plug-in and unplug indicator light (such as the "located" LED) on the backplane according to the VMD (Volume Management Device) standard specification to intuitively display the plug-in and unplug status of the hard disk.
[0097] In order to more comprehensively monitor the health status of the hard disk, the BMC directly accesses the hard disk through another independent I2C2 bus to read its health status information. Once it recognizes that the hard disk health status information contains irrecoverable fault information, the BMC will respond quickly and light up the hard disk fault indicator (such as the "fault" LED), thereby promptly notifying the administrator of the hard disk fault.
[0098] This lighting method based on BMC and I2C bus not only reduces the dependence on CPU-specific functions, but also improves the flexibility and reliability of the system. Whether it is in-position status monitoring or health status detection, it can be centrally managed through BMC, making the hard disk lighting function more efficient and accurate. At the same time, the independent I2C bus design also ensures the stability and real-time performance of data transmission, further improving the performance of the system.
[0099] In summary, the present invention proposes a method for realizing hard disk hot-plugging and lighting functions based on BMC. BMC monitors hard disk status information in real time through I2C bus. Hard disk status information includes hard disk in-place status and health status. According to the monitored hard disk in-place status information, hard disk plug-in events are fed back to CPU, and hard disk plug-in indicator light on the backplane is synchronously lit according to hardware plug-in events, and hard disk fault indicator light on the backplane is lit according to the monitored hard disk health status information, so as to realize hard disk hot-plugging and lighting functions. In the present invention, BMC directly communicates with the backplane (hard disk and backplane CPLD) through I2C bus, realizes monitoring of hard disk status and lighting control, and BMC monitors hard disk in-place and health status, feeds back plug-in events to CPU, and synchronously lights up the backplane hard disk indicator light. This method does not rely on CPU manufacturer model or specific interface, and can realize hard disk hot-plugging and lighting functions across platforms on different operating systems, hardware architectures and product series.
[0100] For further reference, Figures 2 to 7 The present invention also provides a system for realizing hard disk hot-swap and lighting functions based on BMC, which is used to realize the method for realizing hard disk hot-swap and lighting functions based on BMC, including:
[0101] at least one hard disk, configured with a storage medium for storing data and an interface for providing hard disk status information;
[0102] A backplane, on which at least one hard disk slot and a circuit for monitoring a hard disk presence signal are arranged, wherein the circuit for monitoring the hard disk presence signal comprises a backplane CPLD (complex programmable logic device) for receiving a hard disk slot presence signal and storing the hard disk slot presence signal in a custom register;
[0103] BMC (Baseboard Management Controller), connected to the backplane CPLD through the I2C bus, is used to access the backplane CPLD through the I2C interface bus to obtain the hard disk in-place status information. The I2C bus is extended through PCA9545, and each hard disk occupies a separate set of I2C buses;
[0104] The motherboard is equipped with a CPU (central processing unit) and a motherboard CPLD (complex programmable logic device). The motherboard CPLD is connected to the CPU through specific pins. The BMC sends the acquired hard disk status information to the motherboard CPLD through the SGPIO bus. The motherboard CPLD maps the hard disk plugging and unplugging events to the corresponding pins of the CPU according to the received information.
[0105] like Figures 4 to 5 As shown, the BMC detects the hard disk status through two different I2C buses, namely the I2C1 bus and the I2C2 bus. The I2C1 bus is used to access the backplane CPLD to obtain the hard disk in-place status and light up the corresponding hard disk plug-in and unplug indicator ("located" LED) according to the hard disk plug-in and unplug event;
[0106] like Figure 6 to Figure 7 As shown, the I2C2 bus is used to directly access the hard disk to obtain the health status information of the hard disk. When irrecoverable fault information in the health status information of the hard disk is identified, the corresponding hard disk fault indicator light ("fault" LED) is lit accordingly.
[0107] Based on the system of the present embodiment that implements the hot-swap and lighting functions of the hard disk based on BMC, the system mainly includes several core parts such as the hard disk, the backplane, the BMC (baseboard management controller) and the mainboard. As the core controller of the system, the BMC is connected to the backplane CPLD through the I2C bus. In order to realize the parallel access of multiple hard disks, the I2C bus is extended through PCA9545 to ensure that each hard disk can occupy a set of independent I2C buses, thereby realizing the independent acquisition of hard disk status information. The BMC accesses the backplane CPLD through the I2C interface bus, obtains the in-place status information of the hard disk, and sends this information to the mainboard CPLD through the SGPIO bus. The mainboard CPLD maps the hard disk plug-in event to the pin corresponding to the CPU according to the received hard disk status information, so that the system can perceive the plug-in event of the hard disk in real time.
[0108] When the BMC feeds back the hard disk plug-in and unplug event to the CPU, the corresponding hard disk plug-in and unplug indicator light will also be turned on. In terms of the hard disk lighting function, the BMC is also used as the core controller, using two different I2C buses (I2C1 and I2C2). Among them, the I2C1 bus is used to access the backplane CPLD, obtain the hard disk in-place status, and light up the corresponding hard disk plug-in and unplug indicator light according to the hard disk plug-in and unplug event. The I2C2 bus is directly used to access the hard disk to obtain the hard disk health status information. When the BMC recognizes that there is an unrecoverable fault in the hard disk health status information, it will light up the corresponding LED indicator light ("fault" LED) for a fault alarm.
[0109] In summary, the system of the present invention realizes full support for hard disk hot-swap and lighting functions through BMC. The system is not only highly flexible and scalable, but also can monitor the status of the hard disk in real time and accurately, providing great convenience for hard disk status management.
[0110] For further information, see Figure 8 The present invention also proposes a device for realizing hard disk hot plugging and lighting functions based on BMC, which is applied to BMC. The device includes:
[0111] Status information acquisition module: used to monitor the hard disk status information in real time through the I2C bus. The hard disk status information includes the hard disk in-place status and health status;
[0112] Plug and unplug feedback and lighting module: It is used to feedback the hard disk plug and unplug events to the CPU according to the monitored hard disk in-place status information, and to synchronously light up the hard disk plug and unplug indicator on the backplane according to the hardware plug and unplug events, and to light up the hard disk fault indicator on the backplane according to the monitored hard disk health status information, so as to realize the hard disk hot plug and lighting functions.
[0113] Further optionally, the status information acquisition module is further used to:
[0114] The hard disk in-place status signal is obtained through the backplane CPLD monitoring and stored in the custom register;
[0115] The I2C bus includes an I2C1 bus;
[0116] The backplane is accessed through the I2C1 bus, and the hard disk in-place status information stored in the custom register of the backplane CPLD is read.
[0117] Further optionally, the plug-in feedback and lighting module is also used for:
[0118] Send the hard disk in-place status to the mainboard CPLD via the SGPIO bus;
[0119] When the hard disk is plugged in or out, the hard disk plugging and unplugging event reflected by the hard disk in-place status is mapped to the corresponding pin of the CPU through the mainboard CPLD, so that the system can know the plugging and unplugging event of the hard disk in real time.
[0120] Further optionally, the status information acquisition module is further used to:
[0121] The I2C bus also includes an I2C2 bus;
[0122] The hard disk is directly accessed through the I2C2 bus to obtain the health status information of the hard disk.
[0123] Further optionally, the plug-in feedback and lighting module is also used for:
[0124] When the monitored hard disk in-place status information reflects that the hard disk is plugged or unplugged, the hard disk plug-in and unplug-in indicator lights on the backplane are lit simultaneously according to the VMD standard specification.
[0125] Further optionally, the plug-in feedback and lighting module is also used for:
[0126] When the hard disk health status information monitored contains information about an unrecoverable fault, the hard disk fault indicator light will be on.
[0127] Further optionally, the status information acquisition module is further used to:
[0128] PCA9545 is used to expand I2C so that each hard disk occupies a set of independent I2C buses, and the backplane is accessed through the independent I2C buses to read the status information of each corresponding hard disk.
[0129] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.
Claims
1. A method for realizing hard disk hot-swap and lighting functions based on BMC, applied to BMC, characterized in that: The method comprises: Real-time monitoring of hard disk status information through the I2C bus, including hard disk presence and health status; According to the monitored hard disk in-place status information, the hard disk plug-in and unplug events are fed back to the CPU, and the hard disk plug-in indicator on the backplane is synchronously lit according to the hardware plug-in and unplug events. The hard disk fault indicator on the backplane is also lit according to the monitored hard disk health status information, realizing the hard disk hot plug and lighting functions.
2. The method for realizing hard disk hot-swap and lighting functions based on BMC according to claim 1, characterized in that: The step of real-time monitoring of hard disk status information via the I2C bus also includes: The hard disk in-place status signal is obtained through the backplane CPLD monitoring and stored in the custom register; The step of real-time monitoring of hard disk status information via the I2C bus includes: The I2C bus includes an I2C1 bus; The backplane is accessed through the I2C1 bus, and the hard disk in-place status information stored in the custom register of the backplane CPLD is read.
3. The method for realizing hard disk hot-swap and lighting functions based on BMC according to claim 2, characterized in that: The step of feeding back the hard disk plugging and unplugging event to the CPU according to the monitored hard disk in-place status information includes: Send the hard disk in-place status to the mainboard CPLD through the SGPIO bus; When the hard disk is plugged in or out, the hard disk plugging and unplugging event reflected by the hard disk in-place status is mapped to the corresponding pin of the CPU through the mainboard CPLD, so that the system can know the plugging and unplugging event of the hard disk in real time.
4. The method for realizing hard disk hot-swap and lighting functions based on BMC according to claim 2, characterized in that: The step of real-time monitoring of hard disk status information via the I2C bus also includes: The I2C bus also includes an I2C2 bus; The hard disk is directly accessed through the I2C2 bus to obtain the health status information of the hard disk.
5. The method for realizing hard disk hot-swap and lighting functions based on BMC according to claim 1, characterized in that: The step of synchronously lighting up the hard disk plug-in indicator light on the backplane according to the hardware plug-in event comprises: When the monitored hard disk in-place status information reflects that the hard disk is plugged or unplugged, the hard disk plug-in and unplug-in indicator lights on the backplane are lit simultaneously according to the VMD standard specification.
6. The method for realizing hard disk hot-swap and lighting functions based on BMC according to claim 1, characterized in that: The step of lighting up the hard disk fault indicator light on the backplane according to the monitored hard disk health status information comprises: When the hard disk health status information monitored contains information about an unrecoverable fault, the hard disk fault indicator light will be on.
7. The method for realizing hard disk hot-swap and lighting functions based on BMC according to claim 1, characterized in that: The step of real-time monitoring of hard disk status information via the I2C bus also includes: PCA9545 is used to expand I2C so that each hard disk occupies a set of independent I2C buses, and the backplane is accessed through the independent I2C buses to read the status information of each corresponding hard disk.
8. A system for realizing hard disk hot-swap and lighting functions based on BMC, used to realize the method for realizing hard disk hot-swap and lighting functions based on BMC as claimed in any one of claims 1 to 7, characterized in that: include: at least one hard disk, configured with a storage medium for storing data and an interface for providing hard disk status information; A backplane, on which at least one hard disk slot and a circuit for monitoring a hard disk presence signal are arranged, wherein the circuit for monitoring a hard disk presence signal comprises a backplane CPLD for receiving a hard disk slot presence signal and storing the hard disk slot presence signal in a custom register; BMC is connected to the backplane CPLD through the I2C bus and is used to access the backplane CPLD through the I2C interface bus to obtain the hard disk in-place status information. The I2C bus is extended through PCA9545, and each hard disk occupies a separate set of I2C buses; The motherboard is equipped with a CPU and a motherboard CPLD, which are connected to the CPU through specific pins. The BMC sends the acquired hard disk status information to the motherboard CPLD through the SGPIO bus, and the motherboard CPLD maps the hard disk plugging and unplugging events to the corresponding pins of the CPU according to the received information. BMC detects the hard disk status through two different I2C buses, namely I2C1 bus and I2C2 bus. I2C1 bus is used to access the backplane CPLD to obtain the hard disk status and light up the corresponding hard disk plug-in indicator according to the hard disk plug-in event. The I2C2 bus is used to directly access the hard disk to obtain the hard disk health status information. When irrecoverable fault information in the hard disk health status information is identified, the corresponding hard disk fault indicator light is lit accordingly.
9. A device for realizing hard disk hot-swap and lighting functions based on BMC, applied to BMC, characterized in that: include: Status information acquisition module: used to monitor the hard disk status information in real time through the I2C bus. The hard disk status information includes the hard disk in-place status and health status; Plug and unplug feedback and lighting module: It is used to feedback the hard disk plug and unplug events to the CPU according to the monitored hard disk in-place status information, and to synchronously light up the hard disk plug and unplug indicator on the backplane according to the hardware plug and unplug events, and to light up the hard disk fault indicator on the backplane according to the monitored hard disk health status information, so as to realize the hard disk hot plug and lighting functions.
Citation Information
Cited By
Hard disk backboard control method and device, equipment, medium and product
CN121144150A
A method, apparatus, device, medium, and product for controlling hard disk backplanes.
CN121144150B
