WO2021103598A1 - 一种服务器启动方法与装置 - Google Patents

一种服务器启动方法与装置 Download PDF

Info

Publication number
WO2021103598A1
WO2021103598A1 PCT/CN2020/103709 CN2020103709W WO2021103598A1 WO 2021103598 A1 WO2021103598 A1 WO 2021103598A1 CN 2020103709 W CN2020103709 W CN 2020103709W WO 2021103598 A1 WO2021103598 A1 WO 2021103598A1
Authority
WO
WIPO (PCT)
Prior art keywords
bmc
control signal
operating system
server
response
Prior art date
Application number
PCT/CN2020/103709
Other languages
English (en)
French (fr)
Inventor
李道童
李婷婷
Original Assignee
苏州浪潮智能科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 苏州浪潮智能科技有限公司 filed Critical 苏州浪潮智能科技有限公司
Publication of WO2021103598A1 publication Critical patent/WO2021103598A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4406Loading of operating system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Definitions

  • the present invention relates to the field of switches, and more specifically, to a server startup method and device.
  • BIOS Basic Input Output System
  • BMC Baseboard Management Controller
  • BIOS and BMC are started at the same time. Since the BIOS needs to send the detected server information to the BMC, when the BIOS starts to execute, it will send a self-test (self-test) command to the BMC to determine whether the BMC has been self-checked and started. , BIOS will add a delay waiting time at this time, usually 5 minutes. However, due to the inconsistency of the hanging stage when the BMC hangs, the return time of the underlying function that sends the self test is inconsistent, resulting in the waiting delay time far greater than 5 minutes.
  • the purpose of the embodiments of the present invention is to provide a server startup method and device, which can start the operating system within a predictable time to perform work or repair the BMC, thereby improving work efficiency.
  • the first aspect of the embodiments of the present invention provides a server startup method, including the following steps executed by the BIOS:
  • the BMC In response to the monitoring of the jumper control signal indicating that the BMC status determination is skipped, the BMC is determined to be dead and immediately starts to boot the server's operating system to start;
  • the operating system In response to the normal startup of the operating system and the BMC hanging up, the operating system is used to refresh the firmware of the BMC to correct the hanging up of the BMC.
  • the jumper control signal is manually controlled; the method further includes: in response to manually determining that the BMC is hanging up, manually setting the jumper control signal to a high level to indicate that the BMC status determination is skipped.
  • the BMC control signal is input by the BMC; the method further includes: in response to the completion of the BMC self-check, using the bottom layer return function of the BMC to set the BMC control signal to a high level to indicate the completion of the BMC self-check.
  • the default state of the jumper control signal is a low level indicating that the BMC state is waiting to be determined; the default state of the BMC control signal is a low level indicating that the BMC self-check is not completed.
  • determining that the BMC is dead and immediately starting to boot the operating system of the server further includes: interrupting the communication connection with the BMC until the operating system is started.
  • a second aspect of the embodiments of the present invention provides a server startup device, including:
  • the memory stores program codes that can be run by the processor.
  • the BIOS executes the following steps:
  • the BMC In response to the monitoring of the jumper control signal indicating that the BMC status determination is skipped, the BMC is determined to be dead and immediately starts to boot the server's operating system to start;
  • the operating system In response to the normal startup of the operating system and the BMC hanging up, the operating system is used to refresh the firmware of the BMC to correct the hanging up of the BMC.
  • the jumper control signal is manually controlled; the step further includes: in response to the manual judgment that the BMC hangs up, manually setting the jumper control signal to a high level to indicate that the BMC status judgment is skipped.
  • the BMC control signal is input by the BMC; the step further includes: in response to the completion of the BMC self-check, using the bottom layer return function of the BMC to set the BMC control signal to a high level to indicate the completion of the BMC self-check.
  • the default state of the jumper control signal is a low level indicating that the BMC state is waiting to be determined; the default state of the BMC control signal is a low level indicating that the BMC self-check is not completed.
  • determining that the BMC is dead and immediately starting to boot the operating system of the server further includes: interrupting the communication connection with the BMC until the operating system is started.
  • the server startup method and device provided by the embodiments of the present invention continuously monitor the jumper control signal and the BMC control signal from the motherboard after receiving the server startup signal; in response to monitoring the jumper The control signal indicates that the BMC status judgment is skipped, and it is determined that the BMC is hung up and immediately starts to boot the server's operating system; in response to the monitoring of the BMC control signal indicating that the BMC self-check is completed, it is determined that the BMC is successfully started and immediately starts to boot the server's operating system Start; In response to monitoring the jumper control signal to continuously indicate waiting for the BMC status determination and the BMC control signal to continuously indicate that the BMC self-check has not been completed for a predetermined length of time, it is determined that the BMC hangs and immediately starts to boot the server's operating system to start; in response to the operation The system starts normally and the BMC hangs up, and the technical solution of using the operating system to refresh the firmware of the BMC to correct the hang up of the BMC can start
  • Fig. 1 is a schematic flowchart of a server startup method provided by the present invention.
  • Fig. 1 shows a schematic flowchart of a server startup method provided by the present invention.
  • the server startup method includes the following steps executed by the BIOS:
  • Step S101 After receiving the start signal of the server, continuously monitor the jumper control signal and the BMC control signal from the motherboard;
  • Step S103 In response to the monitoring of the jumper control signal indicating that the BMC status determination is skipped, it is determined that the BMC is hung up and immediately starts to boot the operating system of the server to start;
  • Step S105 In response to monitoring that the BMC control signal indicates that the BMC self-check is completed, it is determined that the BMC has been successfully started and immediately starts to boot the operating system of the server to start;
  • Step S107 In response to monitoring that the jumper control signal continues to indicate to wait for the BMC status determination and the BMC control signal continues to indicate that the BMC self-check has not been completed for a predetermined length of time, it is determined that the BMC is hung up and immediately starts to boot the operating system of the server to start;
  • Step S109 In response to the operating system is normally started and the BMC hangs up, the operating system is used to refresh the firmware of the BMC to correct the hang up of the BMC.
  • the invention fundamentally optimizes the logic of BIOS judging the BMC status by using jumper control signals and BMC control signals.
  • BIOS BIOS judging the BMC status
  • customers can use jumpers to actively skip the logic of judging the BMC status;
  • Using the jumper method by judging the level of the BMC state, it is completed to enter the OS after waiting for a fixed time, and the repair measures after the BMC hangs are completed.
  • This solution solves the problem of uncertain waiting time and long waiting time in the existing solutions, and greatly improves the processing efficiency for correcting the abnormal problem of BMC hanging up.
  • the program can be stored in a computer readable storage medium. At this time, it may include the procedures of the embodiments of the above-mentioned methods.
  • the storage medium can be a magnetic disk, an optical disc, a read-only memory (ROM) or a random access memory (RAM), etc.
  • the embodiment of the computer program can achieve the same or similar effect as any of the aforementioned method embodiments.
  • the jumper control signal is manually controlled; the method further includes: in response to manually determining that the BMC is hanging up, manually setting the jumper control signal to a high level to indicate that the BMC status determination is skipped.
  • the BMC control signal is input by the BMC; the method further includes: in response to the completion of the BMC self-check, using the bottom layer return function of the BMC to set the BMC control signal to a high level to indicate the completion of the BMC self-check.
  • the default state of the jumper control signal is a low level indicating that the BMC state is waiting to be determined; the default state of the BMC control signal is a low level indicating that the BMC self-check is not completed.
  • determining that the BMC is dead and immediately starting to boot the operating system of the server further includes: interrupting the communication connection with the BMC until the operating system is started.
  • the method disclosed according to the embodiment of the present invention may also be implemented as a computer program executed by a CPU (Central Processing Unit), and the computer program may be stored in a computer-readable storage medium.
  • the computer program executes the above-mentioned functions defined in the method disclosed in the embodiment of the present invention.
  • the above method steps and system units can also be implemented using a controller and a computer-readable storage medium for storing a computer program that enables the controller to implement the above steps or unit functions.
  • the BIOS first obtains the state of signal A after booting. After manually judging that the BMC has hung up, operate the jumper to set the A signal to a high level. If the BIOS reads that the A signal is high, it skips the BMC state judgment mechanism, continues to execute it, and completes the subsequent boot OS process. If the BIOS reads the A signal as the default low level, it will determine the BMC status. After the BIOS starts to boot, it sets a cycle program for a certain period of time (for example, 5 minutes) to read the level status of the determination signal B.
  • the B signal defaults to low level.
  • the signal B is set to high level, indicating that the BMC status is normal.
  • the signal B is high, then it will exit the loop and continue to complete the subsequent boot OS process.
  • the read signal B level has been kept at a low level, it will wait after the 5-minute loop Turn off the communication mechanism with BMC, and continue to complete the following boot OS process. After entering the OS, you can refresh the BMC firmware if necessary to correct the failure of the BMC hanging up.
  • the server startup method provided by the embodiment of the present invention continuously monitors the jumper control signal and BMC control signal from the motherboard after receiving the server startup signal; in response to monitoring the jumper control signal Instruct to skip the BMC status judgment, and determine that the BMC hangs up and immediately start booting the operating system of the server; in response to listening to the BMC control signal indicating that the BMC self-check is completed, it is determined that the BMC is successfully started and immediately starts to boot the operating system of the server; In response to listening to the jumper control signal to continuously indicate to wait for the BMC status determination and the BMC control signal to continuously indicate that the BMC self-check has not been completed for a predetermined length of time, it is determined that the BMC is hung up and immediately starts to boot the server's operating system to start; in response to the operating system being normal
  • the technical solution of using the operating system to refresh the firmware of the BMC to correct the failure of the BMC can start the operating system to perform work or repair the BMC within a predictable time, and
  • the server startup device includes:
  • the memory stores program codes that can be run by the processor.
  • the BIOS executes the following steps:
  • the BMC In response to the monitoring of the jumper control signal indicating that the BMC status determination is skipped, the BMC is determined to be dead and immediately starts to boot the server's operating system to start;
  • the operating system In response to the normal startup of the operating system and the BMC hanging up, the operating system is used to refresh the firmware of the BMC to correct the hanging up of the BMC.
  • the jumper control signal is manually controlled; the step further includes: in response to the manual judgment that the BMC hangs up, manually setting the jumper control signal to a high level to indicate that the BMC status judgment is skipped.
  • the BMC control signal is input by the BMC; the step further includes: in response to the completion of the BMC self-check, using the bottom layer return function of the BMC to set the BMC control signal to a high level to indicate the completion of the BMC self-check.
  • the default state of the jumper control signal is a low level indicating that the BMC state is waiting to be determined; the default state of the BMC control signal is a low level indicating that the BMC self-check is not completed.
  • determining that the BMC is dead and immediately starting to boot the operating system of the server further includes: interrupting the communication connection with the BMC until the operating system is started.
  • the server startup device provided by the embodiment of the present invention continuously monitors the jumper control signal and BMC control signal from the motherboard after receiving the server startup signal; in response to monitoring the jumper control signal Instruct to skip the BMC status judgment, and determine that the BMC hangs up and immediately start booting the operating system of the server; in response to listening to the BMC control signal indicating that the BMC self-check is completed, it is determined that the BMC is successfully started and immediately starts to boot the operating system of the server; In response to listening to the jumper control signal to continuously indicate to wait for the BMC status determination and the BMC control signal to continuously indicate that the BMC self-check has not been completed for a predetermined length of time, it is determined that the BMC is hung up and immediately starts to boot the server's operating system to start; in response to the operating system being normal
  • the technical solution of using the operating system to refresh the firmware of the BMC to correct the failure of the BMC can start the operating system to perform work or repair the BMC within a predictable time, and
  • the foregoing embodiment of the server startup device uses the embodiment of the server startup method to specifically describe the working process of each module. Those skilled in the art can easily think of applying these modules to the server startup. In other embodiments of the method. Of course, since the steps in the embodiment of the server startup method can be crossed, replaced, added, or deleted, these reasonable permutations and combinations should also belong to the protection scope of the present invention for the server startup device. And the protection scope of the present invention should not be limited to the above-mentioned embodiments.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

