Server hard drive boot control system, method and device
Patent Information
- Application Number
- CN202310165644.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-24
- Publication Date
- 2026-09-01
- Estimated Expiration
- 2043-02-24
AI Technical Summary
[0004]本申请实施例提供了一种服务器硬盘的启动控制系统、方法及装置,以至少解决相关技术中硬盘启动的控制效率较低的问题
[0015]通过本申请,服务器硬盘的启动控制系统中包括第一控制模块,多个第二控制模块和背板检测模块,第一控制模块的电流输入端与服务器的服务器电源连接,第一控制模块的电流输出端与服务器上部署的多个硬盘背板的供电接口连接,多个第二控制模块的电流输入端与多个硬盘背板的供电接口一一对应连接,多个第二控制模块的电流输出端与多个硬盘的供电接口一一对应连接,多个硬盘一一对应的部署在多个硬盘背板上,背板检测模块与第一控制模块连接,从而实现通过背板检测模块检测接入到服务器上的硬盘背板的背板信息,进而第一控制模块就能够根据背板信息确定每个硬盘背板上部署的硬盘的硬盘数量,从而可确定出每个硬盘背板对应的上电时间,按照该上电时间控制服务器上部署的多个硬盘依次上电,在硬盘背板上电后,处于上电状态的硬盘背板上的第二控制模块就会按照该硬盘背板对应的第一预设上电顺序控制该硬盘背板上的硬盘依次上电,从而实现对服务器上部署的硬盘的有序启动,避免相关技术中多个硬盘同时上电导致的硬盘上电顺序紊乱,因此,可以解决硬盘启动的控制效率较低的问题,达到提高硬盘启动的控制效率的效果。
Smart Images

