A power-on method and device for a server with a PCIe expansion board
By automating the server boot process before the PCIe expansion board is powered on, the problem of slow PCIe expansion board startup leading to undetectable issues has been resolved, achieving automated control and fault detection without manual intervention.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- INSPUR SUZHOU INTELLIGENT TECH CO LTD
- Filing Date
- 2023-07-21
- Publication Date
- 2026-07-07
AI Technical Summary
The PCIe expansion board starts up slowly before the server is powered on, causing the server operating system to be unable to detect the PCIe expansion board and device, thus affecting server functionality. The existing solution is to manually shut down and then power on the server, but this is time-consuming, labor-intensive, and increases labor costs.
By automatically controlling the server to boot after the PCIe expansion board is powered on, including disabling the server's local hardware boot action, detecting the PCIe expansion board status, and enabling the server's remote boot command after it is powered on, manual operation is avoided.
It achieves automated power-on control of PCIe expansion boards, avoiding the problem of servers not detecting PCIe devices, reducing manual operation, and enabling timely detection and repair of PCIe faults.
Smart Images

Figure CN116893922B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of server power-on technology, specifically relating to a method and apparatus for powering on a server with a PCIe expansion board. Background Technology
[0002] As a dedicated computer providing server functionality to clients in a network environment, a server is highly scalable and can connect to a large number of PCIe devices. However, due to the limited size of the server motherboard, the number of PCIe devices that can be connected to the motherboard is limited. To increase the number of PCIe devices that can be connected to the server motherboard, PCIe expansion cards are needed.
[0003] PCIe expansion boards have independent BMCs and power supplies compared to the server. When the power cable is plugged into the PCIe expansion board, its BMC will start first, and then the server will boot up. During the boot process, the PCIe expansion board and its connected PCIe devices will initialize. Once the PCIe devices have finished initializing, the server will then boot up, and the server operating system will detect the PCIe expansion board and its connected PCIe devices. However, if the server boots up first, the server operating system will not be able to detect the PCIe expansion board and its connected PCIe devices because the PCIe expansion board has not yet booted up. This will prevent the devices connected to the PCIe expansion board from functioning properly and affect the overall functionality of the server.
[0004] Generally, the requirement is to power on the PCIe expansion board first, followed by the server, or both the PCIe expansion board and the server should be powered on simultaneously. However, because the PCIe expansion board boots up slowly while the server boots up quickly, it often happens that the server powers on but the PCIe expansion board does not. In this case, the server operating system cannot detect the PCIe expansion board, causing the devices on the PCIe expansion board to malfunction. The current common solution is to manually power off and on, that is, to power off the server after the PCIe expansion board powers on. However, this method of powering on the server, waiting for the PCIe expansion board to power on, and then powering off and on again will affect the server's functionality to some extent, and it also requires manual operation. If there are a large number of servers, it will increase labor costs and be time-consuming and labor-intensive.
[0005] Therefore, in order to address the above-mentioned shortcomings, it is essential to provide a power-on method and device for a server with a PCIe expansion board. Summary of the Invention
[0006] To address the current issue of the PCIe expansion board booting up slower than the server itself, the current method involves manually shutting down and restarting the server after the PCIe expansion board is powered on. However, this method is time-consuming, labor-intensive, and increases manual costs due to the large number of servers. This invention provides a power-on method and apparatus for a server with a PCIe expansion board to solve the aforementioned technical problem.
[0007] In a first aspect, the present invention provides a method for powering on a server with a PCIe expansion board, comprising the following steps:
[0008] S1. After the server is powered on, change the original power-on configuration of the server, disable the server's power-on command, and disable the server's local hardware power-on action;
[0009] S2. Detect the power-on status of the PCIe expansion board, and after the PCIe expansion board is powered on, enable the server remote power-on command and allow the server local hardware power-on action.
[0010] Furthermore, the specific steps of step S1 are as follows:
[0011] S11. Power on the PCIe expansion card first, then power on the server, or power on the server and the PCIe expansion card simultaneously.
[0012] S12. After the server BMC starts up, obtain the power recovery policy in the BMC;
[0013] S13. Determine whether the power recovery strategy is the default automatic power-on after power-on;
[0014] If so, proceed to step S14;
[0015] If not, proceed to step S2;
[0016] S14. Block the power-on action in the server power recovery strategy, disable the server power-on command under BMC, and disable the server power-on button.
[0017] Furthermore, the specific steps of step S2 are as follows:
[0018] S21. Perform an in-situ status check on the PCIe expansion card, and perform a power-on status check on the PCIe expansion card when the PCIe expansion board is in place;
[0019] S22. When the PCIe expansion card is not in place or the PCIe expansion board is already powered on, stop the power-on action in the blocked server power recovery strategy, enable the server power-on command under BMC, and enable the server power-on button.
[0020] S23. When the PCIe expansion board is in place but not powered on, perform a power-on timeout check on the PCIe expansion board.
[0021] Furthermore, the specific steps of step S21 are as follows:
[0022] S211. The server's BMC determines whether the PCIe expansion board is in place by checking specific server registers on the server motherboard;
[0023] If so, proceed to step S212;
[0024] If not, proceed to step S22;
[0025] S212. The server's BMC accesses the PCIe expansion board's BMC via the IPMB bus to inquire whether the PCIe expansion board is powered on.
[0026] If so, proceed to step S22;
[0027] If not, proceed to step S23.
[0028] Furthermore, the specific steps of step S23 are as follows:
[0029] S231. Determine whether the power-on time of the PCIe expansion board exceeds the set time threshold;
[0030] If so, proceed to step S232;
[0031] If not, return to step S231;
[0032] S232. Record boot timeout logs for PCIe expansion boards.
[0033] Furthermore, the specific steps of step S12 are as follows:
[0034] S121. After the server BMC starts up, obtain all PCIe expansion boards connected to the server motherboard;
[0035] S122. Locate a PCIe expansion board;
[0036] S123. Determine whether the power cable of the PCIe expansion board is connected;
[0037] If so, proceed to step S125;
[0038] If not, proceed to step S124;
[0039] S124. Output a positioning PCIe expansion board power-off reminder, wait for user confirmation, and return to step S121;
[0040] S125. Determine if the PCIe expansion board has been positioned correctly;
[0041] If so, proceed to step S127;
[0042] If not, proceed to step S126;
[0043] S126. Locate the next PCIe expansion board and return to step S123;
[0044] S127. Query the power recovery policy in the server BMC interface.
[0045] Furthermore, the specific steps of step S14 are as follows:
[0046] S141. Access the hardware configuration options under the server BIOS via the server BMC;
[0047] S142. In the server BMC location hardware configuration options, set the power recovery policy to maintain the shutdown state after a power outage;
[0048] S143. The server BMC automatically disables the server startup command in the IPMI tool and blocks the external interface for starting the server via command.
[0049] S144. The server BMC locks the server's power button, blocking the hardware server power-on signal.
[0050] Furthermore, the specific steps of step S2 are as follows:
[0051] SS21. The server's BMC determines whether all PCIe expansion boards are present by reading values from specific registers predefined on the server motherboard.
[0052] If so, proceed to step SS23;
[0053] If not, proceed to step SS22;
[0054] SS22. The server's BMC record is not in place on the PCIe expansion board;
[0055] SS23. The server's BMC locates an in-situ PCIe expansion board;
[0056] SS24. The server's BMC accesses the location of the in-situ PCIe expansion board via the IPMB bus to check if it is powered on;
[0057] If not, proceed to step SS25;
[0058] If so, proceed to step S227;
[0059] SS25. The server's BMC determines whether the power-on time of the located in-situ PCIe expansion board exceeds a set threshold.
[0060] If so, proceed to step S226;
[0061] If not, return to step SS24;
[0062] SS26. Record the location of the in-situ PCIe expansion board to the boot timeout log;
[0063] SS27. Determine if the in-place PCIe expansion board has been properly positioned;
[0064] If so, proceed to step SS28;
[0065] If not, locate the next in-place PCIe expansion board and return to step SS24;
[0066] SS28. For each powered-on and in-place PCIe expansion board, sequentially stop the power-on action in the blocking server power recovery strategy, enable the server power-on command under BMC, and enable the server power-on button;
[0067] SS29. Outputs a boot timeout log, prompting you to check if there is a PCIe fault in the PCIe expansion board that is in place but has timed out during boot.
[0068] Secondly, the present invention provides a server power-on device with a PCIe expansion board, comprising:
[0069] The server power-on settings module is used to change the original power-on configuration of the server after it is powered on, disable the server's power-on command, and disable the server's local hardware power-on action.
[0070] The PCIe expansion board detection module is used to detect the power-on status of the PCIe expansion board, and after the PCIe expansion board is powered on, enable the server's remote power-on command and allow the server's local hardware power-on action.
[0071] Furthermore, the server startup settings module includes:
[0072] The power-on control unit is used to power on the PCIe expansion card first, then the server, or to power on both the server and the PCIe expansion card simultaneously.
[0073] The power recovery policy acquisition unit is used to acquire the power recovery policy in the BMC after the server BMC has started up.
[0074] The power recovery strategy determination unit is used to determine whether the power recovery strategy is the default automatic power-on after power-on;
[0075] The server power-on disable unit is used to block the power-on action in the server power recovery strategy, disable the server power-on command under BMC, and disable the server power-on button.
[0076] Furthermore, the PCIe expansion board detection module includes:
[0077] The PCIe expansion card presence and power-on status detection unit is used to detect the presence status of the PCIe expansion card and to detect the power-on status of the PCIe expansion card when the PCIe expansion board is in place.
[0078] The server power-on recovery unit is used to stop the power-on action in the blocking server power recovery strategy when the PCIe expansion card is not in place or the PCIe expansion board is already powered on, and to enable the server power-on command under BMC and enable the server power-on button.
[0079] The PCIe expansion board power-on timeout judgment unit is used to judge the power-on timeout of the PCIe expansion board when it is in place but not powered on.
[0080] Furthermore, the PCIe expansion card presence and power-on status detection unit includes:
[0081] The PCIe expansion board status reading subunit is used by the server's BMC to determine whether the PCIe expansion board is in place by checking specific server registers on the server motherboard.
[0082] The PCIe expansion board power-on status detection subunit is used to enable the server's BMC to access the PCIe expansion board's BMC via the IPMB bus when the PCIe expansion board is in place, and to inquire whether the PCIe expansion board has been powered on.
[0083] Furthermore, the PCIe expansion board power-on timeout determination unit includes:
[0084] The PCIe expansion board power-on time judgment subunit is used to determine whether the power-on time of the PCIe expansion board exceeds the set time threshold.
[0085] The power-on timeout log recording subunit is used to record a power-on timeout log for the PCIe expansion board when the power-on time exceeds a set time threshold.
[0086] Furthermore, the server power-on restriction unit includes:
[0087] The Server Hardware Configuration Options Entry Sub-unit is used to enable the Server BMC to access the hardware configuration options under the Server BIOS.
[0088] The power recovery policy setting subunit is used to enable the server BMC to locate the power recovery policy in the hardware configuration options and set the power recovery policy to maintain the shutdown state after a power outage.
[0089] The power-on command blocking subunit is used to enable the server BMC to automatically disable the server power-on command in the IPMI tool and block the external interface for powering on the server via command.
[0090] The hardware power-on signal shielding subunit is used to lock the server's power button using the server's BMC, thus shielding the hardware server power-on signal.
[0091] Furthermore, the PCIe expansion board detection module includes:
[0092] The PCIe expansion board presence status reading unit is used to enable the server's BMC to determine whether each PCIe expansion board is present by reading the values in a specific register predefined on the server motherboard.
[0093] The absent expansion board recording unit is used to record the absent PCIe expansion board in the server's BMC when an absent PCIe expansion board is present.
[0094] In-situ PCIe expansion board positioning unit, used to enable the server's BMC to locate an in-situ PCIe expansion board;
[0095] The PCIe expansion board power-on detection unit is used to enable the server's BMC to access the located in-situ PCIe expansion board via the IPMB bus to determine whether it has been powered on.
[0096] The power-on timeout judgment unit is used to determine whether the power-on time of the located PCIe expansion board exceeds the set threshold when the PCIe expansion board is not powered on.
[0097] The power-on timeout log recording unit is used to record the power-on timeout of the located PCIe expansion board to the power-on timeout log when the power-on time of the located PCIe expansion board exceeds a set threshold.
[0098] The in-situ PCIe expansion board positioning judgment unit is used to determine whether the in-situ PCIe expansion board has been positioned.
[0099] The next PCIe expansion board positioning unit is used to position the next in-place PCIe expansion board when there is an in-place PCIe expansion board that has not been positioned.
[0100] The server power-on activation unit is used to sequentially stop the power-on action in the blocking server power recovery strategy for each powered-on and in-place PCIe expansion board, enable the server power-on command under BMC, and enable the server power-on button.
[0101] The boot timeout log output unit is used to output boot timeout logs to remind users if there is a PCIe fault in the PCIe expansion board that is in place but has timed out during startup.
[0102] Thirdly, the present invention provides an apparatus including a processor and a memory;
[0103] The memory is used to store a computer program, and the processor is used to retrieve and run the computer program from the memory, causing the device to perform the method described in the first aspect above.
[0104] Fourthly, the present invention provides a storage medium.
[0105] The storage medium stores instructions that, when run on a computer, cause the computer to perform the method described in the first aspect above.
[0106] The beneficial effects of this invention are as follows:
[0107] The present invention provides a power-on method and apparatus for a server with a PCIe expansion board, which automates the server power-on control before the PCIe expansion board is powered on. This avoids the problem that the server cannot detect the PCIe expansion board and the devices on it due to the server being powered on first, thus avoiding the problem that the PCIe devices cannot function. It also avoids the need for manual power-on and power-off operations on the server. Furthermore, the power-on timeout log of the PCIe expansion board can be used to promptly detect PCIe faults and perform timely repairs.
[0108] Furthermore, the design principle of this invention is reliable, the structure is simple, and it has a very wide range of application prospects.
[0109] Therefore, it is evident that the present invention has outstanding substantive features and significant progress compared with the prior art, and the beneficial effects of its implementation are also obvious. Attached Figure Description
[0110] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0111] Figure 1 This is a schematic flowchart of Embodiment 1 of the power-on method for a server with a PCIe expansion board according to the present invention.
[0112] Figure 2 This is a schematic flowchart of Embodiment 2 of the power-on method for a server with a PCIe expansion board according to the present invention.
[0113] Figure 3 This is a schematic diagram of the PCIE expansion board detection process in Embodiment 3 of the power-on method for a server with a PCIe expansion board according to the present invention.
[0114] Figure 4 This is a schematic flowchart of Embodiment 4 of the power-on method for a server with a PCIe expansion board according to the present invention.
[0115] Figure 5 These are schematic diagrams of embodiments 5, 6, and 7 of the power-on device for a server with a PCIe expansion board according to the present invention.
[0116] Figure 6 This is a schematic diagram of embodiment 8 of the power-on device for a server with a PCIe expansion board according to the present invention. Detailed Implementation
[0117] To enable those skilled in the art to better understand the technical solutions of this invention, the technical solutions of the embodiments of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this invention, and not all embodiments. Based on the embodiments of this invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of this invention.
[0118] BMC is short for Baseboard Management Controller.
[0119] PCIe is short for Peripheral Component Interconnect Express, which enables rapid interconnection of peripheral components.
[0120] IPMB is short for Intelligent Platform Management Bus.
[0121] IPMI stands for Intelligent Platform Management Interface.
[0122] BIOS is short for Basic Input Output System.
[0123] Example 1:
[0124] To address the issue of PCIe expansion boards booting slower than the server itself, current methods involve manually shutting down and restarting the server after the PCIe expansion board has booted. However, due to the large number of servers, this method is time-consuming, labor-intensive, and increases manual costs. Figure 1 As shown, the present invention provides a power-on method for a server with a PCIe expansion board, comprising the following steps:
[0125] S1. After the server is powered on, change the original power-on configuration of the server, disable the server's power-on command, and disable the server's local hardware power-on action;
[0126] S2. Detect the power-on status of the PCIe expansion board, and after the PCIe expansion board is powered on, enable the server remote power-on command and allow the server local hardware power-on action.
[0127] The power-on method for a server with a PCIe expansion board provided by this invention automates the server power-on control before the PCIe expansion board is powered on. This avoids the problem of the server not being able to detect the PCIe expansion board and its devices due to the server being powered on first, thus preventing the PCIe devices from malfunctioning. It also avoids the need for manual power-on and power-off operations on the server. Furthermore, the PCIe expansion board's power-on timeout logs allow for timely detection and repair of PCIe faults.
[0128] Example 2:
[0129] To address the issue of PCIe expansion boards booting slower than the server itself, current solutions involve manually shutting down and restarting the server after the PCIe expansion board has booted. However, due to the large number of servers, this method is time-consuming, labor-intensive, and increases manual costs. Figure 2 As shown, the present invention provides a power-on method for a server with a PCIe expansion board, comprising the following steps:
[0130] S1. After the server is powered on, change the server's original power-on configuration to disable the server's power-on command and disable the server's local hardware power-on action; the specific steps of step S1 are as follows:
[0131] S11. Power on the PCIe expansion card first, then power on the server, or power on the server and the PCIe expansion card simultaneously.
[0132] S12. After the server BMC starts up, obtain the power recovery policy in the BMC;
[0133] S13. Determine whether the power recovery strategy is the default automatic power-on after power-on;
[0134] If so, proceed to step S14;
[0135] If not, proceed to step S2;
[0136] S14. Block the power-on action in the server power recovery strategy, disable the server power-on command under BMC, and disable the server power-on button;
[0137] S2. Detect the power-on status of the PCIe expansion board, and after the PCIe expansion board is powered on, enable the server remote power-on command and allow the server local hardware power-on action; the specific steps of step S2 are as follows:
[0138] S21. Perform an in-situ status check on the PCIe expansion card, and perform a power-on status check on the PCIe expansion card when the PCIe expansion board is in place;
[0139] S22. When the PCIe expansion card is not in place or the PCIe expansion board is already powered on, stop the power-on action in the blocked server power recovery strategy, enable the server power-on command under BMC, and enable the server power-on button.
[0140] S23. When the PCIe expansion board is in place but not powered on, perform a power-on timeout check on the PCIe expansion board.
[0141] Example 3:
[0142] To address the issue of PCIe expansion boards booting slower than the server itself, current solutions involve manually shutting down and restarting the server after the PCIe expansion board has booted. However, due to the large number of servers, this method is time-consuming, labor-intensive, and increases manual costs. Figure 2 As shown, the present invention provides a power-on method for a server with a PCIe expansion board, comprising the following steps:
[0143] S1. After the server is powered on, change the server's original power-on configuration to disable the server's power-on command and disable the server's local hardware power-on action; the specific steps of step S1 are as follows:
[0144] S11. Power on the PCIe expansion card first, then power on the server, or power on the server and the PCIe expansion card simultaneously.
[0145] S12. After the server BMC starts up, obtain the power recovery policy in the BMC;
[0146] S13. Determine whether the power recovery strategy is the default automatic power-on after power-on;
[0147] If so, proceed to step S14;
[0148] If not, proceed to step S2;
[0149] S14. Block the power-on action in the server power recovery strategy, disable the server power-on command under BMC, and disable the server power-on button;
[0150] S2. Detect the power-on status of the PCIe expansion board, and after the PCIe expansion board is powered on, enable the server remote power-on command and allow the server local hardware power-on action; the specific steps of step S2 are as follows:
[0151] S21. Perform an in-situ status check on the PCIe expansion card, and perform a power-on status check on the PCIe expansion card while the PCIe expansion board is in place; such as Figure 3 As shown, the specific steps of step S21 are as follows:
[0152] S211. The server's BMC determines whether the PCIe expansion board is in place by checking specific server registers on the server motherboard;
[0153] If so, proceed to step S212;
[0154] If not, proceed to step S22;
[0155] S212. The server's BMC accesses the PCIe expansion board's BMC via the IPMB bus to inquire whether the PCIe expansion board is powered on.
[0156] If so, proceed to step S22;
[0157] If not, proceed to step S23;
[0158] S22. When the PCIe expansion card is not in place or the PCIe expansion board is already powered on, stop the power-on action in the blocked server power recovery strategy, enable the server power-on command under BMC, and enable the server power-on button.
[0159] S23. When the PCIe expansion board is in place but not powered on, a power-on timeout check is performed on the PCIe expansion board; if... Figure 3 As shown, the specific steps of step S23 are as follows:
[0160] S231. Determine whether the power-on time of the PCIe expansion board exceeds the set time threshold;
[0161] If so, proceed to step S232;
[0162] If not, return to step S231;
[0163] S232. Record boot timeout logs for PCIe expansion boards.
[0164] Example 4:
[0165] To address the issue of PCIe expansion boards booting slower than the server itself, current methods involve manually shutting down and restarting the server after the PCIe expansion board has booted. However, due to the large number of servers, this method is time-consuming, labor-intensive, and increases manual costs. Figure 4As shown, the present invention provides a power-on method for a server with a PCIe expansion board, comprising the following steps:
[0166] S1. After the server is powered on, change the server's original power-on configuration to disable the server's power-on command and disable the server's local hardware power-on action; the specific steps of step S1 are as follows:
[0167] S11. Power on the PCIe expansion card first, then power on the server, or power on the server and the PCIe expansion card simultaneously.
[0168] S12. After the server BMC starts up, obtain the power recovery policy in the BMC;
[0169] S13. Determine whether the power recovery strategy is the default automatic power-on after power-on;
[0170] If so, proceed to step S14;
[0171] If not, proceed to step S2;
[0172] S14. Block the power-on action in the server power recovery strategy, disable the server power-on command under BMC, and disable the server power-on button; the specific steps of step S14 are as follows:
[0173] S141. Access the hardware configuration options under the server BIOS via the server BMC;
[0174] S142. In the server BMC location hardware configuration options, set the power recovery policy to maintain the shutdown state after a power outage;
[0175] S143. The server BMC automatically disables the server startup command in the IPMI tool and blocks the external interface for starting the server via command.
[0176] S144. The server BMC locks the server's power button, blocking the hardware server power-on signal;
[0177] S2. Detect the power-on status of the PCIe expansion board, and after the PCIe expansion board is powered on, enable the server remote power-on command and allow the server local hardware power-on action; the specific steps of step S2 are as follows:
[0178] SS21. The server's BMC determines whether all PCIe expansion boards are present by reading values from specific registers predefined on the server motherboard.
[0179] If so, proceed to step SS23;
[0180] If not, proceed to step SS22;
[0181] SS22. The server's BMC record is not in place on the PCIe expansion board;
[0182] SS23. The server's BMC locates an in-situ PCIe expansion board;
[0183] SS24. The server's BMC accesses the location of the in-situ PCIe expansion board via the IPMB bus to check if it is powered on;
[0184] If not, proceed to step SS25;
[0185] If so, proceed to step S227;
[0186] SS25. The server's BMC determines whether the power-on time of the located in-situ PCIe expansion board exceeds a set threshold.
[0187] If so, proceed to step S226;
[0188] If not, return to step SS24;
[0189] SS26. Record the location of the in-situ PCIe expansion board to the boot timeout log;
[0190] SS27. Determine if the in-place PCIe expansion board has been properly positioned;
[0191] If so, proceed to step SS28;
[0192] If not, locate the next in-place PCIe expansion board and return to step SS24;
[0193] SS28. For each powered-on and in-place PCIe expansion board, sequentially stop the power-on action in the blocking server power recovery strategy, enable the server power-on command under BMC, and enable the server power-on button;
[0194] SS29. Outputs a boot timeout log, prompting you to check if there is a PCIe fault in the PCIe expansion board that is in place but has timed out during boot.
[0195] Example 5:
[0196] To address the issue of PCIe expansion boards booting slower than the server itself, current methods involve manually shutting down and restarting the server after the PCIe expansion board has booted. However, due to the large number of servers, this method is time-consuming, labor-intensive, and increases manual costs. Figure 5 As shown, the present invention provides a server power-on device with a PCIe expansion board, comprising:
[0197] The server power-on settings module is used to change the original power-on configuration of the server after it is powered on, disable the server's power-on command, and disable the server's local hardware power-on action.
[0198] The PCIe expansion board detection module is used to detect the power-on status of the PCIe expansion board, and after the PCIe expansion board is powered on, enable the server's remote power-on command and allow the server's local hardware power-on action.
[0199] The power-on device for a server with a PCIe expansion board provided by this invention automatically controls the server's power-on before the PCIe expansion board is powered on. This avoids the problem of the server not being able to detect the PCIe expansion board and its devices due to the server being powered on first, thus preventing the PCIe devices from malfunctioning. It also eliminates the need for manual power-on and power-off operations on the server. Furthermore, the power-on timeout log of the PCIe expansion board allows for timely detection of PCIe faults and prompt repairs.
[0200] Example 6:
[0201] To address the issue of PCIe expansion boards booting slower than the server itself, current methods involve manually shutting down and restarting the server after the PCIe expansion board has booted. However, due to the large number of servers, this method is time-consuming, labor-intensive, and increases manual costs. Figure 5 As shown, the present invention provides a server power-on device with a PCIe expansion board, comprising:
[0202] The server power-on configuration module is used to modify the server's original power-on configuration after the server is powered on, disabling the server's power-on command and disabling the server's local hardware power-on action. The server power-on configuration module includes:
[0203] The power-on control unit is used to power on the PCIe expansion card first, then the server, or to power on both the server and the PCIe expansion card simultaneously.
[0204] The power recovery policy acquisition unit is used to acquire the power recovery policy in the BMC after the server BMC has started up.
[0205] The power recovery strategy determination unit is used to determine whether the power recovery strategy is the default automatic power-on after power-on;
[0206] The server power-on disable unit is used to block the power-on action in the server power recovery strategy, disable the server power-on command under BMC, and disable the server power-on button.
[0207] The PCIe expansion board detection module is used to detect the power-on status of the PCIe expansion board, and after the PCIe expansion board is powered on, enable the server's remote power-on command and allow the server's local hardware power-on action; the PCIe expansion board detection module includes:
[0208] The PCIe expansion card presence and power-on status detection unit is used to detect the presence status of the PCIe expansion card and to detect the power-on status of the PCIe expansion card when the PCIe expansion board is in place.
[0209] The server power-on recovery unit is used to stop the power-on action in the blocking server power recovery strategy when the PCIe expansion card is not in place or the PCIe expansion board is already powered on, and to enable the server power-on command under BMC and enable the server power-on button.
[0210] The PCIe expansion board power-on timeout judgment unit is used to judge the power-on timeout of the PCIe expansion board when it is in place but not powered on.
[0211] Example 7:
[0212] To address the issue of PCIe expansion boards booting slower than the server itself, current methods involve manually shutting down and restarting the server after the PCIe expansion board has booted. However, due to the large number of servers, this method is time-consuming, labor-intensive, and increases manual costs. Figure 5 As shown, the present invention provides a server power-on device with a PCIe expansion board, comprising:
[0213] The server power-on configuration module is used to modify the server's original power-on configuration after the server is powered on, disabling the server's power-on command and disabling the server's local hardware power-on action. The server power-on configuration module includes:
[0214] The power-on control unit is used to power on the PCIe expansion card first, then the server, or to power on both the server and the PCIe expansion card simultaneously.
[0215] The power recovery policy acquisition unit is used to acquire the power recovery policy in the BMC after the server BMC has started up.
[0216] The power recovery strategy determination unit is used to determine whether the power recovery strategy is the default automatic power-on after power-on;
[0217] The server power-on disable unit is used to block the power-on action in the server power recovery strategy, disable the server power-on command under BMC, and disable the server power-on button.
[0218] The PCIe expansion board detection module is used to detect the power-on status of the PCIe expansion board, and after the PCIe expansion board is powered on, enable the server's remote power-on command and allow the server's local hardware power-on action; the PCIe expansion board detection module includes:
[0219] The PCIe expansion card presence and power-on status detection unit is used to detect the presence status of the PCIe expansion card and, when the PCIe expansion board is in place, to detect the power-on status of the PCIe expansion card. The PCIe expansion card presence and power-on status detection unit includes:
[0220] The PCIe expansion board status reading subunit is used by the server's BMC to determine whether the PCIe expansion board is in place by checking specific server registers on the server motherboard.
[0221] The PCIe expansion board power-on status detection subunit is used to enable the server's BMC to access the PCIe expansion board's BMC via the IPMB bus when the PCIe expansion board is in place, and to inquire whether the PCIe expansion board has been powered on.
[0222] The server power-on recovery unit is used to stop the power-on action in the blocking server power recovery strategy when the PCIe expansion card is not in place or the PCIe expansion board is already powered on, and to enable the server power-on command under BMC and enable the server power-on button.
[0223] The PCIe expansion board power-on timeout determination unit is used to determine the power-on timeout of the PCIe expansion board when it is in place but not powered on. The PCIe expansion board power-on timeout determination unit includes:
[0224] The PCIe expansion board power-on time judgment subunit is used to determine whether the power-on time of the PCIe expansion board exceeds the set time threshold.
[0225] The power-on timeout log recording subunit is used to record a power-on timeout log for the PCIe expansion board when the power-on time exceeds a set time threshold.
[0226] Example 8:
[0227] To address the issue of PCIe expansion boards booting slower than the server itself, current methods involve manually shutting down and restarting the server after the PCIe expansion board has booted. However, due to the large number of servers, this method is time-consuming, labor-intensive, and increases manual costs. Figure 6 As shown, the present invention provides a server power-on device with a PCIe expansion board, comprising:
[0228] The server power-on configuration module is used to modify the server's original power-on configuration after the server is powered on, disabling the server's power-on command and disabling the server's local hardware power-on action. The server power-on configuration module includes:
[0229] The power-on control unit is used to power on the PCIe expansion card first, then the server, or to power on both the server and the PCIe expansion card simultaneously.
[0230] The power recovery policy acquisition unit is used to acquire the power recovery policy in the BMC after the server BMC has started up.
[0231] The power recovery strategy determination unit is used to determine whether the power recovery strategy is the default automatic power-on after power-on;
[0232] The server power-on disable unit is used to block the power-on action in the server power recovery strategy, disable the server power-on command under BMC, and disable the server power-on button; the server power-on disable unit includes:
[0233] The Server Hardware Configuration Options Entry Sub-unit is used to enable the Server BMC to access the hardware configuration options under the Server BIOS.
[0234] The power recovery policy setting subunit is used to enable the server BMC to locate the power recovery policy in the hardware configuration options and set the power recovery policy to maintain the shutdown state after a power outage.
[0235] The power-on command blocking subunit is used to enable the server BMC to automatically disable the server power-on command in the IPMI tool and block the external interface for powering on the server via command.
[0236] The hardware power-on signal shielding subunit is used to lock the server's power button using the server's BMC, thus shielding the hardware server power-on signal.
[0237] The PCIe expansion board detection module is used to detect the power-on status of the PCIe expansion board, and after the PCIe expansion board is powered on, enable the server's remote power-on command and allow the server's local hardware power-on action; the PCIe expansion board detection module includes:
[0238] The PCIe expansion board presence status reading unit is used to enable the server's BMC to determine whether each PCIe expansion board is present by reading the values in a specific register predefined on the server motherboard.
[0239] The absent expansion board recording unit is used to record the absent PCIe expansion board in the server's BMC when an absent PCIe expansion board is present.
[0240] In-situ PCIe expansion board positioning unit, used to enable the server's BMC to locate an in-situ PCIe expansion board;
[0241] The PCIe expansion board power-on detection unit is used to enable the server's BMC to access the located in-situ PCIe expansion board via the IPMB bus to determine whether it has been powered on.
[0242] The power-on timeout judgment unit is used to determine whether the power-on time of the located PCIe expansion board exceeds the set threshold when the PCIe expansion board is not powered on.
[0243] The power-on timeout log recording unit is used to record the power-on timeout of the located PCIe expansion board to the power-on timeout log when the power-on time of the located PCIe expansion board exceeds a set threshold.
[0244] The in-situ PCIe expansion board positioning judgment unit is used to determine whether the in-situ PCIe expansion board has been positioned.
[0245] The next PCIe expansion board positioning unit is used to position the next in-place PCIe expansion board when there is an in-place PCIe expansion board that has not been positioned.
[0246] The server power-on activation unit is used to sequentially stop the power-on action in the blocking server power recovery strategy for each powered-on and in-place PCIe expansion board, enable the server power-on command under BMC, and enable the server power-on button.
[0247] The boot timeout log output unit is used to output boot timeout logs to remind users if there is a PCIe fault in the PCIe expansion board that is in place but has timed out during startup.
[0248] Example 9:
[0249] To address the current issue of PCIe expansion boards booting up slower than the server itself, the current method involves manually shutting down and restarting the server after the PCIe expansion board is powered on. However, due to the large number of servers, this method is time-consuming, labor-intensive, and increases manual costs. This invention provides a device comprising a processor and a memory.
[0250] The memory is used to store computer programs, and the processor is used to call and run the computer programs from the memory, so that the device performs the methods described in Embodiment 1, Embodiment 2, Embodiment 3 or Embodiment 4.
[0251] Example 10:
[0252] This invention provides a storage medium,
[0253] The storage medium stores instructions that, when run on a computer, cause the computer to execute the methods described in Embodiments 1, 2, 3, or 4 above.
[0254] Although the present invention has been described in detail with reference to the accompanying drawings and preferred embodiments, the invention is not limited thereto. Various equivalent modifications or substitutions can be made to the embodiments of the invention by those skilled in the art without departing from the spirit and essence of the invention, and such modifications or substitutions should all be within the scope of the invention. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the invention should also be covered within the protection scope of the invention. Therefore, the protection scope of the invention should be determined by the scope of the claims.
Claims
1. A method for powering on a server with a PCIe expansion board, characterized in that, Includes the following steps: S1. After the server is powered on, change the original power-on configuration of the server, disable the server's power-on command, and disable the server's local hardware power-on action; The specific steps of step S1 are as follows: S11. Power on the peripheral component quick interconnect expansion board first, then power on the server, or power on the server and the peripheral component quick interconnect expansion board simultaneously. S12. After the server baseboard management controller starts up, obtain the power recovery strategy from the baseboard management controller; S13. Determine whether the power recovery strategy is the default automatic power-on after power-on; If so, proceed to step S14; If not, proceed to step S2; S14. Block the power-on action in the server power recovery strategy, disable the server power-on command under the baseboard management controller, and disable the server power-on button; S2. Detect the power-on status of the peripheral component fast interconnect expansion board, and enable the server remote power-on command and allow the server local hardware power-on action after the peripheral component fast interconnect expansion board is powered on; The specific steps of step S2 are as follows: S21. Perform presence status detection on the peripheral component fast interconnect expansion card, and perform power-on status detection on the peripheral component fast interconnect expansion card when the peripheral component fast interconnect expansion board is in place; S22. When the peripheral component fast interconnect expansion card is not in place or the peripheral component fast interconnect expansion board is already powered on, stop the power-on action in the blocking server power recovery strategy, enable the server power-on command under the baseboard management controller, and enable the server power-on button. S23. When the peripheral component fast interconnect expansion board is in place but not powered on, perform a power-on timeout judgment on the peripheral component fast interconnect expansion board.
2. The power-on method for a server with a PCIe expansion board as described in claim 1, characterized in that, The specific steps of step S21 are as follows: S211. The server's baseboard management controller determines whether the peripheral component Fast Interconnect Expansion Board is in place by checking specific server registers on the server motherboard; If so, proceed to step S212; If not, proceed to step S22; S212. The server's baseboard management controller accesses the baseboard management controller of the peripheral component fast interconnect expansion board through the intelligent platform management bus to inquire whether the peripheral component fast interconnect expansion board is powered on. If so, proceed to step S22; If not, proceed to step S23.
3. The power-on method for a server with a PCIe expansion board as described in claim 1, characterized in that, The specific steps of step S23 are as follows: S231. Determine whether the power-on time of the peripheral component fast interconnect expansion board exceeds the set time threshold; If so, proceed to step S232; If not, return to step S231; S232. Record power-on timeout logs for the peripheral component rapid interconnect expansion board.
4. The power-on method for a server with a PCIe expansion board as described in claim 1, characterized in that, The specific steps of step S12 are as follows: S121. After the server baseboard management controller starts up, it obtains all peripheral component quick interconnect expansion boards connected to the server motherboard; S122. Locate a peripheral component quick interconnect expansion board; S123. Determine whether the power cord of the positioning peripheral component quick interconnect expansion board is connected; If so, proceed to step S125; If not, proceed to step S124; S124. Output a reminder that the positioning peripheral component quick interconnect expansion board is not powered on. After waiting for user confirmation, return to step S121. S125. Determine whether the peripheral component quick interconnect expansion board has been positioned; If so, proceed to step S127; If not, proceed to step S126; S126. Locate the next peripheral component quick interconnect expansion board, and return to step S123; S127. Query the power recovery policy in the server board management controller interface.
5. The power-on method for a server with a PCIe expansion board as described in claim 1, characterized in that, The specific steps of step S14 are as follows: S141. Server baseboard management controller accesses hardware configuration options under the server basic input / output system; S142. The server baseboard management controller locates the power recovery policy in the hardware configuration options and sets the power recovery policy to maintain the shutdown state after a power interruption. S143. The server baseboard management controller automatically disables the server power-on command in the intelligent platform management interface tool and blocks the external interface for powering on the server via command. S144. The server baseboard management controller locks the server's power button, blocking the hardware server power-on signal.
6. The power-on method for a server with a PCIe expansion board as described in claim 4, characterized in that, The specific steps of step S2 are as follows: SS21. The server's baseboard management controller determines whether all peripheral component fast interconnect expansion boards are in place by reading values from specific registers predefined on the server motherboard. If so, proceed to step SS23; If not, proceed to step SS22; SS22. The server's baseboard management controller records out-of-place peripheral components and rapid interconnect expansion boards; SS23. The server's baseboard management controller locates an in-situ peripheral component rapid interconnect expansion board; SS24. The server's baseboard management controller accesses the location of the in-situ peripheral component quick interconnect expansion board via the intelligent platform management bus to check whether it is powered on; If not, proceed to step SS25; If so, proceed to step S227; SS25. The server's baseboard management controller determines whether the power-on time of the located in-situ peripheral component rapid interconnect expansion board exceeds a set threshold; If so, proceed to step S226; If not, return to step SS24; SS26. Record the location of the in-situ peripheral component quick interconnect expansion board to the boot timeout log; SS27. Determine if the in-place peripheral component quick interconnect expansion board has been positioned correctly; If so, proceed to step SS28; If not, locate the next in-place peripheral component quick interconnect expansion board and return to step SS24; SS28. For each peripheral component fast interconnect expansion board that is already powered on and in place, sequentially stop the power-on action in the blocking server power recovery strategy, enable the server power-on command under the baseboard management controller, and enable the server power-on button; SS29. Outputs a boot timeout log, prompting the user to check if there is a fast interconnect fault in the peripheral component fast interconnect expansion board that is present but has timed out during startup.
7. A power-on device for a server with a PCIe expansion board, comprising the method described in any one of claims 1-6, characterized in that, include: The server power-on settings module is used to change the original power-on configuration of the server after it is powered on, disable the server's power-on command, and disable the server's local hardware power-on action. The PCIe expansion board detection module is used to detect the power-on status of the peripheral component fast interconnect expansion board, and after the peripheral component fast interconnect expansion board is powered on, enable the server remote power-on command and allow the server local hardware power-on action.
8. A storage medium, characterized in that, The storage medium stores instructions that, when run on a computer, cause the computer to perform the method described in any one of claims 1-6.