一种服务器启动方法与装置,方法包括:在接收到服务器的启动信号后,持续监听来自主板的跳线控制信号和BMC控制信号;响应于监听到跳线控制信号指示跳过BMC状态判断,而判定BMC挂死并立即开始引导服务器的操作系统启动;响应于监听到BMC控制信号指示BMC自检完成,而判定BMC成功启动并立即开始引导服务器的操作系统启动;响应于监听到跳线控制信号持续指示等待BMC状态判断并且BMC控制信号持续指示BMC自检未完成达到预定时间长度,而判定BMC挂死并立即开始引导服务器的操作系统启动;响应于操作系统正常启动并且BMC挂死,而使用操作系统刷新BMC的固件以修正BMC的挂死。

Description

一种服务器启动方法与装置
本申请要求于2019年11月29日提交中国专利局、申请号为201911206519.4、发明名称为“一种服务器启动方法与装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及交换机领域,更具体地,特别是指一种服务器启动方法与装置。
背景技术
近年来,随着大数据及云计算等业务的发展,服务器逐渐普及到各行各业。BIOS(基本输入输出系统)与BMC(基板管理控制器)都是服务器上最重要的底层软件之一。BMC的软件使用嵌入式Linux系统,硬件为ARM控制器,BMC负责监控管理服务器系统,BIOS负责初始化服务器硬件,引导服务器进入到OS(操作系统)环境中供客户使用。
服务器上电后,BIOS与BMC同时启动,由于BIOS需要将检测到的服务器信息发送给BMC,所以BIOS开始执行时,会发送self test(自检测试)命令给BMC判断BMC是否已经自检启动完成,此时BIOS会添加一个延时等待时间,一般是5分钟。然而由于BMC挂死时挂死的阶段不一致,导致发送self test的底层函数返回时间不一致,造成等待的延时时间远大于5分钟。这导致由于BMC异常,BIOS等待BMC的响应时间不可控,不是明确的等待5分钟就可以启动,使得启动体验非常差。由于BMC挂死后需要通过BIOS引导OS,进入OS后重新更新BMC的固件程序修复挂死的BMC,因此不明确的引导时间会导致客服修复BMC的处理效率非常低,影响操作作业与客户的感受。
针对现有技术中BMC响应不可控影响服务器启动慢、处理效率低的问题,目前尚无有效的解决方案。
发明内容
有鉴于此,本发明实施例的目的在于提出一种服务器启动方法与装置,能够在可预期的时间内启动操作系统以执行工作或修复BMC,提高工作效率。
基于上述目的,本发明实施例的第一方面提供了一种服务器启动方法,包括由BIOS执行以下步骤:
在接收到服务器的启动信号后,持续监听来自主板的跳线控制信号和BMC控制信号;
响应于监听到跳线控制信号指示跳过BMC状态判断,而判定BMC挂死并立即开始引导服务器的操作系统启动;
响应于监听到BMC控制信号指示BMC自检完成,而判定BMC成功启动并立即开始引导服务器的操作系统启动;
响应于监听到跳线控制信号持续指示等待BMC状态判断并且BMC控制信号持续指示BMC自检未完成达到预定时间长度,而判定BMC挂死并立即开始引导服务器的操作系统启动;
响应于操作系统正常启动并且BMC挂死,而使用操作系统刷新BMC的固件以修正BMC的挂死。
在一些实施方式中,跳线控制信号由人工控制;方法还包括:响应于人工判断BMC挂死而使用人工手段将跳线控制信号置为高电平以指示跳过BMC状态判断。
在一些实施方式中,BMC控制信号由BMC输入;方法还包括:响应于BMC自检完成而使用BMC的底层返回函数将BMC控制信号置为高电平以指示BMC自检完成。
在一些实施方式中,跳线控制信号的默认状态为指示等待BMC状态判断的低电平;BMC控制信号的默认状态为指示BMC自检未完成的低电平。
在一些实施方式中,判定BMC挂死并立即开始引导服务器的操作系统启动还包括:中断与BMC的通信连接直到操作系统启动完成。
本发明实施例的第二方面提供了一种服务器启动装置,包括:
处理器;和
存储器,存储有处理器可运行的程序代码,程序代码在被运行时由 BIOS执行以下步骤:
在接收到服务器的启动信号后,持续监听来自主板的跳线控制信号和BMC控制信号;
响应于监听到跳线控制信号指示跳过BMC状态判断,而判定BMC挂死并立即开始引导服务器的操作系统启动;
响应于监听到BMC控制信号指示BMC自检完成,而判定BMC成功启动并立即开始引导服务器的操作系统启动;
响应于监听到跳线控制信号持续指示等待BMC状态判断并且BMC控制信号持续指示BMC自检未完成达到预定时间长度,而判定BMC挂死并立即开始引导服务器的操作系统启动;
响应于操作系统正常启动并且BMC挂死,而使用操作系统刷新BMC的固件以修正BMC的挂死。
在一些实施方式中,跳线控制信号由人工控制;步骤还包括:响应于人工判断BMC挂死而使用人工手段将跳线控制信号置为高电平以指示跳过BMC状态判断。
在一些实施方式中,BMC控制信号由BMC输入;步骤还包括:响应于BMC自检完成而使用BMC的底层返回函数将BMC控制信号置为高电平以指示BMC自检完成。
在一些实施方式中,跳线控制信号的默认状态为指示等待BMC状态判断的低电平;BMC控制信号的默认状态为指示BMC自检未完成的低电平。
在一些实施方式中,判定BMC挂死并立即开始引导服务器的操作系统启动还包括:中断与BMC的通信连接直到操作系统启动完成。
本发明具有以下有益技术效果:本发明实施例提供的服务器启动方法与装置,通过在接收到服务器的启动信号后,持续监听来自主板的跳线控制信号和BMC控制信号;响应于监听到跳线控制信号指示跳过BMC状态判断,而判定BMC挂死并立即开始引导服务器的操作系统启动;响应于监听到BMC控制信号指示BMC自检完成,而判定BMC成功启动并立即开始引导服务器的操作系统启动;响应于监听到跳线控制信号持续指示等待BMC状态判断并且BMC控制信号持续指示BMC自检未完成达到预定 时间长度,而判定BMC挂死并立即开始引导服务器的操作系统启动;响应于操作系统正常启动并且BMC挂死,而使用操作系统刷新BMC的固件以修正BMC的挂死的技术方案,能够在可预期的时间内启动操作系统以执行工作或修复BMC,提高工作效率。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本发明提供的服务器启动方法的流程示意图。
具体实施方式
为使本发明的目的、技术方案和优点更加清楚明白,以下结合具体实施例,并参照附图,对本发明实施例进一步详细说明。
需要说明的是,本发明实施例中所有使用“第一”和“第二”的表述均是为了区分两个相同名称非相同的实体或者非相同的参量,可见“第一”“第二”仅为了表述的方便,不应理解为对本发明实施例的限定,后续实施例对此不再一一说明。
基于上述目的,本发明实施例的第一个方面,提出了一种能够在可预期的时间内启动操作系统的服务器启动方法一个实施例。图1示出的是本发明提供的服务器启动方法的流程示意图。
所述服务器启动方法,如图1所示,包括由BIOS执行以下步骤:
步骤S101:在接收到服务器的启动信号后,持续监听来自主板的跳线控制信号和BMC控制信号;
步骤S103:响应于监听到跳线控制信号指示跳过BMC状态判断,而判定BMC挂死并立即开始引导服务器的操作系统启动;
步骤S105:响应于监听到BMC控制信号指示BMC自检完成,而判 定BMC成功启动并立即开始引导服务器的操作系统启动;
步骤S107:响应于监听到跳线控制信号持续指示等待BMC状态判断并且BMC控制信号持续指示BMC自检未完成达到预定时间长度,而判定BMC挂死并立即开始引导服务器的操作系统启动;
步骤S109:响应于操作系统正常启动并且BMC挂死,而使用操作系统刷新BMC的固件以修正BMC的挂死。
本发明通过使用跳线控制信号和BMC控制信号将BIOS判断BMC状态的逻辑进行了根本上的优化,当BMC异常挂死后,客户可以使用跳线主动跳过判断BMC状态的逻辑;也可以不使用跳线的方式,通过判断BMC状态的电平,完成在等待固定时间后进入OS,完成BMC挂死后的修复措施。此方案解决了现有方案等待时间不确定,等待时间长的问题,对于修正BMC挂死的异常问题处理效率提升非常大。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,可以通过计算机程序来指令相关硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(ROM)或随机存储记忆体(RAM)等。所述计算机程序的实施例,可以达到与之对应的前述任意方法实施例相同或者相类似的效果。
在一些实施方式中,跳线控制信号由人工控制;方法还包括:响应于人工判断BMC挂死而使用人工手段将跳线控制信号置为高电平以指示跳过BMC状态判断。
在一些实施方式中,BMC控制信号由BMC输入;方法还包括:响应于BMC自检完成而使用BMC的底层返回函数将BMC控制信号置为高电平以指示BMC自检完成。
在一些实施方式中,跳线控制信号的默认状态为指示等待BMC状态判断的低电平;BMC控制信号的默认状态为指示BMC自检未完成的低电平。
在一些实施方式中,判定BMC挂死并立即开始引导服务器的操作系统启动还包括:中断与BMC的通信连接直到操作系统启动完成。
根据本发明实施例公开的方法还可以被实现为由CPU(中央处理器) 执行的计算机程序,该计算机程序可以存储在计算机可读存储介质中。在该计算机程序被CPU执行时,执行本发明实施例公开的方法中限定的上述功能。上述方法步骤以及系统单元也可以利用控制器以及用于存储使得控制器实现上述步骤或单元功能的计算机程序的计算机可读存储介质实现。
下面根据具体实施例来进一步阐述本发明的具体实施方式。
首先从主板输出两个信号A与B到BIOS。信号A由主板jumper(跳线)输入,信号B由BMC输入,两个信号均默认低电平。
信号 低电平(默认) 高电平
A(跳线控制) 等待BMC状态判断 跳过BMC状态判断
B(BMC控制) BMC状态异常 BMC状态正常
BIOS开机后优先获取信号A的状态。当人工判断BMC已经挂死后,操作jumper将A信号设置为高电平。BIOS若读取A信号为高电平,则跳过BMC状态判断机制,继续往后执行,完成后面的引导OS过程。BIOS若读取A信号为默认低电平,则判断BMC状态,BIOS开始启动后,设置一定时间(例如5分钟)的循环程序,读取判断信号B的电平状态。
B信号默认低电平。当BMC自检成功后,设置信号B为高电平,表明BMC状态正常。在5分钟的循环读取过程中,若信号B为高电平,则跳出循环继续完成后面的引导OS过程,若读取信号B电平一直保持为低电平,则在5分钟循环等待后关掉与BMC的通信机制,继续完成后面的引导OS过程。进入OS后若有需要可以重新刷新BMC固件,修正BMC挂死的故障。
从上述实施例可以看出,本发明实施例提供的服务器启动方法,通过在接收到服务器的启动信号后,持续监听来自主板的跳线控制信号和BMC控制信号;响应于监听到跳线控制信号指示跳过BMC状态判断,而判定BMC挂死并立即开始引导服务器的操作系统启动;响应于监听到BMC控制信号指示BMC自检完成,而判定BMC成功启动并立即开始引导服务器的操作系统启动;响应于监听到跳线控制信号持续指示等待BMC状态判断并且BMC控制信号持续指示BMC自检未完成达到预定时 间长度,而判定BMC挂死并立即开始引导服务器的操作系统启动;响应于操作系统正常启动并且BMC挂死,而使用操作系统刷新BMC的固件以修正BMC的挂死的技术方案,能够在可预期的时间内启动操作系统以执行工作或修复BMC,提高工作效率。
需要特别指出的是,上述服务器启动方法的各个实施例中的各个步骤均可以相互交叉、替换、增加、删减,因此,这些合理的排列组合变换之于服务器启动方法也应当属于本发明的保护范围,并且不应将本发明的保护范围局限在所述实施例之上。
基于上述目的,本发明实施例的第二个方面,提出了一种能够在可预期的时间内启动操作系统的服务器启动装置的一个实施例。服务器启动装置包括:
处理器;和
存储器,存储有处理器可运行的程序代码,程序代码在被运行时由BIOS执行以下步骤:
在接收到服务器的启动信号后,持续监听来自主板的跳线控制信号和BMC控制信号;
响应于监听到跳线控制信号指示跳过BMC状态判断,而判定BMC挂死并立即开始引导服务器的操作系统启动;
响应于监听到BMC控制信号指示BMC自检完成,而判定BMC成功启动并立即开始引导服务器的操作系统启动;
响应于监听到跳线控制信号持续指示等待BMC状态判断并且BMC控制信号持续指示BMC自检未完成达到预定时间长度,而判定BMC挂死并立即开始引导服务器的操作系统启动;
响应于操作系统正常启动并且BMC挂死,而使用操作系统刷新BMC的固件以修正BMC的挂死。
在一些实施方式中,跳线控制信号由人工控制;步骤还包括:响应于人工判断BMC挂死而使用人工手段将跳线控制信号置为高电平以指示跳过BMC状态判断。
在一些实施方式中,BMC控制信号由BMC输入;步骤还包括:响应于BMC自检完成而使用BMC的底层返回函数将BMC控制信号置为高电 平以指示BMC自检完成。
在一些实施方式中,跳线控制信号的默认状态为指示等待BMC状态判断的低电平;BMC控制信号的默认状态为指示BMC自检未完成的低电平。
在一些实施方式中,判定BMC挂死并立即开始引导服务器的操作系统启动还包括:中断与BMC的通信连接直到操作系统启动完成。
从上述实施例可以看出,本发明实施例提供的服务器启动装置,通过在接收到服务器的启动信号后,持续监听来自主板的跳线控制信号和BMC控制信号;响应于监听到跳线控制信号指示跳过BMC状态判断,而判定BMC挂死并立即开始引导服务器的操作系统启动;响应于监听到BMC控制信号指示BMC自检完成,而判定BMC成功启动并立即开始引导服务器的操作系统启动;响应于监听到跳线控制信号持续指示等待BMC状态判断并且BMC控制信号持续指示BMC自检未完成达到预定时间长度,而判定BMC挂死并立即开始引导服务器的操作系统启动;响应于操作系统正常启动并且BMC挂死,而使用操作系统刷新BMC的固件以修正BMC的挂死的技术方案,能够在可预期的时间内启动操作系统以执行工作或修复BMC,提高工作效率。
需要特别指出的是,上述服务器启动装置的实施例采用了所述服务器启动方法的实施例来具体说明各模块的工作过程,本领域技术人员能够很容易想到,将这些模块应用到所述服务器启动方法的其他实施例中。当然,由于所述服务器启动方法实施例中的各个步骤均可以相互交叉、替换、增加、删减,因此,这些合理的排列组合变换之于所述服务器启动装置也应当属于本发明的保护范围,并且不应将本发明的保护范围局限在所述实施例之上。
以上是本发明公开的示例性实施例,但是应当注意,在不背离权利要求限定的本发明实施例公开的范围的前提下,可以进行多种改变和修改。根据这里描述的公开实施例的方法权利要求的功能、步骤和/或动作不需以任何特定顺序执行。此外,尽管本发明实施例公开的元素可以以个体形式描述或要求,但除非明确限制为单数,也可以理解为多个。
应当理解的是,在本文中使用的,除非上下文清楚地支持例外情况, 单数形式“一个”旨在也包括复数形式。还应当理解的是,在本文中使用的“和/或”是指包括一个或者一个以上相关联地列出的项目的任意和所有可能组合。上述本发明实施例公开实施例序号仅仅为了描述,不代表实施例的优劣。
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。
所属领域的普通技术人员应当理解:以上任何实施例的讨论仅为示例性的,并非旨在暗示本发明实施例公开的范围(包括权利要求)被限于这些例子;在本发明实施例的思路下,以上实施例或者不同实施例中的技术特征之间也可以进行组合,并存在如上所述的本发明实施例的不同方面的许多其它变化,为了简明它们没有在细节中提供。因此,凡在本发明实施例的精神和原则之内,所做的任何省略、修改、等同替换、改进等,均应包含在本发明实施例的保护范围之内。

