Server power-on management method, device, equipment and machine-readable storage medium
By obtaining the startup time information of each hard disk of HDD bay in the blade server, calculating the boot delay, and issuing the power-on startup signaling on the SAS network board after waiting time, the problem of unrecognition of the hard disk is solved and ensuring that the hard disk is powered on the server. It can accurately identify during the management process, which improves the reliability and efficiency of server startup.
Patent Information
- Application Number
- CN202111587283.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-23
- Publication Date
- 2024-12-06
- Estimated Expiration
- 2041-12-23
AI Technical Summary
After the blade server restarts, the SAS network board, computing node server and HDD bay are not powered on in sequence, causing the blade server management module to not recognize the HDD bay or its expansion card. The fixed power-on redundant time may cause the waiting time to be too long or partly The hard disk has not been powered on, resulting in the hard disk not being recognized.
By sending a telecommunication command to HDD bay, obtaining the startup time information of each hard disk after the BMC is powered on, calculating the startup delay, and sending the power-on startup signaling on the SAS network board after waiting time to ensure that the hard disk is fully powered on Then start the SAS network board and computing node server.
Avoid the problem of hard disk non-identification caused by excessive delay or insufficient delay, ensure that the hard disk can accurately identify all hard disks during the server power-on management process, and improve the reliability and efficiency of server startup.
Smart Images