Figure CN116088952B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computers, and more specifically, to a boot control system, method, and apparatus for a server hard drive. Background Technology
[0002] With the rapid development of information technology and internet services, massive amounts of data have been generated, all stored on server hard drives (including SATA, SAS, and NVMe drives). The connection between hard drives and servers is typically not direct, but rather via a backplane. The hard drive is plugged into the backplane, which in turn connects to the server's high-speed signal and power supply. The backplane provides a secure structure for the hard drive, ensuring a stable and secure connection. Furthermore, it integrates high-speed uplink signals, management signals, and power supply, facilitating high-speed connectivity, hard drive management, and power supply.
[0003] Currently, the main power connector on a typical hard drive backplane is connected to the motherboard or power supply board. On the motherboard or power supply board, these power connectors usually originate from the same power rail. This presents a problem: all hard drives on the backplane are essentially powered simultaneously, meaning the hard drives across the backplanes are also essentially powered at the same time. The operating system's recognition of hard drive devices is a parallel and asynchronous process. Typically, hard drive letters are ordered according to the order they are recognized, meaning the first responding drive will appear first. Because hard drives have different qualities and response speeds, if multiple hard drives are powered on simultaneously, the drive order in the operating system will not correspond as correctly as the physical slots, resulting in drive order disorder. Summary of the Invention
[0004] This application provides a server hard drive boot control system, method, and apparatus to at least solve the problem of low control efficiency of hard drive boot in related technologies.
[0005] According to one embodiment of this application, a server hard drive boot control system is provided, comprising: a first control module, a plurality of second control modules, and a backplane detection module, wherein the current input terminal of the first control module is connected to the server power supply, the current output terminal of the first control module is connected to the power supply interface of a plurality of hard drive backplanes deployed on the server, the current input terminals of the plurality of second control modules are connected one-to-one with the power supply interfaces of the plurality of hard drive backplanes, the current output terminals of the plurality of second control modules are connected one-to-one with the power supply interfaces of the plurality of hard drives, the plurality of hard drives are deployed one-to-one on the plurality of hard drive backplanes, and the backplane detection module is connected to the first control module; the backplane detection module is used to detect the backplane information of each hard drive backplane connected to the server; the first control module is used to determine the number of hard drives deployed on each hard drive backplane based on the backplane information, determine the power-on time of each hard drive backplane based on the number of hard drives, and control the plurality of hard drive backplanes to power on sequentially based on the power-on time; the second control module is used to control the plurality of hard drives deployed on the target hard drive backplane to power on sequentially according to a first preset power-on sequence corresponding to the target hard drive backplane when the power-on of the target hard drive backplane corresponding to the second control module is detected.
[0006] In one exemplary embodiment, the first control module includes: a first processor and a plurality of first switches, wherein the plurality of first switches are configured one-to-one with a plurality of hard disk backplanes, the current input terminal of each first switch is connected to the server power supply, the current output terminal of each first switch is connected to the power supply interface of the corresponding hard disk backplane, the signal input terminal of the first processor is connected to the backplane detection module, and the signal output terminal of the first processor is connected to the enable terminal of each first switch; the first processor is configured to send first control signals sequentially to the plurality of first switches corresponding to the plurality of hard disk backplanes according to the power-on time, wherein the first control signals are used to control each first switch to connect the power supply link between the power supply interface of the corresponding hard disk backplane and the server power supply.
[0007] In one exemplary embodiment, the second control module includes: a second processor and a plurality of second switches, wherein the plurality of second switches are configured one-to-one with a plurality of hard drives deployed on a hard drive backplane corresponding to the second control module, the current input terminal of each second switch is connected to the power supply interface of the hard drive backplane, the current output terminal of each second switch is connected to the power supply interface of the corresponding hard drive, and the second processor is connected to the enable terminal of each second switch; the second processor is configured to, when the target hard drive backplane is powered on, sequentially send second control signals to the plurality of second switches corresponding to the plurality of hard drives in a first preset power-on sequence, wherein the second control signals are used to control the second switches to connect the power supply link between the power supply interface of the corresponding target hard drive backplane and the power supply interface of the hard drive.
[0008] In one exemplary embodiment, the backplane detection module includes: a first detection unit, wherein the first detection unit includes a plurality of pull-up resistors having a first number, a first end of each pull-up resistor being connected to a reference power supply, and a signal input terminal of a first processor being connected to a second end of the pull-up resistor.
[0009] In one exemplary embodiment, the backplane detection module further includes: a plurality of second detection units, wherein the plurality of second detection units are deployed one-to-one on a plurality of hard disk backplanes, and the plurality of second detection units correspond one-to-one with a plurality of first switches; the second detection unit includes a plurality of pull-down resistors having a second number, the first number being greater than or equal to the second number, and the connection relationship between each pull-up resistor and the ground terminal of the corresponding hard disk backplane includes one of the following: the second end of the pull-up resistor is connected to the ground terminal on the hard disk backplane through a pull-down resistor, or the second end of the pull-up resistor is directly connected to the ground terminal, wherein, in the case where the second ends of multiple target pull-up resistors among the plurality of pull-up resistors are connected to the ground terminal through pull-down resistors, the multiple target pull-up resistors are connected to different pull-down resistors, and the connection relationship between the plurality of pull-up resistors and the corresponding multiple ground terminals corresponds one-to-one with the backplane information of the plurality of hard disk backplanes.
[0010] According to one embodiment of this application, a boot control method for a server hard drive is provided, comprising: acquiring multiple backplane information corresponding to multiple hard drive backplanes, wherein the multiple backplane information is obtained by a backplane detection module in a boot control system detecting multiple hard drive backplanes connected to the server; determining the number of hard drives deployed on each of the multiple hard drive backplanes based on the multiple backplane information; determining the power-on time of each hard drive backplane based on the number of hard drives; and controlling the multiple hard drive backplanes to power on sequentially based on the power-on time, wherein a second control module is used to control the multiple hard drives deployed on the target hard drive backplane to power on sequentially according to a first preset power-on order corresponding to the target hard drive backplane when a power-on of a target hard drive backplane corresponding to the second control module is detected.
[0011] In an exemplary embodiment, determining the power-on time of each hard disk backplane based on the number of hard disks includes: calculating the product of the number of hard disks on each hard disk backplane and a preset hard disk boot time to obtain the power-on time of each hard disk backplane, wherein the hard disk boot time is used to indicate the boot time of each hard disk; and sorting the power-on times of the multiple hard disk backplanes in a second preset power-on order to obtain the power-on time of each hard disk backplane.
[0012] According to another embodiment of this application, a boot control device for a server hard drive is provided, comprising: an acquisition module, configured to acquire multiple backplane information corresponding to multiple hard drive backplanes, wherein the multiple backplane information is obtained by a backplane detection module in a boot control system detecting multiple hard drive backplanes connected to the server; a first determination module, configured to determine the number of hard drives deployed on each of the multiple hard drive backplanes according to the multiple backplane information; a second determination module, configured to determine the power-on time of each hard drive backplane according to the number of hard drives; and a control module, configured to control the multiple hard drive backplanes to power on sequentially according to the power-on time, wherein the second control module is configured to control the multiple hard drives deployed on the target hard drive backplane to power on sequentially according to a first preset power-on order corresponding to the target hard drive backplane when a power-on of a target hard drive backplane corresponding to the second control module is detected.
[0013] According to yet another embodiment of this application, a computer-readable storage medium is also provided, in which a computer program is stored, wherein the computer program is configured to perform the steps in any of the above method embodiments when it is run.
[0014] According to yet another embodiment of this application, an electronic device is also provided, including a memory and a processor, wherein a computer program is stored in the memory and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.
[0015] According to this application, the server hard drive boot control system includes a first control module, multiple second control modules, and a backplane detection module. The current input terminal of the first control module is connected to the server power supply, and the current output terminal of the first control module is connected to the power supply interface of multiple hard drive backplanes deployed on the server. The current input terminals of the multiple second control modules are connected one-to-one to the power supply interfaces of the multiple hard drive backplanes, and the current output terminals of the multiple second control modules are connected one-to-one to the power supply interfaces of the multiple hard drives. The multiple hard drives are deployed one-to-one on the multiple hard drive backplanes. The backplane detection module is connected to the first control module, thereby enabling the detection of backplane signals of the hard drive backplanes connected to the server. Based on the backplane information, the first control module can determine the number of hard drives deployed on each hard drive backplane, thereby determining the power-on time corresponding to each hard drive backplane. Following this power-on time, the multiple hard drives deployed on the server are powered on sequentially. After the hard drive backplane is powered on, the second control module on the powered-on hard drive backplane will control the hard drives on the backplane to power on sequentially according to the first preset power-on sequence corresponding to that backplane. This achieves orderly startup of the hard drives deployed on the server, avoiding the disordered power-on sequence caused by multiple hard drives powering on simultaneously in related technologies. Therefore, it can solve the problem of low hard drive startup control efficiency and achieve the effect of improving hard drive startup control efficiency. Attached Figure Description
[0016] Figure 1 This is a system architecture diagram of the server hard drive boot control system according to an embodiment of this application;
[0017] Figure 2 This is an optional hard disk power supply circuit diagram according to an embodiment of this application;
[0018] Figure 3 This is a schematic diagram of an optional hard disk power-on control according to an embodiment of this application;
[0019] Figure 4 This is a hardware structure block diagram of a mobile terminal for a server hard drive boot control method according to an embodiment of this application.
[0020] Figure 5 This is a flowchart of a server hard disk boot control method according to an embodiment of this application;
[0021] Figure 6 This is an optional hard disk power-on control flowchart according to an embodiment of this application;
[0022] Figure 7 This is a structural block diagram of a server hard disk boot control device according to an embodiment of this application. Detailed Implementation
[0023] The embodiments of this application will be described in detail below with reference to the accompanying drawings and examples.
[0024] It should be noted that the terms "first," "second," etc., in the specification, claims, and drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.
[0025] This embodiment provides a boot control system for a server hard drive. Figure 1 This is a system architecture diagram of the server hard drive boot control system according to an embodiment of this application, such as... Figure 1 As shown, the server hard drive boot control system includes: a first control module 12, multiple second control modules 14, and a backplane detection module 16, wherein...
[0026] The current input terminal of the first control module 12 is connected to the server power supply of the server, the current output terminal of the first control module 12 is connected to the power supply interface of the multiple hard disk backplanes deployed on the server, the current input terminals of the multiple second control modules 14 are connected one-to-one with the power supply interface of the multiple hard disk backplanes, the current output terminals of the multiple second control modules 14 are connected one-to-one with the power supply interface of the multiple hard disks, the multiple hard disks are deployed one-to-one on the multiple hard disk backplanes, and the backplane detection module 16 is connected to the first control module 12.
[0027] Backplane detection module 16 is used to detect the backplane information of each hard drive backplane connected to the server;
[0028] The first control module 12 is used to determine the number of hard drives deployed on each hard drive backplane based on the backplane information, determine the power-on time of each hard drive backplane based on the number of hard drives, and control multiple hard drive backplanes to power on sequentially based on the power-on time.
[0029] The second control module 14 is used to control multiple hard drives deployed on the target hard drive backplane to be powered on sequentially according to the first preset power-on sequence corresponding to the target hard drive backplane when the target hard drive backplane corresponding to the second control module is detected to be powered on.
[0030] Based on the above, the server hard drive boot control system includes a first control module, multiple second control modules, and a backplane detection module. The current input terminal of the first control module is connected to the server power supply, and the current output terminal of the first control module is connected to the power supply interfaces of the multiple hard drive backplanes deployed on the server. The current input terminals of the multiple second control modules are connected one-to-one with the power supply interfaces of the multiple hard drive backplanes, and the current output terminals of the multiple second control modules are connected one-to-one with the power supply interfaces of the multiple hard drives. The multiple hard drives are deployed one-to-one on the multiple hard drive backplanes. The backplane detection module is connected to the first control module, thereby enabling the detection of backplane signals of the hard drive backplanes connected to the server. Based on the backplane information, the first control module can determine the number of hard drives deployed on each hard drive backplane, thereby determining the power-on time corresponding to each hard drive backplane. Following this power-on time, the multiple hard drives deployed on the server are powered on sequentially. After the hard drive backplane is powered on, the second control module on the powered-on hard drive backplane will control the hard drives on the backplane to power on sequentially according to the first preset power-on sequence corresponding to that backplane. This achieves orderly startup of the hard drives deployed on the server, avoiding the disordered power-on sequence caused by multiple hard drives powering on simultaneously in related technologies. Therefore, it can solve the problem of low hard drive startup control efficiency and achieve the effect of improving hard drive startup control efficiency.
[0031] Optionally, in this embodiment, the backplane information is used to indicate the type and number of hard drives deployed on the backplane. The backplane information may include, but is not limited to, the backplane model, backplane identification, backplane image, etc. This solution does not limit this.
[0032] Optionally, in this embodiment, the backplane detection module can detect the backplane information of the hard drive backplane by image recognition. For example, the backplane detection module includes a camera for capturing images and a processor for recognizing images. The camera and the processor are connected. The camera captures images of the backplane connected to the server. The processor obtains the backplane images captured by the camera. By performing image recognition on the images, the backplane information is obtained.
[0033] Optionally, in this embodiment, the backplane detection module can also detect backplane information by identifying an identification unit deployed on the hard drive backplane. This identification unit can uniquely identify the backplane model, and thus the backplane information of the hard drive backplane can be determined by identifying the identification unit. For example, the identification unit is an identification chip deployed on the hard drive backplane, and the backplane detection module can be an identification circuit with chip identification function. The backplane information can be determined by identifying the chip model through the backplane detection module. Alternatively, the identification unit can be a first unit composed of pull-down resistor elements connected to the ground unit. Different hard drive backplanes have different parameters or different numbers of resistors deployed. The backplane detection module can be a second unit composed of pull-up resistors connected to the power supply. When the backplane is connected to the server, the first unit and the second unit are connected to form a current loop, thereby determining the corresponding backplane information based on the electrical signal in the loop. This solution does not limit this.
[0034] Optionally, in this embodiment, the number of hard drives can be determined from the corresponding backplane information and the number of hard drives.
[0035] Optionally, in this embodiment, the hard drive letters are ordered sequentially according to the boot order, meaning the hard drive that boots first will have the first letter. The hard drives are deployed on the hard drive backplane according to the boot order, resulting in a fixed power-on sequence between the hard drive backplanes. Therefore, the hard drive backplanes are not booted simultaneously, but sequentially. Furthermore, a corresponding boot interval is set between two adjacent hard drive backplanes in the boot order, thereby obtaining the power-on time of each hard drive backplane. The boot interval between hard drive backplanes is determined based on the number of hard drives deployed on the first hard drive backplane to boot. Each hard drive has a fixed boot duration, thus determining the first boot duration required to boot all the hard drives deployed on the hard drive backplane, and thus obtaining the boot interval between the current hard drive backplane and the hard drive backplanes that boot after the current hard drive backplane in the boot order. Alternatively, a time delay corresponding to the number of hard drives can be added based on the first boot duration to obtain the boot interval between the current hard drive backplane and the hard drive backplanes that boot after the current hard drive backplane in the boot order.
[0036] Optionally, in this embodiment, the target hard disk backplane is the hard disk backplane that is currently powered on among a plurality of hard disk backplanes.
[0037] Optionally, in this embodiment, the first preset power-on sequence is the power-on sequence of the hard drives deployed on the hard drive backplane. The first preset power-on sequence and the hard drive backplane have a one-to-one correspondence, and different hard drive backplanes correspond to different power-on sequences.
[0038] As an optional embodiment, the first control module includes: a first processor and a plurality of first switches, wherein,
[0039] Multiple first switches are configured one-to-one with multiple hard disk backplanes. The current input terminal of each first switch is connected to the server power supply, the current output terminal of each first switch is connected to the power supply interface of the corresponding hard disk backplane, the signal input terminal of the first processor is connected to the backplane detection module, and the signal output terminal of the first processor is connected to the enable terminal of each first switch.
[0040] A first processor is configured to sequentially send first control signals to multiple first switches corresponding to multiple hard disk backplanes according to the power-on time. The first control signals are used to control each first switch to connect the power supply link between the power supply interface of the corresponding hard disk backplane and the server power supply.
[0041] Optionally, in this embodiment, each hard disk backplane is provided with a first switch, and the on / off state of the power supply link between the server power supply and the corresponding hard disk backplane is adjusted by adjusting the enable state of the first switch.
[0042] As an optional embodiment, the second control module includes: a second processor and a plurality of second switches, wherein,
[0043] Multiple second switches are deployed on the hard drive backplane corresponding to the second control module, with each hard drive corresponding to one of them. The current input terminal of each second switch is connected to the power supply interface of the hard drive backplane, and the current output terminal of each second switch is connected to the power supply interface of the corresponding hard drive. The second processor is connected to the enable terminal of each second switch.
[0044] The second processor is used to send second control signals to multiple second switches corresponding to multiple hard drives in a first preset power-on sequence when the target hard drive backplane is powered on. The second control signals are used to control the second switches to connect the power supply link between the power supply interface of the corresponding target hard drive backplane and the power supply interface of the hard drive.
[0045] Optionally, in this embodiment, each hard drive is provided with a second switch on each hard drive backplane. By adjusting the enable state of the second switch, the power supply link between the power supply interface of the hard drive backplane and the power supply interface of the corresponding hard drive can be adjusted.
[0046] Figure 2 This is an optional hard disk power supply circuit diagram according to an embodiment of this application, such as... Figure 2 As shown, a P12V_EFUSE (corresponding to the first switch in this application) is added before each backplane power interface on the motherboard or power board. The purpose is to ensure that the power supply of each backplane is controllable. By controlling the ENpin of P12V_EFUSE, the 12V power supply of the backplane can be turned on or off. A total P12V_EFUSE is added before each P12V_EFUSE to control the connection between each P12V_EFUSE and the backplane PSU (Power Supply Unit).
[0047] At the hard drive backplane, P5V_VR is responsible for converting the input 12V to 5V to power the entire backplane. At the same time, a P12V_EFUSE (corresponding to the second switch in this application) and a P5V_EFUSE (second switch) are added to each hard drive connector. P12V_EFUSE is responsible for controlling the on / off of the 12V power supply from the motherboard or power board to the hard drive connector, and P5V_EFUSE is responsible for controlling the on / off of the 5V power supply from P5V_VR to the hard drive connector. By controlling the ENpin of P12V_EFUSE and P5V_EFUSE, the 12V and 5V power supplies to the hard drive can be turned on or off.
[0048] At each hard drive backplane, P5V_VR, each P12V_EFUSE, and the enable EN of P5V_EFUSE are all connected to the respective backplane CPLD (Complex Programmable Logic Device) (corresponding to the second processor in this application). After receiving the power-on signal, the backplane CPLD pulls up the EN of P5V_VR, controlling P5V_VR to output a 5V voltage. After detecting the insertion of a hard drive, the backplane CPLD (corresponding to the second processor in this application) controls P12V_EFUSE and P5V_EFUSE to output 12V and 5V voltages to power the hard drive by pulling up the enable EN of P12V_EFUSE and P5V_EFUSE corresponding to each hard drive connector. The CPLD controls the enable of P12V_EFUSE and P5V_EFUSE corresponding to a single hard drive connector simultaneously, but the CPLD controls the enable of P12V_EFUSE and P5V_EFUSE corresponding to different hard drive connectors not simultaneously, but with a time difference Δt. This ensures that each hard drive is powered on sequentially according to the time interval Δt. The selection of Δt is an empirical value. It will not be too large to prevent the overall hard drive power-on time from being too long, nor too small to ensure that the hard drive is fully recognized by the system.
[0049] On the motherboard or power board, the enable EN of P12V_EFUSE for each backplane power supply interface is also connected to the motherboard CPLD (corresponding to the first processor in this application) on the motherboard or power board. The motherboard CPLD's control of the enable EN of P12V_EFUSE for each backplane power supply interface is not simultaneous; there is a time difference, and the magnitude of this time difference depends on the connected backplane. Assuming backplane power supply interface 1 is connected to hard drive backplane 1, ..., backplane power supply interface n is connected to hard drive backplane n, such as... Figure 2 As shown, hard disk backplane 1 has X(1) hard disks, ..., hard disk backplane n has X(n) hard disks. Then, the P12V_EFUSE1 corresponding to the first backplane power supply interface on the motherboard or power supply board is output immediately after power-on, the P12V_EFUSE2 corresponding to the second backplane power supply interface is output after the first power-on with an interval of X(1)*Δt, and so on. The P12V_EFUSEn corresponding to the nth backplane power supply interface is output after the previous power-on with an interval of X(n-1)*Δt. That is, for the CPLD of the motherboard or power supply board, it is powered on in the order of P12V_EFUSE1, P12V_EFUSE2...P12V_EFUSEn, but the power-on interval depends on the number of hard disks on the connected hard disk backplane.
[0050] As an optional embodiment, the backplane detection module includes: a first detection unit, wherein,
[0051] The first detection unit includes a plurality of pull-up resistors having a first number, the first end of each pull-up resistor being connected to a reference power supply, and the signal input terminal of the first processor being connected to the second end of the pull-up resistor.
[0052] Optionally, in this embodiment, multiple pull-up resistors constitute multiple detection lines. When the hard drive backplane is connected to the server, the level signals generated on the detection lines are different for different types of hard drive backplanes. The backplane information of the hard drive backplane connected to the multiple detection lines is determined by the level signals generated on the multiple detection lines. For example, there are 3 detection lines. The level values of the detection lines pre-configured for hard drive backplane A are 0, 1, and 0, and the level values of the detection lines pre-configured for hard drive backplane B are 1, 0, and 1. Then, the specific hard drive backplane connected to it can be determined based on the level signals detected on the 3 detection lines. For example, when the level signals detected on the 3 detection lines are 1, 0, and 1 respectively, the hard drive backplane is determined to be hard drive backplane B.
[0053] Optionally, in this embodiment, the first number of pull-up resistors is determined based on the number of hard disk backplanes. If the number of backplanes is n and the number of pull-up resistors is a, then n ≤ 2 must be satisfied. a That is, each hard drive backplane corresponds to a detection line.
[0054] As an optional embodiment, the backplane detection module further includes: a plurality of second detection units, wherein,
[0055] Multiple second detection units are deployed one-to-one on multiple hard drive backplanes, and each of the multiple second detection units corresponds one-to-one with a multiple first switch;
[0056] The second detection unit includes a plurality of pull-down resistors having a second number, wherein the first number is greater than or equal to the second number. The connection relationship between each pull-up resistor and the ground terminal of the corresponding hard disk backplane includes one of the following: the second end of the pull-up resistor is connected to the ground terminal on the hard disk backplane through a pull-down resistor; or the second end of the pull-up resistor is directly connected to the ground terminal. In the case where the second ends of multiple target pull-up resistors among the plurality of pull-up resistors are connected to the ground terminal through pull-down resistors, the multiple target pull-up resistors are connected to different pull-down resistors. The connection relationship between the plurality of pull-up resistors and the corresponding multiple ground terminals corresponds one-to-one with the backplane information of the multiple hard disk backplanes.
[0057] Optionally, in this embodiment, an identification line corresponding to the detection line is configured on the hard drive backplane. The first end of the identification line is grounded, and the second end is connected to the detection line (i.e., the second end of the pull-up resistor). Each detection line may be configured with a pull-down resistor or may not be configured with a pull-down resistor. When a pull-down resistor is configured, after the detection line and the identification line are connected to form a loop, the level signal detected in the loop can be a low level "0". When no pull-down resistor is configured, after the detection line and the identification line are connected to form a loop, the level signal detected in the loop can be a high level "1". The detection lines with pull-down resistors are different for different models of hard drive backplanes.
[0058] Figure 3 This is an optional hard disk power-on control diagram according to an embodiment of this application, such as... Figure 3As shown, to increase system flexibility, a hard drive backplane BP_ID identification line (corresponding to the backplane detection module in this application) is designed. A BP_ID pin and a BP_PRSNT_N pin (corresponding to the first detection unit in this application) are designed on the sideband CON where the hard drive backplane connects to the motherboard or power board. The BP_PRSNT_N pin can collect a backplane presence identification signal. The backplane end is connected to GND, and the motherboard or power board end is pulled up to the power supply and connected to the motherboard CPLD. When the backplane and the motherboard or power board sideband CON are connected, if the motherboard CPLD detects a BP_PRSNT_N signal of Low, it considers the backplane present; if the BP_PRSNT_N signal is High, it considers the backplane absent. In addition, each interface has multiple BP_ID pins, the specific number depending on the number of backplanes. For example, if the number of backplanes is n and the number of ID pins is a, then n≤2 must be satisfied. a Each interface has a set of BP_IDs. On the motherboard or power board, there are a total of n*a BP_ID signals corresponding to all sidebandCONs. These BP_ID signals are connected to the power supply (P3V3AUX in the figure) through pull-up resistors on the motherboard or power board, and are also connected to the motherboard CPLD on the motherboard or power board. On the hard drive backplane, pull-down resistors are configured according to the assigned ID. For example, if the ID of hard drive backplane 1 is 000, then all the resistors corresponding to BP_ID0 to BP_ID2 are pulled down to GND. If the ID of a certain hard drive backplane is 110, then all the resistors corresponding to BP_ID0 are pulled down to GND, and the pull-down resistors corresponding to BP_ID1 to BP_ID2 are not connected.
[0059] There is a table in the CPLD on the motherboard or power board that maps BP_ID to the hard drive backplane and also to the number of hard drives on the hard drive backplane, as shown in Table 1:
[0060] Table 1
[0061] 000 1 X(1) 001 2 X(2) 010 3 X(3) 011 4 X(4) 100 5 X(5) 101 6 X(6) 110 7 X(7) 111 8 X(8)
[0062] The motherboard CPLD on the motherboard or power board can identify the BP_ID and then look up the table to obtain the number of hard drives on the connected hard drive backplane.
[0063] Overall, the motherboard CPLD on the motherboard or power board controls the sequential power-on of P12V_EFUSE1_EN, P12V_EFUSE2_EN...P12V_EFUSEn_EN, that is, powering on according to the order of the backplane power supply interfaces 1 to n. However, the time interval is determined by the number of hard drives. That is, P12V_EFUSEi must wait for P12V_EFUSE(i-1) to power on before powering on itself, and then wait for a time interval of Y(i-1)*Δt (where Y(i-1) represents the number of hard drives on the (i-1)th backplane). Ultimately, this ensures that all hard drives on the backplane are powered on sequentially according to the time interval Δt.
[0064] The methods and embodiments provided in this application can be executed on a mobile terminal, computer terminal, or similar computing device. Taking running on a mobile terminal as an example, Figure 4 This is a hardware structure block diagram of a mobile terminal for a server hard drive boot control method according to an embodiment of this application. For example... Figure 4 As shown, a mobile terminal may include one or more ( Figure 4 Only one is shown in the diagram. A processor 402 (which may include, but is not limited to, a microprocessor MCU or a programmable logic device FPGA, etc.) and a memory 404 for storing data are also shown. The mobile terminal may further include a transmission device 406 for communication functions and an input / output device 408. Those skilled in the art will understand that... Figure 4 The structure shown is for illustrative purposes only and does not limit the structure of the mobile terminal described above. For example, the mobile terminal may also include components that are more... Figure 4 The more or fewer components shown, or having the same Figure 4 The different configurations shown.
[0065] The memory 404 can be used to store computer programs, such as application software programs and modules, like the computer program corresponding to the server hard drive boot control method in this embodiment. The processor 402 executes various functional applications and data processing by running the computer program stored in the memory 404, thus implementing the above-described method. The memory 404 may include high-speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 404 may further include memory remotely located relative to the processor 402, and these remote memories can be connected to a mobile terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0066] Transmission device 406 is used to receive or send data via a network. Specific examples of the network described above may include a wireless network provided by the mobile terminal's communication provider. In one example, transmission device 406 includes a Network Interface Controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, transmission device 406 may be a Radio Frequency (RF) module used for wireless communication with the Internet.
[0067] This embodiment provides a method for controlling the boot of a server hard drive. Figure 5 This is a flowchart of a server hard drive boot control method according to an embodiment of this application, such as... Figure 5 As shown, the process includes the following steps:
[0068] Step S502: Obtain multiple backplane information corresponding to multiple hard disk backplanes, wherein the multiple backplane information is obtained by the backplane detection module in the startup control system detecting multiple hard disk backplanes connected to the server.
[0069] Step S504: Based on the multiple backplane information, determine the number of hard drives on each hard disk backplane deployed in multiple hard disk backplanes.
[0070] Step S506: Determine the power-on time for each hard drive backplane based on the number of hard drives;
[0071] Step S508: According to the power-on time, control multiple hard disk backplanes to power on sequentially. The second control module is used to control multiple hard disks deployed on the target hard disk backplane to power on sequentially according to the first preset power-on sequence corresponding to the target hard disk backplane when the target hard disk backplane corresponding to the second control module is detected to be powered on.
[0072] Through the above steps, the server hard drive boot control system includes a first control module, multiple second control modules, and a backplane detection module. The current input terminal of the first control module is connected to the server power supply, and the current output terminal of the first control module is connected to the power supply interfaces of the multiple hard drive backplanes deployed on the server. The current input terminals of the multiple second control modules are connected one-to-one to the power supply interfaces of the multiple hard drive backplanes, and the current output terminals of the multiple second control modules are connected one-to-one to the power supply interfaces of the multiple hard drives. The multiple hard drives are deployed one-to-one on the multiple hard drive backplanes. The backplane detection module is connected to the first control module, thereby enabling the detection of backplane signals of the hard drive backplanes connected to the server. Based on the backplane information, the first control module can determine the number of hard drives deployed on each hard drive backplane, thereby determining the power-on time corresponding to each hard drive backplane. Following this power-on time, the multiple hard drives deployed on the server are powered on sequentially. After the hard drive backplane is powered on, the second control module on the powered-on hard drive backplane will control the hard drives on the backplane to power on sequentially according to the first preset power-on sequence corresponding to that backplane. This achieves orderly startup of the hard drives deployed on the server, avoiding the disordered power-on sequence caused by multiple hard drives powering on simultaneously in related technologies. Therefore, it can solve the problem of low hard drive startup control efficiency and achieve the effect of improving hard drive startup control efficiency.
[0073] Optionally, in this embodiment, the backplane information is used to indicate the type and number of hard drives deployed on the backplane. The backplane information may include, but is not limited to, the backplane model, backplane identification, backplane image, etc. This solution does not limit this.
[0074] Optionally, in this embodiment, the backplane detection module can detect the backplane information of the hard drive backplane by image recognition. For example, the backplane detection module includes a camera for capturing images and a processor for recognizing images. The camera and the processor are connected. The camera captures images of the backplane connected to the server. The processor obtains the backplane images captured by the camera. By performing image recognition on the images, the backplane information is obtained.
[0075] Optionally, in this embodiment, the backplane detection module can also detect backplane information by identifying an identification unit deployed on the hard drive backplane. This identification unit can uniquely identify the backplane model, and thus the backplane information of the hard drive backplane can be determined by identifying the identification unit. For example, the identification unit is an identification chip deployed on the hard drive backplane, and the backplane detection module can be an identification circuit with chip identification function. The backplane information can be determined by identifying the chip model through the backplane detection module. Alternatively, the identification unit can be a first unit composed of pull-down resistor elements connected to the ground unit. Different hard drive backplanes have different parameters or different numbers of resistors deployed. The backplane detection module can be a second unit composed of pull-up resistors connected to the power supply. When the backplane is connected to the server, the first unit and the second unit are connected to form a current loop, thereby determining the corresponding backplane information based on the electrical signal in the loop. This solution does not limit this.
[0076] Optionally, in this embodiment, the hard drive letters are ordered sequentially according to the boot order, meaning the hard drive that boots first will have the first letter. The hard drives are deployed on the hard drive backplane according to the boot order, resulting in a fixed power-on sequence between the hard drive backplanes. Therefore, the hard drive backplanes are not booted simultaneously, but sequentially. Furthermore, a corresponding boot interval is set between two adjacent hard drive backplanes in the boot order, thereby obtaining the power-on time of each hard drive backplane. The boot interval between hard drive backplanes is determined based on the number of hard drives deployed on the first hard drive backplane to boot. Each hard drive has a fixed boot duration, thus determining the first boot duration required to boot all the hard drives deployed on the hard drive backplane, and thus obtaining the boot interval between the current hard drive backplane and the hard drive backplanes that boot after the current hard drive backplane in the boot order. Alternatively, a time delay corresponding to the number of hard drives can be added based on the first boot duration to obtain the boot interval between the current hard drive backplane and the hard drive backplanes that boot after the current hard drive backplane in the boot order.
[0077] As an optional embodiment, the power-on time of each hard drive backplane is determined based on the number of hard drives, including:
[0078] Calculate the product of the number of hard drives on each hard drive backplane and the preset hard drive boot time to obtain the power-on time of each hard drive backplane. The hard drive boot time is used to indicate the boot time of each hard drive.
[0079] According to the second preset power-on sequence, the power-on durations of multiple hard drive backplanes are sorted sequentially to obtain the power-on time of each hard drive backplane.
[0080] Optionally, in this embodiment, the preset hard drive boot time is a fixed value determined according to the model of the hard drive to be booted.
[0081] Optionally, in this embodiment, the second preset power-on sequence is determined based on the desired power-on sequence of the hard drives deployed on the server. The hard drive letters are ordered in sequence according to the order in which they are started, that is, the hard drive that is started first will have the first drive letter. The hard drives are deployed on the hard drive backplane according to the startup order, thereby determining the second preset power-on sequence corresponding to each hard drive backplane.
[0082] Figure 6 This is an optional hard disk power-on control flowchart according to an embodiment of this application, such as... Figure 6 As shown, it includes at least the following steps:
[0083] Step S601: Power on the server.
[0084] In step S602, the motherboard CPLD (corresponding to the first processor in this application) on the motherboard or power board determines whether each hard disk backplane is in place by detecting BP_PRSNT_N on each sidebandCON. If BP_PRSNT_N is Low, then the hard disk backplane is in place, and step S603 is executed; if BP_PRSNT_N is High, then the hard disk backplane is not in place, and step S607 is executed.
[0085] In step S603, the motherboard CPLD on the motherboard or power board determines the backplane BP_ID (corresponding to the backplane information in this application) of the connected hard drive backplane by detecting the BP_IDpin on each sidebandCON.
[0086] In step S604, the motherboard CPLD on the motherboard or power board obtains the number of hard drives connected to all backplanes by looking up the BP_ID of each backplane, as shown in Table 2:
[0087] Table 2
[0088]
[0089] Step S605: The motherboard CPLD on the motherboard or power board determines the power-on time interval of P12V_EFUSE corresponding to the backplane power supply interface based on the number of hard drives on the backplane. The specific time interval is calculated as follows (P12V_EFUSE1_EN~P12V_EFUSE8_EN represent the power-on time interval of switches P12V_EFUSE1~P12V_EFUSE8 corresponding to the power supply interface, respectively; BP1_PRSNT_N~BP8_PRSNT_N represent the presence signals of hard drive backplane 1~8, and their values can be L=0 or H=1):
[0090] P12V_EFUSE1_EN: (BP1_PRSNT_N)*0Δt=0;
[0091] P12V_EFUSE2_EN:(BP2_PRSNT_N)*[0*Δt+(BP1_PRSNT_N)*X(2)*Δt]=0
[0092] P12V_EFUSE3_EN:(BP3_PRSNT_N)*[0*Δt+(BP1_PRSNT_N)*X(2)*Δt+(BP2_PRSNT_N)*0*Δt]=X(2)*Δt
[0093] P12V_EFUSE4_EN:(BP4_PRSNT_N)*[0*Δt+(BP1_PRSNT_N)*X(2)*Δt+(BP2_PRSNT_N)*0*Δt+(BP3_PRSNT_N)*X(1)*Δt]=(X(2)+X(1))*Δt
[0094] P12V_EFUSE5_EN:(BP5_PRSNT_N)*[0*Δt+(BP1_PRSNT_N)*X(2)*Δt+(BP2_PRSNT_N)*0*Δt+(BP3_PRSNT_N)*X(1)*Δt+(BP4_PRSNT_N)*0*Δt]=0
[0095] P12V_EFUSE6_EN:(BP6_PRSNT_N)*[0*Δt+(BP1_PRSNT_N)*X(2)*Δt+(BP2_PRSNT_N)*0*Δt+(BP3_PRSNT_N)*X(1)*Δt+(BP4_PRSNT_N)*0*Δt+(BP5_PRSNT_N)*X(5)*Δt]=0
[0096] P12V_EFUSE7_EN:(BP7_PRSNT_N)*[0*Δt+(BP1_PRSNT_N)*X(2)*Δt+(BP2_PRSNT_N)*0*Δt+(BP3_PRSNT_N)*X(1)*Δt+(BP4_PRSNT_N)*0*Δt+(BP5_PRSNT_N)*X(5)*Δt+(BP6_PRSNT_N)*0*Δt]=(X(2)+X(1)+X(5))*Δt
[0097] P12V_EFUSE8_EN: (BP8_PRSNT_N)*[0*Δt+(BP1_PRSNT_N)*X(2)*Δt+(BP2_PRSNT_N)*0*Δt+(BP3_PRSNT_N)*X(1)*Δt+(BP4 _PRSNT_N)*0*Δt+(BP5_PRSNT_N)*X(5)*Δt+(BP6_PRSNT_N)*0*Δt+(BP7_PRSNT_N)*X(3)*Δt]=(X(2)+X(1)+X(5)+X(3))*Δt
[0098] In step S606, the motherboard CPLD on the motherboard or power board powers on the backplane power supply interfaces sequentially according to the time interval calculated in step S605, in the order of P12V_EFUSE1, P12V_EFUSE2...P12V_EFUSEn. On the same hard drive backplane, the backplane CPLD enables the corresponding P12V_EFUSE and P5V_EFUSE of each hard drive connector sequentially according to the time interval Δt, that is, it powers on each hard drive sequentially according to the time interval Δt. Because the hard drive letters under the OS are ordered according to the order in which they are recognized, by physically forcing the hard drive power-on order, the hard drive recognition order under the OS is fixed, thereby achieving the fixation of the hard drive letters under the OS.
[0099] In step S607, if BP_PRSNT_N is High, then the hard drive backplane is not in place, and the P12V_EFUSE corresponding to the backplane power supply interface is not enabled, that is, the backplane power supply interface is not powered.
[0100] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods of the various embodiments of this application.
[0101] This embodiment also provides a boot control device for a server hard drive, which is used to implement the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can be a combination of software and / or hardware that performs a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0102] Figure 7 This is a structural block diagram of a server hard drive boot control device according to an embodiment of this application, such as... Figure 7 As shown, the device includes: an acquisition module 72, used to acquire multiple backplane information corresponding to multiple hard disk backplanes, wherein the multiple backplane information is obtained by the backplane detection module in the startup control system detecting multiple hard disk backplanes connected to the server; a first determination module 74, used to determine the number of hard disks deployed on each of the multiple hard disk backplanes according to the multiple backplane information; a second determination module 76, used to determine the power-on time of each hard disk backplane according to the number of hard disks; and a control module 78, used to control the multiple hard disk backplanes to power on sequentially according to the power-on time, wherein the second control module is used to control the multiple hard disks deployed on the target hard disk backplane to power on sequentially according to a first preset power-on order corresponding to the target hard disk backplane when the power-on of the target hard disk backplane corresponding to the second control module is detected.
[0103] Based on the above, the server hard drive boot control system includes a first control module, multiple second control modules, and a backplane detection module. The current input terminal of the first control module is connected to the server power supply, and the current output terminal of the first control module is connected to the power supply interfaces of the multiple hard drive backplanes deployed on the server. The current input terminals of the multiple second control modules are connected one-to-one with the power supply interfaces of the multiple hard drive backplanes, and the current output terminals of the multiple second control modules are connected one-to-one with the power supply interfaces of the multiple hard drives. The multiple hard drives are deployed one-to-one on the multiple hard drive backplanes. The backplane detection module is connected to the first control module, thereby enabling the backplane detection module to detect the backplane signals of the hard drive backplanes connected to the server. Based on the backplane information, the first control module can determine the number of hard drives deployed on each hard drive backplane, thereby determining the power-on time corresponding to each hard drive backplane. Following this power-on time, the multiple hard drives deployed on the server are powered on sequentially. After the hard drive backplane is powered on, the second control module on the powered-on hard drive backplane will control the hard drives on the backplane to power on sequentially according to the first preset power-on sequence corresponding to that backplane. This achieves orderly startup of the hard drives deployed on the server, avoiding the disordered power-on sequence caused by multiple hard drives powering on simultaneously in related technologies. Therefore, it can solve the problem of low hard drive startup control efficiency and achieve the effect of improving hard drive startup control efficiency.
[0104] Optionally, the second determining module includes: a calculation unit, used to calculate the product of the number of hard drives on each hard drive backplane and the preset hard drive boot time to obtain the power-on time of each hard drive backplane, wherein the hard drive boot time is used to indicate the boot time of each hard drive; and a processing unit, used to sort the power-on times of the multiple hard drive backplanes in a second preset power-on order to obtain the power-on time of each hard drive backplane.
[0105] It should be noted that the above modules can be implemented by software or hardware. For the latter, they can be implemented in the following ways, but are not limited to: all the above modules are located in the same processor; or, the above modules are located in different processors in any combination.
[0106] Embodiments of this application also provide a computer-readable storage medium storing a computer program, wherein the computer program is configured to execute the steps in any of the above method embodiments when run.
[0107] In one exemplary embodiment, the aforementioned computer-readable storage medium may include, but is not limited to, various media capable of storing computer programs, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard disk, magnetic disk, or optical disk.
[0108] Embodiments of this application also provide an electronic device, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.
[0109] In one exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor and the input / output device is connected to the processor.
[0110] Specific examples in this embodiment can be found in the examples described in the above embodiments and exemplary implementations, and will not be repeated here.
[0111] Obviously, those skilled in the art should understand that the modules or steps of this application described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. They can be implemented using computer-executable program code, and thus can be stored in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those presented here, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, this application is not limited to any particular combination of hardware and software.
[0112] The above are merely preferred embodiments of this application and are not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the principles of this application should be included within the protection scope of this application.
Claims
1. A boot control system for a server hard drive, characterized in that, include: The system comprises a first control module, multiple second control modules, and a backplane detection module. The current input terminal of the first control module is connected to the server power supply of the server, and the current output terminal of the first control module is connected to the power supply interface of the multiple hard disk backplanes deployed on the server. The current input terminals of the multiple second control modules are connected one-to-one with the power supply interface of the multiple hard disk backplanes, and the current output terminals of the multiple second control modules are connected one-to-one with the power supply interface of the multiple hard disks. The multiple hard disks are deployed one-to-one on the multiple hard disk backplanes, and the backplane detection module is connected to the first control module. The backplane detection module is used to detect the backplane information of each hard disk backplane connected to the server; The first control module is used to determine the number of hard drives deployed on each hard drive backplane based on the backplane information, determine the power-on time of each hard drive backplane based on the number of hard drives, and control multiple hard drive backplanes to be powered on sequentially based on the power-on time. The second control module is used to control the multiple hard drives deployed on the target hard drive backplane to be powered on sequentially according to a first preset power-on sequence corresponding to the target hard drive backplane when the target hard drive backplane corresponding to the second control module is detected to be powered on. The first control module includes: a first processor and a plurality of first switches, wherein the plurality of first switches are configured one-to-one with the plurality of hard disk backplanes, the current input terminal of each first switch is connected to the server power supply, the current output terminal of each first switch is connected to the power supply interface of the corresponding hard disk backplane, the signal input terminal of the first processor is connected to the backplane detection module, and the signal output terminal of the first processor is connected to the enable terminal of each first switch; the first processor is configured to send first control signals sequentially to the plurality of first switches corresponding to the plurality of hard disk backplanes according to the power-on time, wherein the first control signals are configured to control each first switch to connect the power supply link between the power supply interface of the corresponding hard disk backplane and the server power supply; The backplane detection module includes: a first detection unit, wherein the first detection unit includes a plurality of pull-up resistors having a first number, a first end of each pull-up resistor being connected to a reference power supply, and a signal input terminal of the first processor being connected to a second end of the pull-up resistor; The backplane detection module further includes: a plurality of second detection units, wherein the plurality of second detection units are deployed one-to-one on the plurality of hard disk backplanes, and the plurality of second detection units correspond one-to-one with the plurality of first switches; the second detection unit includes a plurality of pull-down resistors having a second number, the first number being greater than or equal to the second number, and the connection relationship between each pull-up resistor and the ground terminal of the corresponding hard disk backplane includes one of the following: the second end of the pull-up resistor is connected to the ground terminal on the hard disk backplane through the pull-down resistor; the second end of the pull-up resistor is directly connected to the ground terminal; when the second ends of multiple target pull-up resistors among the plurality of pull-up resistors are connected to the ground terminal through the pull-down resistors, the multiple target pull-up resistors are connected to different pull-down resistors, and the connection relationship between the plurality of pull-up resistors and the corresponding multiple ground terminals corresponds one-to-one with the backplane information of the plurality of hard disk backplanes; The backplane detection module is further configured to detect the backplane identifier of the hard disk backplane on which each of the second detection units is deployed through the first detection unit and multiple second detection units, wherein the backplane information includes the backplane identifier of the hard disk backplane. The first control module is further configured to find the number of hard drives corresponding to the backplane identifier of each hard drive backplane from the backplane identifier and the number of hard drives that have a corresponding relationship, so as to obtain the number of hard drives deployed on each hard drive backplane. The first control module is further configured to calculate the product of the number of hard drives on each hard drive backplane and the preset hard drive startup time to obtain the power-on time of each hard drive backplane, wherein the hard drive startup time is used to indicate the startup time of each hard drive, and the preset hard drive startup time is determined according to the hard drive model of the hard drive to be started; and to sort the power-on times of the multiple hard drive backplanes in a second preset power-on order to obtain the power-on time of each hard drive backplane.
2. The system according to claim 1, characterized in that, The second control module includes: a second processor and multiple second switches, wherein, The multiple second switches are configured one-to-one with the multiple hard drives deployed on the hard drive backplane corresponding to the second control module. The current input terminal of each second switch is connected to the power supply interface of the hard drive backplane, and the current output terminal of each second switch is connected to the power supply interface of the corresponding hard drive. The second processor is connected to the enable terminal of each second switch. The second processor is configured to, when the target hard disk backplane is powered on, sequentially send second control signals to a plurality of second switches corresponding to the plurality of hard disks in the first preset power-on sequence, wherein the second control signals are configured to control the second switches to connect the power supply link between the power supply interface of the corresponding target hard disk backplane and the power supply interface of the hard disk.
3. A method for controlling the boot of a server hard drive, characterized in that, Applied to the start-up control system according to any one of claims 1 to 2, the method comprises: The system acquires multiple backplane information corresponding to multiple hard disk backplanes, wherein the multiple backplane information is obtained by the backplane detection module in the boot control system detecting multiple hard disk backplanes connected to the server. The first control module includes: a first processor and multiple first switches, wherein the multiple first switches are configured one-to-one with the multiple hard disk backplanes, the current input terminal of each first switch is connected to the server power supply, the current output terminal of each first switch is connected to the power supply interface of the corresponding hard disk backplane, the signal input terminal of the first processor is connected to the backplane detection module, and the signal output terminal of the first processor is connected to the enable terminal of each first switch; the first processor is configured to send a first control signal sequentially to the multiple first switches corresponding to the multiple hard disk backplanes according to the power-on time, wherein the first control signal is configured to control each first switch to connect the power supply link between the power supply interface of the corresponding hard disk backplane and the server power supply; the backplane detection module includes: a first detection unit, wherein the first detection unit includes multiple pull-up resistors having a first number, the first terminal of each pull-up resistor being connected to a reference power supply, and the first processor... The signal input terminal is connected to the second terminal of the pull-up resistor; the backplane detection module further includes: a plurality of second detection units, wherein the plurality of second detection units are deployed one-to-one on the plurality of hard disk backplanes, and the plurality of second detection units correspond one-to-one with the plurality of first switches; the second detection unit includes a plurality of pull-down resistors having a second number, the first number being greater than or equal to the second number, and the connection relationship between each pull-up resistor and the ground terminal of the corresponding hard disk backplane includes one of the following: the second terminal of the pull-up resistor is connected to the ground terminal on the hard disk backplane through the pull-down resistor; the pull-up resistor is connected to the second terminal of the first switch; the second detection unit includes a plurality of pull-down resistors having a second number, the first number being greater than or equal to the second number, and the connection relationship between each pull-up resistor and the ground terminal of the corresponding hard disk backplane includes one of the following: the second terminal of the pull-up resistor is connected to the ground terminal on the hard disk backplane through the pull-down resistor; the second terminal of the pull-up resistor is connected to the second terminal of the first switch ... The second end of the pull-up resistor is directly connected to the ground terminal; when the second ends of multiple target pull-up resistors among the multiple pull-up resistors are connected to the ground terminal through the pull-down resistor, the multiple target pull-up resistors are connected to different pull-down resistors, and the connection relationship between the multiple pull-up resistors and the corresponding multiple ground terminals corresponds one-to-one with the backplane information of the multiple hard disk backplanes; the backplane detection module is also used to detect the backplane identifier of the hard disk backplane on which each of the second detection units is deployed through the first detection unit and multiple second detection units, wherein the backplane information includes the backplane identifier of the hard disk backplane; Based on the multiple backplane information, determine the number of hard drives deployed on each of the multiple hard disk backplanes; Based on the number of hard drives, determine the power-on time of each hard drive backplane; According to the power-on time, the multiple hard disk backplanes are controlled to be powered on sequentially. The second control module is used to control the multiple hard disks deployed on the target hard disk backplane to be powered on sequentially according to the first preset power-on order corresponding to the target hard disk backplane when the target hard disk backplane corresponding to the second control module is detected to be powered on. The step of determining the number of hard drives on each of the multiple hard drive backplanes based on the multiple backplane information includes: searching for the number of hard drives corresponding to the backplane identifier of each hard drive backplane from the backplane identifier and the number of hard drives with a corresponding relationship, and obtaining the number of hard drives deployed on each hard drive backplane. The step of determining the power-on time of each hard disk backplane based on the number of hard disks includes: calculating the product of the number of hard disks on each hard disk backplane and a preset hard disk boot time to obtain the power-on time of each hard disk backplane, wherein the hard disk boot time is used to indicate the boot time of each hard disk, and the preset hard disk boot time is determined based on the hard disk model of the hard disk to be booted; and sorting the power-on times of the multiple hard disk backplanes in a second preset power-on order to obtain the power-on time of each hard disk backplane.
4. A boot control device for a server hard drive, characterized in that, Applied to the start-up control system according to any one of claims 1 to 2, the device comprises: An acquisition module is used to acquire multiple backplane information corresponding to multiple hard disk backplanes, wherein the multiple backplane information is obtained by the backplane detection module in the boot control system detecting multiple hard disk backplanes connected to the server. The first control module includes: a first processor and multiple first switches, wherein the multiple first switches are configured one-to-one with the multiple hard disk backplanes, the current input terminal of each first switch is connected to the server power supply, the current output terminal of each first switch is connected to the power supply interface of the corresponding hard disk backplane, the signal input terminal of the first processor is connected to the backplane detection module, and the signal output terminal of the first processor is connected to the enable terminal of each first switch; the first processor is used to send a first control signal sequentially to the multiple first switches corresponding to the multiple hard disk backplanes according to the power-on time, wherein the first control signal is used to control each first switch to connect the power supply link between the power supply interface of the corresponding hard disk backplane and the server power supply; the backplane detection module includes: a first detection unit, wherein the first detection unit includes multiple pull-up resistors having a first number, the first terminal of each pull-up resistor being connected to a reference power supply, the first... The processor's signal input terminal is connected to the second terminal of the pull-up resistor; the backplane detection module further includes: a plurality of second detection units, wherein the plurality of second detection units are deployed one-to-one on the plurality of hard disk backplanes, and the plurality of second detection units correspond one-to-one with the plurality of first switches; the second detection unit includes a plurality of pull-down resistors having a second number, the first number being greater than or equal to the second number, and the connection relationship between each pull-up resistor and the ground terminal of the corresponding hard disk backplane includes one of the following: the second terminal of the pull-up resistor is connected to the ground terminal on the hard disk backplane through the pull-down resistor; The second end of the pull-up resistor is directly connected to the ground terminal; when the second ends of multiple target pull-up resistors among the multiple pull-up resistors are connected to the ground terminal through the pull-down resistor, the multiple target pull-up resistors are connected to different pull-down resistors, and the connection relationship between the multiple pull-up resistors and the corresponding multiple ground terminals corresponds one-to-one with the backplane information of the multiple hard disk backplanes; the backplane detection module is also used to detect the backplane identifier of the hard disk backplane on which each of the second detection units is deployed through the first detection unit and multiple second detection units, wherein the backplane information includes the backplane identifier of the hard disk backplane; The first determining module is used to determine the number of hard drives on each of the multiple hard drive backplanes deployed in the multiple hard drive backplanes based on the multiple backplane information. The second determining module is used to determine the power-on time of each hard disk backplane based on the number of hard disks; A control module is configured to control multiple hard disk backplanes to power on sequentially according to the power-on time. The second control module is configured to control multiple hard disks deployed on the target hard disk backplane to power on sequentially according to the first preset power-on order corresponding to the target hard disk backplane when the target hard disk backplane corresponding to the second control module is detected to be powered on. The first determining module is further configured to search for the number of hard drives corresponding to the backplane identifier of each hard drive backplane from the backplane identifier and the number of hard drives with corresponding relationship, so as to obtain the number of hard drives deployed on each hard drive backplane. The second determining module includes: a calculation unit, configured to calculate the product of the number of hard drives on each hard drive backplane and a preset hard drive boot time to obtain the power-on time of each hard drive backplane, wherein the hard drive boot time is used to indicate the boot time of each hard drive, and the preset hard drive boot time is determined according to the hard drive model of the hard drive to be booted; and a processing unit, configured to sort the power-on times of the multiple hard drive backplanes according to a second preset power-on order to obtain the power-on time of each hard drive backplane.
5. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements the steps of the method of claim 3.
6. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method of claim 3.
Citation Information
Patent Citations
Distinguishing structure and method for sharing of multiple same board cards
CN114138540A
Control circuit and method for starting up multiple hard disks with multiple backboards in sequence
CN1627411A