WO2023098052A1 - Server operation and maintenance method and apparatus, and device and storage medium - Google Patents

Server operation and maintenance method and apparatus, and device and storage medium Download PDF

Info

Publication number
WO2023098052A1
WO2023098052A1 PCT/CN2022/101931 CN2022101931W WO2023098052A1 WO 2023098052 A1 WO2023098052 A1 WO 2023098052A1 CN 2022101931 W CN2022101931 W CN 2022101931W WO 2023098052 A1 WO2023098052 A1 WO 2023098052A1
Authority
WO
WIPO (PCT)
Prior art keywords
bmc
server
configuration information
servers
information
Prior art date
Application number
PCT/CN2022/101931
Other languages
French (fr)
Chinese (zh)
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 WO2023098052A1 publication Critical patent/WO2023098052A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • 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
    • 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

Definitions

  • the present application relates to the field of computer technology, and in particular to a server operation and maintenance method, device, equipment and storage medium.
  • the present application provides a server operation and maintenance method, device, equipment and medium.
  • the specific plan is as follows:
  • the present application discloses a server operation and maintenance method, including:
  • BMC image includes configuration information corresponding to different types of servers
  • the BMC After receiving the upgrade startup instruction, the BMC reads the version information of the corresponding server, and loads the corresponding target configuration information from the BMC image according to the version information;
  • the BMC performs corresponding monitoring and control on the server according to the target configuration information.
  • reading the version information of the corresponding server includes:
  • the BMC accesses the field replaceable unit through the bus to obtain the version information of the server corresponding to the BMC, and transmits the version information to the kernel through the kernel startup parameters.
  • a unified BMC image is generated according to different versions of the BMC corresponding to all servers in the data center, including:
  • the BMC performs corresponding monitoring and control on the server according to the target configuration information, including:
  • the BMC starts the kernel according to the hardware information in the target configuration information, and initializes the monitoring parameters for the server according to the bus configuration file in the target configuration information in the user mode, so that the BMC can monitor and control the server accordingly.
  • a unified BMC image is generated according to different versions of the BMC corresponding to all servers in the data center, including:
  • the hardware devices corresponding to the servers in the data center generate a device tree corresponding to each type of server to obtain the hardware information required by different versions of the BMC;
  • the BMC starts the kernel according to the hardware information in the target configuration information, including:
  • the BMC starts the kernel according to the device tree in the target configuration information, so that the BMC can control the corresponding hardware devices in the server according to the device information described in the device tree.
  • the monitoring parameters for the server are initialized according to the bus configuration file in the target configuration information, including:
  • the BMC In the user state, the BMC initializes the monitoring parameters for the server according to the bus configuration file in the target configuration information, so that the BMC can monitor the corresponding bus address in the server;
  • the bus configuration file is an I2C bus configuration file.
  • a server operation and maintenance device including:
  • the BMC image generation module is used to generate a unified BMC image according to the different versions of the BMC corresponding to all servers in the data center; the BMC image includes configuration information corresponding to different types of servers;
  • the configuration information loading module is used for the BMC to read the version information of the corresponding server after receiving the upgrade startup instruction, and load the corresponding target configuration information from the BMC image according to the version information;
  • the monitoring module is used for the BMC to perform corresponding monitoring and control on the server according to the target configuration information.
  • the present application discloses an electronic device, the electronic device memory and one or more processors, computer-readable instructions are stored in the memory, and when the computer-readable instructions are executed by the processor, one or more processing
  • the server executes the steps of any one of the above-mentioned server operation and maintenance methods.
  • the present application also provides one or more non-volatile storage media storing computer-readable instructions, and when the computer-readable instructions are executed by one or more processors, one or more processors can perform any of the above-mentioned operations.
  • the steps of a server operation and maintenance method are provided.
  • Fig. 1 is a flowchart of a server operation and maintenance method according to one or more embodiments
  • Fig. 2 is a schematic structural diagram of a server operation and maintenance device according to one or more embodiments
  • Fig. 3 is a structural diagram of an electronic device according to one or more embodiments.
  • the present application proposes a method for server operation and maintenance, which can improve the efficiency of server operation and maintenance.
  • the embodiment of the present application discloses a server operation and maintenance method, as shown in FIG. 1, taking the application of the method to electronic equipment as an example, the method may include the following steps:
  • Step S11 Generate a unified BMC image according to the different versions of the BMC corresponding to all servers in the data center; the BMC image includes configuration information corresponding to different types of servers.
  • a unified BMC image is generated according to multiple versions of BMCs corresponding to all servers in the data center, that is, the BMCs used by all servers in the data center are released in one image, and the generated BMC images include servers of different models
  • the corresponding configuration information also stores the mapping relationship between the version information of different types of servers and the corresponding configuration information, and the above configuration information may specifically include hardware information and bus structure.
  • generating a unified BMC image according to the different versions of the BMC corresponding to all servers in the data center may include the following steps:
  • S110 Generate a device tree corresponding to each type of server according to the hardware devices corresponding to the servers in the data center, so as to obtain hardware information required by different versions of the BMC.
  • the same type of server corresponds to a DTS, thus obtaining the device tree corresponding to each type of server, and compiling all
  • the device tree is packaged into the BMC image.
  • a variable needs to be added to the device tree loading function of the BMC kernel, and the corresponding device tree needs to be loaded by reading the server model.
  • S111 According to the bus topology relationship corresponding to the server in the data center, generate a bus configuration file corresponding to each type of server, so as to obtain bus configuration files required by different versions of the BMC.
  • the bus addresses of different types of servers are different.
  • the user mode program write the bus topology relationship of the model monitoring into a configuration file to get Bus configuration file, one type of server corresponds to a bus configuration file, in order to obtain the bus configuration file corresponding to each type of server, all the bus configuration files are packaged into the BMC image, and the user state program is loaded according to different types of
  • the server loads a corresponding bus configuration file; the above bus is specifically an I2C bus, and the bus configuration file is specifically an I2C bus configuration file.
  • S112 Generate a BMC image based on all device trees and all bus configuration files. Therefore, by generating BMC images based on all device trees and all bus configuration files, the versions of BMCs corresponding to all servers in the data center are normalized.
  • generating a unified BMC image according to the different versions of the BMC corresponding to all servers in the data center may include: obtaining the fault alarm sent by the server in the data center, and distributing the different versions corresponding to all servers in the data center according to the fault alarm.
  • the BMC generates a unified BMC image. That is, when a server fails, perform the operation of generating a unified BMC image from the BMCs of different versions corresponding to all servers in the data center.
  • Step S12 After receiving the upgrade start instruction, the BMC reads the version information of the corresponding server, and loads the corresponding target configuration information from the BMC image according to the version information.
  • the BMC corresponding to any server in the data center receives the upgrade startup instruction, it reads the version information of the server it belongs to when starting, so as to determine the target configuration corresponding to the current server from the BMC image according to the version information information.
  • reading the version information of the corresponding server may include: the BMC accesses the field replaceable unit through the bus to obtain the version information of the server corresponding to the BMC during the boot loader running phase, and passes the version information through the kernel startup parameter passed to the kernel. That is, in the bootloader running phase (Das U-Boot phase), the server host information and other parameters are obtained from the server's field replaceable unit (Field Replace Unit, FRU) through the I2C bus as version information, and the version information is passed through the kernel
  • the startup parameters are passed to the kernel (kernel), so that the kernel boot stage determines the corresponding target configuration information from the BMC image according to the version information, and initializes the BMC according to the target configuration information.
  • Step S13 The BMC performs corresponding monitoring and control on the server according to the target configuration information.
  • the version of the BMC matches the model of the server at this time, so that the BMC can monitor the server according to the target configuration information and control.
  • the BMC performs corresponding monitoring and control on the server according to the target configuration information, which may include: the BMC starts the kernel according to the hardware information in the target configuration information, and initializes the server in the user state according to the bus configuration file in the target configuration information. monitoring parameters so that the BMC can monitor and control the server accordingly. That is, in the kernel state, the BMC starts after loading the corresponding hardware information according to the version kernel, and initializes the corresponding monitoring information in the user state according to the bus configuration file in the target configuration information. That is to say, the establishment of the BMC version mainly includes the hardware information in the kernel state configuration and user-mode bus architecture configuration.
  • the BMC starts the kernel according to the hardware information in the target configuration information, and initializes the monitoring parameters for the server according to the bus configuration file in the target configuration information in the user state, which may include the following steps:
  • the BMC starts the kernel according to the device tree in the target configuration information in the structure environment setting stage of the kernel state, so that the BMC controls the corresponding hardware devices in the server according to the device information described in the device tree. That is, when the above hardware information is stored in the form of a device tree, the BMC starts the kernel according to the device tree in the target configuration information in the configuration environment setting stage of the kernel state, so that the BMC can configure the corresponding hardware devices in the server according to the device information described in the device tree. Take control.
  • the BMC initializes monitoring parameters for the server according to the bus configuration file in the target configuration information in the user state, so that the BMC can monitor the corresponding bus address in the server;
  • the bus configuration file is an I2C bus configuration file. That is, the BMC initializes the monitoring parameters for the server according to the bus configuration file in the target configuration information in the user state, so that the BMC can monitor the bus address that needs to be monitored in the server.
  • a unified BMC image is generated according to the BMCs of different versions corresponding to all servers in the data center; the BMC image includes configuration information corresponding to different types of servers; after the BMC receives the upgrade start command, read Get the version information of the corresponding server, and load the corresponding target configuration information from the BMC image according to the version information; the BMC performs corresponding monitoring and control on the server according to the target configuration information.
  • the embodiment of the present application also discloses a server operation and maintenance device, as shown in Figure 2, the device includes:
  • BMC mirror image generating module 11 is used to generate a unified BMC mirror image according to the BMC of different versions corresponding to all servers in the data center; the BMC mirror image includes configuration information corresponding to different types of servers;
  • the configuration information loading module 12 is used for the BMC to read the version information of the corresponding server after receiving the upgrade startup instruction, and load the corresponding target configuration information from the BMC image according to the version information;
  • the monitoring module 13 is used for the BMC to perform corresponding monitoring and control on the server according to the target configuration information.
  • a unified BMC image is generated according to the BMCs of different versions corresponding to all servers in the data center; the BMC image includes configuration information corresponding to different types of servers; after the BMC receives the upgrade start command, read Get the version information of the corresponding server, and load the corresponding target configuration information from the BMC image according to the version information; the BMC performs corresponding monitoring and control on the server according to the target configuration information.
  • the configuration information loading module 12 may specifically include:
  • the version information obtaining unit is used for the BMC to access the field replaceable unit through the bus to obtain the version information of the server corresponding to the BMC during the boot loader running phase, and transmit the version information to the kernel through the kernel startup parameters.
  • the BMC image generation module 11 may specifically include:
  • the fault alarm obtaining unit is used to obtain the fault alarm sent by the server in the data center, and generate a unified BMC image for the BMCs of different versions corresponding to all the servers in the data center according to the fault alarm.
  • the monitoring module 13 can specifically be used for the BMC to start the kernel according to the hardware information in the target configuration information, and initialize the monitoring parameters for the server according to the bus configuration file in the target configuration information in the user state, so that the BMC can monitor the server. Perform appropriate monitoring and control.
  • the BMC image generation module 11 may specifically include:
  • the device tree generation unit is used to generate a device tree corresponding to each type of server according to the hardware device corresponding to the server in the data center, so as to obtain the hardware information required by different versions of the BMC;
  • the bus configuration file generation unit is used to generate the bus configuration file corresponding to each type of server according to the bus topology relationship corresponding to the server in the data center, so as to obtain the bus configuration file required by different versions of the BMC;
  • the BMC image determination unit is configured to generate a BMC image based on all device trees and all bus configuration files.
  • the monitoring module 13 can specifically be used for the BMC to start the kernel according to the device tree in the target configuration information in the structure environment setting stage of the kernel state, so that the BMC can monitor the corresponding devices in the server according to the device information described in the device tree. hardware devices to control.
  • the monitoring module 13 can specifically be used for the BMC to initialize the monitoring parameters for the server according to the bus configuration file in the target configuration information in the user state, so that the BMC monitors the corresponding bus address in the server; the bus configuration file is I2C bus profile.
  • the embodiment of the present application also discloses an electronic device, as shown in FIG. 3 , and the content in the figure should not be regarded as any limitation on the application scope of the present application.
  • FIG. 3 is a schematic structural diagram of an electronic device 20 provided in an embodiment of the present application.
  • the electronic device 20 may specifically include: a memory 22 and one or more processors 21, where computer-readable instructions are stored in the memory 22, and when the computer-readable instructions are executed by the processor, the one or more processors 21 execute the above-mentioned The steps of the server operation and maintenance method disclosed in any embodiment.
  • the power supply 23 is used to provide working voltage for each hardware device on the electronic device 20;
  • the communication interface 24 can create a data transmission channel between the electronic device 20 and external devices, and the communication protocol it follows is applicable Any communication protocol in the technical solution of the present application is not specifically limited here;
  • the input and output interface 25 is used to obtain external input data or output data to the external, and its specific interface type can be selected according to specific application needs, here Not specifically limited.
  • the memory 22, as a resource storage carrier can be a read-only memory, a random access memory, a magnetic disk or an optical disk, etc., and the resources stored thereon include the operating system 221, the computer program 222, and the data 223 including the BMC image.
  • the method can be temporary storage or permanent storage.
  • the operating system 221 is used to manage and control each hardware device and computer program 222 on the electronic device 20, so as to realize the operation and processing of the massive data 223 in the memory 22 by the processor 21, which can be Windows Server, Netware, Unix, Linux, etc.
  • the computer program 222 can further include computer programs that can be used to complete other specific tasks.
  • the embodiment of the present application also provides one or more non-volatile storage media storing computer-readable instructions, and when the computer-readable instructions are executed by one or more processors, one or more processors execute such as A server operation and maintenance method provided in any one of the above embodiments.
  • each embodiment in this specification is described in a progressive manner, each embodiment focuses on the difference from other embodiments, and the same or similar parts of each embodiment can be referred to each other.
  • the description is relatively simple, and for relevant details, please refer to the description of the method part.
  • RAM random access memory
  • ROM read-only memory
  • EEPROM electrically programmable ROM
  • EEPROM electrically erasable programmable ROM
  • registers hard disk, removable disk, CD-ROM, or any other Any other known storage medium.