Claims (10)

  1. 一种服务器启动方法,其特征在于,包括由BIOS执行以下步骤:
    在接收到服务器的启动信号后,持续监听来自主板的跳线控制信号和BMC控制信号;
    响应于监听到所述跳线控制信号指示跳过BMC状态判断,而判定BMC挂死并立即开始引导服务器的操作系统启动;
    响应于监听到所述BMC控制信号指示BMC自检完成,而判定BMC成功启动并立即开始引导服务器的操作系统启动;
    响应于监听到所述跳线控制信号持续指示等待BMC状态判断并且所述BMC控制信号持续指示BMC自检未完成达到预定时间长度,而判定BMC挂死并立即开始引导服务器的操作系统启动;
    响应于操作系统正常启动并且BMC挂死,而使用操作系统刷新BMC的固件以修正BMC的挂死。
  2. 根据权利要求1所述的方法,其特征在于,所述跳线控制信号由人工控制;方法还包括:响应于人工判断BMC挂死而使用人工手段将所述跳线控制信号置为高电平以指示跳过BMC状态判断。
  3. 根据权利要求1所述的方法,其特征在于,所述BMC控制信号由BMC输入;方法还包括:响应于BMC自检完成而使用BMC的底层返回函数将所述BMC控制信号置为高电平以指示BMC自检完成。
  4. 根据权利要求1所述的方法,其特征在于,所述跳线控制信号的默认状态为指示等待BMC状态判断的低电平;所述BMC控制信号的默认状态为指示BMC自检未完成的低电平。
  5. 根据权利要求1所述的方法,其特征在于,判定BMC挂死并立即开始引导服务器的操作系统启动还包括:中断与BMC的通信连接直到操作系统启动完成。
  6. 一种服务器启动装置,其特征在于,包括:
    处理器;和
    存储器,存储有处理器可运行的程序代码,所述程序代码在被运行时执行以下步骤:
    在接收到服务器的启动信号后,持续监听来自主板的跳线控制信号和 BMC控制信号;
    响应于监听到所述跳线控制信号指示跳过BMC状态判断,而判定BMC挂死并立即开始引导服务器的操作系统启动;
    响应于监听到所述BMC控制信号指示BMC自检完成,而判定BMC成功启动并立即开始引导服务器的操作系统启动;
    响应于监听到所述跳线控制信号持续指示等待BMC状态判断并且所述BMC控制信号持续指示BMC自检未完成达到预定时间长度,而判定BMC挂死并立即开始引导服务器的操作系统启动;
    响应于操作系统正常启动并且BMC挂死,而使用操作系统刷新BMC的固件以修正BMC的挂死。
  7. 根据权利要求6所述的装置,其特征在于,所述跳线控制信号由人工控制;所述步骤还包括:响应于人工判断BMC挂死而使用人工手段将所述跳线控制信号置为高电平以指示跳过BMC状态判断。
  8. 根据权利要求6所述的装置,其特征在于,所述BMC控制信号由BMC输入;所述步骤还包括:响应于BMC自检完成而使用BMC的底层返回函数将所述BMC控制信号置为高电平以指示BMC自检完成。
  9. 根据权利要求6所述的装置,其特征在于,所述跳线控制信号的默认状态为指示等待BMC状态判断的低电平;所述BMC控制信号的默认状态为指示BMC自检未完成的低电平。
  10. 根据权利要求6所述的装置,其特征在于,判定BMC挂死并立即开始引导服务器的操作系统启动还包括:中断与BMC的通信连接直到操作系统启动完成。
