Dual-port hard disk hot plug control method and device, controller and medium

Through the dual-port hard disk hot-swap control method that is compatible with dual-active mode and main and standby mode, the bandwidth resource utilization of dual-port hard disks and the reliability of multi-motherboard server systems are achieved, solving the problems of resource waste and flexibility limitations in the existing technology.

CN120492394AActive Publication Date: 2025-08-15INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202510626348.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-15
Publication Date
2025-08-15
Estimated Expiration
2045-05-15

AI Technical Summary

Technical Problem

In the prior art, the bandwidth resources of dual-port hard disks are not fully utilized, limiting the flexibility and reliability of multi-controller board servers.

Method used

It provides a dual-port hard disk hot-swap control method, which is compatible with dual active mode and main and backup mode. By detecting the hot-swap behavior of hard disk, determining the hot-swap management mode, controlling the target hard disk power on, sending alarm signals and reset signals, and realizing the connection between the target hard disk and the bus.

Benefits of technology

In dual active mode, the broadband resources of dual-port hard disks are fully utilized, which solves the problem of bandwidth resource waste. At the same time, the main and backup mode improves the reliability and flexibility of multi-motherboard server systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120492394A_ABST
    Figure CN120492394A_ABST
Patent Text Reader

Abstract

The invention discloses a dual-port hard disk hot plug control method and device, a controller and a medium, and relates to the technical field of servers, and the method comprises the steps: determining a hot plug management mode and a target controller board when a hard disk hot plug behavior is detected; determining a target hard disk and controlling the target hard disk to be powered on; notifying the target controller board that the hard disk hot plug behavior occurs; a reset signal sent by the target controller is sent to the target hard disk, and hard disk de-reset is completed; and sending an output enable signal to the hot plug buffer corresponding to the target hard disk, and connecting the target hard disk with the bus. Due to the fact that the dual-active mode and the active-standby mode are compatible, the dual-active mode can make full use of broadband resources of the dual-port hard disk, and the technical problem that the bandwidth resources of the dual-port hard disk are wasted is solved; the active-standby mode is beneficial to improving the reliability of the multi-mainboard server system, switching is carried out between the active-active mode and the active-standby mode according to requirements, and the flexibility and adaptability of the multi-controller board server are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of server technology, and in particular to a method, device, controller, and medium for controlling hot-swap of a dual-port hard disk. Background Art

[0002] With the rapid development of information technology, dual-port hard drives have gained widespread adoption due to their efficient data transmission. Dual-port hard drives, with their dual ports, can connect to two different controller boards, improving server system storage performance, data transmission efficiency, and reliability.

[0003] In related technologies, the master-slave mode is generally used to manage the hot-swappable behavior of dual-port hard drives. The control of all hard drives is concentrated on the main controller board. The backup controller board cannot independently apply for access rights to the hard drives. Passive switching is triggered only when the main controller board fails, that is, only one controller board controls the hard drive at the same time, resulting in the bandwidth resources of the other port of the dual-port hard drive not being fully utilized, which limits the flexibility of multi-controller board servers. Summary of the Invention

[0004] The present application provides a dual-port hard disk hot-swap control method, device, controller and medium to at least solve the problem of bandwidth resource waste of dual-port hard disks in related technologies.

[0005] The present application provides a dual-port hard disk hot-swap control method, comprising:

[0006] When a hard disk hot plug behavior is detected, a hot plug management mode and a target controller board are determined; wherein the hot plug management mode includes a dual-active mode and an active-standby mode. In the dual-active mode, the target controller board includes two controller boards; in the active-standby mode, the target server includes a master controller board;

[0007] detecting the level of the thermal fuse signal, determining the hard disk whose thermal fuse signal is at the first level as the target hard disk, and controlling the target hard disk to power on;

[0008] Sending a first alarm signal to the target controller board; wherein the first alarm signal is used to indicate that a hard disk hot-plug behavior has occurred;

[0009] Receive a reset signal sent by the target controller board and forward the reset signal to the target hard disk to reset the target controller board to the target hard disk;

[0010] Send a first output enable signal to the hot-swap buffer corresponding to the target hard disk to connect the target hard disk to the bus.

[0011] The present application also provides a dual-port hard disk hot-swap control device, comprising:

[0012] The first determination module is configured to determine a hot-swap management mode and a target controller board when a hard disk hot-plug behavior is detected; wherein the hot-swap management mode includes an active-active mode and an active-standby mode. In the active-active mode, the target controller board includes two controller boards; in the active-standby mode, the target server includes a master controller board;

[0013] a second determination module, configured to detect the level of the thermal fuse signal, determine the hard disk whose thermal fuse signal is at the first level as the target hard disk, and control the target hard disk to power on;

[0014] A first communication module is configured to send a first alarm signal to a target controller board; wherein the first alarm signal is configured to indicate that a hard disk hot-plugging behavior has occurred;

[0015] The second communication module is configured to receive a reset signal sent by the target controller board and forward the reset signal to the target hard disk so as to reset the target hard disk by the target controller board;

[0016] The third communication module is configured to send a first output enable signal to the hot-swap buffer corresponding to the target hard disk, so as to connect the target hard disk to the bus.

[0017] The present application also provides a hot-swap controller, comprising:

[0018] memory for storing computer programs;

[0019] The processor is configured to implement any of the steps of the above-mentioned dual-port hard disk hot-swap control method when executing a computer program.

[0020] The present application also provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned dual-port hard disk hot-swap control methods are implemented.

[0021] The present application also provides a computer program product, including a computer program, which implements the steps of any of the above-mentioned dual-port hard disk hot plug control methods when executed by a processor.

[0022] The dual-port hard disk hot-swap control method provided by the present application is compatible with both active-active and active-standby hot-swap management modes. Therefore, the broadband resources of the dual-port hard disk can be fully utilized in the active-active mode, thereby solving the technical problem of bandwidth resource waste of the dual-port hard disk. At the same time, the active-standby mode is conducive to improving the reliability of the multi-motherboard server system, switching between the active-active mode and the active-standby mode according to demand, thereby improving the flexibility and adaptability of the multi-controller board server. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0024] Figure 1 A schematic diagram of the structure of a multi-motherboard server system in a related technology provided by this application;

[0025] Figure 2 A schematic diagram of the structure of a multi-controller board server provided in an embodiment of the present application;

[0026] Figure 3 A flowchart of a dual-port hard disk hot-swap control method provided in an embodiment of the present application;

[0027] Figure 4 A flowchart of another dual-port hard disk hot-swap control method provided in an embodiment of the present application;

[0028] Figure 5 A flowchart of another dual-port hard disk hot-swap control method provided in an embodiment of the present application;