Abstract

A server operation and maintenance method and apparatus, and a device and a storage medium. The method comprises: generating a unified BMC mirror image according to different versions of BMCs that correspond to all servers in a data center, wherein the BMC mirror image comprises pieces of configuration information respectively corresponding to different types of servers (S11); after receiving an upgrade starting instruction, the BMCs reading version information of the corresponding servers, and loading corresponding target configuration information from the BMC mirror image according to the version information (S12); and the BMCs executing corresponding monitoring and control on the servers according to the target configuration information (S13). All different versions of BMCs are generated into a unified BMC mirror image; and when the BMCs are started, version information of corresponding servers is read, and target configuration information corresponding to the servers is then downloaded from the BMC mirror image according to the version information, such that the versions of the BMCs correspond to models of the servers where the BMCs are located, thereby improving the operation and maintenance efficiency of the servers.

Description

一种服务器运维方法、装置、设备及存储介质A server operation and maintenance method, device, equipment and storage medium
相关申请的交叉引用Cross References to Related Applications
本申请要求于2021年11月30日提交中国专利局,申请号为202111450016.9,申请名称为“一种服务器运维方法、装置、设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application submitted to the China Patent Office on November 30, 2021 with the application number 202111450016.9. References are incorporated in this application.
技术领域technical field
本申请涉及计算机技术领域,特别涉及一种服务器运维方法、装置、设备及存储介质。The present application relates to the field of computer technology, and in particular to a server operation and maintenance method, device, equipment and storage medium.
背景技术Background technique
目前,随着数据中心的发展,一个比较大的数据中心的服务器在10万台以上,因此多台服务器在运行过程中,不可避免的需要对服务器进行运维。发明人意识到,对服务器的BMC(Baseboard Management Controller,基板管理控制器)进行升级是一种比较常见的运维方式,但是在大的数据中心中,会存在多种不同厂家,不同型号的服务器,每种厂家不同型号的服务器均需要提供特定版本的BMC,即使是同一个供应商的运维人员,也需要根据不同的服务器型号,选择对应的版本的BMC进行运维,降低了服务器运维的效率。At present, with the development of data centers, there are more than 100,000 servers in a relatively large data center. Therefore, during the operation of multiple servers, it is inevitable to perform operation and maintenance on the servers. The inventor realized that upgrading the BMC (Baseboard Management Controller) of the server is a relatively common operation and maintenance method, but in a large data center, there will be many different manufacturers and different types of servers , Different types of servers from each manufacturer need to provide a specific version of BMC. Even the operation and maintenance personnel of the same supplier need to select the corresponding version of BMC for operation and maintenance according to different server models, which reduces the need for server operation and maintenance. s efficiency.
发明内容Contents of the invention
本申请提供一种服务器运维方法、装置、设备及介质。其具体方案如下:The present application provides a server operation and maintenance method, device, equipment and medium. The specific plan is as follows:
第一方面,本申请公开了一种服务器运维方法,包括:In the first aspect, the present application discloses a server operation and maintenance method, including:
根据数据中心内所有服务器对应的不同版本的BMC生成一个统一的BMC镜像;BMC镜像包括不同类型的服务器分别对应的配置信息;Generate a unified BMC image according to the different versions of BMC corresponding to all servers in the data center; BMC image includes configuration information corresponding to different types of servers;
BMC在接收到升级启动指令后,读取对应的服务器的版本信息,并根据版本信息从BMC镜像中加载对应的目标配置信息;和After receiving the upgrade startup instruction, the BMC reads the version information of the corresponding server, and loads the corresponding target configuration information from the BMC image according to the version information; and
BMC根据目标配置信息对服务器执行相应的监视和控制。The BMC performs corresponding monitoring and control on the server according to the target configuration information.
在一些实施方式中,读取对应的服务器的版本信息,包括:In some implementation manners, reading the version information of the corresponding server includes:
BMC在引导加载程序运行阶段,通过总线访问现场可更换单元以获取BMC对应的服务器的版本信息,并将版本信息通过内核启动参数传到内核。During the running phase of the boot loader, the BMC accesses the field replaceable unit through the bus to obtain the version information of the server corresponding to the BMC, and transmits the version information to the kernel through the kernel startup parameters.
在一些实施方式中,根据数据中心内所有服务器对应的不同版本的BMC生成一个统一的BMC镜像,包括:In some embodiments, a unified BMC image is generated according to different versions of the BMC corresponding to all servers in the data center, including:
获取数据中心内服务器发送的故障告警,根据故障告警将数据中心内所有服务器对应的不同版本的BMC生成一个统一的BMC镜像。Obtain the fault alarms sent by the servers in the data center, and generate a unified BMC image for the BMCs of different versions corresponding to all servers in the data center according to the fault alarms.
在一些实施方式中,BMC根据目标配置信息对服务器执行相应的监视和控制,包括:In some implementations, the BMC performs corresponding monitoring and control on the server according to the target configuration information, including:
BMC根据目标配置信息内的硬件信息启动内核,并在用户态根据目标配置信息内的总线配置文件初始化针对服务器的监控参数,以便BMC对服务器执行相应的监视和控制。The BMC starts the kernel according to the hardware information in the target configuration information, and initializes the monitoring parameters for the server according to the bus configuration file in the target configuration information in the user mode, so that the BMC can monitor and control the server accordingly.
在一些实施方式中,根据数据中心内所有服务器对应的不同版本的BMC生成一个统一的BMC镜像,包括:In some embodiments, a unified BMC image is generated according to different versions of the BMC corresponding to all servers in the data center, including:
根据数据中心内服务器对应的硬件设备,生成每种类型的服务器对应的设备树,以得到不同版本的BMC所需的硬件信息;According to the hardware devices corresponding to the servers in the data center, generate a device tree corresponding to each type of server to obtain the hardware information required by different versions of the BMC;
根据数据中心内服务器对应的总线拓扑关系,生成每种类型的服务器对应的总线配置文件,以得到不同版本的BMC所需的总线配置文件;和Generate a bus configuration file corresponding to each type of server according to the bus topology relationship corresponding to the server in the data center, so as to obtain the bus configuration file required by different versions of the BMC; and
基于所有设备树和所有总线配置文件生成BMC镜像。Generate BMC images based on all device trees and all bus profiles.
在一些实施方式中,BMC根据目标配置信息内的硬件信息启动内核,包括:In some embodiments, the BMC starts the kernel according to the hardware information in the target configuration information, including:
BMC在内核态的结构环境设置阶段,根据目标配置信息内的设备树启动内核,以便BMC根据设备树内描述的设备信息对服务器内相应的硬件设备进行控制。In the structure environment setting stage of the kernel state, the BMC starts the kernel according to the device tree in the target configuration information, so that the BMC can control the corresponding hardware devices in the server according to the device information described in the device tree.
在一些实施方式中,在用户态根据目标配置信息内的总线配置文件初始化针对服务器的监控参数,包括:In some implementations, in the user mode, the monitoring parameters for the server are initialized according to the bus configuration file in the target configuration information, including:
BMC在用户态根据目标配置信息内的总线配置文件初始化针对服务器的监控参数,以便BMC对服务器内相应的总线地址进行监控;总线配置文件为I2C总线配置文件。In the user state, the BMC initializes the monitoring parameters for the server according to the bus configuration file in the target configuration information, so that the BMC can monitor the corresponding bus address in the server; the bus configuration file is an I2C bus configuration file.
第二方面,本申请公开了一种服务器运维装置,包括:In a second aspect, the present application discloses a server operation and maintenance device, including:
BMC镜像生成模块,用于根据数据中心内所有服务器对应的不同版本的BMC生成一个统一的BMC镜像;BMC镜像包括不同类型的服务器分别对应的配置信息;The BMC image generation module is used to generate a unified BMC image according to the different versions of the BMC corresponding to all servers in the data center; the BMC image includes configuration information corresponding to different types of servers;
配置信息加载模块,用于BMC在接收到升级启动指令后,读取对应的服务器的版本信息,并根据版本信息从BMC镜像中加载对应的目标配置信息;和The configuration information loading module is used for the BMC to read the version information of the corresponding server after receiving the upgrade startup instruction, and load the corresponding target configuration information from the BMC image according to the version information; and
监控模块,用于BMC根据目标配置信息对服务器执行相应的监视和控制。The monitoring module is used for the BMC to perform corresponding monitoring and control on the server according to the target configuration information.
第三方面,本申请公开了一种电子设备,该电子设备存储器和一个或多个处理器,存储器中储存有计算机可读指令,计算机可读指令被处理器执行时,使得一个或多个处理器执行上述任意一项的一种服务器运维方法的步骤。In a third aspect, the present application discloses an electronic device, the electronic device memory and one or more processors, computer-readable instructions are stored in the memory, and when the computer-readable instructions are executed by the processor, one or more processing The server executes the steps of any one of the above-mentioned server operation and maintenance methods.
第四方面,本申请还提供一个或多个存储有计算机可读指令的非易失性存储介质,计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行上述任意一项的服务器运维方法的步骤。In a fourth aspect, the present application also provides one or more non-volatile storage media storing computer-readable instructions, and when the computer-readable instructions are executed by one or more processors, one or more processors can perform any of the above-mentioned operations. The steps of a server operation and maintenance method.
本申请的一个或多个实施例的细节在下面的附图和描述中提出。本申请的其它特征和优点将从说明书、附图以及权利要求书变得明显。The details of one or more embodiments of the application are set forth in the accompanying drawings and the description below. Other features and advantages of the application will be apparent from the description, drawings, and claims.
附图说明Description of drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only It is an embodiment of the present application, and those skilled in the art can also obtain other drawings according to the provided drawings without creative work.
图1为根据一个或多个实施例中一种服务器运维方法流程图;Fig. 1 is a flowchart of a server operation and maintenance method according to one or more embodiments;
图2为根据一个或多个实施例中一种服务器运维装置结构示意图;Fig. 2 is a schematic structural diagram of a server operation and maintenance device according to one or more embodiments;
图3为根据一个或多个实施例中一种电子设备结构图。Fig. 3 is a structural diagram of an electronic device according to one or more embodiments.
具体实施方式Detailed ways
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments It is only a part of the embodiments of the present application, but not all the embodiments. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.
现有技术中,针对服务器运维时,运维工程师需要根据不同的服务器型号,选择对应版本的BMC进行运维,影响运维效率。为克服上述技术问题,本申请提出一种服务器运维方法,能够提高服务器运维的效率。In the prior art, for server operation and maintenance, operation and maintenance engineers need to select a corresponding version of BMC for operation and maintenance according to different server models, which affects operation and maintenance efficiency. In order to overcome the above technical problems, the present application proposes a method for server operation and maintenance, which can improve the efficiency of server operation and maintenance.
本申请实施例公开了一种服务器运维方法,参见图1所示,以该方法应用于电子设备为例,该方法可以包括以下步骤:The embodiment of the present application discloses a server operation and maintenance method, as shown in FIG. 1, taking the application of the method to electronic equipment as an example, the method may include the following steps:
步骤S11:根据数据中心内所有服务器对应的不同版本的BMC生成一个统一的BMC镜 像;BMC镜像包括不同类型的服务器分别对应的配置信息。Step S11: Generate a unified BMC image according to the different versions of the BMC corresponding to all servers in the data center; the BMC image includes configuration information corresponding to different types of servers.
本实施例中,首先根据数据中心内所有服务器对应的多个版本的BMC生成一个统一的BMC镜像,即将数据中心所有服务器使用的BMC在一个镜像中进行发布,生成的BMC镜像中包含不同型号服务器对应的配置信息,并存有不同型号的服务器的版本信息与其对应的配置信息的映射关系,上述配置信息具体可以包括硬件信息和总线结构。In this embodiment, first, a unified BMC image is generated according to multiple versions of BMCs corresponding to all servers in the data center, that is, the BMCs used by all servers in the data center are released in one image, and the generated BMC images include servers of different models The corresponding configuration information also stores the mapping relationship between the version information of different types of servers and the corresponding configuration information, and the above configuration information may specifically include hardware information and bus structure.
本实施例中,根据数据中心内所有服务器对应的不同版本的BMC生成一个统一的BMC镜像,可以包括以下步骤:In this embodiment, generating a unified BMC image according to the different versions of the BMC corresponding to all servers in the data center may include the following steps:
S110:根据数据中心内服务器对应的硬件设备,生成每种类型的服务器对应的设备树,以得到不同版本的BMC所需的硬件信息。S110: Generate a device tree corresponding to each type of server according to the hardware devices corresponding to the servers in the data center, so as to obtain hardware information required by different versions of the BMC.
即针对BMC内核相关部分,通过在设备树(DTS,Device Tree Source)中对硬件信息进行配置,相同型号的服务器对应一个DTS,由此得到每种类型服务器对应的设备树,编译时将所有的设备树均打包到BMC镜像中。同时,需要在BMC内核的设备树加载函数中添加一个变量,需要通过读取服务器型号加载对应的设备树。That is, for the relevant parts of the BMC kernel, by configuring the hardware information in the device tree (DTS, Device Tree Source), the same type of server corresponds to a DTS, thus obtaining the device tree corresponding to each type of server, and compiling all The device tree is packaged into the BMC image. At the same time, a variable needs to be added to the device tree loading function of the BMC kernel, and the corresponding device tree needs to be loaded by reading the server model.
S111:根据数据中心内服务器对应的总线拓扑关系,生成每种类型的服务器对应的总线配置文件,以得到不同版本的BMC所需的总线配置文件。S111: According to the bus topology relationship corresponding to the server in the data center, generate a bus configuration file corresponding to each type of server, so as to obtain bus configuration files required by different versions of the BMC.
即针对BMC的用户态部分,由于BMC通过总线对服务器的器件进行监控,不同型号的服务器总线地址存在差异,在用户态的程序中,将机型监控的总线拓扑关系写到一个配置文件中得到总线配置文件,一种型号的服务器对应一个总线配置文件,以得到每种型号的服务器对应的总线配置文件,将所有的总线配置文件均打包到BMC镜像中,用户态程序加载时根据不同类型的服务器加载对应的总线配置文件;上述总线具体为I2C总线,总线配置文件具体为I2C总线配置文件。That is, for the user mode part of the BMC, because the BMC monitors the server devices through the bus, the bus addresses of different types of servers are different. In the user mode program, write the bus topology relationship of the model monitoring into a configuration file to get Bus configuration file, one type of server corresponds to a bus configuration file, in order to obtain the bus configuration file corresponding to each type of server, all the bus configuration files are packaged into the BMC image, and the user state program is loaded according to different types of The server loads a corresponding bus configuration file; the above bus is specifically an I2C bus, and the bus configuration file is specifically an I2C bus configuration file.
S112:基于所有设备树和所有总线配置文件生成BMC镜像。由此通过基于所有设备树和所有总线配置文件生成BMC镜像,实现将数据中心内所有服务器对应的BMC的版本归一化。S112: Generate a BMC image based on all device trees and all bus configuration files. Therefore, by generating BMC images based on all device trees and all bus configuration files, the versions of BMCs corresponding to all servers in the data center are normalized.
本实施例中,根据数据中心内所有服务器对应的不同版本的BMC生成一个统一的BMC镜像,可以包括:获取数据中心内服务器发送的故障告警,根据故障告警将数据中心内所有服务器对应的不同版本的BMC生成一个统一的BMC镜像。即在服务器出现故障时,执行将数据中心内所有服务器对应的不同版本的BMC生成一个统一的BMC镜像的操作。In this embodiment, generating a unified BMC image according to the different versions of the BMC corresponding to all servers in the data center may include: obtaining the fault alarm sent by the server in the data center, and distributing the different versions corresponding to all servers in the data center according to the fault alarm. The BMC generates a unified BMC image. That is, when a server fails, perform the operation of generating a unified BMC image from the BMCs of different versions corresponding to all servers in the data center.
步骤S12:BMC在接收到升级启动指令后,读取对应的服务器的版本信息,并根据版本信息从BMC镜像中加载对应的目标配置信息。Step S12: After receiving the upgrade start instruction, the BMC reads the version information of the corresponding server, and loads the corresponding target configuration information from the BMC image according to the version information.
本实施例中,当数据中心内任意一个服务器对应的BMC接收到升级启动指令后,启动 时读取所属的服务器的版本信息,以便根据该版本信息从BMC镜像中确定出当前服务器对应的目标配置信息。In this embodiment, when the BMC corresponding to any server in the data center receives the upgrade startup instruction, it reads the version information of the server it belongs to when starting, so as to determine the target configuration corresponding to the current server from the BMC image according to the version information information.
本实施例中,读取对应的服务器的版本信息,可以包括:BMC在引导加载程序运行阶段,通过总线访问现场可更换单元以获取BMC对应的服务器的版本信息,并将版本信息通过内核启动参数传到内核。即在引导加载程序运行阶段(Das U-Boot阶段)通过I2C总线从服务器的现场可更换单元(Field Replace Unit,FRU)中获取服务器的主机信息等参数作为版本信息,并将该版本信息通过内核启动参数传到内核(kernel),以便内核引导阶段根据该版本信息从BMC镜像中确定出对应的目标配置信息,根据该目标配置信息对BMC进行初始化。In this embodiment, reading the version information of the corresponding server may include: the BMC accesses the field replaceable unit through the bus to obtain the version information of the server corresponding to the BMC during the boot loader running phase, and passes the version information through the kernel startup parameter passed to the kernel. That is, in the bootloader running phase (Das U-Boot phase), the server host information and other parameters are obtained from the server's field replaceable unit (Field Replace Unit, FRU) through the I2C bus as version information, and the version information is passed through the kernel The startup parameters are passed to the kernel (kernel), so that the kernel boot stage determines the corresponding target configuration information from the BMC image according to the version information, and initializes the BMC according to the target configuration information.
步骤S13:BMC根据目标配置信息对服务器执行相应的监视和控制。Step S13: The BMC performs corresponding monitoring and control on the server according to the target configuration information.
本实施例中,BMC通过从BMC镜像中下载得到当前服务器对应的目标配置信息后,此时BMC的版本即与该服务器的型号相匹配,由此BMC根据目标配置信息即可实现对服务器的监视和控制。In this embodiment, after the BMC obtains the target configuration information corresponding to the current server by downloading from the BMC image, the version of the BMC matches the model of the server at this time, so that the BMC can monitor the server according to the target configuration information and control.
本实施例中,BMC根据目标配置信息对服务器执行相应的监视和控制,可以包括:BMC根据目标配置信息内的硬件信息启动内核,并在用户态根据目标配置信息内的总线配置文件初始化针对服务器的监控参数,以便BMC对服务器执行相应的监视和控制。即BMC在内核态时根据版本内核加载对应的硬件信息后启动,在用户态根据目标配置信息内的总线配置文件初始化对应的监控信息,也就是说,BMC版本的确立主要包括内核态的硬件信息配置和用户态的总线架构配置。In this embodiment, the BMC performs corresponding monitoring and control on the server according to the target configuration information, which may include: the BMC starts the kernel according to the hardware information in the target configuration information, and initializes the server in the user state according to the bus configuration file in the target configuration information. monitoring parameters so that the BMC can monitor and control the server accordingly. That is, in the kernel state, the BMC starts after loading the corresponding hardware information according to the version kernel, and initializes the corresponding monitoring information in the user state according to the bus configuration file in the target configuration information. That is to say, the establishment of the BMC version mainly includes the hardware information in the kernel state configuration and user-mode bus architecture configuration.
本实施例中,BMC根据目标配置信息内的硬件信息启动内核,并在用户态根据目标配置信息内的总线配置文件初始化针对服务器的监控参数,可以包括以下步骤:In this embodiment, the BMC starts the kernel according to the hardware information in the target configuration information, and initializes the monitoring parameters for the server according to the bus configuration file in the target configuration information in the user state, which may include the following steps:
S130:BMC在内核态的结构环境设置阶段,根据目标配置信息内的设备树启动内核,以便BMC根据设备树内描述的设备信息对服务器内相应的硬件设备进行控制。即在上述硬件信息以设备树形式存储时,BMC在内核态的结构环境设置阶段,根据目标配置信息内的设备树启动内核,以便BMC根据设备树内描述的设备信息对服务器内相应的硬件设备进行控制。S130: The BMC starts the kernel according to the device tree in the target configuration information in the structure environment setting stage of the kernel state, so that the BMC controls the corresponding hardware devices in the server according to the device information described in the device tree. That is, when the above hardware information is stored in the form of a device tree, the BMC starts the kernel according to the device tree in the target configuration information in the configuration environment setting stage of the kernel state, so that the BMC can configure the corresponding hardware devices in the server according to the device information described in the device tree. Take control.
S131:BMC在用户态根据目标配置信息内的总线配置文件初始化针对服务器的监控参数,以便BMC对服务器内相应的总线地址进行监控;总线配置文件为I2C总线配置文件。即BMC在用户态根据目标配置信息内的总线配置文件初始化针对服务器的监控参数,以便BMC明确服务器内需要监控的总线地址后进行监控。S131: The BMC initializes monitoring parameters for the server according to the bus configuration file in the target configuration information in the user state, so that the BMC can monitor the corresponding bus address in the server; the bus configuration file is an I2C bus configuration file. That is, the BMC initializes the monitoring parameters for the server according to the bus configuration file in the target configuration information in the user state, so that the BMC can monitor the bus address that needs to be monitored in the server.
由上可见,本实施例中根据数据中心内所有服务器对应的不同版本的BMC生成一个统 一的BMC镜像;BMC镜像包括不同类型的服务器分别对应的配置信息;BMC在接收到升级启动指令后,读取对应的服务器的版本信息,并根据版本信息从BMC镜像中加载对应的目标配置信息;BMC根据目标配置信息对服务器执行相应的监视和控制。由上可见,通过将所有不同版本的BMC生成一个统一的BMC镜像,在BMC启动时,获取该BMC所属的服务器的版本信息,然后根据该版本信息从BMC镜像中下载与该服务器对应的目标配置信息,使BMC的版本与其所在的服务器的型号相对应,不再需要人为的判断选择正确的BMC版本,提高了服务器的运维效率。As can be seen from the above, in this embodiment, a unified BMC image is generated according to the BMCs of different versions corresponding to all servers in the data center; the BMC image includes configuration information corresponding to different types of servers; after the BMC receives the upgrade start command, read Get the version information of the corresponding server, and load the corresponding target configuration information from the BMC image according to the version information; the BMC performs corresponding monitoring and control on the server according to the target configuration information. It can be seen from the above that by generating a unified BMC image for all different versions of BMC, when the BMC starts, obtain the version information of the server to which the BMC belongs, and then download the target configuration corresponding to the server from the BMC image according to the version information Information, so that the version of the BMC corresponds to the model of the server where it is located, and it is no longer necessary to select the correct BMC version by human judgment, which improves the efficiency of server operation and maintenance.
相应的,本申请实施例还公开了一种服务器运维装置,参见图2所示,该装置包括:Correspondingly, the embodiment of the present application also discloses a server operation and maintenance device, as shown in Figure 2, the device includes:
BMC镜像生成模块11,用于根据数据中心内所有服务器对应的不同版本的BMC生成一个统一的BMC镜像;BMC镜像包括不同类型的服务器分别对应的配置信息;BMC mirror image generating module 11 is used to generate a unified BMC mirror image according to the BMC of different versions corresponding to all servers in the data center; the BMC mirror image includes configuration information corresponding to different types of servers;
配置信息加载模块12,用于BMC在接收到升级启动指令后,读取对应的服务器的版本信息,并根据版本信息从BMC镜像中加载对应的目标配置信息;The configuration information loading module 12 is used for the BMC to read the version information of the corresponding server after receiving the upgrade startup instruction, and load the corresponding target configuration information from the BMC image according to the version information;
监控模块13,用于BMC根据目标配置信息对服务器执行相应的监视和控制。The monitoring module 13 is used for the BMC to perform corresponding monitoring and control on the server according to the target configuration information.
由上可见,本实施例中根据数据中心内所有服务器对应的不同版本的BMC生成一个统一的BMC镜像;BMC镜像包括不同类型的服务器分别对应的配置信息;BMC在接收到升级启动指令后,读取对应的服务器的版本信息,并根据版本信息从BMC镜像中加载对应的目标配置信息;BMC根据目标配置信息对服务器执行相应的监视和控制。由上可见,通过将所有不同版本的BMC生成一个统一的BMC镜像,在BMC启动时,获取该BMC所属的服务器的版本信息,然后根据该版本信息从BMC镜像中下载与该服务器对应的目标配置信息,使BMC的版本与其所在的服务器的型号相对应,不再需要人为的判断选择正确的BMC版本,提高了服务器的运维效率。As can be seen from the above, in this embodiment, a unified BMC image is generated according to the BMCs of different versions corresponding to all servers in the data center; the BMC image includes configuration information corresponding to different types of servers; after the BMC receives the upgrade start command, read Get the version information of the corresponding server, and load the corresponding target configuration information from the BMC image according to the version information; the BMC performs corresponding monitoring and control on the server according to the target configuration information. It can be seen from the above that by generating a unified BMC image for all different versions of BMC, when the BMC starts, obtain the version information of the server to which the BMC belongs, and then download the target configuration corresponding to the server from the BMC image according to the version information Information, so that the version of the BMC corresponds to the model of the server where it is located, and it is no longer necessary to select the correct BMC version by human judgment, which improves the efficiency of server operation and maintenance.
在一些具体实施例中,配置信息加载模块12具体可以包括:In some specific embodiments, the configuration information loading module 12 may specifically include:
版本信息获取单元,用于BMC在引导加载程序运行阶段,通过总线访问现场可更换单元以获取BMC对应的服务器的版本信息,并将版本信息通过内核启动参数传到内核。The version information obtaining unit is used for the BMC to access the field replaceable unit through the bus to obtain the version information of the server corresponding to the BMC during the boot loader running phase, and transmit the version information to the kernel through the kernel startup parameters.
在一些具体实施例中,BMC镜像生成模块11具体可以包括:In some specific embodiments, the BMC image generation module 11 may specifically include:
故障告警获取单元,用于获取数据中心内服务器发送的故障告警,根据故障告警将数据中心内所有服务器对应的不同版本的BMC生成一个统一的BMC镜像。The fault alarm obtaining unit is used to obtain the fault alarm sent by the server in the data center, and generate a unified BMC image for the BMCs of different versions corresponding to all the servers in the data center according to the fault alarm.
在一些具体实施例中,监控模块13具体可以用于BMC根据目标配置信息内的硬件信息启动内核,并在用户态根据目标配置信息内的总线配置文件初始化针对服务器的监控参数,以便BMC对服务器执行相应的监视和控制。In some specific embodiments, the monitoring module 13 can specifically be used for the BMC to start the kernel according to the hardware information in the target configuration information, and initialize the monitoring parameters for the server according to the bus configuration file in the target configuration information in the user state, so that the BMC can monitor the server. Perform appropriate monitoring and control.
在一些具体实施例中,BMC镜像生成模块11具体可以包括:In some specific embodiments, the BMC image generation module 11 may specifically include:
设备树生成单元,用于根据数据中心内服务器对应的硬件设备,生成每种类型的服务器对应的设备树,以得到不同版本的BMC所需的硬件信息;The device tree generation unit is used to generate a device tree corresponding to each type of server according to the hardware device corresponding to the server in the data center, so as to obtain the hardware information required by different versions of the BMC;
总线配置文件生成单元,用于根据数据中心内服务器对应的总线拓扑关系,生成每种类型的服务器对应的总线配置文件,以得到不同版本的BMC所需的总线配置文件;The bus configuration file generation unit is used to generate the bus configuration file corresponding to each type of server according to the bus topology relationship corresponding to the server in the data center, so as to obtain the bus configuration file required by different versions of the BMC;
BMC镜像确定单元,用于基于所有设备树和所有总线配置文件生成BMC镜像。The BMC image determination unit is configured to generate a BMC image based on all device trees and all bus configuration files.
在一些具体实施例中,监控模块13具体可以用于BMC在内核态的结构环境设置阶段,根据目标配置信息内的设备树启动内核,以便BMC根据设备树内描述的设备信息对服务器内相应的硬件设备进行控制。In some specific embodiments, the monitoring module 13 can specifically be used for the BMC to start the kernel according to the device tree in the target configuration information in the structure environment setting stage of the kernel state, so that the BMC can monitor the corresponding devices in the server according to the device information described in the device tree. hardware devices to control.
在一些具体实施例中,监控模块13具体可以用于BMC在用户态根据目标配置信息内的总线配置文件初始化针对服务器的监控参数,以便BMC对服务器内相应的总线地址进行监控;总线配置文件为I2C总线配置文件。In some specific embodiments, the monitoring module 13 can specifically be used for the BMC to initialize the monitoring parameters for the server according to the bus configuration file in the target configuration information in the user state, so that the BMC monitors the corresponding bus address in the server; the bus configuration file is I2C bus profile.
进一步的,本申请实施例还公开了一种电子设备,参见图3所示,图中的内容不能被认为是对本申请的使用范围的任何限制。Further, the embodiment of the present application also discloses an electronic device, as shown in FIG. 3 , and the content in the figure should not be regarded as any limitation on the application scope of the present application.
图3为本申请实施例提供的一种电子设备20的结构示意图。该电子设备20,具体可以包括:存储器22和一个或多个处理器21,存储器22中储存有计算机可读指令,计算机可读指令被处理器执行时,使得一个或多个处理器21执行上述任一实施例公开的服务器运维方法的步骤。FIG. 3 is a schematic structural diagram of an electronic device 20 provided in an embodiment of the present application. The electronic device 20 may specifically include: a memory 22 and one or more processors 21, where computer-readable instructions are stored in the memory 22, and when the computer-readable instructions are executed by the processor, the one or more processors 21 execute the above-mentioned The steps of the server operation and maintenance method disclosed in any embodiment.
本实施例中,电源23用于为电子设备20上的各硬件设备提供工作电压;通信接口24能够为电子设备20创建与外界设备之间的数据传输通道,其所遵循的通信协议是能够适用于本申请技术方案的任意通信协议,在此不对其进行具体限定;输入输出接口25,用于获取外界输入数据或向外界输出数据,其具体的接口类型可以根据具体应用需要进行选取,在此不进行具体限定。In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and external devices, and the communication protocol it follows is applicable Any communication protocol in the technical solution of the present application is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the external, and its specific interface type can be selected according to specific application needs, here Not specifically limited.
另外,存储器22作为资源存储的载体,可以是只读存储器、随机存储器、磁盘或者光盘等,其上所存储的资源包括操作系统221、计算机程序222及包括BMC镜像在内的数据223等,存储方式可以是短暂存储或者永久存储。In addition, the memory 22, as a resource storage carrier, can be a read-only memory, a random access memory, a magnetic disk or an optical disk, etc., and the resources stored thereon include the operating system 221, the computer program 222, and the data 223 including the BMC image. The method can be temporary storage or permanent storage.
其中,操作系统221用于管理与控制电子设备20上的各硬件设备以及计算机程序222,以实现处理器21对存储器22中海量数据223的运算与处理,其可以是Windows Server、Netware、Unix、Linux等。计算机程序222除了包括能够用于完成前述任一实施例公开的由电子设备20执行的服务器运维方法的计算机程序之外,还可以进一步包括能 够用于完成其他特定工作的计算机程序。Wherein, the operating system 221 is used to manage and control each hardware device and computer program 222 on the electronic device 20, so as to realize the operation and processing of the massive data 223 in the memory 22 by the processor 21, which can be Windows Server, Netware, Unix, Linux, etc. In addition to computer programs 222 that can be used to complete the server operation and maintenance method performed by the electronic device 20 disclosed in any of the foregoing embodiments, the computer program 222 can further include computer programs that can be used to complete other specific tasks.
进一步的,本申请实施例还提供一个或多个存储有计算机可读指令的非易失性存储介质,计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行如上任一实施例提供的一种服务器运维方法。Further, the embodiment of the present application also provides one or more non-volatile storage media storing computer-readable instructions, and when the computer-readable instructions are executed by one or more processors, one or more processors execute such as A server operation and maintenance method provided in any one of the above embodiments.
本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其它实施例的不同之处,各个实施例之间相同或相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。Each embodiment in this specification is described in a progressive manner, each embodiment focuses on the difference from other embodiments, and the same or similar parts of each embodiment can be referred to each other. As for the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and for relevant details, please refer to the description of the method part.
结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。The steps of the methods or algorithms described in connection with the embodiments disclosed herein may be directly implemented by hardware, software modules executed by a processor, or a combination of both. Software modules can be placed in random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other Any other known storage medium.
最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括要素的过程、方法、物品或者设备中还存在另外的相同要素。Finally, it should also be noted that in this text, relational terms such as first and second etc. are only used to distinguish one entity or operation from another, and do not necessarily require or imply that these entities or operations, any such actual relationship or order exists. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of or also include elements inherent in such a process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus that includes the element.
以上对本申请所提供的一种服务器运维方法、装置、设备及介质进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上,本说明书内容不应理解为对本申请的限制。The above is a detailed introduction of a server operation and maintenance method, device, equipment and medium provided by this application. In this paper, specific examples are used to illustrate the principle and implementation of this application. The description of the above embodiment is only for help Understand the method of this application and its core idea; at the same time, for those of ordinary skill in the art, according to the idea of this application, there will be changes in the specific implementation and scope of application. In summary, the content of this specification should not be understood For the limitation of this application.

