Server and server cold restart method, device and electronic equipment
By coordinating the design of the main power supply module and the auxiliary power supply module, and combining BIOS backup and control circuit management, the problem of low efficiency in server cold restarts is solved, and a fast and stable cold restart process is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- INSPUR SUZHOU INTELLIGENT TECH CO LTD
- Filing Date
- 2025-10-29
- Publication Date
- 2026-07-21
AI Technical Summary
The existing server cold restart process is inefficient, resulting in prolonged downtime and resource consumption, which affects business continuity and user experience.
By combining a main power supply module and an auxiliary power supply module, the auxiliary power supply module provides uninterrupted power to the first device during a server cold restart, avoiding power outages and initialization. This is combined with the BIOS backup mechanism and control circuit to manage reset signals.
It significantly reduces the total startup time of cold restarts, making cold restarts nearly as efficient as warm restarts, and improving the server's operating speed and stability.
Smart Images

Figure CN121029261B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of server technology, and in particular to a server and a method, apparatus and electronic device for cold restarting a server. Background Technology
[0002] In the field of server operation and maintenance, cold reboot is a key means of system recovery and troubleshooting. The process involves a complete power outage and restart of the central processing unit and other critical components to ensure a thorough system refresh and initialization. However, the efficiency of this process has always been a major concern.
[0003] Servers in data centers, cloud computing, and other scenarios carry core business operations, making rapid response and efficient operation crucial. Especially in situations requiring frequent system maintenance or fault recovery, prolonged cold restarts undoubtedly increase downtime, directly impacting business continuity and user experience.
[0004] Currently, cold reboot mechanisms in the industry suffer from significant efficiency bottlenecks. When a server performs a cold reboot, all components, including the CPU, memory, and other peripherals, need to go through the entire process from power failure to reinitialization. This process is not only time-consuming, but also consumes a lot of resources during reinitialization and firmware loading, resulting in a significant increase in startup time. Summary of the Invention
[0005] This application provides a server and a method, apparatus, and electronic device for cold restarting a server, in order to at least solve the technical problem of low efficiency in server cold restarting in related technologies.
[0006] This application provides a server, including: a central processing unit, a main power supply module, an auxiliary power supply module, and a first device, wherein the main power supply module is used to provide operating voltage to the central processing unit and the first device when the server is running, and the auxiliary power supply module is used to provide operating voltage to the first device when the server is triggered to restart.
[0007] This application provides a cold restart method for a server, comprising: when a cold restart signal is detected, powering off and then powering on the main power supply module of the server; when the server meets a preset state, controlling the auxiliary power supply module to maintain the first device of the server in an operating state; and if the main power supply module is in a stable power supply state, performing a cold restart on the second device in the server.
[0008] This application provides a cold restart method for a server, comprising: upon detecting a cold restart signal, powering off and then powering on the server's power supply module; and, when in a stable power supply state, controlling the central processing unit (CPU) in the server to enter a reset state and starting the basic input / output system (PIS) from a target address; controlling the PIS to send a reset signal to a first device in the server and controlling the first device to perform initialization operations based on the reset signal; and, after the first device completes its operation, controlling the PIS to load the firmware of the first device to complete the cold restart.
[0009] This application provides a cold restart device for a server, comprising: a first control unit, configured to power off and power on the main power supply module of the server when a cold restart signal is detected; a second control unit, configured to control an auxiliary power supply module to maintain a first device of the server in an operating state when the server meets a preset state; and a first execution unit, configured to perform a cold restart on a second device in the server if the main power supply module is in a stable power supply state.
[0010] This application provides a cold restart device for a server, comprising: a fifth control unit, configured to, upon detecting a cold restart signal, power off and power on the server's power supply module, and, when in a stable power supply state, control the central processing unit in the server to enter a reset state and start the basic input / output system from a target address; a sixth control unit, configured to control the basic input / output system to send a reset signal to a first device in the server and control the first device to perform initialization operations based on the reset signal; and a seventh control unit, configured to, after the first device completes its operation, control the basic input / output system to load the firmware of the first device to complete the cold restart.
[0011] This application also provides an electronic device, including: a memory for storing a computer program; and a processor for executing the computer program to implement the steps of any of the above-described server cold restart methods.
[0012] This application also provides a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, it implements the steps of any of the above-described cold restart methods for servers.
[0013] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of any of the above-described server cold restart methods.
[0014] By employing a combination of a main power supply module and an auxiliary power supply module, this application allows the auxiliary power supply module to provide power to the first device when the server is triggered to cold restart, thus avoiding the power outage cold restart process of the first device. Therefore, it solves the technical problem of low efficiency in server cold restart in related technologies. In this solution, the hardware circuit design ensures that the power supply to the first device will not be interrupted even when the central processing unit performs a cold restart, avoiding the device reset and initialization process, significantly reducing the total startup time of the cold restart, and enabling the cold restart to approach or even reach the efficiency of a warm restart, thereby achieving the technical effect of improving the efficiency of server cold restart. Attached Figure Description
[0015] To more clearly illustrate the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0016] Figure 1 This is a schematic diagram of a server provided according to an embodiment of this application. Figure 1 ;
[0017] Figure 2 This is a schematic diagram of a server provided according to an embodiment of this application. Figure 2 ;
[0018] Figure 3 This is a schematic diagram of a server provided according to an embodiment of this application. Figure 3 ;
[0019] Figure 4 This is a schematic diagram of a server provided according to an embodiment of this application. Figure 4 ;
[0020] Figure 5 This is a flowchart of a server cold restart method provided in the embodiments of this application. Figure 1 ;
[0021] Figure 6 This is a flowchart of a server cold restart method provided in the embodiments of this application. Figure 2 ;
[0022] Figure 7 This is a schematic diagram of a server cold restart method provided in the embodiments of this application. Figure 1 ;
[0023] Figure 8 This is a schematic diagram of a server cold restart method provided according to an embodiment of this application. Figure 2 ;
[0024] Figure 9 This is a schematic diagram of a server cold restart device provided according to an embodiment of this application. Figure 1 ;
[0025] Figure 10 This is a schematic diagram of a server cold restart device provided according to an embodiment of this application. Figure 2 . Detailed Implementation
[0026] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the protection scope of this application.
[0027] It should be noted that, in the description of this application, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. The terms "first," "second," etc., in this application are used to distinguish similar objects and are not used to describe a specific order or sequence.
[0028] To enable those skilled in the art to better understand the present application, the present application will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0029] Embodiments of this application provide a server, and the server will be described in detail in conjunction with its combined components.
[0030] This embodiment provides a server. Figure 1 This is a schematic diagram of a server provided according to an embodiment of this application. Figure 1 ,like Figure 1 As shown, the server includes:
[0031] The system comprises a central processing unit, a main power supply module, an auxiliary power supply module, and a first device. The main power supply module provides operating voltage to the central processing unit and the first device when the server is running, and the auxiliary power supply module provides operating voltage to the first device when the server is triggered to restart.
[0032] In an alternative embodiment, such as Figure 1As shown, the server includes a Central Processing Unit (CPU), a main power supply module, an auxiliary power supply module, and a first device, which can be a peripheral device such as memory or a network controller. The main power supply module, connected to the CPU and the first device, provides a stable operating voltage to the CPU and other first devices (such as memory and network controller) during normal server operation. During server startup, operation, and hot restart, the main power supply module continuously supplies power to ensure all components function properly.
[0033] The auxiliary power supply module is an additionally designed power supply system configured to provide uninterrupted power to peripheral devices (i.e., the first device mentioned above) during a server cold restart. The auxiliary power supply module is connected to the first device to ensure that the power supply to peripheral devices is unaffected during the CPU's power-off and reinitialization process via the cold restart signal.
[0034] In an optional embodiment, when the server receives a cold restart command, the main power supply module disconnects power to the CPU to perform a cold restart process. Simultaneously, the auxiliary power supply module starts working, continuously supplying power to peripheral devices, thus avoiding the initialization process of power outages and re-energization for the peripheral devices.
[0035] By working in tandem with the main power supply module and the auxiliary power supply module, the server can retain the operating state of the primary device during a cold restart, avoiding the time-consuming process of powering down and reinitializing the entire system. This not only speeds up the cold restart process but also maintains system stability and data integrity, which is particularly beneficial for server maintenance scenarios that require frequent cold restarts.
[0036] Optionally, in the server provided in this application embodiment, the auxiliary power supply module includes an energy storage battery and a voltage converter, wherein the energy storage battery is used to provide power to the first device, and the voltage converter is used to convert the output voltage of the energy storage battery into the operating voltage required by the first device.
[0037] In an optional embodiment, the auxiliary power supply module is as follows: Figure 2 As shown, it consists of an energy storage battery and a voltage converter. Its function is to ensure that the first device can continuously obtain a stable operating voltage during the server cold restart process, thereby avoiding the initialization process caused by power failure and improving the efficiency of cold restart.
[0038] As the core of the auxiliary power supply module, the energy storage battery provides temporary power to the primary device when the server's main power supply is interrupted. Unlike the main power supply module, the energy storage battery can provide sufficient power for a short period, allowing the primary device to remain operational during a CPU cold restart. It should be noted that the energy storage battery can be various types of energy storage devices, such as lithium-ion batteries and supercapacitors.
[0039] The voltage converter is located between the energy storage battery and the first device, and is used to regulate the voltage output by the energy storage battery to meet the operating voltage requirements of the first device. It should be noted that the voltage converter uses DC / DC conversion and can be a boost, buck, or buck-boost converter; the appropriate type can be selected for voltage adjustment based on actual needs.
[0040] In an optional embodiment, during server operation, the main power supply module is in operation, while the auxiliary power supply module (including an energy storage battery and a voltage converter) is in standby mode and does not participate in power supply. When the server performs a cold restart, the main power supply module disconnects power to the CPU, and simultaneously, the auxiliary power supply module begins to operate: the energy storage battery releases previously stored electrical energy, and the voltage converter controls the output voltage of the energy storage battery, adjusting it to a voltage level suitable for the operation of the first device. Even during the CPU cold restart process, the first device can still obtain a stable operating voltage from the auxiliary power supply module, avoiding unnecessary initialization and firmware reload, thereby improving the efficiency of the cold restart.
[0041] Optionally, in the server provided in this application embodiment, the main power supply module is connected to the auxiliary power supply module so as to charge the energy storage battery in the auxiliary power supply module through the main power supply module.
[0042] In an optional embodiment, during normal server operation, the main power supply module not only powers all server components but also charges the energy storage battery in the auxiliary power supply module via connecting lines. This process ensures that the energy storage battery has sufficient charge when needed, enabling it to immediately take over power supply tasks in the event of a main power outage.
[0043] Optionally, in the server provided in the embodiments of this application, the server further includes a basic input / output system and a first control circuit, wherein the basic input / output system is configured to shield the reset signal used for initializing the first device during a cold restart, and the first control circuit is used to maintain the reset signal of the first device at a preset level.
[0044] In an alternative embodiment, such as Figure 3As shown, the server also includes a Basic Input / Output System (BIOS) and a first control circuit. The BIOS is configured to recognize cold restart commands and take measures to prevent reset signals from the first device (such as storage, network controller, etc.) from being triggered, i.e., to mask the reset signals used for initializing the first device.
[0045] The first control circuit is directly connected to the first device and is responsible for monitoring and controlling the reset signal of the first device. During a cold restart, the first control circuit keeps the reset signal of the first device at a preset level, i.e., inactive. For example, if activating the reset signal requires a high level, the control circuit keeps it at a low level; conversely, if activating the reset signal requires a low level, the control circuit keeps it at a high level.
[0046] In an optional embodiment, the first control circuit can be a simple 5V power supply. If the activation reset signal requires a low level, it is directly output to the reset signal of the first device; if the activation reset signal requires a high level, it is grounded before being output to the reset signal of the first device. Using a 5V power supply to directly control the reset signal level is a relatively intuitive design, reduces many intermediate steps, lowers costs, and improves system reliability.
[0047] In an optional embodiment, when the server receives a cold restart command, the first control circuit activates, maintaining the reset signals of all connected first devices at a level that will not trigger a reset. This ensures that even if the CPU and main power supply module undergo a restart, the first devices will not be reset. After the cold restart, the BIOS quickly restores the previously saved state of the first devices, including loading firmware and configuration parameters, and the first devices immediately resume normal operation, thus significantly shortening the cold restart boot time.
[0048] Optionally, in the server provided in the embodiments of this application, the server further includes a basic input / output system, wherein the basic input / output system is configured to back up the target option parameters in the basic input / output system and the register data in the server to the server's non-volatile storage medium when a cold restart signal is detected.
[0049] In an optional embodiment, upon detection of a cold restart signal, the target option parameters in the BIOS and critical register data within the server can be automatically backed up and saved to the server's non-volatile storage medium.
[0050] Target option parameters can be key parameters defined in the BIOS settings that govern system behavior and peripheral configuration, including but not limited to boot order settings, peripheral device identification and configuration, power management policies, and performance optimization options. During a cold reboot, the BIOS detects this signal and initiates a backup process, completely copying the current target option parameters to the server's non-volatile storage media.
[0051] The register data in the server contains state information about the CPU and other critical chips during operation, including but not limited to the values of control registers, status registers, and configuration registers. During a cold reboot, the BIOS also captures this event, automatically taking a snapshot of the current register data and storing it on non-volatile storage. This is to ensure that after a cold reboot, the server can quickly restore to its previous operating state without having to load and configure register states from scratch.
[0052] By backing up the target option parameters in the BIOS and the register data in the server to non-volatile storage media, the server can quickly restore to its previous operating state after a restart, avoiding a lengthy initialization process and improving boot speed.
[0053] Optionally, in the server provided in the embodiments of this application, the basic input / output system is further configured to read backup data from a non-volatile storage medium to restore the server to a target state.
[0054] In an alternative embodiment, upon reboot, the BIOS initiates its recovery logic, which includes reading target option parameters and register data stored in non-volatile storage media and then applying this data to the hardware configuration of the BIOS and the server to restore the state prior to the cold reboot.
[0055] For example, the BIOS loads target option parameters, such as boot order, peripheral recognition, and power management settings, to ensure consistency with those before a cold reboot. The BIOS restores the register data from before the cold reboot to the CPU and related hardware, avoiding the time-consuming process of reinitializing and configuring these registers.
[0056] By using backup data, the server can quickly restore to the target state after a cold restart, i.e., the working state before the cold restart, which improves the system's response speed and management efficiency, while ensuring data security and system stability.
[0057] Optionally, in the server provided in the embodiments of this application, the server further includes a basic input / output system and a second control circuit. When the basic input / output system receives a cold restart signal, it sends a first signal to the second control circuit, and the second control circuit maintains the reset signal of the first device at a preset level based on the first signal.
[0058] In an alternative embodiment, such as Figure 4 As shown, the server also includes a Basic Input / Output System (BIOS) and a second control circuit. Upon detecting a cold restart signal, the BIOS sends a first signal to the second control circuit. This first signal contains instructions to control the reset signal level of the first device, ensuring that these devices are not triggered by unnecessary reset signals during a cold restart. Upon receiving the first signal from the BIOS, the second control circuit maintains the reset signal of the first device at a preset level according to the instructions of the first signal. If the reset signal of the first device requires a low level to activate (active low for reset), the second control circuit ensures the reset signal remains high; conversely, if the reset signal requires a high level to activate (active high for reset), the second control circuit ensures the reset signal remains low. In this way, even if the server undergoes a cold restart, the first device will not be reset, thus avoiding a lengthy initialization process.
[0059] In an alternative embodiment, the BIOS may send a first signal to the second control circuit via a GPIO (General-Purpose Input / Output) interface or other communication protocols.
[0060] In an optional embodiment, the second control circuit may consist of latches and digital logic gates or a microcontroller.
[0061] In an optional embodiment, when the BIOS detects a cold restart signal and sends a first signal to the second control circuit, the second control circuit begins to operate. The digital logic gates or microcontroller in the second control circuit parse the first signal from the BIOS and understand its instruction meaning, namely, "hold the reset signal at a high / low level." Based on the instruction of the first signal, the latch locks the reset signal of the first device at a preset level (high or low). For example, if the target level is high, the second control circuit can switch the path of the reset signal to an internal high-impedance state or a voltage-pull-up circuit; if it is low, it can cut off the power supply to the reset signal or ground it.
[0062] The second control circuit will continuously control the level of the reset signal until the BIOS regains control of the system after a cold restart. During this period, even if the CPU sends a reset signal, the reset signal level of the first device will remain unchanged due to the intervention of the second control circuit, thus avoiding unnecessary resets.
[0063] By precisely controlling the level of the reset signal, unnecessary initialization of the device during a cold restart is avoided, effectively improving the server's startup speed and operating efficiency.
[0064] Optionally, in the server provided in this application embodiment, if the basic input / output system sends a second signal to the second control circuit when it receives a cold restart signal, the second control circuit does not perform any action.
[0065] In an alternative embodiment, the Basic Input / Output System (BIOS) is allowed to send a second signal to the second control circuit during a cold restart. This second signal instructs the second control circuit to refrain from performing any action upon receiving the signal, maintaining its current state. This mechanism aims to provide greater control flexibility, particularly in cold restart logic execution under specific conditions.
[0066] In an optional embodiment, if the peripheral devices of the current server also need to perform a cold restart, the basic input / output system sends a second signal to the second control circuit when it receives the cold restart signal. The second control circuit does not take any action; that is, it does not change the level of the first device reset signal, but maintains the status quo, allowing all devices to reset and initialize naturally.
[0067] In an optional embodiment, upon detecting a cold restart signal, the BIOS boots up and evaluates the current server status to determine whether all devices require a full cold restart. If the BIOS evaluation indicates that all devices require a standard cold restart, it sends a second signal to the second control circuit, instructing the circuit to take no action. Upon receiving the second signal, the second control circuit does not perform a level-locking operation, allowing all devices to respond naturally to the cold restart process via their reset signals. The server executes a full cold restart process, during which all devices undergo power-off, reset, reinitialization, and firmware loading.
[0068] The design of the BIOS sending a second signal to the second control circuit and instructing it to do nothing provides an additional control mechanism for the server cold restart process. It is designed to ensure that the server can perform the complete cold restart process under certain specific conditions, so as to guarantee system stability and security.
[0069] Optionally, in the server provided in the embodiments of this application, the server further includes a third control circuit, wherein the third control circuit is used to switch the power supply of the first device from the main power supply module to the auxiliary power supply module when a cold restart is triggered, and to switch the power supply of the first device from the auxiliary power supply module to the main power supply module after the cold restart is completed.
[0070] In an alternative embodiment, such as Figure 4As shown, the server is also equipped with a third control circuit to manage the power supply of the devices during a server cold restart. Specifically, when the server begins a cold restart, the third control circuit seamlessly switches the power supply of the first device from the main power supply module to the auxiliary power supply module, and after the cold restart is completed, switches the power supply back from the auxiliary power supply module to the main power supply module.
[0071] In an optional embodiment, in response to a cold restart signal, the third control circuit switches the power supply of the first device from the main power supply module to the auxiliary power supply module. This ensures that even if the main power supply module is temporarily interrupted during the cold restart process, the first device maintains continuous power supply, avoiding unnecessary hardware resets. The auxiliary power supply module provides a stable power supply to the first device during the cold restart, ensuring that the device's status information and firmware data are not lost even when the main power supply module is powered off, thereby accelerating the subsequent startup process. After the cold restart is complete, the third control circuit intervenes again, switching the power supply of the first device back from the auxiliary power supply module to the main power supply module, restoring normal power supply.
[0072] In an optional embodiment, the third control circuit may include a relay, a MOSFET (Metal-Oxide-Semiconductor Field-Effect Transistor) switch, or other types of electronic switches for physically switching the power supply path. The third control circuit can quickly switch from main power supply to auxiliary power supply and back to main power supply.
[0073] The third control circuit ensures that the device maintains a stable power supply during server cold restarts, avoiding unnecessary hardware initialization and thus significantly improving server startup efficiency and operational stability.
[0074] Optionally, in the server provided in the embodiments of this application, the server further includes a fourth control unit, wherein the fourth control unit is used to power off the main power supply module when a cold restart is triggered and the first device does not require a cold restart, and to power off the main power supply module and the auxiliary power supply module when a cold restart is triggered and the first device requires a cold restart.
[0075] In an alternative embodiment, such as Figure 4 As shown, the server is also equipped with a fourth control circuit, which precisely controls the behavior of the power supply module during a cold restart of the server to adapt to different restart requirements and scenarios.
[0076] When peripheral devices that do not require a cold restart (i.e., the first device mentioned above), the fourth control unit will only cut off the power to the main power supply module. The peripheral devices can still obtain power from the auxiliary power supply module, maintaining their current working state or initialization state. This allows the functionality of these devices to be quickly restored after the CPU restarts, without the need for a lengthy initialization process, thus significantly reducing the overall system restart time.
[0077] When a peripheral device requires a cold restart (i.e., the first device mentioned above), the fourth control unit simultaneously cuts off the power to both the main power supply module and the auxiliary power supply module. This step ensures that the first device also undergoes a power-off and power-back process, thus achieving a true cold restart. Although this may result in a slightly longer restart time compared to situations where the first device does not require a cold restart, it is crucial for system security and stability, as some devices may require thorough initialization to ensure correct operating conditions.
[0078] Through the above mechanism, the server can manage its hardware resources more intelligently during the cold restart process, avoiding unnecessary power outages, thereby improving the efficiency and speed of cold restart while ensuring system security.
[0079] The server provided in this application, by combining a main power supply module and an auxiliary power supply module, can provide auxiliary power to the first device when the server is triggered to restart, thus avoiding the power outage and cold restart process of the first device. Therefore, it can solve the technical problem of low efficiency of server cold restart in related technologies. In this solution, the hardware circuit design ensures that the power supply to the first device will not be interrupted even when the CPU performs a cold restart, avoiding the device reset and initialization process, significantly reducing the total startup time of cold restart, and enabling cold restart to approach or even reach the efficiency of warm restart, thereby achieving the technical effect of improving the efficiency of server cold restart.
[0080] The embodiments of this application also provide a method for cold restarting a server, and the method is described in detail in conjunction with the execution flow of the cold restart method.
[0081] This embodiment provides a method for cold restarting a server. Figure 5 This is a flowchart of the plug-in processing method provided in the embodiments of this application. Figure 1 ,like Figure 5 As shown, the methods for cold restarting this server include:
[0082] Step S501: When a cold restart signal is detected, the main power supply module of the server is powered off and then powered on again.
[0083] Optionally, it can detect whether a cold restart signal has been received. It should be noted that the signal can be sent from different sources, such as the operating system, the BMC (Baseboard Management Controller), or external management tools. The signal is sent to the server's BMC or directly to the power management unit, triggering the subsequent cold restart process.
[0084] In an optional embodiment, a cold restart can be triggered by writing a cold restart command to the CPU via an I / O address, i.e., writing a cold restart command to address 0xCF8.
[0085] The server's main power supply module is responsible for providing power to all server components, including the CPU, memory, storage devices, network devices, etc. When a cold restart signal is detected, this module will be commanded to stop supplying power, and after the power outage is complete, it will restart the server's power supply.
[0086] Step S502: When the server meets the preset state, control the auxiliary power supply module to maintain the first device of the server in the running state.
[0087] Optionally, when deciding to perform a cold reboot, the usual practice is to completely disconnect the power to the CPU and its related peripherals, and then power it back on, causing the entire system to start from scratch. However, in this application, the system will determine whether the peripheral device (i.e., the first device) needs a cold reboot based on the current state of the server and its requirements for a reboot response. That is, whether the server meets the preset state. For example, it will analyze whether the first device needs to be reconfigured or initialized through a reset signal, or it will analyze whether the firmware of the first device needs to be upgraded.
[0088] If the server meets a preset state, meaning the first device does not require a cold restart, an auxiliary power supply module is used to maintain the operating state of the first device (i.e., the device that does not require a cold restart, such as certain types of storage devices or network adapters). The auxiliary power supply module is an additional circuit design that provides a continuous power supply to the selected devices. In this way, even if the main components of the server (such as the CPU) undergo a power outage and power-on process, these selected first devices, thanks to the support of the auxiliary power supply module, can avoid undergoing a complete power outage and restart process, thus retaining their current operating state and initialized configuration. This strategy is particularly suitable for devices with long restart times or those whose restarts have a significant impact on system performance, as it can significantly reduce the server's cold restart time without having to reinitialize these devices every time.
[0089] Step S503: If the main power supply module is in a stable power supply state, perform a cold restart on the second device in the server.
[0090] Optionally, check the power supply status of the main power supply module to confirm its stability. If the main power supply module is in a stable power supply state, perform a cold restart on the second device in the server. It should be noted that the second device refers to any device other than the peripheral device (i.e., the first device).
[0091] In summary, by providing auxiliary power to the first device through the auxiliary power supply module, it can maintain its operating status during a cold restart without re-initialization, thus improving the efficiency of the server's cold restart.
[0092] Optionally, in the server cold restart method provided in the embodiments of this application, when a cold restart signal is detected, the method further includes: obtaining the current state parameters of the server; determining whether a cold restart needs to be performed on the first device based on the current state parameters, and obtaining a first determination result; and determining whether the server meets a preset state based on the first determination result.
[0093] In an optional embodiment, real-time information about the server upon receiving a cold restart signal is collected, including but not limited to the CPU's operating status, memory status, peripheral device status, and system logs. Based on the collected status parameters, it is determined whether a complete restart of the server's peripheral devices (i.e., the first device) is necessary. For example, if the CPU peripheral device is already in an initialized and stable state before the cold restart, it can be determined that the peripheral device does not need to undergo a complete cold restart process, thereby saving time.
[0094] Based on the above assessment, further confirmation is needed to determine if the server has reached a preset state that allows for rapid restart. If the server meets the preset state, meaning a cold restart of peripherals is not required, the cold restart process will be faster because unnecessary initialization steps can be omitted. If the server does not meet the preset state, then the standard cold restart procedure will be followed to ensure server stability and security.
[0095] The above steps allow the execution depth of a cold reboot to be determined based on the server's current state, avoiding unnecessary hardware initialization and firmware loading processes, thereby significantly shortening the time required for a cold reboot.
[0096] Optionally, in the server cold restart method provided in the embodiments of this application, when a cold restart signal is detected, the method further includes: powering off the auxiliary power supply module if the server does not meet the preset state; and performing a cold restart on the third device in the server if the main power supply module is in a stable power supply state.
[0097] In one optional embodiment, the decision to enable the auxiliary power supply module is based on the current state of the server. The auxiliary power supply module is designed to provide a continuous and stable power supply to the CPU's peripherals during a cold restart, avoiding repeated initialization of the peripherals and thus shortening the cold restart time. However, under certain conditions, if the server does not meet the preset state, i.e., the peripheral devices require a cold restart, the auxiliary power supply module will be powered off. In this case, all devices on the server (i.e., the third device mentioned above), including the CPU's peripherals, will undergo a complete power-off cold restart process to ensure the stability and security of the system.
[0098] If the preset conditions are not met, powering off the auxiliary power supply module and performing a complete cold restart can ensure that the device is thoroughly initialized, avoiding startup failure or system instability caused by abnormal device status.
[0099] Optionally, in the server cold restart method provided in the embodiments of this application, when a cold restart signal is detected, the method further includes: controlling the basic input / output system in the server to back up the target option parameters in the basic input / output system and the register data in the server to the server's non-volatile storage medium.
[0100] In an optional embodiment, during a cold reboot of the server, in order to quickly restore the server to its previous operating state and reduce boot time, the Basic Input / Output System (BIOS) in the server backs up the target option parameters in the BIOS and the register data in the server to the server's non-volatile storage medium. This process allows certain time-consuming initialization steps to be skipped during the reboot process, improving cold reboot efficiency.
[0101] Target option parameters can be key parameters defined in the BIOS settings that govern system behavior and peripheral configuration, including but not limited to boot order settings, peripheral device identification and configuration, power management policies, and performance optimization options. During a cold reboot, the BIOS detects this signal and initiates a backup process, completely copying the current target option parameters to the server's non-volatile storage media.
[0102] The register data in the server contains state information about the CPU and other critical chips during operation, including but not limited to the values of control registers, status registers, and configuration registers. During a cold reboot, the BIOS also captures this event, automatically taking a snapshot of the current register data and storing it on non-volatile storage. This is to ensure that after a cold reboot, the server can quickly restore to its previous operating state without having to load and configure register states from scratch.
[0103] By backing up the target option parameters in the BIOS and the register data in the server to non-volatile storage media, the server can quickly restore to its previous operating state after a restart, avoiding a lengthy initialization process and improving boot speed.
[0104] Optionally, in the cold restart method for a server provided in this application embodiment, when a cold restart signal is detected, the method further includes: when the server meets a preset state, controlling the basic input / output system in the server to output a first signal, so as to maintain the reset signal of the first device at a preset level through the first signal.
[0105] In an optional embodiment, when the server meets a preset state, i.e., the peripheral devices do not require a cold restart (such as all critical peripherals (such as storage devices, network adapters, etc.) have been correctly initialized and their firmware or drivers are in a stable state), the Basic Input / Output System (BIOS) will output a first signal. It should be noted that the function of the first signal is to control and keep the reset signal of the first device at a preset level, preventing the Reset signal of the first device from being activated in response to the cold restart signal, which would cause the first device to be reset and initialized again.
[0106] In an optional embodiment, the server may include a second control circuit, which may consist of latches and digital logic gates or a microcontroller. When the BIOS detects a cold restart signal and sends a first signal to the second control circuit, the second control circuit begins operation. The digital logic gates or microcontroller in the second control circuit parse the first signal from the BIOS, understanding its instruction meaning, namely, "hold the reset signal at a high / low level." Based on the instruction of the first signal, the latch locks the reset signal of the first device at a preset level (high or low). For example, if the target level is high, the second control circuit can switch the path of the reset signal to an internal high-impedance state or a voltage-pull-up circuit; if it is low, it can cut off the power supply to the reset signal or ground it.
[0107] In an optional embodiment, if the peripheral devices of the current server also need to perform a cold restart, the basic input / output system sends a second signal to the second control circuit when it receives the cold restart signal. The second control circuit does not take any action; that is, it does not change the level of the first device reset signal, but maintains the status quo, allowing all devices to reset and initialize naturally.
[0108] By precisely controlling the reset signals of peripheral devices, device resets during cold restarts are avoided, thereby reducing startup delays and enabling fast cold restarts of the server.
[0109] Optionally, in the server cold restart method provided in this application embodiment, performing a cold restart on the second device in the server includes: controlling the central processing unit in the second device to enter a reset state and starting the basic input / output system from the target address; controlling the basic input / output system to read backup data from a non-volatile storage medium to restore the server to the target state; and controlling the basic input / output system to load the firmware of the first device to complete the cold restart.
[0110] In an optional embodiment, the central processing unit (CPU) enters a reset state and boots the basic input / output system from a target address (e.g., the flash memory area where the BIOS resides). Before a cold reboot, the BIOS backs up some critical configuration information and state data to non-volatile storage. During the cold reboot process, the BIOS reads this backup data again, enabling it to quickly restore to the state it was in during its last normal operation. This includes, but is not limited to, previously set BIOS options and CPU register configurations. After ensuring that all necessary data and configurations have been correctly restored, the BIOS skips the usual peripheral device initialization process and directly loads the firmware of the peripheral devices. By directly loading and using the firmware state saved before the cold reboot, instead of initializing from scratch, the server can complete the entire reboot process and enter an operational state more quickly. After the firmware is loaded, the peripherals enter the preset operational state without needing to undergo initialization tests or configurations again, further shortening the cold reboot time.
[0111] The above process enables the server to recover quickly after a cold restart, avoiding redundant initialization and configuration processes.
[0112] Optionally, in the server cold restart method provided in the embodiments of this application, the method further includes: after detecting that the cold restart has been completed, switching the power supply of the first device from the auxiliary power supply module to the main power supply module; and releasing the holding state of the reset signal of the first device so that the first device and the central processing unit in the server are in a cooperative working state.
[0113] In an optional embodiment, once the server completes a cold reboot—that is, after the central processing unit (CPU) and its connected peripheral devices have successfully restarted—the first device, having previously used an auxiliary power supply module to provide continuous power support, achieves "seamless" power supply during the cold reboot. To ensure the system operates normally and returns to its pre-cold reboot operating mode, the power supply to the first device needs to be switched back from the auxiliary power supply module to the main power supply module.
[0114] During a cold reboot, the reset signal of the first device is held in a certain state (e.g., high or low) to prevent it from being reset by a cold reboot command issued by the CPU. Once the cold reboot is complete, the first device has maintained its current state through the auxiliary power supply module and no longer requires additional reset protection. Therefore, the held state of the reset signal should be released, allowing the device to respond to a normal reset signal and re-establish correct communication and working relationships with the CPU and other devices.
[0115] The above steps not only resolve the unnecessary initialization issues that may arise from a cold restart, but also ensure that the device can quickly integrate into the system after a restart by orderly restoring the main power supply and reset mechanism, reducing system startup delays and improving user experience and server performance.
[0116] Optionally, in the cold restart method for a server provided in this application embodiment, performing a cold restart on a third device in the server includes: controlling the central processing unit in the server to enter a reset state and starting the basic input / output system from the target address; controlling the basic input / output system to send a reset signal to the first device and controlling the first device to perform an initialization operation based on the reset signal; and controlling the basic input / output system to load the firmware of the first device after the first device has completed its operation, so as to complete the cold restart.
[0117] In an alternative embodiment, if the peripheral device also requires a cold reboot, the central processing unit (CPU) is placed in a reset state, meaning all CPU cores and caches are cleared, ready to resume operation. The BIOS is then booted from a predetermined target address, which could be a storage area containing the BIOS firmware. The BIOS is responsible for performing the Power-On Self-Test (POST) and hardware initialization, preparing the environment for the operating system to load.
[0118] After the CPU resets and the BIOS boots, the BIOS sends a reset signal to the first device requiring a cold reboot. This reset signal triggers the first device to enter an initialization state, reloading its firmware and setting its registers to default or preset states. After the first device completes its initialization, the BIOS begins loading the device's firmware. Firmware loading is a crucial step in implementing hardware functionality; it contains the programs and instructions necessary for device operation. Once loaded, the device is fully ready to respond to further system commands, thus completing the cold reboot process.
[0119] By employing a combination of a main power supply module and an auxiliary power supply module, this application allows the auxiliary power supply module to provide power to the first device when the server is triggered to cold restart, thus avoiding the power outage cold restart process of the first device. Therefore, it solves the technical problem of low efficiency in server cold restart in related technologies. In this solution, the hardware circuit design ensures that the power supply to the first device will not be interrupted even when the CPU performs a cold restart, avoiding the device reset and initialization process, significantly reducing the total startup time of the cold restart, and enabling the cold restart to approach or even reach the efficiency of a warm restart, thereby achieving the technical effect of improving the efficiency of server cold restart.
[0120] In an optional embodiment, an independent power supply line is added to the CPU's peripheral devices. This line continues to provide a stable voltage when the main power is disconnected, ensuring that the peripheral devices do not lose power during a cold restart. Upon receiving a cold restart signal, the BIOS saves critical configuration information and CPU register states to avoid repeatedly reading and writing this information after a restart. Since the peripheral devices do not lose power during a cold restart, their firmware (FW) state remains unchanged. The BIOS can directly read and load the peripheral devices' FW information, skipping the initialization process, thereby improving cold restart efficiency.
[0121] The embodiments of this application also provide another method for cold restarting a server. The method is described in detail in conjunction with the execution flow of the cold restart method.
[0122] This embodiment provides a method for cold restarting a server. Figure 6 This is a flowchart of the plug-in processing method provided in the embodiments of this application. Figure 2 ,like Figure 6 As shown, the methods for cold restarting this server include:
[0123] Step S601: When a cold restart signal is detected, the power supply module of the server is powered off and then powered on again. When the power supply is stable, the central processing unit in the server is controlled to enter the reset state and the basic input / output system is started from the target address.
[0124] Step S602: Control the basic input / output system to send a reset signal to the first device in the server, and control the first device to perform an initialization operation based on the reset signal;
[0125] Step S603: After the first device operation is completed, the basic input / output system is controlled to load the firmware of the first device to complete the cold restart.
[0126] Optionally, when a cold reboot signal is detected, the server's power supply module is processed to undergo a power-off and power-back process. Unlike warm reboot and AC boot, a cold reboot requires the CPU and all peripherals to undergo a complete power-off and power-back initialization process. Simultaneously, the central processing unit (CPU) is placed in a reset state and the Basic Input / Output System (BIOS) is loaded from a preset target address; this is the starting point of the cold reboot process.
[0127] The BIOS sends a reset signal to the first device in the server (i.e., all peripheral devices of the CPU, such as memory modules and network adapters). After the reset signal is triggered, the first device performs initialization operations, which include, but are not limited to, checking hardware status, configuring registers, establishing necessary links, and loading firmware. Initialization is a crucial step in ensuring that the device can work correctly, and it is especially critical for cold reboot processes.
[0128] Once initialization is complete, the BIOS begins loading the device's peripheral firmware (FW). Firmware is the software required for the device to function; it controls the basic functions and characteristics of the hardware. After loading is complete, the device is fully ready to respond to further system commands, thus completing the cold reboot process.
[0129] Optionally, in the server cold restart method provided in the embodiments of this application, when a cold restart signal is detected, the method further includes: controlling the basic input / output system in the server to back up the target option parameters in the basic input / output system and the register data in the server to the server's non-volatile storage medium.
[0130] In an optional embodiment, if the server does not provide additional auxiliary power to peripheral devices, in order to improve the efficiency of cold restart, when a cold restart signal is detected, the target option parameters in the Basic Input / Output System (BIOS) and the critical register data in the server are backed up to non-volatile storage media. By backing up the BIOS option parameters and register data to non-volatile storage media (e.g., solid-state drives (SSDs) or flash memory) before a cold restart, these settings can be quickly restored after a restart, avoiding the need for the system to reread and set these parameters after a restart, thereby reducing the server's startup time and the time required for configuration recovery.
[0131] Optionally, in the cold restart method for a server provided in this application embodiment, after starting the basic input / output system from the target address, the method further includes: controlling the basic input / output system to read backup data from a non-volatile storage medium so that the server can be restored to the target state.
[0132] In an optional embodiment, after the server performs a cold reboot, the BIOS, having completed booting from the target address, controls the reading of previously saved backup data from non-volatile storage media. By reading the backup data, the BIOS can immediately load and restore the server to its state before the cold reboot, including configuration parameters and firmware information. The server can skip most of the initialization and detection steps in the regular boot process, significantly reducing the cold reboot time and achieving fast startup.
[0133] In an optional embodiment, a cold reboot command is written to the CPU via an I / O address, specifically to address 0xCF8. This allows the server to perform a cold reboot during startup, whether it's entering the operating system, in the BIOS setup interface, or during the server's boot process. A cold reboot disconnects and re-initializes all devices, including disconnecting and then physically re-energizing the peripherals connected to the CPU. Additionally, the CPU sends a Reset signal to each device via physical connections to reset the firmware of each peripheral component. However, most peripherals do not require re-initialization via the Reset signal and can be used directly by rereading their firmware. In contrast, a server cold reboot de-energizes both the CPU and its peripherals, and then re-energizes them. The CPU's own power-off cannot be controlled, but through a configuration... An additional power supply module is designed to provide stable power to peripheral devices. Even if a cold restart command is received from the CPU, the additional power supply module can continue to provide stable voltage. This ensures that the CPU's peripheral devices will not experience power-off and power-on operations due to a CPU cold restart. At the same time, because the CPU's peripheral devices are supplied with stable power through an external circuit, they will not experience power-off and power-on operations. Therefore, the CPU's peripheral devices do not need to be reinitialized or kept in the state at the time of the CPU cold restart. At this time, the CPU only needs to load the management software of the CPU peripheral devices according to the settings of the last boot, thereby effectively improving the efficiency of cold restart.
[0134] In an optional embodiment, necessary BIOS options and necessary CPU registers can also be read and written to enable further fast startup of the cold reboot.
[0135] In an alternative embodiment, a schematic diagram of the server is shown below. Figure 7As shown, the server includes CPU 0 and CPU 1, a basic input / output system, a baseboard management controller, peripheral devices, and an auxiliary power supply module. By designing an additional power supply module to provide stable power to the peripheral devices, even after receiving a cold restart command from the CPU, the additional power supply module can continue to provide a stable voltage, ensuring that the CPU's peripheral devices will not experience power-off and power-on cycles due to a CPU cold restart.
[0136] In an optional embodiment, the cold restart execution logic of the server is illustrated as follows: Figure 8 As shown, an auxiliary power supply module provides additional power signals, and voltage converters 1, 2, and 3 provide additional power to peripheral devices 1, 2, and 3. Before the BIOS executes the cold restart command, the BIOS reads and writes the CPU's critical registers and saves the core permissions. When the CPU cold restart is triggered, the main power supply module of the CPU peripheral devices is powered off. Since the auxiliary power supply module provides additional power signals, the peripheral devices are in a state of continuous power supply. The BIOS executes the restart logic. Because the peripheral devices are in a state of continuous power supply, the BIOS can directly load the peripheral devices and their firmware, thereby achieving a complete cold restart.
[0137] Before a cold reboot command is triggered, the BIOS records the state of critical CPU registers and core system options (such as PCI configuration and memory settings) and saves them to non-volatile memory. This ensures that critical system state data is not lost even when the power is completely disconnected. During a cold reboot, the BIOS reads these saved configurations from the non-volatile memory and restores the system to its state before the reboot, avoiding the waste of time reconfiguration. Using an auxiliary power supply module, peripheral devices 1, 2, and 3 can still receive sufficient power even when the main power supply is interrupted. This ensures that peripheral devices do not experience a complete power outage, and their internal states (such as cache information and connection status) are preserved, allowing them to quickly return to their working state after a cold reboot without the need for time-consuming initialization and firmware loading processes.
[0138] Because peripheral devices receive continuous power during a cold reboot, their firmware remains intact. When executing the cold reboot logic, the BIOS can directly load firmware information from these peripheral devices without requiring complex peripheral initialization. This significantly reduces the overall cold reboot time, enabling the server to complete the cold reboot process quickly and enter standby mode or directly boot the operating system.
[0139] 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.
[0140] Embodiments of this application also provide a server cold restart device, such as... Figure 9 As shown, the cold restart device for the server includes: a first control unit 901, a second control unit 902, and a first execution unit 903.
[0141] The first control unit 901 is used to power off and power on the main power supply module of the server when a cold restart signal is detected.
[0142] The second control unit 902 is used to control the auxiliary power supply module to maintain the first device of the server in an operating state when the server meets the preset state.
[0143] The first execution unit 903 is used to perform a cold restart on the second device in the server if the main power supply module is in a stable power supply state.
[0144] By employing a combination of a main power supply module and an auxiliary power supply module, this application allows the auxiliary power supply module to provide power to the first device when the server is triggered to cold restart, thus avoiding the power outage cold restart process of the first device. Therefore, it solves the technical problem of low efficiency in server cold restart in related technologies. In this solution, the hardware circuit design ensures that the power supply to the first device will not be interrupted even when the CPU performs a cold restart, avoiding the device reset and initialization process, significantly reducing the total startup time of the cold restart, and enabling the cold restart to approach or even reach the efficiency of a warm restart, thereby achieving the technical effect of improving the efficiency of server cold restart.
[0145] Optionally, in the server cold restart device provided in the embodiments of this application, the device further includes: a first acquisition unit, used to acquire the current state parameters of the server when a cold restart signal is detected; a judgment unit, used to determine whether a cold restart needs to be performed on the first device based on the current state parameters, and obtain a first judgment result; and a determination unit, used to determine whether the server meets the preset state based on the first judgment result.
[0146] Optionally, in the server cold restart device provided in the embodiments of this application, the device further includes: a processing unit, used to power off the auxiliary power supply module when a cold restart signal is detected and the server does not meet a preset state; and a second execution unit, used to perform a cold restart on a third device in the server if the main power supply module is in a stable power supply state.
[0147] Optionally, in the server cold restart device provided in the embodiments of this application, the device further includes: a third control unit, used to control the basic input / output system in the server to back up the target option parameters in the basic input / output system and the register data in the server to the non-volatile storage medium of the server when a cold restart signal is detected.
[0148] Optionally, in the server cold restart device provided in the embodiments of this application, the device further includes: a fourth control unit, used to control the basic input / output system in the server to output a first signal when a cold restart signal is detected and the server meets a preset state, so as to maintain the reset signal of the first device at a preset level through the first signal.
[0149] Optionally, in the server cold restart device provided in this application embodiment, the first execution unit includes: a first control module, used to control the central processing unit in the second device to enter a reset state and start the basic input / output system from the target address; a second control module, used to control the basic input / output system to read backup data from a non-volatile storage medium so that the server can be restored to the target state; and a third control module, used to control the basic input / output system to load the firmware of the first device to complete the cold restart.
[0150] Optionally, in the server cold restart device provided in the embodiments of this application, the device further includes: a switching unit, used to switch the power supply of the first device from the auxiliary power supply module to the main power supply module after detecting that the cold restart has been completed; and a release unit, used to release the holding state of the reset signal of the first device so that the first device and the central processing unit in the server are in a cooperative working state.
[0151] Optionally, in the server cold restart device provided in this application embodiment, the second execution unit includes: a fourth control module, used to control the central processing unit in the server to enter a reset state and start the basic input / output system from the target address; a fifth control module, used to control the basic input / output system to send a reset signal to the first device and control the first device to perform initialization operations based on the reset signal; and a sixth control module, used to control the basic input / output system to load the firmware of the first device after the first device has completed its operation, so as to complete the cold restart.
[0152] Embodiments of this application also provide a server cold restart device, such as... Figure 10 As shown, the cold restart device for the server includes: a fifth control unit 1001, a sixth control unit 1002, and a seventh control unit 1003.
[0153] The fifth control unit 1001 is used to power off and power on the server's power supply module when a cold restart signal is detected, and to control the central processing unit in the server to enter the reset state and start the basic input / output system from the target address when the power supply is stable.
[0154] The sixth control unit 1002 is used to control the basic input / output system to send a reset signal to the first device in the server, and to control the first device to perform an initialization operation based on the reset signal;
[0155] The seventh control unit 1003 is used to control the basic input / output system to load the firmware of the first device after the first device has been operated, so as to complete the cold restart.
[0156] Optionally, in the server cold restart device provided in the embodiments of this application, the device further includes: an eighth control unit, used to control the basic input / output system in the server to back up the target option parameters in the basic input / output system and the register data in the server to the non-volatile storage medium of the server when a cold restart signal is detected.
[0157] Optionally, in the cold restart device for a server provided in the embodiments of this application, the device further includes: a ninth control unit, used to control the basic input / output system to read backup data from a non-volatile storage medium after the basic input / output system is started from the target address, so as to restore the server to the target state.
[0158] The description of the features in the embodiments corresponding to the server cold restart device described above can be found in the relevant descriptions of the embodiments corresponding to the server cold restart method, and will not be repeated here.
[0159] 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-described cold restart method embodiments for servers.
[0160] 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-described cold restart method embodiments of the server.
[0161] 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.
[0162] Embodiments of this application also provide a computer program product, which includes a computer program that, when executed by a processor, implements the steps in any of the above-described cold restart method embodiments for servers.
[0163] Embodiments of this application also provide another computer program product, including a non-volatile computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps in any of the above-described cold restart method embodiments for servers.
[0164] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0165] The foregoing has provided a detailed description of a server and a method for cold restarting a server as provided in this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the embodiments above are merely for the purpose of helping to understand the method and core ideas of this application. It should be noted that those skilled in the art can make various improvements and modifications to this application without departing from its principles, and these improvements and modifications also fall within the protection scope of the claims of this application.
Claims
1. A method for cold restarting a server, characterized in that, include: When a cold restart signal is detected, the main power supply module of the server is powered off and then powered on again. When the server meets the preset state, the auxiliary power supply module is controlled to maintain the first device of the server in the operating state; If the main power supply module is in a stable power supply state, then a cold restart is performed on the second device in the server; When a cold restart signal is detected, it is determined whether the first device needs to be reconfigured or initialized via a reset signal, so as to determine whether the server meets the preset state. When a cold restart signal is detected, the method further includes: when the server meets a preset state, controlling the basic input / output system in the server to output a first signal, so as to maintain the reset signal of the first device at a preset level through the first signal; the server is provided with a second control circuit, which consists of a latch and a digital logic gate or a microcontroller, the digital logic gate or microcontroller in the second control circuit parses the first signal, and the latch locks the reset signal of the first device at a preset level; After detecting that a cold restart has been completed, the power supply of the first device is switched from the auxiliary power supply module to the main power supply module; the hold state of the reset signal of the first device is released so that the first device and the central processing unit in the server can work together.
2. The method according to claim 1, characterized in that, When a cold restart signal is detected, the method further includes: Obtain the current status parameters of the server; Based on the current status parameters, determine whether a cold restart needs to be performed on the first device, and obtain a first determination result; Based on the first judgment result, determine whether the server meets the preset state.
3. The method according to claim 1, characterized in that, When a cold restart signal is detected, the method further includes: If the server does not meet the preset state, the auxiliary power supply module will be powered off. If the main power supply module is in a stable power supply state, then a cold restart is performed on the third device in the server.
4. The method according to claim 1, characterized in that, When a cold restart signal is detected, the method further includes: The system controls the basic input / output system in the server to back up the target option parameters in the basic input / output system and the register data in the server to the server's non-volatile storage medium.
5. The method according to claim 4, characterized in that, Performing a cold restart on the second device in the server includes: The central processing unit in the second device is controlled to enter a reset state and the basic input / output system is started from the target address; The basic input / output system is controlled to read backup data from the non-volatile storage medium to restore the server to the target state; The basic input / output system is controlled to load the firmware of the first device to complete a cold reboot.
6. The method according to claim 3, characterized in that, Performing a cold reboot on a third device in the server includes: The central processing unit in the server is controlled to enter a reset state and the basic input / output system is started from the target address; The system controls the basic input / output system to send a reset signal to the first device and controls the first device to perform an initialization operation based on the reset signal. After the first device completes its operation, the basic input / output system is controlled to load the firmware of the first device to complete a cold reboot.
7. A server, characterized in that, The server is used to perform the method according to any one of claims 1 to 6, including: The system comprises a central processing unit, a main power supply module, an auxiliary power supply module, and a first device, wherein the main power supply module provides operating voltage to the central processing unit and the first device during server operation, and the auxiliary power supply module provides operating voltage to the first device when the server is triggered to perform a cold restart. The first device is a peripheral device. The server also includes a basic input / output system and a second control circuit. When the basic input / output system receives a cold restart signal, it sends a first signal to the second control circuit. The second control circuit maintains the reset signal of the first device at a preset level based on the first signal. If the reset signal of the first device requires a low level to activate, the second control circuit ensures that the reset signal is maintained at a high level. If the reset signal of the first device requires a high level to activate, the second control circuit ensures that the reset signal is maintained at a low level. If the peripheral devices of the server need to perform a cold restart, the basic input / output system sends a second signal to the second control circuit when it receives the cold restart signal, and the second control circuit does not take any action.
8. The server according to claim 7, characterized in that, The auxiliary power supply module includes an energy storage battery and a voltage converter. The energy storage battery is used to provide power to the first device, and the voltage converter is used to convert the output voltage of the energy storage battery into the operating voltage required by the first device.
9. The server according to claim 7, characterized in that, The main power supply module is connected to the auxiliary power supply module so that the main power supply module can charge the energy storage battery in the auxiliary power supply module.
10. The server according to claim 7, characterized in that, The server further includes a basic input / output system and a first control circuit, wherein the basic input / output system is configured to shield the reset signal used for initializing the first device during a cold restart, and the first control circuit is configured to maintain the reset signal of the first device at a preset level.
11. The server according to claim 7, characterized in that, The server also includes a basic input / output system, wherein the basic input / output system is configured to back up the target option parameters in the basic input / output system and the register data in the server to the non-volatile storage medium of the server when a cold restart signal is detected.
12. The server according to claim 11, characterized in that, The basic input / output system is also configured to read backup data from the non-volatile storage medium to restore the server to a target state.
13. The server according to claim 7, characterized in that, The server further includes a third control circuit, wherein the third control circuit is used to switch the power supply of the first device from the main power supply module to the auxiliary power supply module when a cold restart is triggered, and to switch the power supply of the first device from the auxiliary power supply module to the main power supply module after the cold restart is completed.
14. The server according to claim 7, characterized in that, The server further includes a fourth control unit, wherein the fourth control unit is used to power off the main power supply module when a cold restart is triggered and the first device does not require a cold restart, and to power off the main power supply module and the auxiliary power supply module when a cold restart is triggered and the first device requires a cold restart.
15. A method for cold restarting a server, characterized in that, The method is applied to the server according to any one of claims 9 to 14, comprising: When a cold restart signal is detected, the power supply module of the server is powered off and then powered on again. When the power supply is stable, the central processing unit in the server is controlled to enter the reset state and the basic input / output system is started from the target address. The system controls the basic input / output system to send a reset signal to the first device in the server, and controls the first device to perform an initialization operation based on the reset signal. After the first device completes its operation, the basic input / output system is controlled to load the firmware of the first device to complete a cold reboot.
16. The method according to claim 15, characterized in that, When a cold restart signal is detected, the method further includes: The basic input / output system in the control server backs up the target option parameters in the basic input / output system and the register data in the server to the server's non-volatile storage medium.
17. The method according to claim 16, characterized in that, After starting the basic input / output system from the target address, the method further includes: The basic input / output system is controlled to read backup data from the non-volatile storage medium to restore the server to the target state.
18. A cold restart device for a server, characterized in that, The apparatus is applied to the server according to any one of claims 9 to 14, comprising: The first control unit is used to power off and power on the server's main power supply module when a cold restart signal is detected. The second control unit is used to control the auxiliary power supply module to maintain the first device of the server in an operating state when the server meets the preset state. The first execution unit is used to perform a cold restart on the second device in the server if the main power supply module is in a stable power supply state.
19. A cold restart device for a server, characterized in that, The apparatus is applied to the server according to any one of claims 9 to 14, comprising: The fifth control unit is used to power off and power on the server's power supply module when a cold restart signal is detected, and to control the central processing unit in the server to enter a reset state and start the basic input / output system from the target address when the power supply is stable. The sixth control unit is used to control the basic input / output system to send a reset signal to the first device, and to control the first device to perform an initialization operation based on the reset signal; The seventh control unit is used to control the basic input / output system to load the firmware of the first device after the first device has been operated, so as to complete a cold restart.
20. An electronic device, characterized in that, include: Memory, used to store computer programs; A processor, configured to implement the steps of the cold restart method for the server as described in any one of claims 1 to 6 when executing the computer program.
21. A non-volatile computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, it implements the steps of the cold restart method for the server as described in any one of claims 1 to 6.
22. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the steps of the cold restart method for the server as described in any one of claims 1 to 6.