PCT/CN2020/103709 2019-11-29 2020-07-23 一种服务器启动方法与装置 WO2021103598A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911206519.4A CN111124509B (zh) 2019-11-29 2019-11-29 一种服务器启动方法与装置
CN201911206519.4 2019-11-29

Publications (1)

Publication Number Publication Date
WO2021103598A1 true WO2021103598A1 (zh) 2021-06-03

Family

ID=70496226

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/103709 WO2021103598A1 (zh) 2019-11-29 2020-07-23 一种服务器启动方法与装置

Country Status (2)

Country Link
CN (1) CN111124509B (zh)
WO (1) WO2021103598A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111124509B (zh) * 2019-11-29 2021-07-06 苏州浪潮智能科技有限公司 一种服务器启动方法与装置
CN111737064A (zh) * 2020-06-29 2020-10-02 深圳市同泰怡信息技术有限公司 一种bmc系统控制方法、装置、存储介质和计算机设备
CN115033462B (zh) * 2022-08-09 2023-01-10 苏州浪潮智能科技有限公司 存储服务器启动检测方法、系统、装置、设备及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102388371A (zh) * 2011-09-21 2012-03-21 华为技术有限公司 一种主板设备检测方法、装置和系统
US20140129821A1 (en) * 2012-11-06 2014-05-08 Hong Fu Jin Precision Industry (Shenzhen) Co., Ltd. Test system and method for computer
CN103970118A (zh) * 2013-02-04 2014-08-06 鸿富锦精密工业(深圳)有限公司 Bmc运行状态显示系统及方法
CN110096414A (zh) * 2019-05-08 2019-08-06 苏州浪潮智能科技有限公司 一种服务器监控方法、装置、设备及介质
CN111124509A (zh) * 2019-11-29 2020-05-08 苏州浪潮智能科技有限公司 一种服务器启动方法与装置

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201351133A (zh) * 2012-06-13 2013-12-16 Hon Hai Prec Ind Co Ltd 系統事件讀取方法及系統
CN103885869A (zh) * 2012-12-20 2014-06-25 鸿富锦精密工业(深圳)有限公司 基板管理控制器安全保护系统及方法
CN103150279B (zh) * 2013-04-02 2015-05-06 无锡江南计算技术研究所 一种主机与基板管理控制器共享设备的方法
CN104598329A (zh) * 2015-02-12 2015-05-06 浪潮电子信息产业股份有限公司 一种基于rmc管理的自动bmc故障解决方法
CN105022629B (zh) * 2015-06-29 2018-02-23 浪潮电子信息产业股份有限公司 开机控制方法、装置和服务器
CN106411643B (zh) * 2016-09-22 2019-12-06 新华三信息技术有限公司 Bmc检测方法以及装置
CN107621995B (zh) * 2017-09-22 2020-11-27 苏州浪潮智能科技有限公司 一种防止连续触发重启键导致bmc挂死的系统及方法
CN111475218A (zh) * 2020-04-26 2020-07-31 中国长城科技集团股份有限公司 一种服务器的开机方法、服务器及计算机可读存储介质

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102388371A (zh) * 2011-09-21 2012-03-21 华为技术有限公司 一种主板设备检测方法、装置和系统
US20140129821A1 (en) * 2012-11-06 2014-05-08 Hong Fu Jin Precision Industry (Shenzhen) Co., Ltd. Test system and method for computer
CN103970118A (zh) * 2013-02-04 2014-08-06 鸿富锦精密工业(深圳)有限公司 Bmc运行状态显示系统及方法
CN110096414A (zh) * 2019-05-08 2019-08-06 苏州浪潮智能科技有限公司 一种服务器监控方法、装置、设备及介质
CN111124509A (zh) * 2019-11-29 2020-05-08 苏州浪潮智能科技有限公司 一种服务器启动方法与装置