Claims (10)

  1. 一种服务器运维方法,其特征在于,包括:A server operation and maintenance method, characterized in that, comprising:
    根据数据中心内所有服务器对应的不同版本的BMC生成一个统一的BMC镜像;所述BMC镜像包括不同类型的所述服务器分别对应的配置信息;Generate a unified BMC image according to the BMCs of different versions corresponding to all servers in the data center; the BMC image includes configuration information corresponding to different types of servers;
    所述BMC在接收到升级启动指令后,读取对应的所述服务器的版本信息,并根据所述版本信息从所述BMC镜像中加载对应的目标配置信息;和After the BMC receives the upgrade start instruction, it reads the version information of the corresponding server, and loads the corresponding target configuration information from the BMC image according to the version information; and
    所述BMC根据所述目标配置信息对所述服务器执行相应的监视和控制。The BMC performs corresponding monitoring and control on the server according to the target configuration information.
  2. 根据权利要求1所述的服务器运维方法,其特征在于,所述读取对应的所述服务器的版本信息,包括:The server operation and maintenance method according to claim 1, wherein the reading the version information of the corresponding server includes:
    所述BMC在引导加载程序运行阶段,通过总线访问现场可更换单元以获取所述BMC对应的所述服务器的版本信息,并将所述版本信息通过内核启动参数传到内核。The BMC accesses the field replaceable unit through the bus to obtain the version information of the server corresponding to the BMC during the boot loader running phase, and transmits the version information to the kernel through the kernel startup parameters.
  3. 根据权利要求1所述的服务器运维方法,其特征在于,所述根据数据中心内所有服务器对应的不同版本的BMC生成一个统一的BMC镜像,包括:The server operation and maintenance method according to claim 1, wherein said generating a unified BMC image according to different versions of BMCs corresponding to all servers in the data center includes:
    获取数据中心内服务器发送的故障告警,根据所述故障告警将数据中心内所有服务器对应的不同版本的BMC生成一个统一的BMC镜像。Obtain the fault alarm sent by the server in the data center, and generate a unified BMC image for the BMCs of different versions corresponding to all the servers in the data center according to the fault alarm.
  4. 根据权利要求1至3任一项所述的服务器运维方法,其特征在于,所述BMC根据所述目标配置信息对所述服务器执行相应的监视和控制,包括:The server operation and maintenance method according to any one of claims 1 to 3, wherein the BMC performs corresponding monitoring and control on the server according to the target configuration information, including:
    所述BMC根据所述目标配置信息内的硬件信息启动内核,并在用户态根据所述目标配置信息内的总线配置文件初始化针对所述服务器的监控参数,以便所述BMC对所述服务器执行相应的监视和控制。The BMC starts the kernel according to the hardware information in the target configuration information, and initializes the monitoring parameters for the server in the user state according to the bus configuration file in the target configuration information, so that the BMC performs corresponding operations on the server. monitoring and control.
  5. 根据权利要求4所述的服务器运维方法,其特征在于,所述根据数据中心内所有服务器对应的不同版本的BMC生成一个统一的BMC镜像,包括:The server operation and maintenance method according to claim 4, wherein said generating a unified BMC image according to different versions of BMCs corresponding to all servers in the data center comprises:
    根据数据中心内所述服务器对应的硬件设备,生成每种类型的所述服务器对应的设备树,以得到不同版本的BMC所需的硬件信息;Generate a device tree corresponding to each type of server according to the hardware device corresponding to the server in the data center, so as to obtain the hardware information required by the BMC of different versions;
    根据所述数据中心内所述服务器对应的总线拓扑关系,生成每种类型的所述服务器对应的总线配置文件,以得到不同版本的BMC所需的总线配置文件;和Generate a bus configuration file corresponding to each type of server according to the bus topology relationship corresponding to the server in the data center, so as to obtain bus configuration files required by different versions of the BMC; and
    基于所有所述设备树和所有所述总线配置文件生成所述BMC镜像。generating the BMC image based on all the device trees and all the bus configuration files.
  6. 根据权利要求5所述的服务器运维方法,其特征在于,所述BMC根据所述目标配置信息内的硬件信息启动内核,包括:The server operation and maintenance method according to claim 5, wherein the BMC starts the kernel according to the hardware information in the target configuration information, including:
    所述BMC在内核态的结构环境设置阶段,根据所述目标配置信息内的所述设备树启动内核,以便所述BMC根据所述设备树内描述的设备信息对所述服务器内相应的硬件设 备进行控制。The BMC starts the kernel according to the device tree in the target configuration information in the structure environment setting stage of the kernel state, so that the BMC performs corresponding hardware devices in the server according to the device information described in the device tree Take control.
  7. 根据权利要求5所述的服务器运维方法,其特征在于,所述在用户态根据所述目标配置信息内的总线配置文件初始化针对所述服务器的监控参数,包括:The server operation and maintenance method according to claim 5, wherein the initialization of monitoring parameters for the server according to the bus configuration file in the target configuration information in the user state includes:
    所述BMC在用户态根据所述目标配置信息内的总线配置文件初始化针对所述服务器的监控参数,以便所述BMC对所述服务器内相应的总线地址进行监控;所述总线配置文件为I2C总线配置文件。The BMC initializes the monitoring parameters for the server according to the bus configuration file in the target configuration information in the user state, so that the BMC monitors the corresponding bus address in the server; the bus configuration file is an I2C bus configuration file.
  8. 一种服务器运维装置,其特征在于,包括:A server operation and maintenance device, characterized in that it comprises:
    BMC镜像生成模块,用于根据数据中心内所有服务器对应的不同版本的BMC生成一个统一的BMC镜像;所述BMC镜像包括不同类型的所述服务器分别对应的配置信息;BMC image generation module, for generating a unified BMC image according to the BMC of different versions corresponding to all servers in the data center; The BMC image includes configuration information corresponding to different types of servers;
    配置信息加载模块,用于所述BMC在接收到升级启动指令后,读取对应的所述服务器的版本信息,并根据所述版本信息从所述BMC镜像中加载对应的目标配置信息;和The configuration information loading module is used for the BMC to read the version information of the corresponding server after receiving the upgrade start instruction, and load the corresponding target configuration information from the BMC image according to the version information; and
    监控模块,用于所述BMC根据所述目标配置信息对所述服务器执行相应的监视和控制。The monitoring module is used for the BMC to perform corresponding monitoring and control on the server according to the target configuration information.
  9. 一种电子设备,其特征在于,包括:An electronic device, characterized in that it comprises:
    包括存储器及一个或多个处理器,存储器中储存有计算机可读指令,计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行如权利要求1至7任一项所述方法的步骤。Including memory and one or more processors, computer readable instructions are stored in the memory, and when the computer readable instructions are executed by one or more processors, one or more processors can perform any one of claims 1 to 7 The steps of the method.
  10. 一个或多个存储有计算机可读指令的非易失性计算机可读存储介质,计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行如权利要求1至7任一项所述方法的步骤。One or more non-volatile computer-readable storage media storing computer-readable instructions, which, when executed by one or more processors, cause one or more processors to perform any of claims 1 to 7 A step of said method.