[0029] Figure 6 A flowchart of another dual-port hard disk hot-swap control method provided in an embodiment of the present application;

[0030] Figure 7 A schematic structural diagram of a dual-port hard disk hot-swap control device provided in an embodiment of the present application;

[0031] Figure 8 A schematic diagram of the structure of a hot-swap controller provided in an embodiment of the present application. DETAILED DESCRIPTION

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

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

[0034] With the rapid development of cloud computing, artificial intelligence, and edge computing, the scale of data centers is growing exponentially, placing higher demands on electronic equipment architectures, such as server architectures, for computing density, resource sharing capabilities, and storage security and redundancy. Servers with multiple controller boards have become the mainstream architecture in data centers due to their high-density deployment and resource sharing.

[0035] In this context, dual-port hard drives have become a key component for improving storage performance and system redundancy. Their dual-port feature allows the same hard drive to be connected to two different controller boards in parallel via two independent high-speed transmission links, thereby supporting dynamic sharing of some storage resources and improving data transmission reliability and availability.

[0036] like Figure 1 FIG. 1 is a schematic diagram of a structure of a multi-motherboard server system in a related technology provided by this application. Figure 1 The multi-controller board server includes: a main controller board, a backup controller board, a switch board, a dual-port hard disk backplane, and dual-port hard disks. The main controller board and the backup controller board connect high-speed signals to the switch chip on the switch board via high-speed connectors and cables. The switch chip is further connected to each dual-port hard disk on the dual-port hard disk backplane. The multi-controller board server uses a master-slave mode to manage the hot-swappable behavior of the dual-port hard disks. That is, by designating one controller board as the main controller board and the other controller board as the backup controller board, the main controller board has read and write control rights for all dual-port hard disks on the dual-port hard disk backplane. The backup controller board monitors the status of the main controller board through the watchdog timer (WDT) signal. Once the WDT signal of the main controller board is detected to be abnormal, the read and write control rights of the dual-port hard disks can be manually or automatically switched to ensure the high availability of the server.

[0037] Then, in the master-slave mode, the control of all dual-port hard disks is concentrated on the master controller board. The backup controller board cannot independently apply for access rights to the dual-port hard disks and is in a passive waiting state, resulting in the bandwidth resources of the other port of the dual-port hard disk not being fully utilized, limiting the flexibility of the multi-controller board server.

[0038] Therefore, there is an urgent need for a dual-port hard disk hot-swap control method that can support active-active mode to solve the bandwidth resource waste problem of dual-port hard disks and improve the flexibility of multi-controller board servers.

[0039] Therefore, an embodiment of the present application provides a dual-port hard disk hot-swap control method, device, controller and medium, and the dual-port hard disk hot-swap control method includes: when a hard disk hot-plug behavior is detected, determining the hot-plug management mode and the target controller board; wherein the hot-plug management mode includes a dual-active mode and a master-slave mode, and in the dual-active mode, the target controller board includes two controller boards; in the master-slave mode, the target server includes a master controller board; detecting the level of a thermal fuse signal, determining the hard disk with a thermal fuse signal of a first level as the target hard disk, and controlling the target hard disk to power on; sending a first alarm signal to the target controller board; wherein the first alarm signal is used to indicate that a hard disk hot-plug behavior has occurred; receiving a reset signal sent by the target controller board, and forwarding the reset signal to the target hard disk to reset the target hard disk by the master controller board; sending a first output enable signal to the hot-plug buffer corresponding to the target hard disk to connect the target hard disk to the bus. Based on this, since the dual-port hard disk hot-swap control method is compatible with both active-active mode and active-standby mode, the dual-port hard disk's broadband resources are fully utilized in the active-active mode, which can solve the technical problem of bandwidth resource waste of the dual-port hard disk; at the same time, the active-standby mode is conducive to improving the reliability of the multi-motherboard server system, and can switch between the active-active mode and the active-standby mode according to demand, thereby improving the flexibility and adaptability of the multi-controller board server.

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

[0041] like Figure 2 FIG. 1 is a schematic diagram of the structure of a multi-controller board server provided by an embodiment of the present application. Figure 2 The multi-controller board server includes at least two controller boards 1, multiple connectors, a hot-swap controller 4, and multiple dual-port hard disks 5.

[0042] The controller board 1 can also become a control node or a server node, such as Figure 2 As shown, each controller board 1 further includes at least one central processing unit (CPU) and a baseboard management controller (BMC). The controller board 1 may also include a storage device, including but not limited to an onboard M.2 solid-state drive.

[0043] The hot-swap controller 4 may be a complex programmable logic device (CPLD) or a microcontroller unit (MCU).

[0044] The dual-port hard disk 5 may be a dual-port Non-Volatile Memory Express (NVMe) hard disk drive (HDD).

[0045] The connector includes a high-speed connector. Exemplarily, the high-speed connector includes a high-speed serial computer expansion bus standard Peripheral Component Interconnect Express (PCIE) connector. The PCIE connector has advantages such as a high data transmission rate, good signal integrity, hot plug support, and strong compatibility. The connector also includes a sideband connector. The data transmission rate of the sideband connector is lower than the data transmission rate of the high-speed connector. Exemplarily, the sideband connector includes an Inter-Integrated Circuit (I2C) connector or a System Management Bus (SMBus) connector.

[0046] For any controller board 1, the multiple CPUs included therein are connected to the switch chip 9 in the midplane 2 via cables via the high-speed connector in the controller board 1. The switch chip 9 is connected to the high-speed connector in the midplane 2. The high-speed connector in the midplane 2 is connected to the high-speed connector on the dual-port hard drive backplane 3 via cables. The high-speed connector on the dual-port hard drive backplane 3 is connected to multiple dual-port hard drives 5. This configuration establishes a connection between the controller board 1 and the dual-port hard drives. The dual-port hard drive backplane 3 provides multiple slots for dual-port hard drives 5, each of which is hot-swappable for dual-port hard drives 5. The dual-port hard drive 5 slots are equipped with hard drive connectors, which are connected to the dual-port hard drives 5. For example, the CPU includes a PCIE interface with x8 bandwidth, which can connect to four dual-port hard drives 5 with x2 bandwidth or two dual-port hard drives 5 with x4 bandwidth.

