Power-on control method and related components of server
By initializing the counter and resetting the power module in the server power-on control method, the empty opening problem caused by too small output current of the server power module is solved, the success rate of the BMC is improved, and the effective monitoring and management of the server is realized.
Patent Information
- Application Number
- CN202210727068.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-24
- Publication Date
- 2025-03-18
- Estimated Expiration
- 2042-06-24
AI Technical Summary
When multiple servers are powered on at the same time, the output current of some servers' power modules is too small, causing the power control chip to enter a protection state, and the probability of the server being empty is high, which in turn causes the BMC to be unable to power on, affecting the server's monitoring and management functions.
Provide a power-on control method for a server. By initializing the counter, it determines whether the power control chip is powered by the power control chip when the power module supplies power to the power control chip. If power is not supplied, record the counter value plus 1. If the value does not exceed the preset number, reset the power module until the power control chip exits the protection state.
This reduces the probability of the server being opened, increases the probability of the BMC being successfully started, and realizes the monitoring and management functions of the server.
Smart Images

Figure CN114996097B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of power supply, and in particular to a power-on control method of a server and related components. Background Art
[0002] In order to realize the maintenance and management of multiple servers, a PDU (Power Distribution Unit) is set to connect with the power module of each server. The power module of the server is connected to the power control chip on the server motherboard. The power module supplies power to the power control chip, and the power control chip supplies power to other hardware on the server motherboard. When the power control chip successfully outputs power to the BMC (Baseboard Management Controller), the BMC starts to start, thereby realizing the monitoring and management functions of the server. Since the current demand of the server is large when it is powered on, the current tends to be stable after startup. In the design process, the design of the PDU often meets the current required for the normal operation of the server. When multiple servers are powered on at the same time, the current output from the power modules of some servers to the power control chip is too small, causing the power control chip to enter a protection state and not output. At this time, the probability of the server being disconnected is relatively high. In the prior art, the operation and maintenance of the server is often realized through the BMC, but because the server is disconnected, the BMC cannot be powered on, making the maintenance of the server difficult. Summary of the invention
[0003] The purpose of the present invention is to provide a power-on control method and related components of a server, which reduces the probability of the server being unpowered, increases the probability of the BMC being successfully powered on, and further realizes the monitoring and management functions of the server.
[0004] In order to solve the above technical problems, the present invention provides a power-on control method of a server, which is applied to a processor on a mainboard of the server;
[0005] The power-on control method of the server comprises:
[0006] Initialize the counter;
[0007] When the power module supplies power to the power control chip, determining whether the power control chip supplies power to the mainboard;
[0008] When the power control chip does not supply power to the mainboard, controlling the value recorded by the counter to increase by 1;
[0009] Determine whether the value recorded by the counter exceeds the preset number of times;
[0010] When the value does not exceed the preset number of times, controlling the power module of the server to reset, and returning to the step of determining whether the power control chip is supplying power to the mainboard;
[0011] When the value exceeds a preset number of times, it stops judging whether the power control chip is supplying power to the mainboard.
[0012] Preferably, determining whether the power control chip on the mainboard supplies power to the mainboard includes:
[0013] Determining whether the power control chip has current output;
[0014] When the power control chip has current output, determining that the power control chip on the mainboard supplies power to the mainboard;
[0015] When the power control chip has no current output, it is determined that the power control chip on the mainboard does not supply power to the mainboard.
[0016] Preferably, the power module includes a controllable switch, a first end of the controllable switch is connected to an input end of the power module, a second end of the controllable switch is connected to an output end of the power module, a control end of the controllable switch is connected to the power-on monitoring module, and the controllable switch remains closed in a default state;
[0017] Controlling the power module of the server to reset includes:
[0018] The controllable switch is controlled to be opened and then closed.
[0019] Preferably, when the power module supplies power to the power control chip, determining whether the power control chip supplies power to the mainboard includes:
[0020] When the power module supplies power to the power control chip, the control timer starts recording time;
[0021] When the time recorded by the timer reaches a preset time length, it is determined whether the power control chip is supplying power to the mainboard.
[0022] Preferably, the server further comprises a prompt module, and the prompt module is connected to the power-on monitoring module;
[0023] Before stopping judging whether the power control chip is supplying power to the mainboard, the method further includes:
[0024] The control prompt module prompts that the server fails to power on.
[0025] Preferably, it also includes:
[0026] When the power control chip supplies power to the mainboard, the control prompt module prompts that the server is powered on successfully.
[0027] In order to solve the above technical problems, the present invention further provides a power-on control system of a server, comprising:
[0028] A judging unit, used to judge whether the power control chip supplies power to the mainboard when the power module supplies power to the power control chip; and to judge whether the value recorded by the counter exceeds a preset number of times;
[0029] A control unit is used to initialize a counter; when the power control chip does not supply power to the mainboard, control the value recorded by the counter to be increased by 1; when the value does not exceed a preset number of times, control the power module of the server to reset and return to the step of determining whether the power control chip on the mainboard has an output; when the value exceeds a preset number of times, stop determining whether the power control chip supplies power to the mainboard.
[0030] In order to solve the above technical problems, the present invention further provides a power-on control device for a server, comprising:
[0031] Memory for storing computer programs;
[0032] A processor is used to implement the steps of the above-mentioned server power-on control method when executing the computer program.
[0033] In order to solve the above technical problem, the present invention further provides a server, including the above-mentioned server power-on control device.
[0034] In order to solve the above technical problem, the present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the power-on control method of the above server are implemented.
[0035] The present application provides a power-on control method and related components of a server, which initializes a counter; when the power module supplies power to the power control chip, determines whether the power control chip supplies power to the mainboard; when the power control chip does not supply power to the mainboard, controls the value recorded by the counter to be increased by 1; when the value does not exceed a preset number of times, controls the power module of the server to be reset, and returns to the step of determining whether the power control chip on the mainboard has an output. When the power module supplies power to the power control chip and the power control chip does not supply power to the mainboard of the server due to entering a protection state, controls the power module to be reset to enable the power control chip to exit the protection state. After the above steps are executed for a preset number of times, if the power control chip still cannot supply power to the mainboard, the monitoring of the power control chip is stopped. The probability of the server being switched on empty is reduced, and the probability of the BMC being successfully powered on is increased, thereby realizing the monitoring and management functions of the server. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the prior art and the drawings required for use in the embodiments are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0037] Figure 1 A flow chart of a power-on control method for a server provided by the present invention;
[0038] Figure 2 A schematic diagram of the structure of a server provided by the present invention;
[0039] Figure 3 A schematic diagram of the structure of a power-on control system of a server provided by the present invention;
[0040] Figure 4 A schematic structural diagram of a power-on control device for a server provided by the present invention. DETAILED DESCRIPTION
[0041] The core of the present invention is to provide a power-on control method for a server and related components, which reduces the probability of the server being unpowered, increases the probability of the BMC being successfully powered on, and further realizes the monitoring and management functions of the server.
[0042] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0043] Figure 1 A flow chart of a power-on control method of a server provided by the present invention, which is applied to a processor 32 on a mainboard 3 of the server; Figure 2 A schematic diagram of the structure of a server provided by the present invention;
[0044] Considering that a PDU1 is connected to the power modules 2 of multiple servers, the current when the power module 2 supplies power to the power control chip 31 on the server's mainboard 3 is too small, triggering the protection of the power control chip 31, resulting in no output of the power control chip 31, and the server is disconnected at this time. To avoid the above situation, the server power-on control method provided by the present application includes:
[0045] S11: Initialize counter;
[0046] Considering that this method needs to use a counter to record the number of times, the counter needs to be initialized before using it.
[0047] S12: When the power module 2 supplies power to the power control chip 31, determine whether the power control chip 31 supplies power to the mainboard 3; if not, proceed to step S13;
[0048] When the power module 2 supplies power to the power control chip 31, it means that the server is about to start up, and it can be determined whether the power control chip 31 normally supplies power to the motherboard 3. If the power control chip 31 does not supply power to the motherboard 3, it means that the power control chip 31 has entered a protection state.
[0049] S13: Control the value recorded by the counter to increase by 1;
[0050] The counter is used to record the number of times the power control chip 31 does not supply power to the mainboard 3 .
[0051] S14: Determine whether the value recorded by the counter exceeds the preset number of times; if so, proceed to step S15; if not, proceed to step S16;
[0052] Considering that the AC power supply itself is in a relatively unstable power supply state, frequent resets are not conducive to stable power supply. It is necessary to set a preset number of times to ensure that the number of resets does not exceed the preset number of times.
[0053] Specifically, if the preset number of times is set to zero, the server will not automatically recover when the power-on circuit breaker is turned on. If the output power of the AC power supply of PDU1 is relatively large, the number of times can be reduced, otherwise the number of times can be appropriately increased, but it is not recommended to set the number of operations too large to avoid ignoring the scenario where the AC power supply itself is in an unstable power supply state. In order to take into account the implementation complexity and power-on failure rate, the upper limit of the operation of the input and output circuits of the power module 2 can be set to once, and this application does not make too many restrictions here.
[0054] S15: Stop judging whether the power control chip 31 is supplying power to the mainboard 3;
[0055] After the number of resets exceeds the preset number, it will no longer be determined whether the power control chip 31 is supplying power to the mainboard 3, and no reset will be performed.
[0056] Specifically, you can wait until the next control cycle arrives and then re-control.
[0057] S16: Control the power module 2 of the server to reset, and return to step S12.
[0058] After the power supply module 2 is controlled to be reset, the power supply module 2 can supply power to the power supply control chip 31 again, so that the power supply control chip 31 exits the protection state.
[0059] In summary, the present application provides a power-on control method for a server. When the power module 2 supplies power to the power control chip 31 and the power control chip 31 does not supply power to the mainboard 3 of the server due to entering a protection state, the power module 2 is controlled to reset so that the power control chip 31 exits the protection state. After the above steps are executed for a preset number of times, if the power control chip 31 still cannot supply power to the mainboard 3, the monitoring of the power control chip 31 is stopped. The probability of the server being switched on empty is reduced, and the probability of the BMC being successfully powered on is increased, thereby realizing the monitoring and management functions of the server.
[0060] It should be noted that the power control chip 31 is connected to a plurality of hardware systems 33 , and the BMC belongs to one of the hardware systems 33 .
[0061] Based on the above embodiments:
[0062] As a preferred embodiment, judging whether the power control chip 31 on the mainboard 3 supplies power to the mainboard 3 includes:
[0063] Determine whether the power control chip 31 has current output;
[0064] When the power control chip 31 has current output, it is determined that the power control chip 31 on the mainboard 3 supplies power to the mainboard 3;
[0065] When the power control chip 31 has no current output, it is determined that the power control chip 31 on the mainboard 3 does not supply power to the mainboard 3 .
[0066] Since the power control chip 31 has no output when in protection state and has output when in normal power supply, whether the power control chip 31 has current output can be used to determine whether the power control chip 31 is supplying power to the mainboard 3 .
[0067] In addition, it can also be determined by whether the power control chip 31 outputs voltage, and this application does not make too many restrictions here.
[0068] As a preferred embodiment, the power module 2 includes a controllable switch 21, a first end of the controllable switch 21 is connected to the input end of the power module 2, a second end of the controllable switch 21 is connected to the output end of the power module 2, a control end of the controllable switch 21 is connected to the power-on monitoring module, and the controllable switch 21 remains closed in a default state;
[0069] Control the reset of the power module 2 of the server, including:
[0070] The controllable switch 21 is controlled to be opened and then closed.
[0071] Considering that the power module 2 needs to remain in a closed state in the default state so as to supply power to the power control chip 31 in real time, and the power module 2 cannot be frequently disconnected or closed with the PDU 1, the present application sets a controllable switch 21 in the power module 2, and the power module 2 can be reset by controlling the disconnection and closing of the controllable switch 21.
[0072] Specifically, the processor 32 can control the controllable switch 21 to be opened first and then closed. A controllable switch 21 can also be provided, which can be automatically closed after being opened, and the present application does not make too many restrictions here.
[0073] As a preferred embodiment, when the power module 2 supplies power to the power control chip 31, determining whether the power control chip 31 supplies power to the mainboard 3 includes:
[0074] When the power module 2 supplies power to the power control chip 31, the control timer starts recording time;
[0075] When the time recorded by the timer reaches the preset time length, it is determined whether the power control chip 31 is supplying power to the mainboard 3 .
[0076] Considering that the power control chip 31 will perform some tests after powering on, such as detecting the clock cycle, during this period of time, the power control chip 31 does not power the server's mainboard 3. Therefore, the timer should be controlled to start recording time. After a preset time, the power control chip 31 can power the mainboard 3. At this time, it is more accurate to judge whether the power control chip 31 is powering the mainboard 3.
[0077] The timer starts the detection after a preset time period to prevent the power control chip 31 from making inaccurate results during the initial detection process.
[0078] As a preferred embodiment, the server further includes a prompt module, and the prompt module is connected to the power-on monitoring module;
[0079] Before stopping judging whether the power control chip 31 supplies power to the mainboard 3, the method further includes:
[0080] The control prompt module prompts that the server fails to power on.
[0081] In order to facilitate operation and maintenance personnel to understand the server power-on failure, this application sets up a prompt module to prompt the power-on status of the server.
[0082] Specifically, the prompt module may be a prompt light, which controls the prompt light to prompt the user after the server fails to power on, making the prompt more convenient.
[0083] As a preferred embodiment, it also includes:
[0084] When the power control chip 31 supplies power to the mainboard 3 , the control prompt module prompts that the server is powered on successfully.
[0085] In addition, after the server is powered on successfully, the control prompt module prompts that the server is powered on successfully.
[0086] Specifically, the indicator light may use two different colors to indicate whether the server is powered on successfully or failed, or may light up or go out to indicate whether the server is powered on successfully or failed, and this application does not make too many limitations here.
[0087] Figure 3 A schematic diagram of the structure of a power-on control system of a server provided by the present invention includes:
[0088] The judging unit 41 is used to judge whether the power control chip 31 supplies power to the mainboard 3 when the power module 2 supplies power to the power control chip 31; and judge whether the value recorded by the counter exceeds a preset number of times;
[0089] A control unit 42 is used to initialize a counter; when the power control chip 31 does not supply power to the mainboard 3, the value recorded in the control counter is increased by 1; when the value does not exceed a preset number of times, the power module 2 of the control server is reset and returns to the step of determining whether the power control chip 31 on the mainboard 3 has an output; when the value exceeds a preset number of times, stop determining whether the power control chip 31 supplies power to the mainboard 3.
[0090] For an introduction to the power-on control system of the server provided in this application, please refer to the above embodiment and will not be repeated here.
[0091] Figure 4 A schematic structural diagram of a power-on control device for a server provided by the present invention includes:
[0092] A memory 51, used for storing computer programs;
[0093] The processor 32 is used to execute the steps of the above-mentioned server power-on control method when executing the computer program.
[0094] For an introduction to the power-on control device of the server provided in this application, please refer to the above-mentioned embodiment, which will not be repeated here.
[0095] Figure 2 A structural schematic diagram of a server provided by the present invention includes the above-mentioned server power-on control device.
[0096] For an introduction to the server provided in this application, please refer to the above embodiments and will not be repeated here.
[0097] The present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by the processor 32, the steps of the power-on control method of the above-mentioned server are implemented.
[0098] For an introduction to the computer-readable storage medium provided in this application, please refer to the above embodiments and will not be repeated here.
[0099] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0100] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.
[0101] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for controlling power-on of a server, characterized in that: A processor applied to a motherboard of the server; The power-on control method of the server comprises: Initialize a counter, the counter is used to record the number of times the power control chip does not supply power to the mainboard; When the power module supplies power to the power control chip, determining whether the power control chip supplies power to the mainboard; When the power control chip does not supply power to the mainboard, controlling the value recorded by the counter to increase by 1; Determine whether the value recorded by the counter exceeds the preset number of times; When the value does not exceed the preset number of times, controlling the power module of the server to reset, and returning to the step of determining whether the power control chip is supplying power to the mainboard; When the value exceeds a preset number of times, stopping judging whether the power control chip is supplying power to the mainboard; Determining whether the power control chip on the mainboard supplies power to the mainboard includes: Determining whether the power control chip has current output; When the power control chip has current output, determining that the power control chip on the mainboard supplies power to the mainboard; When the power control chip has no current output, determining that the power control chip on the mainboard does not supply power to the mainboard; The power module includes a controllable switch, a first end of the controllable switch is connected to an input end of the power module, a second end of the controllable switch is connected to an output end of the power module, a control end of the controllable switch is connected to a power-on monitoring module, and the controllable switch remains closed in a default state; Controlling the power module of the server to reset includes: The controllable switch is controlled to be opened and then closed.
2. The server power-on control method according to claim 1, characterized in that: When the power module supplies power to the power control chip, determining whether the power control chip supplies power to the mainboard includes: When the power module supplies power to the power control chip, the control timer starts recording time; When the time recorded by the timer reaches a preset time length, it is determined whether the power control chip is supplying power to the mainboard.
3. The server power-on control method according to any one of claims 1 to 2, characterized in that: The server also includes a prompt module, and the prompt module is connected to the power-on monitoring module; Before stopping judging whether the power control chip is supplying power to the mainboard, the method further includes: The control prompt module prompts that the server fails to power on.
4. The server power-on control method according to claim 3, characterized in that: Also includes: When the power control chip supplies power to the mainboard, the control prompt module prompts that the server is powered on successfully.
5. A power-on control system for a server, characterized in that: include: A judging unit, used to judge whether the power control chip is supplying power to the mainboard when the power module is supplying power to the power control chip; Determine whether the value recorded by the counter exceeds the preset number of times; A control unit, used for initializing a counter; when the power control chip does not supply power to the mainboard, controlling the value recorded by the counter to increase by 1; When the value does not exceed the preset number of times, the power module of the server is controlled to reset, and the process of returning to the step of determining whether the power control chip on the mainboard has an output is returned; when the value exceeds the preset number of times, the process of stopping determining whether the power control chip is supplying power to the mainboard; Determining whether the power control chip on the mainboard supplies power to the mainboard includes: Determining whether the power control chip has current output; When the power control chip has current output, determining that the power control chip on the mainboard supplies power to the mainboard; When the power control chip has no current output, determining that the power control chip on the mainboard does not supply power to the mainboard; The power module includes a controllable switch, a first end of the controllable switch is connected to an input end of the power module, a second end of the controllable switch is connected to an output end of the power module, a control end of the controllable switch is connected to a power-on monitoring module, and the controllable switch remains closed in a default state; Controlling the power module of the server to reset includes: The controllable switch is controlled to be opened and then closed.
6. A power-on control device for a server, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the power-on control method of the server as claimed in any one of claims 1 to 4 when executing the computer program.
7. A server, characterized in that: The invention comprises the power-on control device of the server as claimed in claim 6.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the power-on control method of the server according to any one of claims 1 to 4 are implemented.
Citation Information
Patent Citations
Multi-power module electrification control method and system
CN102711312A
System for improving mainboard power supply stability of server
CN107861422A