PCT/CN2022/101931 2021-11-30 2022-06-28 Server operation and maintenance method and apparatus, and device and storage medium WO2023098052A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111450016.9 2021-11-30
CN202111450016.9A CN114327536A (en) 2021-11-30 2021-11-30 Server operation and maintenance method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
WO2023098052A1 true WO2023098052A1 (en) 2023-06-08

Family

ID=81047810

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/101931 WO2023098052A1 (en) 2021-11-30 2022-06-28 Server operation and maintenance method and apparatus, and device and storage medium

Country Status (2)

Country Link
CN (1) CN114327536A (en)
WO (1) WO2023098052A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114327536A (en) * 2021-11-30 2022-04-12 浪潮电子信息产业股份有限公司 Server operation and maintenance method, device, equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104598283A (en) * 2015-02-06 2015-05-06 浪潮电子信息产业股份有限公司 Realization method of single-architecture multi-structure BMC firmware program
US20150163294A1 (en) * 2013-12-09 2015-06-11 Lenovo (Singapore) Pte. Ltd. Service processor for configuring servers joining peer to peer network
CN106095511A (en) * 2016-06-20 2016-11-09 乐视控股(北京)有限公司 A kind of server updating method and apparatus
CN107423174A (en) * 2017-06-01 2017-12-01 广州信维电子科技股份有限公司 Method of testing, device and the storage medium of server configuration information
US10489338B1 (en) * 2018-09-05 2019-11-26 Quanta Computer Inc. Method and system for streamlined server design
CN114327536A (en) * 2021-11-30 2022-04-12 浪潮电子信息产业股份有限公司 Server operation and maintenance method, device, equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150163294A1 (en) * 2013-12-09 2015-06-11 Lenovo (Singapore) Pte. Ltd. Service processor for configuring servers joining peer to peer network
CN104598283A (en) * 2015-02-06 2015-05-06 浪潮电子信息产业股份有限公司 Realization method of single-architecture multi-structure BMC firmware program
CN106095511A (en) * 2016-06-20 2016-11-09 乐视控股(北京)有限公司 A kind of server updating method and apparatus
CN107423174A (en) * 2017-06-01 2017-12-01 广州信维电子科技股份有限公司 Method of testing, device and the storage medium of server configuration information
US10489338B1 (en) * 2018-09-05 2019-11-26 Quanta Computer Inc. Method and system for streamlined server design
CN114327536A (en) * 2021-11-30 2022-04-12 浪潮电子信息产业股份有限公司 Server operation and maintenance method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN114327536A (en) 2022-04-12