Figure CN114385253B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of communication technology, and in particular to a server power-on management method, device, equipment and machine-readable storage medium. Background Art
[0002] SAS network board, that is, SAS switch, Serial Attached SCSI switch. SAS Expander, SASSwitch SAS, SAS expander. RAID, Redundant Arrays of Independent Disks, independent redundant disk array. HDD bay, hard disk drawer, module for installing hard disks on blade servers. SAS pass-through board, SAS signal pass-through, no switching capability. OM, blade server management module. BMC, baseboard management controller.
[0003] In one solution, the blade server has an HDD bay. If the blade server wants to use the SAS hard disk in the HDD Bay to configure RAID normally, it is necessary to first establish a link between the blade server and the HDD Bay, then create a storage partition in the HDD Bay and mount it on the blade server. Only then can the SAS hard disk in the storage partition be identified through the RAID Mezz card of the blade server and RAID be configured. The SAS network board is the core part of the SAS data transmission module and is responsible for the management of the connection between multiple End Devices (a general term for initiator and target devices). After the entire frame is restarted, if the SAS network board, computing node server, and HDD bay are not powered on in sequence, it may cause the blade server management module OM to fail to recognize a certain HDD bay or an expansion card in the HDD bay after all devices are powered on. Because the SAS network board must wait for the HDD bay to be powered on and stable when establishing the topology, it is required that the HDD bay be powered on first and given enough time to start and stabilize, followed by the SAS network board and finally the computing node server.
[0004] However, due to hardware problems or health status, different hard disks may have different power-on times, resulting in a fixed power-on redundancy time that may cause the waiting time to be too long or some hard disks may not be fully powered on, causing some hard disks to be unrecognized. Summary of the invention
[0005] In view of this, the present disclosure provides a server power-on management method, device, electronic device, and machine-readable storage medium to improve the problem that the fixed power-on redundancy time may cause hard disk unrecognition.
[0006] The specific technical solutions are as follows:
[0007] The present invention provides a server power-on management method, which is applied to a management module of a blade server. The method includes: sending a power-on command to an HDD bay of the blade server; after the BMC of the HDD bay is powered on, obtaining the startup time information of each hard disk mounted under the HDD bay through the BMC of the HDD bay, and obtaining the startup delay according to the startup time information of each hard disk mounted under the HDD bay; after waiting for the startup delay time, sending a SAS network board power-on startup signal.
[0008] As a technical solution, after the BMC of the HDD bay is powered on, the boot time information of each hard disk mounted on the HDD bay is obtained through the BMC of the HDD bay, and the boot delay is obtained according to the boot time information of each hard disk mounted on the HDD bay, including: obtaining the maximum value of the boot time of each hard disk, and obtaining the boot delay according to the maximum value plus the safety delay required by the SAS pass-through board and / or SAS expansion card of the HDD bay.
[0009] As a technical solution, after waiting for the power-on delay, sending a SAS network board power-on start signal includes: obtaining the SAS network board power-on start status, and if the SAS network board is powered on successfully, sending a signal to power on the node server of the blade server.
[0010] As a technical solution, after the BMC of the HDD bay is powered on, the boot time information of each hard disk mounted under the HDD bay is obtained through the BMC of the HDD bay, and the boot delay is obtained according to the boot time information of each hard disk mounted under the HDD bay, including: if the BMC of the HDD bay fails to power on, an alarm message is returned.
[0011] The present disclosure also provides a server power-on management device, which is applied to a management module of a blade server. The device includes: a signaling unit, which is used to send a power-on signal to the HDD bay of the blade server; a processing unit, which is used to obtain the startup time information of each hard disk mounted on the HDD bay through the BMC of the HDD bay after the BMC of the HDD bay is powered on, and obtain the startup delay according to the startup time information of each hard disk mounted on the HDD bay; the signaling unit is also used to send a SAS network board power-on startup signal after waiting for the startup delay.
[0012] As a technical solution, after the BMC of the HDD bay is powered on, the boot time information of each hard disk mounted on the HDD bay is obtained through the BMC of the HDD bay, and the boot delay is obtained according to the boot time information of each hard disk mounted on the HDD bay, including: obtaining the maximum value of the boot time of each hard disk, and obtaining the boot delay according to the maximum value plus the safety delay required by the SAS pass-through board and / or SAS expansion card of the HDD bay.
[0013] As a technical solution, after waiting for the power-on delay, sending a SAS network board power-on start signal includes: obtaining the SAS network board power-on start status, and if the SAS network board is powered on successfully, sending a signal to power on the node server of the blade server.
[0014] As a technical solution, after the BMC of the HDD bay is powered on, the boot time information of each hard disk mounted under the HDD bay is obtained through the BMC of the HDD bay, and the boot delay is obtained according to the boot time information of each hard disk mounted under the HDD bay, including: if the BMC of the HDD bay fails to power on, an alarm message is returned.
[0015] The present disclosure also provides an electronic device, including a processor and a machine-readable storage medium, wherein the machine-readable storage medium stores machine-executable instructions that can be executed by the processor, and the processor executes the machine-executable instructions to implement the aforementioned server power-on management method.
[0016] The present disclosure also provides a machine-readable storage medium, which stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to implement the aforementioned server power-on management method.
[0017] The above technical solution provided by the present disclosure brings at least the following beneficial effects:
[0018] The hardware information of each hard disk is obtained through the BMC of the HDD bay to obtain the hard disk that takes the longest time to power on. Based on the power-on time of the hard disk, the delay before sending the power-on command to the next device is calculated, thereby avoiding the problem of slow startup due to too long delay or the problem of some hard disks not being recognized due to insufficient delay. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the embodiments of the present disclosure or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present disclosure. For ordinary technicians in this field, other drawings can also be obtained based on these drawings of the embodiments of the present disclosure.
[0020] Figure 1 is a flow chart of a server power-on management method in one embodiment of the present disclosure;
[0021] Figure 2 is a structural diagram of a server power-on management device in one embodiment of the present disclosure;
[0022] Figure 3 It is a hardware structure diagram of an electronic device in one embodiment of the present disclosure. DETAILED DESCRIPTION
[0023] The terms used in the embodiments of the present disclosure are only for the purpose of describing specific embodiments, rather than limiting the present disclosure. The singular forms of "a", "said" and "the" used in the present disclosure and claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to any or all possible combinations of one or more associated listed items.
[0024] It should be understood that although the terms first, second, third, etc. may be used to describe various information in the embodiments of the present disclosure, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present disclosure, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, in addition, the word "if" used may be interpreted as "at the time of" or "when" or "in response to determining".
[0025] The present disclosure provides a server power-on management method, device, electronic device, and machine-readable storage medium to improve the problem that the fixed power-on redundancy time may cause the hard disk to be unrecognizable.
[0026] Specifically, the technical solution is as described below.
[0027] In one embodiment, the present disclosure provides a server power-on management method, which is applied to a management module of a blade server, and the method includes: sending a power-on command to the HDD bay of the blade server; after the BMC of the HDD bay is powered on, obtaining the startup time information of each hard disk mounted on the HDD bay through the BMC of the HDD bay, and obtaining the power-on delay according to the startup time information of each hard disk mounted on the HDD bay; after waiting for the power-on delay, sending a SAS network board power-on startup signal.
[0028] Specifically, Figure 1 , including the following steps:
[0029] Step S11, sending a telecommunication command to the HDD bay of the blade server;
[0030] Step S12, after the BMC of the HDD bay is powered on, the boot time information of each hard disk mounted under the HDD bay is obtained through the BMC of the HDD bay, and the boot delay is obtained according to the boot time information of each hard disk mounted under the HDD bay;
[0031] Step S13, after waiting for the power-on delay time, a SAS network board power-on start signaling is issued.
[0032] The hardware information of each hard disk is obtained through the BMC of the HDD bay to obtain the hard disk that takes the longest time to power on. Based on the power-on time of the hard disk, the delay before sending the power-on command to the next device is calculated, thereby avoiding the problem of slow startup due to too long delay or the problem of some hard disks not being recognized due to insufficient delay.
[0033] In one embodiment, after the BMC of the HDD bay is powered on, the boot time information of each hard disk mounted under the HDD bay is obtained through the BMC of the HDD bay, and the boot delay is obtained according to the boot time information of each hard disk mounted under the HDD bay, including: obtaining the maximum value of the boot time of each hard disk, and obtaining the boot delay based on the maximum value plus the safety delay required by the SAS pass-through board and / or SAS expansion card of the HDD bay.
[0034] In one embodiment, after waiting for the power-on delay, sending a SAS network board power-on start signal includes: obtaining the SAS network board power-on start status, and if the SAS network board is powered on successfully, sending a signal to power on the node server of the blade server.
[0035] In one embodiment, after the BMC of the HDD bay is powered on, the boot time information of each hard disk mounted under the HDD bay is obtained through the BMC of the HDD bay, and the boot delay is obtained according to the boot time information of each hard disk mounted under the HDD bay, including: if the BMC of the HDD bay fails to power on, an alarm message is returned.
[0036] There is a BMC in the HDD bay. Through the BMC, the hard disk information in the HDD bay is queried to obtain the startup time information of each hard disk, including the time required for full power-on startup (T1, T2...Tn). This is used as the safe startup time. The maximum value is taken from each safe startup time, and the startup time of the SAS pass-through card and SAS expansion card is used as the safe delay Ta. Finally, the HDD bay startup delay T is calculated:
[0037] T=Max(T1,T2…Tn)+Ta.
[0038] The management module OM of the blade server sends a power-on signal to the HDD bay, and the BMC on the HDD bay is powered on. If the power-on fails, the abnormal power-on status of the HDD bay is reported to the OM for alarm. If the BMC is powered on successfully, the information of each hard disk in the HDD bay is queried, including the model, quantity and safe boot time, and finally T is calculated and passed to the OM. If the T value is abnormal, it is directly reported to the OM for alarm processing.
[0039] After the OM waits for T time, it starts to send the SAS network board start command. After the SAS network board is successfully started, the start completion flag is set to 1 and returned to OM, and OM starts the computing node server. This does not involve a fixed SAS network board start waiting time, and observes the SAS network board start flag to determine whether the startup is successful.
[0040] In one embodiment, the present disclosure also provides a server power-on management device, such as Figure 2 The management module applied to the blade server comprises: a signaling unit 21, used for sending a power-on signal to the HDD bay of the blade server; a processing unit 22, used for obtaining the startup time information of each hard disk mounted under the HDD bay through the BMC of the HDD bay after the BMC of the HDD bay is powered on, and obtaining the startup delay according to the startup time information of each hard disk mounted under the HDD bay; the signaling unit is also used for sending a SAS network board power-on startup signal after waiting for the startup delay time.
[0041] In one embodiment, after the BMC of the HDD bay is powered on, the boot time information of each hard disk mounted under the HDD bay is obtained through the BMC of the HDD bay, and the boot delay is obtained according to the boot time information of each hard disk mounted under the HDD bay, including: obtaining the maximum value of the boot time of each hard disk, and obtaining the boot delay based on the maximum value plus the safety delay required by the SAS pass-through board and / or SAS expansion card of the HDD bay.
[0042] In one embodiment, after waiting for the power-on delay, sending a SAS network board power-on start signal includes: obtaining the SAS network board power-on start status, and if the SAS network board is powered on successfully, sending a signal to power on the node server of the blade server.
[0043] In one embodiment, after the BMC of the HDD bay is powered on, the boot time information of each hard disk mounted under the HDD bay is obtained through the BMC of the HDD bay, and the boot delay is obtained according to the boot time information of each hard disk mounted under the HDD bay, including: if the BMC of the HDD bay fails to power on, an alarm message is returned.
[0044] The device implementation is the same as or similar to the corresponding method implementation, and will not be described in detail here.
[0045] In one embodiment, the present disclosure provides an electronic device, including a processor and a machine-readable storage medium, wherein the machine-readable storage medium stores machine-executable instructions that can be executed by the processor, and the processor executes the machine-executable instructions to implement the aforementioned server power-on management method. From a hardware level, the hardware architecture diagram can be seen in Figure 3 shown.
[0046] In one embodiment, the present disclosure provides a machine-readable storage medium storing machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to implement the aforementioned server power-on management method.
[0047] Here, the machine-readable storage medium may be any electronic, magnetic, optical or other physical storage device that may contain or store information, such as executable instructions, data, etc. For example, the machine-readable storage medium may be: RAM (RadomAccess Memory), volatile memory, non-volatile memory, flash memory, storage drive (such as hard disk drive), solid state drive, any type of storage disk (such as CD, DVD, etc.), or similar storage medium, or a combination thereof.
[0048] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer, which may be in the form of a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email transceiver, a game console, a tablet computer, a wearable device or a combination of any of these devices.
[0049] For the convenience of description, the above device is described in terms of functions and is divided into various units and described separately. Of course, when implementing the present disclosure, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0050] It will be appreciated by those skilled in the art that the embodiments of the present disclosure may be provided as methods, systems, or computer program products. Therefore, the present disclosure may be provided in the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the embodiments of the present disclosure may be provided in the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0051] The present disclosure is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present disclosure. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0052] Moreover, these computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.
[0053] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0054] It will be appreciated by those skilled in the art that the embodiments of the present disclosure may be provided as methods, systems or computer program products. Therefore, the present disclosure may be in the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present disclosure may be in the form of a computer program product implemented on one or more computer-usable storage media (which may include but are not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0055] The above description is only an embodiment of the present disclosure and is not intended to limit the present disclosure. For those skilled in the art, the present disclosure may have various modifications and variations. Any modification, equivalent substitution, improvement, etc. made within the spirit and principle of the present disclosure shall be included in the scope of the claims of the present disclosure.
Claims
1. A server power-on management method, It is characterized in that A management module applied to a blade server, the method comprising: Send an upload command to the HDD bay of the blade server; After the BMC of the HDD bay is powered on, the boot time information of each hard disk mounted under the HDD bay is obtained through the BMC of the HDD bay, and the boot delay is obtained according to the boot time information of each hard disk mounted under the HDD bay, including obtaining the maximum value of the boot time of each hard disk, and obtaining the boot delay according to the maximum value plus the safety delay required by the SAS pass-through board and / or SAS expansion card of the HDD bay; After waiting for the power-on delay time, the SAS network board power-on start signaling is sent.
2. The method according to claim 1, It is characterized in that After waiting for the power-on delay, sending the SAS network board power-on start signaling includes: Get the power-on status of the SAS network board. If the SAS network board is powered on successfully, send a signal to power on the node server of the blade server.
3. The method according to claim 1, It is characterized in that After the BMC of the HDD bay is powered on, the boot time information of each hard disk mounted under the HDD bay is obtained through the BMC of the HDD bay, and the boot delay is obtained according to the boot time information of each hard disk mounted under the HDD bay, including: If the BMC of the HDD bay fails to power on, an alarm message is returned.
4. A server power-on management device, It is characterized in that A management module applied to a blade server, the device comprising: The signaling unit is used to send an uplink signal to the HDD bay of the blade server; The processing unit is used for obtaining the startup time information of each hard disk mounted under the HDD bay through the BMC of the HDD bay after the BMC of the HDD bay is powered on, and obtaining the startup delay according to the startup time information of each hard disk mounted under the HDD bay, including obtaining the maximum value of the startup time of each hard disk, and obtaining the startup delay according to the maximum value plus the safety delay required by the SAS pass-through board and / or SAS expansion card of the HDD bay; The signaling unit is also used to send a SAS network board power-on start signaling after waiting for the power-on delay time.
5. The device according to claim 4, It is characterized in that After waiting for the power-on delay, sending the SAS network board power-on start signaling includes: Get the power-on status of the SAS network board. If the SAS network board is powered on successfully, send a signal to power on the node server of the blade server.
6. The device according to claim 4, It is characterized in that After the BMC of the HDD bay is powered on, the boot time information of each hard disk mounted under the HDD bay is obtained through the BMC of the HDD bay, and the boot delay is obtained according to the boot time information of each hard disk mounted under the HDD bay, including: If the BMC of the HDD bay fails to power on, an alarm message is returned.
7. An electronic device, It is characterized in that include: A processor and a machine-readable storage medium, wherein the machine-readable storage medium stores machine-executable instructions that can be executed by the processor, and the processor executes the machine-executable instructions to implement the method described in any one of claims 1 to 3.
8. A machine-readable storage medium, It is characterized in that The machine-readable storage medium stores machine-executable instructions, and when the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to implement any one of the methods of claims 1-3.