Also Published As

Publication number Publication date
CN111124509B (zh) 2021-07-06
CN111124509A (zh) 2020-05-08

Similar Documents

Publication Publication Date Title
WO2021103598A1 (zh) 一种服务器启动方法与装置
TWI578233B (zh) 統一韌體管理系統、非揮發電腦可讀取媒體以及統一韌體管理方法
US10068015B2 (en) Monitoring a monitoring-target process
US7730293B2 (en) Hard disk drive self-test system and method
TWI400607B (zh) 調整記憶體內部參數的方法及使用其之電腦系統
US20210223978A1 (en) Updating operating system images of inactive compute instances
US12001285B2 (en) System booting method and apparatus, node device, and computer-readable storage medium
TW201944239A (zh) 伺服器及自動檢修基板管理控制器的方法
JP2016024811A (ja) ネットワークインターフェースコントローラ情報の帯域外取得
JP2010086364A (ja) 情報処理装置、動作状態監視装置および方法
WO2017193964A1 (zh) 一种组件升级方法、装置和系统
US20120311385A1 (en) Control server and method for switching running of test programs stored in multiple storage mediums of test server
CN111338698A (zh) 一种bios准确引导服务器启动的方法及系统
US9612935B2 (en) Enhanced resiliency testing by enabling state level control for request
US20170109175A1 (en) Selective loading of components within a node to speed up maintenance actions
US11706086B1 (en) Method and system for monitoring switch on basis of BMC, and device and medium
TWI553490B (zh) 遠端系統配置管理方法、遠端系統配置管理系統及非暫態電腦可讀式儲存多媒體
TW201734779A (zh) 通知開機階段的方法及伺服器系統
US20180046379A1 (en) Update control method, update control apparatus, and storage medium
CN112256560A (zh) 应用程序测试方法、装置及电子设备
CN114860322A (zh) 一种基板管理控制器、控制方法及电子设备
CN114817010A (zh) 一种基于Python的Redfish自动化测试方法及装置
JP2014041407A (ja) 情報処理装置、起動プログラム、および起動方法
CN111930502A (zh) 一种服务器管理方法、装置、设备及存储介质
US20240012572A1 (en) Operationalization of memories using memory information sets

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20892353

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20892353

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 20892353

Country of ref document: EP

Kind code of ref document: A1