Similar Documents

Publication Publication Date Title
US11385908B1 (en) Cloning of firmware configuration settings using rest over IPMI interface
US10860308B1 (en) Peripheral device firmware update using rest over IPMI interface firmware update module
JP5606633B2 (en) Method for provisioning firmware in an operating system (OS) absent service environment
US10866801B1 (en) Non-destructive update of discrete components of firmware
US10404538B1 (en) Remote platform configuration
US9250672B2 (en) Cloning target machines in a software provisioning environment
US10853052B1 (en) Peripheral device firmware update using rest over IPMI interface firmware shell utility
US20170228228A1 (en) Remote launch of deploy utility
US10572242B1 (en) Firmware update using rest over IPMI interface
US10996940B1 (en) Secure firmware integrity monitoring using rest over IPMI interface
US10303458B2 (en) Multi-platform installer
JP2013156993A (en) Methods of configuring bios in computer system and computer program products
US10628176B1 (en) Firmware configuration using REST over IPMI interface
CN110908753B (en) Intelligent fusion cloud desktop server, client and system
US10776286B1 (en) Rest over IPMI interface for firmware to BMC communication
US10459742B2 (en) System and method for operating system initiated firmware update via UEFI applications
JP2016207184A (en) Methods of updating firmware components, computer systems, and memory device
US20230229481A1 (en) Provisioning dpu management operating systems
JP6750605B2 (en) Computer system, baseboard management controller, OS installation method, and program
CN114756290B (en) Operating system installation method, device and readable storage medium
US11113070B1 (en) Automated identification and disablement of system devices in a computing system
WO2023098052A1 (en) Server operation and maintenance method and apparatus, and device and storage medium
US11520648B2 (en) Firmware emulated watchdog timer controlled using native CPU operations
US10572151B2 (en) System and method to allocate available high bandwidth memory to UEFI pool services
US20230229480A1 (en) Provisioning dpu management operating systems using firmware capsules

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: 22899872

Country of ref document: EP

Kind code of ref document: A1