[0047] For any controller board 1, the BMC and multiple CPUs included therein are connected to the sideband connector on the side of the midplane 2 near the controller board 1 via a sideband connector. The sideband connector on the midplane 2 is connected to the hot-swap controller 4, which is connected to the sideband connector on the side of the midplane 2 near the dual-port hard drive backplane 3. This sideband connector is connected to the sideband connector on the dual-port hard drive backplane 3 via a cable. The sideband connector on the dual-port hard drive backplane 3 is connected to each dual-port hard drive 5, and is used to transmit a reset signal (e.g., PERST# and PERST#B) to each dual-port hard drive 5, causing each dual-port hard drive 5 to be reset or de-reset. For example, PERST# is the reset signal corresponding to controller board A, and PERST#B is the reset signal corresponding to controller board B. The reset signal for de-resetting is at a low level, e.g., 0V; the reset signal for resetting is at a high level, e.g., 3V.

[0048] The multi-controller board server also includes a voltage regulator 6 (VR), which is connected to the sideband connector of the dual-port hard drive backplane 3 and the plurality of dual-port hard drives 5. The VR is configured to send a power (POWER) signal to each dual-port hard drive 5 to control powering on or off. Exemplarily, the VR outputs a 3V supply voltage.

[0049] The multi-controller board server further includes a conversion module and a hot plug buffer 8 (HPF), wherein the conversion module is connected to the sideband connector of the dual-port hard disk backplane 3 and the hot plug buffer 8. Exemplarily, the conversion module includes an I2C conversion module, which is connected to the sideband connector of the dual-port hard disk backplane 3 via the I2C protocol.

[0050] The hot-swap buffer 8 is also connected to the sideband connector and each dual-port hard disk 5 . The hot-swap buffer 8 is used to receive an output enable (OE) signal to control the corresponding dual-port hard disk 5 to connect to or disconnect from the bus.

[0051] It should be noted that the difference from the related art is that the hot-swap controller 4 can support at least two controller boards 1 to control the same dual-port hard disk 5. For example, the hard disk can be controlled by both controller board A and controller board B, rather than the exclusive control of the main controller board 1 in the related art.

[0052] It is understandable that only some components are shown in the above-mentioned multi-controller board server architecture, and it does not limit the complete multi-controller board server architecture. This application also does not limit the number or type of components appearing in the multi-controller board server architecture, such as the controller board 1, high-speed connector, sideband connector, hot-swap controller 4, dual-port hard disk 5, voltage regulator 6, conversion module and hot-swap buffer 8.

[0053] An embodiment of the present application provides a dual-port hard disk hot-swap control method, which is applied to a hot-swap controller to manage and control the hot-swap behavior of each dual-port hard disk in a multi-controller board server.

[0054] like Figure 3 FIG. 1 is a flow chart of a dual-port hard disk hot-swap control method provided by an embodiment of the present application. Figure 3 The dual-port hard disk hot-swap control method includes the following steps:

[0055] S310: When a hard disk hot plug behavior is detected, determine a hot plug management mode and a target controller board.

[0056] Among them, the hot-swap management mode includes active-active mode and active-standby mode. In active-active mode, the target controller board includes two controller boards; in active-standby mode, the target server includes one controller board, which is the active controller board.

[0057] Optionally, "determining the hot swap management mode and target controller board" includes the following steps:

[0058] The hot-swap controller obtains operating mode information of the controller board and determines the number of valid controller boards based on the operating mode information;

[0059] If the number of valid controller boards is one, determining the hot-swap management mode to be the active / standby mode, and determining the valid controller board as the target controller board;

[0060] If the number of valid controller boards is greater than or equal to two, the hot-swap management mode is determined to be the active-active mode, and two valid controller boards are determined as target controller boards based on a set rule.

[0061] Exemplarily, the working mode information of the controller board includes a valid signal. If the valid signal is a true value (ie, 1), the controller board is a valid controller board; if the valid signal is a false value (ie, 0), the controller board is an invalid controller board.

[0062] S320 , detecting the level of the thermal fuse signal, determining the hard disk with the thermal fuse signal at the first level as the target hard disk, and controlling the target hard disk to power on.

[0063] The first level may be a high level or a low level, and the specific logic depends on the hardware design of the server.

[0064] For example, taking the first level as a high level, the thermal fuse signal (EFUSE signal) of each hard disk is detected, the hard disk with a high EFUSE signal is determined as the target hard disk, and the target hard disk is controlled to be powered on through the voltage regulator.

[0065] Similarly, when the first level is low, the EFUSE signals of the hard disks are detected, the hard disk with the EFUSE signal at the low level is determined as the target hard disk, and the target hard disk is controlled to be powered on through the voltage stabilizer.

[0066] S330: Send a first alarm signal to the target controller board.

[0067] The first alarm signal is used to indicate that a hard disk hot-plug has occurred.

[0068] In this step, the hot-swap controller sends a first alarm signal to the target controller board to notify the CPU on the target controller board that the hard disk hot-plug behavior occurs, so that the CPU responds to the first alarm signal and sends a reset signal to the hot-swap controller.

[0069] The hot-swap controller continuously sends an alert signal (VPP ALERT) to the target controller board. When it determines that a hard drive hot-insert is occurring, it pulls the VPP ALERT signal low or high, alerting the CPU to the occurrence of a hard drive hot-insert. The control logic for pulling the VPP ALERT signal low or high depends on the server hardware design.

[0070] Optionally, “sending a first alarm signal to a target controller board” includes:

[0071] A first alarm signal is sent to the target controller board for a first preset duration.

[0072] The first preset time length depends on the response speed of the target controller board, and is greater than or equal to the response time of the target controller board. For example, the first preset time length is 5 ms.

[0073] In this embodiment, by pulling the VPP ALERT signal low or high for a first preset time, which is greater than or equal to the response time of the target controller board, the reliability of the dual-port hard disk hot-swap control method is improved.

[0074] S340: Receive a reset signal sent by the target controller board, and forward the reset signal to the target hard disk, so as to reset the target hard disk by the target controller board.

[0075] In this step, the hot-swap controller forwards the reset signal sent by the target controller board to the target hard disk, completing the target controller board's reset of the target hard disk port, ensuring stable operation of the hard disk and data security.

[0076] Combine Figure 2 In active-active mode, the reset signal sent by controller board A and controller board B to the hot-swap controller is represented by PERST. The hot-swap controller forwards the PERST signal of controller board A to the PERST# signal of the target hard disk, and distributes the PERST signal of controller board B to the PERST#B signal of the target hard disk. In active-standby mode, the active one of controller board A and controller board B is the target controller board. The reset signal sent by the target controller board is represented by PERST. The hot-swap controller forwards the PERST signal of the active controller board to the PERST# signal of the target hard disk.

[0077] For example, in active-active mode, the hot-swap controller forwards the PERST signal from controller board A to the PERST# signal of the target hard drive, and forwards the PERST signal from controller board B to the PERST#B signal of the target hard drive, independently completing the reset of the two ports of the target hard drive by controller board A and controller board B. In active-standby mode, the hot-swap controller only forwards the PERST signal from the master controller board to the PERST# signal of the target hard drive, completing the reset of the target hard drive port by the master controller board.

[0078] S350: Send a first output enable signal to the hot-swap buffer corresponding to the target hard disk to connect the target hard disk to the bus.

[0079] In this step, the hot-swap buffer's output enable (OE) is controlled to prevent jitter during hot-swap operations from affecting communications with other I2C devices on the hard drive backplane, thereby ensuring overall system stability. The first output enable signal can be either low or high, depending on the server's hardware design.

[0080] The target hard disk is connected to the bus, which realizes the connection between the target controller board and the target hard disk, so that the target controller board has the read and write control authority of each dual-port hard disk. Figure 2 High-speed connectors and cables shown.

[0081] The embodiment of the present application provides a dual-port hard disk hot-swap control method, which realizes the management of the hot insertion of the dual-port hard disk and is compatible with two hot-swap management modes: active-active mode and active-standby mode. In the active-active mode, the broadband resources of the dual-port hard disk are fully utilized, solving the technical problem of bandwidth resource waste of the dual-port hard disk; at the same time, the active-standby mode is conducive to improving the reliability of the multi-motherboard server system, and can switch between the active-active mode and the active-standby mode according to demand, thereby improving the flexibility and adaptability of the multi-controller board server.

[0082] In some embodiments, “detecting a hard disk hot-plug behavior” includes the following steps:

[0083] Obtaining the hard disk presence signal and the interface detection signal of the corresponding hard disk connector;

[0084] Based on the fact that the presence signal is at the second level and the change of the interface detection signal satisfies the first change rule, it is determined that the hard disk hot insertion behavior is detected.

[0085] Among them, when the hard disk is inserted into the hard disk slot, the corresponding hard disk presence signal is pulled low or high (the specific logic depends on the hardware design), and the interface detection signal of the corresponding hard disk connector jumps (from high to low or from low to high). Therefore, it is possible to determine whether the hard disk hot insertion behavior occurs based on the hard disk presence signal and the interface detection signal of the corresponding hard disk connector.

[0086] For example, the PRSNT# signal represents the in-position signal, the IFDET# signal represents the interface detection signal, # indicates that the low level is valid, and when the PRSNT# signal is detected to be at a high level, the IFDET# signal changes from high to low, that is, the second level is a high level, and the first change rule is from high to low, which determines that the hard disk hot insertion behavior is detected.

[0087] In some embodiments, before "detecting hard disk hot plugging behavior", the dual-port hard disk hot plug control method further includes the following steps:

[0088] Based on the dual-port enable signal of the hard disk backplane, determine whether the hard disk backplane supports dual-port hard disks;

[0089] If so, a first dual-port enable signal is sent to the hard disk connector.

[0090] In this embodiment, a dual-port enable signal (DualPortEn#) of a dual-port hard drive backplane is obtained to determine whether the dual-port hard drive backplane supports dual-port hard drives. If the dual-port hard drive backplane supports dual-port hard drives, the hot-swap controller sends a first dual-port enable signal to the hard drive connector, enabling the hard drive connector to support dual-port hard drives and connect to the two ports of the inserted hard drive. By executing subsequent steps of the dual-port hard drive hot-swap control method, the dual-port hard drive backplane is connected to the dual-port hard drive, thereby achieving a one-to-one correspondence between the two controller boards and the two ports of each dual-port hard drive, ensuring that the multi-controller board server has the functions of implementing active-active mode and active-standby mode.

[0091] If the dual-port hard drive backplane does not support dual-port hard drives, the hot-swap controller sends a second dual-port enable signal to the hard drive connector, and the hard drive connector is only connected to one port of the inserted dual-port hard drive; subsequently, the hot insertion and hot removal of the hard drive are managed according to the single-port hard drive hot insertion control process, which further improves the applicability and flexibility of the dual-port hot-swap control method and can cope with a variety of hard drive hot-swap scenarios.

[0092] The single-port hard disk hot-plug control method adopts all hot-plug control methods known to those skilled in the art, which will not be described in detail here.

[0093] In some embodiments, in active-active mode, the dual-port hard disk hot-swap control method further includes the following steps:

[0094] It is determined whether both controller boards have completed the target hard disk de-resetting. If not, the step of forwarding the reset signal to the target hard disk is re-executed until both controller boards have completed the target hard disk de-resetting.

[0095] In this embodiment, in the active-active mode, it is also necessary to determine whether both controller boards have completed the reset of the target hard disk. If a controller board has not completed the reset, that is, there is a target hard disk that has not been reset, the step of forwarding the reset signal to the target hard disk is re-executed. After the controller board completes the reset of the target hard disk, the dual-port hard disk hot-swap control program ends to ensure that both controller boards in the active-active mode have read and write control permissions for each dual-port hard disk.

[0096] In some embodiments, in the active / standby mode, the dual-port hard disk hot-swap control method further includes the following steps:

[0097] Determine that the target controller board has switched between active and standby modes, re-detect the level of the thermal fuse signal, determine the hard disk with the thermal fuse signal at the first level as the target hard disk, and control the target hard disk to power on.

[0098] In master-slave mode, during the execution of the dual-port hard drive hot-swap control program, if the target controller board does not undergo a master-slave switch, the dual-port hard drive hot-swap control program terminates. If a master-slave switch occurs on the target controller board, for example, the master controller board switches from controller board A to controller board B, the steps of determining the target hard drive and controlling the target hard drive power-on and subsequent steps are re-executed, allowing the new target controller board (i.e., the master controller board) to establish a connection with the target hard drive, thereby enabling the new target controller board (i.e., the master controller board) to manage and control the inserted hard drive.

[0099] Optionally, "determining that a master / slave switchover occurs on the target controller board" includes the following steps:

[0100] Based on the change of the working mode information of the controller board, it is determined that the target controller board undergoes active / standby switching.

[0101] Among them, in the master-slave mode, when the target controller board (i.e., the main controller board) fails, the server can automatically switch the original main controller board to the backup controller board, and switch the original backup controller board to the main controller board. The administrator can also manually switch the main controller board and the backup controller board. After the master-slave switching is completed, the working mode information of the corresponding controller board changes accordingly. The hot-swap controller determines that the target controller board has undergone a master-slave switching based on the change in the working mode information.

[0102] In some embodiments, after “controlling the target hard disk to power on”, the dual-port hard disk hot-swap control method further includes the following steps:

[0103] Wait for the second preset time.

[0104] The second preset time is longer than the first preset time. By delaying the hard disk presence signal for the second preset time before executing the subsequent steps of the method, the purpose is to wait for the system clock and power supply to stabilize.

[0105] For example, Figure 4 FIG. 1 is a flow chart of another dual-port hard disk hot-swap control method provided by an embodiment of the present application. The dual-port hard disk hot-swap control method only involves the hard disk hot-plug part. Figure 4 The dual-port hard disk hot-swap control method includes the following steps:

[0106] S400, start.

[0107] S401: Determine whether the current hard disk backplane supports dual-port hard disks.

[0108] In this step, the hot-swap controller obtains the dual-port enable signal (DualPortEn#) of the current hard disk backplane, and determines whether the dual-port hard disk backplane supports the backplane of the dual-port hard disk. If the DualPortEn# signal of the current hard disk backplane is low, it indicates that the current hard disk backplane supports the dual-port hard disk, that is, the judgment result is yes, and S402 is executed; if the DualPortEn# signal of the current hard disk backplane is high, it indicates that the current hard disk backplane does not support the dual-port hard disk, that is, the judgment result is no, and S417 is executed.

[0109] S402 : Output a low level to the dual-port enable signal pin of the hard disk connector.

[0110] In this step, by outputting a low level to the dual-port enable signal pin of the hard disk connector, that is, the first dual-port enable signal is low, the hard disk connector supports the dual-port hard disk and has the ability to connect to the two ports of the inserted hard disk.

[0111] S403: The PRSNT# signal is high, and the IFDET# signal changes from high to low, and a hard disk hot-plug behavior is detected.

[0112] S404: Determine whether the current working mode is the active-standby mode or the active-active mode.

[0113] In this step, the configuration frame parses the operating mode information sent by the administrator and controls the current operating mode of the multi-controller board server. The operating modes are divided into active-standby mode and active-active mode. If the operating mode is active-active mode, execute S405; if the operating mode is active-standby mode, execute S411.

[0114] S405 , detecting the EFUSE signal of the hard disk, and powering on the hard disk whose EFUSE signal is high.

[0115] In this step, the EFUSE signal of each hard disk is detected, the hard disk with the EFUSE signal at a high level is determined as the target hard disk, and the target hard disk is controlled to be powered on through the voltage stabilizer.

[0116] S406 , delaying the hard disk presence signal by 120ms.

[0117] After the target hard drive is powered on, wait for 120ms for the system clock and power supply to stabilize.

[0118] S407 , pull down the VPP ALERT of both controller boards for 5ms.

[0119] In this step, the first alarm signal is at a low level, and the first preset duration is 5ms, notifying the CPUs of the two controller boards that a dual-port hard disk hot-plugging behavior occurs.

[0120] S408 : Forward the reset signal of the controller board with the EFUSE signal being high to each hard disk.

[0121] In this step, the EFUSE signals of both controller boards are high. The PERST signal from controller board A is forwarded to the PERST# signal of each hard drive, and the PERST signal from controller board B is forwarded to the PERST#B signal of each hard drive, independently resetting both ports of the dual-port hard drive. If one EFUSE signal is high and the other is low, only the reset signal from the controller board with the high EFUSE signal is forwarded.

[0122] S409 , pulling up the OE signal of the hot-swap buffer corresponding to the target hard disk, and connecting the signal of the target hard disk to the bus.

[0123] In this step, the first output enable signal is at a high level. By controlling the output enable of the hot-swap buffer, the jitter during the hot-swap operation is prevented from affecting the communication of other I2C devices on the hard disk backplane, thereby ensuring the communication stability of the entire system.

[0124] S410: Determine whether both controller boards have completed resetting the target hard disk.

[0125] If both controller boards have completed the target hard disk reset, that is, the determination result is yes, then S419 is executed and the process ends. If one of the two controller boards has not completed the target hard disk reset, that is, the determination result is no, then S408 is executed again.

[0126] S411 , power on the hard disk whose EFUSE signal is high.

[0127] In this step, the EFUSE signal of each hard disk is detected, the hard disk with the EFUSE signal at a high level is determined as the target hard disk, and the target hard disk is controlled to be powered on through the voltage stabilizer.

[0128] S412, delaying the hard disk presence signal by 120ms.

[0129] After the target hard drive is powered on, wait for 120ms for the system clock and power supply to stabilize.

[0130] S413. Pull down the VPP ALERT of the main controller board for 5ms.

[0131] In this step, the first alarm signal is at a low level, and the first preset duration is 5ms, which notifies the CPU of the main controller board that a dual-port hard disk hot-plugging behavior occurs.

[0132] S414: Forward the reset signal of the main controller board to each hard disk.

[0133] In this step, the PERST# signal of the main server is forwarded to each hard disk device to complete the reset of the hard disk.

[0134] S415 , pulling up the OE signal of the hot-swap buffer corresponding to the target hard disk, and connecting the signal of the target hard disk to the bus.

[0135] In this step, the first output enable signal is at a high level. By controlling the output enable of the hot-swap buffer, the jitter during the hot-swap operation is prevented from affecting the communication of other I2C devices on the hard disk backplane, thereby ensuring the communication stability of the entire system.

[0136] S416: Determine whether a master-slave switch occurs.

[0137] If the master-slave switch occurs, that is, the determination result is yes, then S411 is executed again; if the master-slave switch does not occur, that is, the determination result is no, then S419 is executed and the process ends.

[0138] S417. Output a high level to the dual-port enable signal pin of the hard disk connector.

[0139] In this step, by outputting a high level to the dual-port enable signal pin of the hard disk connector, that is, the second dual-port enable signal is high, the hard disk connector does not support the dual-port hard disk and only has the ability to connect to one port of the inserted hard disk.

[0140] S418: Manage the hot insertion of the hard disk according to the single-port hard disk hot insertion control process.

[0141] The single-port hard disk hot-plug control method adopts all hot-plug control methods known to those skilled in the art, which will not be described in detail here.

[0142] S419, end.

[0143] In some embodiments, as Figure 5 As shown, the dual-port hard disk hot-swap control method further includes the following steps:

[0144] S510: Detect a hot unplug request sent by a target controller board and receive the hot unplug request.

[0145] In this step, when the administrator needs to unplug the dual-port hard disk that has been inserted into the server, the target controller board sends a hot-plug request to the hot-plug controller in response to the administrator's operation.

[0146] In active-active mode, the hot-swap controller receives hot-swap requests from both controller group motherboards; in active-standby mode, the hot-swap control cabinet only receives hot-swap requests from the active controller board and ignores requests from the standby controller board.

[0147] S520: After receiving a signal indicating that the request has been sent, a second alarm signal is sent to the target controller board and a second output enable signal is sent to the hot-swap buffer corresponding to the target hard disk to disconnect the hard disk to be removed from the bus.

[0148] The second alarm signal is used to indicate that a hard disk is hot-plugged.

[0149] In this step, in the active-active mode, after receiving the request completion signal sent by the BMCs of the two controller boards, that is, the hot-plug requests sent by the two controller boards are completed, the hot-plug controller sends a second alarm signal to the two controller boards, prompting the two controller boards that the hard disk hot-plugging behavior has occurred, so that the CPUs on the two controller boards update the hard disk list and delete the relevant information of the hard disk to be unplugged; at the same time, it also sends a second output enable signal to the hot-plug buffer to disconnect the hard disk to be unplugged from the bus.

[0150] The level of the second output enable signal is opposite to that of the first output enable signal. If the first output enable signal is high, the second output enable signal is low; if the first output enable signal is low, the second output enable signal is high.

[0151] For example, in a method for detecting a hard drive hot-plug, the target hard drive's signal is connected to the bus by pulling high the hot-plug buffer's output enable signal. In a method for detecting a hot-plug request, the hot-plug buffer's output enable signal is pulled low to disconnect the target hard drive's signal from the bus.

[0152] S530: Switch the hard disk to be removed to a reset state.

[0153] In this step, in active-active mode, the PERST# signal and PERST#B signal of the hard drive to be removed are switched to the reset state, that is, the two controller boards are in the unreset state for the hard drive to be removed, and the read and write permissions of the two controller boards to the hard drive to be removed are revoked. In active-standby mode, the PERST# signal of the hard drive to be removed is switched to the reset state, that is, the master controller board is in the unreset state for the hard drive to be removed, and the read and write permissions of the master controller board to the hard drive to be removed are revoked.

[0154] S540: Switch the thermal fuse signal of the hard disk to be removed to the third level, and control the hard disk to be removed to be powered off.

[0155] The third level and the first level are mutually exclusive. If the first level is high, the third level is low; if the first level is low, the third level is high.

[0156] For example, taking the third level as a low level, the EFUSE signal of the hard disk to be removed is pulled low, and the voltage regulator is controlled to stop supplying power to the hard disk to be removed. At this point, the dual-port hard disk hot removal control process ends, and the hard disk to be removed can be removed from the hard disk slot.

[0157] The embodiment of the present application provides a dual-port hard disk hot-swap control method, which realizes the management of hot insertion and removal of dual-port hard disks, and is compatible with two hot-swap management modes: active-active mode and active-standby mode. In the active-active mode, the broadband resources of the dual-port hard disk are fully utilized, solving the technical problem of bandwidth resource waste of the dual-port hard disk; at the same time, the active-standby mode is conducive to improving the reliability of the multi-motherboard server system, and can switch between the active-active mode and the active-standby mode according to needs, thereby improving the flexibility and adaptability of the multi-controller board server.

[0158] In some embodiments, the dual-port hard disk hot-swap control method further includes the following steps:

[0159] Based on the fact that the in-place signal is at the second level, the change of the interface detection signal satisfies the second change rule, and no hot unplug request is detected, it is determined that forced unplugging of the hard disk is detected, and the steps of sending a second alarm signal to the target controller board and sending a second output enable signal to the hot plug buffer corresponding to the target hard disk are executed.

[0160] When a hard drive is inserted into or removed from a hard drive slot, the corresponding hard drive presence signal is pulled low or high (the specific logic depends on the hardware design). When a hard drive is inserted into a hard drive slot, the change in the interface detection signal of the corresponding hard drive connector satisfies the first change rule (from high to low or from low to high). When the hard drive is removed from the hard drive slot, the change in the interface detection signal of the corresponding hard drive connector satisfies the second change rule. The first change rule is opposite to the second change rule.

[0161] In this embodiment, the hard disk presence signal and the interface detection signal of the corresponding hard disk connector are obtained in real time or at a set time interval. When the presence signal is the second signal, the change of the interface detection signal satisfies the second change rule, and no hot plug request is detected, it means that the hard disk is unplugged from the hard disk slot without detecting a hot plug request. It is determined that the hard disk is forcibly unplugged, and the step of receiving the hot plug request is skipped. The steps of "sending a second alarm signal to the target controller board and sending a second output enable signal to the hot plug buffer" and subsequent steps are directly executed.

[0162] Exemplarily, the PRSNT# signal represents the in-position signal, the IFDET# signal represents the interface detection signal, # represents that the low level is valid, and when the PRSNT# signal is detected to be at a high level, the IFDET# signal changes from low to high, that is, the second level is a high level, the second change pattern is from low to high, and no thermal ejection request is detected, it is determined that the hard disk thermal forced ejection behavior is detected.

[0163] The dual-port hard disk hot-swap control method provided in the embodiment of the present application is also applicable to the case of forced removal of the hard disk, further improving the flexibility and adaptability of the dual-port hard disk hot-swap control method.

[0164] In some embodiments, before "receiving a hot plug request", the dual-port hard disk hot plug control method further includes: determining a hot plug management mode.

[0165] The method for determining the hot-swap management mode is the same as above and will not be described again here.

[0166] For example, Figure 6 FIG. 1 is a flow chart of another dual-port hard disk hot-swap control method provided by an embodiment of the present application. The dual-port hard disk hot-swap control method only involves the hard disk hot-plug part. Figure 6 The dual-port hard disk hot-swap control method includes the following steps:

[0167] S600, start.

[0168] S601 : Detect the status changes of the PRSNT# signal and the IFDET# signal and the hot unplug request in real time.

[0169] S602: Detect a hot unplug request sent by a target controller board.

[0170] S603: Determine whether the current working mode is the active-standby mode or the active-active mode.

[0171] In this step, the configuration frame parses the operating mode information sent by the administrator and controls the current operating mode of the multi-controller board server. Operating modes are classified as active-standby or active-active. If the operating mode is active-active, execute S604; if the operating mode is active-standby, execute S607.

[0172] S604: Receive hot unplug requests sent by two controller boards.

[0173] In this step, a hot-plug request is received via an SMBus path (ie, a path where a sideband connector is located) between the hot-plug controller and the BMC of the controller board.

[0174] S605: Wait until a request completion signal is received from the BMCs of both controller boards. In this step, receiving a request completion signal from the BMC indicates that the corresponding controller board has completed sending the hot unplug request and the hot-swap controller has received the hot unplug request from the corresponding controller board. If only one controller board has received a hot unplug request, the hot-swap controller continues to wait until both controller boards have sent hot unplug requests.

[0175] S606 : Pull down the VPP ALERT of both controller boards for 5ms.

[0176] In this step, the second alarm signal is low. By pulling the VPP ALERT signals of both controller boards low for 5ms, the CPUs of both controller boards are informed that a hard drive hot-unplug has occurred. The CPUs on both controller boards update their hard drive lists and delete information about the hard drive to be unplugged. After this step, S609 is executed.

[0177] S607: Receive a hot-plug request sent by the main controller board.

[0178] The hot-plug request is received through the SMBus path (that is, the path where the sideband connector is located) between the hot-plug controller and the BMC of the main controller board.

[0179] S608: Wait until a signal indicating that the request has been sent is received from the BMC of the main controller board.

[0180] S609: Pull down the VPP ALERT of the main controller board for 5ms.

[0181] In this step, the second alarm signal is low. By pulling the VPP ALERT signal of the main controller board low for 5ms, the CPU of the main controller board is notified that a hard drive hot-unplug has occurred. The CPU of the main controller board updates the hard drive list and deletes the information about the hard drive to be unplugged. After this step is completed, S610 is executed.

[0182] S610: Pull down the OE signal of the hot-swap buffer corresponding to the hard disk to be removed, and disconnect the hard disk to be removed from the bus.

[0183] In this step, the second output enable signal is at a low level, disconnecting the signal of the hard disk to be removed from the bus.

[0184] 611. Set the PERST# signal of the hard disk to be removed to a reset state.

[0185] Through this step, the read and write permissions of the two controller boards (or main control boards) to the hard disk to be unplugged are released.

[0186] S612: Pull down the EFUSE signal of the hard disk to be removed and turn off the power supply.

[0187] In this step, the third level is low, pulling down the EFUSE signal of the hard drive to be removed, controlling the voltage regulator to stop supplying power to the hard drive to be removed. This completes the dual-port hard drive hot-plug control process, and the hard drive to be removed can be removed from the hard drive slot. After this step, S615 is executed.

[0188] S613: Detect that the PRSNT# signal is high, the IFDET# signal changes from low to high, and no hot unplug request sent by the target controller board is detected.

[0189] In this step, when the PRSNT# signal is detected to be at a high level, the IFDET# signal changes from low to high, and no thermal ejection request is detected, it is determined that the hard disk thermal forced ejection behavior is detected.

[0190] S614: Determine whether the current working mode is the active-standby mode or the active-active mode.

[0191] If the working mode is the active-active mode, execute S606; if the working mode is the active-standby mode, execute S609.

[0192] S615, end.

[0193] It should be noted that Figure 6 It is only shown by way of example that S606 and S609 are both executed before S610. In fact, S606 and S610, S609 and S610 are parallel steps. The execution order of S606 and S610, S609 and S610 can be set as required. They can be executed simultaneously or S610 can be executed before S606 and S609.

[0194] The dual-port hard disk hot-swap control method provided by the present application realizes the control of key signals for hot-swap, controls the dual-port enable signal (DualPortEn#) through the dual-port backplane to be compatible with different types of backplanes, realizes independent reset and release reset of the dual-port hard disk through reset signals (PERST# and PERST#B), realizes power on and off of the hard disk adapted to the hot-swap process through the thermal fuse signal (EFUSE), isolates the SMBus signal of the hot-swap hard disk through the output enable signal (OE) of the hot-swap buffer, and ensures stable communication of other devices on the bus.

[0195] The dual-port hard disk hot-swap control method provided in this application also supports dynamic switching between active-standby mode and active-active mode, and the corresponding hot-swap logic is adjusted accordingly to ensure the continuity and stability of operations during the switching process, so that the present invention can adapt to different multi-controller board configuration requirements and has higher adaptability and scalability.

[0196] In distributed computing systems, especially in high-performance computing environments, multiple computing nodes need to share storage resources. The dual-port hard drive hot-swap control method provided in this application allows hot-swap management logic to dynamically adjust storage resource allocation when multiple hosts share a physical storage device, avoiding service interruptions caused by maintenance operations.

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

[0198] The embodiment of the present application also provides a dual-port hard disk hot plug control device, such as Figure 7 As shown, the dual-port hard disk hot-swap control device 700 includes:

[0199] The first determination module 701 is configured to determine a hot-swap management mode and a target controller board when a hard disk hot-plug behavior is detected. The hot-swap management mode includes an active-active mode and an active-standby mode. In the active-active mode, the target controller board includes two controller boards. In the active-standby mode, the target server includes a master controller board.

[0200] A second determination module 702 is configured to detect the level of a thermal fuse signal, determine a hard disk having a thermal fuse signal at a first level as a target hard disk, and control the target hard disk to power on;

[0201] The first communication module 703 is configured to send a first alarm signal to the target controller board; wherein the first alarm signal is used to indicate that a hard disk hot-plugging behavior has occurred;

[0202] The second communication module 704 is configured to receive a reset signal sent by the target controller board and forward the reset signal to the target hard disk so as to reset the target hard disk by the target controller board;

[0203] The third communication module 705 is configured to send a first output enable signal to the hot-swap buffer corresponding to the target hard disk, so as to connect the target hard disk to the bus.

[0204] In some embodiments, the dual-port hard disk hot-swap control device also includes: a third determination module; the third determination module is used to determine, in active-active mode, the existence of an unreset target hard disk, and re-execute the step of forwarding the reset signal to the target hard disk until the two controller boards reset all target hard disks.

[0205] In some embodiments, the third determination module is also used to determine that a master-slave switch has occurred on the target controller board in the master-slave mode, re-execute the level detection of the thermal fuse signal, determine the hard disk with the thermal fuse signal at the first level as the target hard disk, and control the step of powering on the target hard disk.

[0206] In some embodiments, the first determination module is used to detect the hot insertion behavior of the hard disk, including: obtaining the hard disk's presence signal and the interface detection signal of the corresponding hard disk connector; based on the presence signal being a second level and the change of the interface detection signal satisfying the first change rule, determining that the hard disk hot insertion behavior is detected.

[0207] In some embodiments, the dual-port hard disk hot-swap control device also includes: a judgment module, which is used to judge whether the hard disk backplane supports the dual-port hard disk based on the dual-port enable signal of the hard disk backplane; if so, a first dual-port enable signal is sent to the hard disk connector; if not, the hot-swap controller sends a second dual-port enable signal to the hard disk connector; the first output enable signal and the second output enable signal are mutually exclusive.

[0208] In some embodiments, the dual-port hard disk hot-swap control device further includes:

[0209] a fourth communication module configured to detect a hot-plug request sent by a target controller board and receive the hot-plug request; and upon receiving a signal indicating that the request has been sent, to send a second alarm signal to the target controller board and a second output enable signal to a hot-plug buffer corresponding to the target hard disk, thereby disconnecting the hard disk to be removed from the bus; wherein the second alarm signal is used to indicate that a hard disk hot-plug has occurred;

[0210] A reset module, used to switch the hard disk to be removed to a reset state;

[0211] The power-off module is used to switch the thermal fuse signal of the hard disk to be removed to the third level and control the hard disk to be removed to be powered off.

[0212] In some embodiments, the dual-port hard disk hot-swap control device further includes:

[0213] The third determination module is used to determine that forced removal of the hard disk is detected based on the fact that the in-position signal is at the second level, the change of the interface detection signal satisfies the second change rule, and no hot removal request is detected, and execute the steps of sending a second alarm signal to the target controller board and sending a second output enable signal to the hot plug buffer.

[0214] For the description of the features in the embodiment corresponding to the dual-port hard disk hot-swap control device, reference can be made to the description of the embodiment corresponding to the dual-port hard disk hot-swap control method, which will not be repeated here.

[0215] The embodiment of the present application also provides a hot-swap controller, such as Figure 8 As shown, the hot-swap controller 800 includes a memory 802 and a processor 801 . The memory 802 stores a computer program. The processor 801 is configured to run the computer program to execute the steps in any of the above-mentioned dual-port hard disk hot-swap control method embodiments.

[0216] An embodiment of the present application further provides a computer-readable storage medium storing a computer program, wherein the computer program is configured to execute the steps of any of the above-mentioned dual-port hard disk hot-swap control method embodiments when running.

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

[0218] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps of any of the above-mentioned dual-port hard disk hot-swap control method embodiments are implemented.

[0219] An embodiment of the present application also provides another computer program product, including a non-volatile computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the steps in any of the above-mentioned dual-port hard disk hot-swap control method embodiments.

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

[0221] The above describes in detail the dual-port hard disk hot-swap control method, device, controller, medium, and product provided by this application. This article uses specific examples to illustrate the principles and implementation methods of this application. The description of the above embodiments is only intended to help understand the method and core concept of this application. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of this application, several improvements and modifications can be made to this application, and these improvements and modifications also fall within the scope of protection of the claims of this application.

Claims

1. A dual-port hard disk hot-swap control method, characterized in that: include: When a hard disk hot plug behavior is detected, a hot plug management mode and a target controller board are determined; wherein the hot plug management mode includes a dual-active mode and an active-standby mode. In the dual-active mode, the target controller board includes two controller boards; in the active-standby mode, the target server includes a master controller board; detecting the level of a thermal fuse signal, determining a hard disk having the thermal fuse signal at a first level as a target hard disk, and controlling the target hard disk to power on; Sending a first alarm signal to the target controller board; wherein the first alarm signal is used to indicate that a hard disk hot plugging behavior occurs; receiving a reset signal sent by the target controller board, and forwarding the reset signal to the target hard disk, so as to cause the target controller board to reset the target hard disk; A first output enable signal is sent to the hot-swap buffer corresponding to the target hard disk to connect the target hard disk to the bus.

2. The dual-port hard disk hot-swap control method according to claim 1, wherein: In the active-active mode, the dual-port hard disk hot-swap control method further includes: Determine whether both the controller boards have completed the de-resetting of the target hard disk. If not, re-execute the step of forwarding the reset signal to the target hard disk until both the controller boards have completed the de-resetting of the target hard disk.

3. The dual-port hard disk hot-swap control method according to claim 1, wherein: In the master-slave mode, the dual-port hard disk hot-swap control method further includes: Determine that the target controller board has switched between active and standby modes, re-execute the step of detecting the level of the thermal fuse signal, determine the hard disk with the thermal fuse signal at the first level as the target hard disk, and control the target hard disk to be powered on.

4. The dual-port hard disk hot-swap control method according to claim 1, wherein: The detection of a hard disk hot-plug behavior includes: Obtaining the hard disk presence signal and the interface detection signal of the corresponding hard disk connector; Based on the fact that the presence signal is at the second level and the change of the interface detection signal satisfies the first change rule, it is determined that a hard disk hot-plug behavior is detected.

5. The dual-port hard disk hot-swap control method according to claim 4, characterized in that: Before detecting the hard disk hot plug behavior, the dual-port hard disk hot plug control method further includes: Based on the dual-port enable signal of the hard disk backplane, determine whether the hard disk backplane supports dual-port hard disks; If so, a first dual-port enable signal is sent to the hard disk connector.

6. The dual-port hard disk hot-swap control method according to any one of claims 1 to 5, characterized in that: Also includes: detecting a hot unplug request sent by the target controller board and receiving the hot unplug request; After receiving a signal indicating that the request has been sent, sending a second alarm signal to the target controller board and sending a second output enable signal to the hot-swap buffer corresponding to the target hard disk to disconnect the hard disk to be removed from the bus; wherein the second alarm signal is used to indicate that a hard disk hot-plugging behavior has occurred; Switching the hard disk to be removed to a reset state; The thermal fuse signal of the hard disk to be removed is switched to a third level, and the hard disk to be removed is controlled to be powered off.

7. The dual-port hard disk hot-swap control method according to claim 6, characterized in that: Also includes: Based on the fact that the in-place signal is at the second level, the change of the interface detection signal satisfies the second change rule, and the hot unplug request is not detected, it is determined that the forced unplugging of the hard disk is detected, and the steps of sending a second alarm signal to the target controller board and sending a second output enable signal to the hot plug buffer corresponding to the target hard disk are executed.

8. A dual-port hard disk hot-swap control device, characterized in that: include: A first determination module is configured to determine a hot-swap management mode and a target controller board when a hard disk hot-plug behavior is detected; wherein the hot-swap management mode includes an active-active mode and an active-standby mode. In the active-active mode, the target controller board includes two controller boards; in the active-standby mode, the target server includes a master controller board; a second determining module, configured to detect the level of the thermal fuse signal, determine the hard disk whose thermal fuse signal is at the first level as a target hard disk, and control the target hard disk to power on; A first communication module is configured to send a first alarm signal to the target controller board; wherein the first alarm signal is configured to indicate that a hard disk hot-plugging behavior has occurred; a second communication module, configured to receive a reset signal sent by the target controller board, and forward the reset signal to the target hard disk, so as to cause the target controller board to reset the target hard disk; The third communication module is configured to send a first output enable signal to the hot-swap buffer corresponding to the target hard disk, so as to connect the target hard disk to the bus.

9. A hot-swap controller, characterized in that: include: memory for storing computer programs; A processor is configured to implement the steps of the dual-port hard disk hot-swap control method according to any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the steps of the dual-port hard disk hot-swap control method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Method, device and equipment for realizing hot plugging of hard disk and medium

    CN114860641A

  • State information sending method and system, storage medium and electronic equipment

    CN117033050A

  • NVMe hard disk hot plug system and method based on Feiteng server

    CN118503179A

  • Method and device for reading log data, computer equipment and storage medium

    CN118747165A