CN115129346A - Method, device, server and medium for upgrading in-band system driver - Google Patents

Method, device, server and medium for upgrading in-band system driver Download PDF

Info

Publication number
CN115129346A
CN115129346A CN202210764706.XA CN202210764706A CN115129346A CN 115129346 A CN115129346 A CN 115129346A CN 202210764706 A CN202210764706 A CN 202210764706A CN 115129346 A CN115129346 A CN 115129346A
Authority
CN
China
Prior art keywords
livecd
band
image
new
server
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202210764706.XA
Other languages
Chinese (zh)
Inventor
孙永杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202210764706.XA priority Critical patent/CN115129346A/en
Publication of CN115129346A publication Critical patent/CN115129346A/en
Pending legal-status Critical Current

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
    • 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/4411Configuring for operating with peripheral devices; Loading of device drivers

Landscapes

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

Abstract

The application discloses a method, a device and a medium for upgrading in-band system drive, and relates to the field of servers. The method comprises the following steps: receiving an initial LiveCD image; acquiring in-band OS information through an initial LiveCD mirror image and transmitting the in-band OS information back to the server; acquiring a new LiveCD mirror image; the new LiveCD image is generated according to the in-band OS information, and at least comprises a drive version to be upgraded of the target server and a drive installation script; and upgrading the in-band system driver according to the new LiveCD image. In the method, because the new LiveCD image comprises the drive version to be upgraded and the drive installation script of the target server, the in-band system drive can be upgraded out of band according to the drive version upgraded in the LiveCD image and the drive installation script, the operation and maintenance efficiency of the server is greatly improved, and a large amount of labor maintenance cost is saved.

Description

Method, device, server and medium for upgrading in-band system drive
Technical Field
The present application relates to the field of servers, and in particular, to a method, an apparatus, a server, and a medium for upgrading in-band system drivers.
Background
Server network management can be divided into two management modes, out-of-band (out-of-band) and in-band (in-band). At present, the network management means used by us are basically in-band management, that is, management control information and data information are transmitted by using a unified physical channel. The biggest drawback of in-band management is that data transmission and management cannot be performed normally when the network is interrupted by a failure. The core idea of out-of-band management is to transmit management control information and data information through different physical channels, which are completely independent and do not affect each other.
In general, the in-band network and the in-band network are completely independent and cannot be intercommunicated. That is, the upgrade and update of the in-band system driver cannot be performed through the out-of-band network, which results in a reduction in the operation and maintenance efficiency of the server.
Therefore, how to upgrade the in-band system driver through the out-of-band network is a technical problem that needs to be solved urgently by those skilled in the art.
Disclosure of Invention
The application aims to provide a method, a device, a server and a medium for upgrading an in-band system driver, which are used for upgrading the in-band system driver through an out-of-band network.
In order to solve the above technical problem, the present application provides a method for upgrading an in-band system driver, which is applied to a target server, and includes:
receiving an initial LiveCD image; wherein the initial LiveCD image is distributed by a server through an out-of-band network;
acquiring in-band OS information through the initial LiveCD mirror image and transmitting the in-band OS information back to the server;
acquiring a new LiveCD mirror image; the new LiveCD image is generated by the server side according to the in-band OS information; the new LiveCD mirror image is mounted to the target server by the server through an out-of-band network; the new LiveCD image at least comprises a drive version to be upgraded of the target server and a drive installation script;
and upgrading the in-band system driver according to the new LiveCD image.
Preferably, the upgrading the in-band system driver according to the new LiveCD image comprises:
receiving an instruction for characterizing a reboot;
booting and starting through the new LiveCD mirror image and mounting a target hard disk in an in-band OS;
transferring the drive version to be upgraded of the target server and the drive installation script in the new LiveCD image to the target hard disk;
and upgrading the in-band system driver through the target hard disk.
Preferably, in the case that there are a plurality of target servers, the upgrading the in-band system driver according to the new LiveCD image includes:
judging whether the drive versions to be upgraded of the target servers are the same or not through the server side;
if so, acquiring the target servers with the same drive versions to be upgraded through the server, generating a uniform new LiveCD image by the target servers with the same drive versions to be upgraded, and mounting the new LiveCD images in batches;
and upgrading the corresponding in-band system driver according to the new LiveCD image.
Preferably, after the upgrading the in-band system driver according to the new LiveCD image, the method further includes:
and if the in-band system driver is successfully upgraded within the preset time, returning the information of successful upgrading and the information of the upgraded in-band system driver to the BMC through the in-band ipmi instruction.
Preferably, after the upgrading the in-band system driver according to the new LiveCD image, the method further includes:
and outputting information for prompting the success of upgrading.
In order to solve the above technical problem, the present application further provides a method for upgrading an in-band system driver, which is applied to a server and includes:
acquiring an initial LiveCD mirror image;
distributing the initial LiveCD image to a target server through an out-of-band network so that the LiveCD image can collect in-band OS information of the target server;
configuring and generating a new LiveCD mirror image according to the in-band OS information of the target server; the new LiveCD image at least comprises a drive version to be upgraded of the target server and a drive installation script;
and mounting the new LiveCD image to the target server through the out-of-band network so that the target server can upgrade the in-band system driver through the new LiveCD image.
Preferably, after the mounting the new LiveCD image to the target server through the out-of-band network so that the target server upgrades the in-band system driver through the new LiveCD image, the method further includes:
and receiving the information of successful upgrade sent by the target server and the information of the in-band system drive after upgrade.
In order to solve the above technical problem, the present application further provides an apparatus for upgrading an in-band system driver, applied to a target server, including:
the receiving module is used for receiving an initial LiveCD mirror image; wherein the initial LiveCD image is distributed by a server through an out-of-band network;
the acquisition and return device is used for acquiring in-band OS information through the initial LiveCD image and returning the in-band OS information to the server;
the acquisition module is used for acquiring a new LiveCD mirror image; the new LiveCD image is generated by the server side according to the in-band OS information; the new LiveCD mirror image is mounted to the target server by the server through an out-of-band network; the new LiveCD image at least comprises a drive version to be upgraded of the target server and a drive installation script;
and the upgrading module is used for upgrading the in-band system drive according to the new LiveCD mirror image.
In order to solve the above technical problem, the present application further provides a server, including:
a memory for storing a computer program;
and the processor is used for realizing the steps of the method for upgrading the in-band system driver when executing the computer program.
In order to solve the above technical problem, the present application further provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the method for upgrading an in-band system driver described above.
The method for upgrading in-band system drive provided by the application is applied to a target server and comprises the following steps: receiving an initial LiveCD image; wherein, the initial LiveCD image is distributed by the server through the out-of-band network; acquiring in-band OS information through an initial LiveCD mirror image and transmitting the in-band OS information back to the server; acquiring a new LiveCD mirror image; wherein the new LiveCD image is generated according to the in-band OS information; the new LiveCD mirror image is mounted to the target server through the out-of-band network by the server side; the new LiveCD image at least comprises a drive version to be upgraded of the target server and a drive installation script; and upgrading the in-band system driver according to the new LiveCD image. In the method, because the new LiveCD image comprises the drive version to be upgraded and the drive installation script of the target server, the in-band system drive can be upgraded out of band according to the drive version and the drive installation script upgraded in the LiveCD image, the operation and maintenance efficiency of the server is greatly improved, and a large amount of labor maintenance cost is saved.
In addition, the application also provides a method for upgrading the in-band system driver applied to the server side, a device for upgrading the in-band system driver, a server and a computer readable storage medium, which have the same or corresponding technical characteristics and effects as the above-mentioned method for upgrading the in-band system driver applied to the target server.
Drawings
In order to more clearly illustrate the embodiments of the present application, the drawings needed for the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings can be obtained by those skilled in the art without inventive effort.
FIG. 1 is a flowchart of a method for upgrading in-band system drivers applied to a target server according to the present application;
fig. 2 is a flowchart of a method for upgrading an in-band system driver applied to a server according to an embodiment of the present disclosure;
fig. 3 is a block diagram of an apparatus for upgrading an in-band system driver applied to a target server according to an embodiment of the present application;
fig. 4 is a block diagram of a server according to another embodiment of the present application;
fig. 5 is an overall flowchart of a method for upgrading an in-band system driver according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without any creative effort belong to the protection scope of the present application.
The core of the application is to provide a method, a device, a server and a medium for upgrading an in-band system driver, which are used for realizing upgrading of the in-band system driver through an out-of-band network.
Server network management can be divided into two management modes, out-of-band management and in-band management. The management control information and the data information in the in-band management are transmitted through a unified physical channel, the management control information and the data information in the out-of-band management are transmitted through different physical channels, and the control information and the data information in the out-of-band management are completely independent and have complementary influence. A commonly used Baseboard Management Controller (BMC) network is an out-of-band network. In general, the in-band network and the in-band network are completely independent and cannot be intercommunicated. And the in-band system-driven upgrade and update can not be performed through the out-of-band network. Therefore, in the application, information acquisition of a multi-target server is completed through LiveCD image distribution, an integrated drive file is customized according to the acquired information, a drive upgrading script is customized and generated, a customized new LiveCD image is generated, then the new LiveCD image is distributed by using an out-of-band network, and in-band transfer and storage of the drive file and the drive script are completed in an Operating System (OS) of a LiveCD memory; and completing the customized updating process of the driver after the in-band OS is restarted. It should be noted that many Linux distribution versions have been designed as so-called "livecds", i.e. CDs that can be booted directly to available Linux systems, which in this application refers to a directly bootable Linux environment.
In order that those skilled in the art will better understand the disclosure, the following detailed description is given with reference to the accompanying drawings. Fig. 1 is a flowchart of a method for upgrading an in-band system driver applied to a target server according to the present application, where as shown in fig. 1, the method includes:
s10: receiving an initial LiveCD image; wherein the initial LiveCD image is distributed by the server through the out-of-band network.
The server side can be understood as a main control side and can be equipment such as a server, the target server is equipment needing to be upgraded and driven, specific target servers are not limited, and the specific target servers are determined according to actual conditions. When the drive of the target server is upgraded through the server, the server distributes the initial LiveCD to the target server through the out-of-band network.
S11: and collecting in-band OS information through the initial LiveCD image and transmitting the in-band OS information back to the server.
In the steps, the target server receives the initial LiveCD image, and the in-band OS information of the target server is collected and transmitted back to the server after the initial LiveCD image is started. Specifically, target server-related information, OS information, Central Processing Unit (CPU) architecture information, drive version information, and the like are collected.
S12: acquiring a new LiveCD mirror image; the new LiveCD mirror image is generated by the server side according to the in-band OS information; the new LiveCD mirror image is mounted to the target server through the out-of-band network by the server side; the new LiveCD image at least comprises a drive version to be upgraded of the target server and a drive installation script.
After in-band OS information is collected through an initial LiveCD image and the collected in-band OS information is transmitted back to the server side, the server side customizes and matches a drive version needing to be upgraded of a target server according to the in-band OS information, customizes and generates a drive installation script, integrates a drive file and the drive script in a new LiveCD image, and presets an operation executed after the new LiveCD image is started. And after the new LiveCD mirror image is generated, the server side mounts the new LiveCD mirror image to the target server through the out-of-band network. In implementation, when the upgraded versions of the plurality of target server drivers are the same, the same new LiveCD image may be adopted, and the new LiveCD image may be mounted to the target servers in batch through the out-of-band network.
S13: and upgrading the in-band system driver according to the new LiveCD image.
After the new LiveCD mirror image is mounted to the target server, the in-band system drive can be upgraded through the new LiveCD mirror image.
The method for upgrading in-band system driver provided by the embodiment is applied to a target server, and comprises the following steps: receiving an initial LiveCD image; wherein, the initial LiveCD image is distributed by the server through the out-of-band network; acquiring in-band OS information through an initial LiveCD mirror image and transmitting the in-band OS information back to the server; acquiring a new LiveCD mirror image; wherein the new LiveCD image is generated according to the in-band OS information; the new LiveCD mirror image is mounted to the target server through the out-of-band network by the server side; the new LiveCD image at least comprises a drive version to be upgraded of the target server and a drive installation script; and upgrading the in-band system driver according to the new LiveCD image. In the method, because the new LiveCD image comprises the drive version to be upgraded and the drive installation script of the target server, the in-band system drive can be upgraded out of band according to the drive version and the drive installation script upgraded in the LiveCD image, the operation and maintenance efficiency of the server is greatly improved, and a large amount of labor maintenance cost is saved.
In implementation, when upgrading an in-band system driver by a new LiveCD image, a preferred embodiment is that upgrading the in-band system driver by the new LiveCD image includes:
receiving an instruction for characterizing a reboot;
booting and starting through a new LiveCD mirror image and mounting a target hard disk in an in-band OS;
transferring a drive version to be upgraded of a target server in the new LiveCD mirror image and a drive installation script to a target hard disk;
and upgrading the in-band system driver through the target hard disk.
The server sends a restart instruction, such as an ipmi instruction, so that the target server boots from the new LiveCD image. After the boot of the new LiveCD image is finished, in order to boot the boot by the hard disk, a driver and a driver script integrated in the new LiveCD image need to be transferred to a target server. Therefore, the target hard disk is mounted in the in-band OS, the drive version to be upgraded of the target server in the new LiveCD image and the drive installation script are transferred to the target hard disk, and the in-band system drive is upgraded through the target hard disk. When a target hard disk is mounted in an in-band OS, the position of the hard disk is first found and partitioned. The hard disk is generally under the/dev directory, and the hard disk can be manually partitioned through the command of fdisk/dev/nvme1n 1. After partitioning, since various operating systems must manage the disk in a certain way, and only formatting is needed to make the structure of the disk recognizable to the operating system, after partitioning, the write file system must be formatted first to be managed by the system. When the partition is mounted, the partition is not mounted under the root directory as much as possible, because the mounting operation can hide the files in the original directory. Therefore, the root directory and the original directory of the system are not required to be used as the mount point, which causes system abnormality and even crash, and the mount point is preferably a newly-built empty directory.
And after the drive version to be upgraded of the target server in the new LiveCD image and the drive installation script are transferred to the target hard disk, automatically restarting the target server, so that the target server is booted and started from the in-band OS, and executing the drive script placed in the target hard disk to complete drive updating.
In the method for upgrading the in-band system drive through the new LiveCD image provided by the embodiment, the drive is placed on the hard disk, so that the server can be started through the hard disk.
In order to improve the efficiency of upgrading the drive of the target server, in an implementation, in a case that there are a plurality of target servers, a preferred embodiment is that upgrading the in-band system drive according to the new LiveCD image includes:
judging whether the drive versions to be upgraded of the target servers are the same or not through the server side;
if yes, acquiring target servers with the same drive versions to be upgraded through the server side, generating uniform new LiveCD images for the target servers with the same drive versions to be upgraded, and mounting the new LiveCD images in batches;
and upgrading the corresponding in-band system driver according to the new LiveCD image.
When a plurality of servers need to upgrade the drive, if a corresponding new LiveCD image is generated for each server, it may take a long time to complete the upgrade drive of the target server. Therefore, when the drive version of the presence server upgrade is the same, a new LiveCD image can be directly adopted. If 100 servers needing to be upgraded and driven exist, if a new LiveCD mirror image is generated for each server, 100 new LiveCD mirror images need to be generated; however, if there are 50 drives that need to be upgraded to the same version in the 100 servers that need to be upgraded, at this time, a new LiveCD image may be generated and mounted on the 50 servers that need to be upgraded to the same version, so as to upgrade the drives of the 50 servers according to the new LiveCD image.
In the case that there are multiple target servers, a new LiveCD image is generated for the drive that needs to be upgraded to the same version, and the upgrade of multiple target server drives is completed through the new LiveCD image. Compared with a method for generating respective new LiveCD images for each target server and upgrading the drive of the target server through the respective new LiveCD images, the method provided by the embodiment can quickly complete drive update of the target server.
In implementation, in order to avoid long waiting time for a user and to avoid monitoring information of the in-band system driver in time, a preferred embodiment is to further include, after upgrading the in-band system driver according to a new LiveCD image:
and if the in-band system driver is successfully upgraded within the preset time from the start of upgrading the in-band system driver, returning the information of successful upgrading and the information of the upgraded in-band system driver to the BMC through the in-band ipmi instruction.
In practice, the situation that the in-band system driver is not upgraded successfully may occur, and in order to avoid long waiting time for the user, the preset time is set in this embodiment. The preset time is not limited and is determined according to the actual situation. For example, when the file to be upgraded is large, a long preset time can be set; when a file to be upgraded is small, a short preset time can be set. After the in-band system driver is successfully upgraded within the preset time, information of successful upgrade and the information of the upgraded in-band system driver are returned to the BMC through the in-band ipmi instruction. And the BMC can provide the updated information of the in-band system driver to the upper-layer operation and maintenance network management software.
In this embodiment, if the in-band system driver is successfully upgraded within a preset time after the in-band system driver is upgraded, the information that the upgrade is successful and the information of the upgraded in-band system driver are returned to the BMC through the in-band ipmi instruction, so that a user can timely know the upgrade condition of the in-band system driver and obtain the version information of the current in-band system driver.
In implementation, in order to enable a user to intuitively know the upgrade status of the in-band system driver, a preferred embodiment further includes, after upgrading the in-band system driver according to the new LiveCD image:
and outputting information for prompting the success of the upgrade.
The manner of presentation, the specific content of the presentation information, and the like are not limited, and are determined according to the actual situation. If the in-band system driver is upgraded successfully, the success of the upgrade can be displayed on the display, and the user determines that the in-band system driver is upgraded successfully according to the information on the display screen.
According to the method and the device, after the in-band system driver is upgraded according to the new LiveCD image, the information used for prompting the success of the upgrade is output, so that a user can intuitively know the success of the upgrade of the in-band system driver.
The embodiment provides a method for upgrading in-band system drive applied to a server. Fig. 2 is a flowchart of a method for upgrading an in-band system driver applied to a server according to an embodiment of the present application, and as shown in fig. 2, the method includes:
s14: acquiring an initial LiveCD mirror image;
s15: distributing the initial LiveCD image to a target server through an out-of-band network so that the LiveCD image can collect in-band OS information of the target server;
s16: configuring and generating a new LiveCD mirror image according to the in-band OS information of the target server; the new LiveCD mirror image at least comprises a drive version to be upgraded of the target server and a drive installation script;
s17: and mounting the new LiveCD image to the target server through the out-of-band network so that the target server can upgrade the in-band system drive through the new LiveCD image.
The foregoing describes an embodiment of a method for upgrading an in-band system driver applied to a target server in detail, and since the method for upgrading an in-band system driver applied to a server in this embodiment has corresponding technical features and has the same beneficial effects as the above-mentioned method for upgrading an in-band system driver applied to a server. Therefore, the embodiment of the method for upgrading the in-band system driver applied to the target server is not described in detail here.
In implementation, in order to enable the server to obtain the information of the in-band system driver, a preferred embodiment is that after the new LiveCD image is mounted to the target server through the out-of-band network, so that the target server upgrades the in-band system driver through the new LiveCD image, the method further includes:
and receiving the information of successful upgrade and the information of in-band system drive after upgrade, which are sent by the target server.
In the foregoing embodiment, a method for upgrading an in-band system driver applied to a target server is described in detail, and the present application also provides an apparatus for upgrading an in-band system driver applied to a target server and a corresponding embodiment of a server. It should be noted that the present application describes the embodiments of the apparatus portion from two perspectives, one from the perspective of the function module and the other from the perspective of the hardware.
Fig. 3 is a block diagram of an apparatus for upgrading an in-band system driver applied to a target server according to an embodiment of the present disclosure. The present embodiment is based on the angle of the function module, including:
a receiving module 10, configured to receive an initial LiveCD image; wherein, the initial LiveCD image is distributed by the server through the out-of-band network;
the acquisition and return device 11 is used for acquiring in-band OS information through an initial LiveCD mirror image and returning the in-band OS information to the server;
an obtaining module 12, configured to obtain a new LiveCD image; the new LiveCD mirror image is generated by the server side according to the in-band OS information; the new LiveCD mirror image is mounted to the target server through the out-of-band network by the server side; the new LiveCD image at least comprises a drive version to be upgraded of the target server and a drive installation script;
and the upgrading module 13 is used for upgrading the in-band system driver according to the new LiveCD image.
Since the embodiments of the apparatus portion and the method portion correspond to each other, please refer to the description of the embodiments of the method portion for the embodiments of the apparatus portion, which is not repeated here.
The device for upgrading the in-band system driver applied to the target server provided by the embodiment receives an initial LiveCD image through the receiving module; collecting in-band OS information through an initial LiveCD mirror image by using a collecting and returning device and returning the in-band OS information to a server; acquiring a new LiveCD mirror image through an acquisition module; the new LiveCD mirror image is generated by the server side according to the in-band OS information; the new LiveCD mirror image is mounted to the target server through the out-of-band network by the server side; the new LiveCD image at least comprises a drive version to be upgraded of the target server and a drive installation script; and upgrading the in-band system drive according to the new LiveCD image by utilizing an upgrading module. In the device, because the new LiveCD image contains the drive version to be upgraded of the target server and the drive installation script, the drive of the in-band system can be upgraded out of band according to the drive version and the drive installation script upgraded in the LiveCD image, the operation and maintenance efficiency of the server is greatly improved, and a large amount of manpower maintenance cost is saved.
Fig. 4 is a block diagram of a server according to another embodiment of the present application. This embodiment is based on a hardware perspective, and as shown in fig. 4, the server includes:
a memory 20 for storing a computer program;
a processor 21 for implementing the steps of the method of upgrading an in-band system driver as mentioned in the above embodiments when executing the computer program.
The server provided by the embodiment may include, but is not limited to, a smart phone, a tablet computer, a notebook computer, or a desktop computer.
The processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The Processor 21 may be implemented in at least one hardware form of a Digital Signal Processor (DSP), a Field-Programmable Gate Array (FPGA), and a Programmable Logic Array (PLA). The processor 21 may also include a main processor and a coprocessor, where the main processor is a processor, also called a CPU, for processing data in an awake state; a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 21 may be integrated with a Graphics Processing Unit (GPU) which is responsible for rendering and drawing the content required to be displayed by the display screen. In some embodiments, the processor 21 may further include an Artificial Intelligence (AI) processor for processing computing operations related to machine learning.
The memory 20 may include one or more computer-readable storage media, which may be non-transitory. Memory 20 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In this embodiment, the memory 20 is at least used for storing the computer program 201, wherein after being loaded and executed by the processor 21, the computer program can implement the relevant steps of the method for upgrading the in-band system driver disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 20 may also include an operating system 202, data 203, and the like, and the storage manner may be a transient storage manner or a permanent storage manner. Operating system 202 may include, among others, Windows, Unix, Linux, and the like. Data 203 may include, but is not limited to, data related to the above-mentioned method of upgrading in-band system drivers, and the like.
In some embodiments, the server may also include a display screen 22, an input-output interface 23, a communication interface 24, a power supply 25, and a communication bus 26.
Those skilled in the art will appreciate that the architecture shown in FIG. 4 is not meant to be limiting on servers and may include more or fewer components than those shown.
The server provided by the embodiment of the application comprises a memory and a processor, and when the processor executes a program stored in the memory, the following method can be realized: the effect of the method for upgrading the in-band system drive is the same as that of the method for upgrading the in-band system drive.
Finally, the application also provides a corresponding embodiment of the computer readable storage medium. The computer-readable storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps as set forth in the above-mentioned method embodiments.
It is to be understood that if the method in the above embodiments is implemented in the form of software functional units and sold or used as a stand-alone product, it can be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium and executes all or part of the steps of the methods described in the embodiments of the present application, or all or part of the technical solutions. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The computer-readable storage medium provided by the application comprises the above-mentioned method for upgrading the in-band system driver, and the effects are the same as those described above.
In order to make those skilled in the art better understand the technical solution of the present application, the present application is further described in detail below with reference to fig. 5, and fig. 5 is an overall flowchart of a method for upgrading an in-band system driver provided by an embodiment of the present application. As shown in fig. 5, the method includes:
s18: the method comprises the steps that a server side distributes an initial LiveCD image to a target server through an out-of-band network, and the LiveCD image collects in-band OS information of the server and transmits the in-band OS information back to the server side after being started;
s19: configuring a corresponding in-band OS system updating driver and a driver upgrading script according to the returned in-band OS information of the server, and packaging the in-band OS system updating driver and the driver upgrading script into a customized new LiveCD mirror image;
s20: the method comprises the steps that an out-of-band network is used for mounting new LiveCD images to a target server in batches, and a restart instruction is sent to enable the target server to be started from the new LiveCD images in a guided mode;
s21: after the new LiveCD image is booted and started, partition mounting of an in-band OS is completed, and a driving program and a driving script integrated in the new LiveCD image are transferred to a target server;
s22: automatically restarting the target server to enable the target server to be booted and started from the in-band OS, finishing drive updating through the drive script, and returning an updating success message to the BMC through the in-band ipmi instruction;
s23: and the target server side captures the returned information through an ipmi instruction, acquires the drive updating state of the target server and completes the drive updating and upgrading of the target server.
Therefore, in the method, information acquisition of the multi-target server is completed through LiveCD distribution, the integrated drive file is customized according to the acquired information, the drive upgrading script is generated in a customized mode, a customized new LiveCD is generated, then the new LiveCD is distributed through an out-of-band network, and in-band transfer of the drive file and the drive script is completed in a new LiveCD mirror image memory OS; and completing the customized updating process of the driver after the in-band OS is restarted. Because the new LiveCD image comprises the drive version to be upgraded of the target server and the drive installation script, the in-band system drive can be upgraded out of band according to the drive version upgraded in the LiveCD image and the drive installation script, the operation and maintenance efficiency of the server is greatly improved, and a large amount of labor maintenance cost is saved.
The method, apparatus, server and medium for upgrading in-band system drivers provided by the present application are described in detail above. The embodiments are described in a progressive mode in the specification, the emphasis of each embodiment is on the difference from the other embodiments, and the same and similar parts among the embodiments can be referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description. It should be noted that, for those skilled in the art, it is possible to make several improvements and modifications to the present application without departing from the principle of the present application, and such improvements and modifications also fall within the scope of the claims of the present application.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

Claims (10)

1. A method for upgrading in-band system driver, applied to a target server, includes:
receiving an initial LiveCD image; wherein the initial LiveCD image is distributed by a server through an out-of-band network;
acquiring in-band OS information through the initial LiveCD image and transmitting the in-band OS information back to the server;
acquiring a new LiveCD mirror image; the new LiveCD image is generated by the server side according to the in-band OS information; the new LiveCD mirror image is mounted to the target server by the server through an out-of-band network; the new LiveCD image at least comprises a drive version to be upgraded of the target server and a drive installation script;
and upgrading the in-band system driver according to the new LiveCD image.
2. The method of upgrading an in-band system driver according to claim 1, wherein the upgrading the in-band system driver according to the new LiveCD image comprises:
receiving an instruction for characterizing a reboot;
booting and starting through the new LiveCD mirror image and mounting a target hard disk in an in-band OS;
transferring the drive version to be upgraded of the target server and the drive installation script in the new LiveCD mirror image to the target hard disk;
and upgrading the in-band system driver through the target hard disk.
3. The method for upgrading an in-band system driver according to claim 1 or 2, wherein in case that there are a plurality of target servers, the upgrading the in-band system driver according to the new LiveCD image comprises:
judging whether the drive versions to be upgraded of the target servers are the same or not through the server side;
if so, acquiring the target servers with the same drive versions to be upgraded through the server, generating a uniform new LiveCD image by the target servers with the same drive versions to be upgraded, and mounting the new LiveCD images in batches;
and upgrading the corresponding in-band system drive according to the new LiveCD image.
4. The method of upgrading an in-band system driver according to claim 3, further comprising, after said upgrading the in-band system driver according to the new LiveCD image:
and if the in-band system driver is successfully upgraded within the preset time, returning the information of successful upgrading and the information of the upgraded in-band system driver to the BMC through the in-band ipmi instruction.
5. The method of upgrading an in-band system driver according to claim 3, further comprising, after said upgrading the in-band system driver according to the new LiveCD image:
and outputting information for prompting the success of the upgrade.
6. A method for upgrading in-band system driver is applied to a server and comprises the following steps:
acquiring an initial LiveCD mirror image;
distributing the initial LiveCD image to a target server through an out-of-band network so that the LiveCD image can collect in-band OS information of the target server;
configuring and generating a new LiveCD mirror image according to the in-band OS information of the target server; the new LiveCD image at least comprises a drive version to be upgraded of the target server and a drive installation script;
and mounting the new LiveCD image to the target server through the out-of-band network so that the target server can upgrade the in-band system driver through the new LiveCD image.
7. The method of upgrading an in-band system driver of claim 6, further comprising, after the mounting the new LiveCD image to the target server over the out-of-band network so that the target server upgrades the in-band system driver over the new LiveCD image:
and receiving the information of successful upgrade sent by the target server and the information of the in-band system drive after upgrade.
8. An apparatus for upgrading in-band system drivers, applied to a target server, comprising:
the receiving module is used for receiving an initial LiveCD mirror image; wherein the initial LiveCD image is distributed by a server through an out-of-band network;
the acquisition and return device is used for acquiring in-band OS information through the initial LiveCD image and returning the in-band OS information to the server;
the acquisition module is used for acquiring a new LiveCD mirror image; the new LiveCD image is generated by the server side according to the in-band OS information; the new LiveCD mirror image is mounted to the target server by the server through an out-of-band network; the new LiveCD image at least comprises a drive version to be upgraded of the target server and a drive installation script;
and the upgrading module is used for upgrading the in-band system driver according to the new LiveCD mirror image.
9. A server, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the method of upgrading an in-band system driver as claimed in any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the method of upgrading an in-band system driver according to any of claims 1 to 7.
CN202210764706.XA 2022-07-01 2022-07-01 Method, device, server and medium for upgrading in-band system driver Pending CN115129346A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210764706.XA CN115129346A (en) 2022-07-01 2022-07-01 Method, device, server and medium for upgrading in-band system driver

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210764706.XA CN115129346A (en) 2022-07-01 2022-07-01 Method, device, server and medium for upgrading in-band system driver

Publications (1)

Publication Number Publication Date
CN115129346A true CN115129346A (en) 2022-09-30

Family

ID=83382540

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210764706.XA Pending CN115129346A (en) 2022-07-01 2022-07-01 Method, device, server and medium for upgrading in-band system driver

Country Status (1)

Country Link
CN (1) CN115129346A (en)

Similar Documents

Publication Publication Date Title
US8997090B2 (en) Installing an operating system in a host system
CN105745617B (en) Selective power management for pre-boot firmware updates
US20170228228A1 (en) Remote launch of deploy utility
EP3367206B1 (en) Server management method and server
US9766876B2 (en) Methods of updating software components, computer systems and memory apparatus
CN107066300B (en) Firmware upgrading method of storage device and storage device
US10747523B2 (en) Methods of updating firmware components, computer systems and memory apparatus
US11334337B2 (en) Selecting and sending subset of components to computing device prior to operating system install
CN108304209A (en) Firmware upgrade method and firmware upgrade system
CN115357310A (en) System starting method and device, electronic equipment and storage medium
WO2022199335A1 (en) Method, apparatus and device for controlling firmware upgrade of server component, and storage medium
CN114201197A (en) Firmware upgrading method and device, electronic equipment and readable storage medium
CN106528226B (en) Installation method and device of operating system
JP2019120974A (en) Computer system, baseboard management controller, OS installation method, and program
CN114546588A (en) Task deployment method and device, storage medium and electronic device
CN109710297A (en) A kind of equipment entirety or sub-module carry out upgrading and backing method
CN115129346A (en) Method, device, server and medium for upgrading in-band system driver
KR101461319B1 (en) Methods and device for upgrading firmware of set-top box
CN114675902B (en) Management method and management device for software version based on embedded equipment
CN106484442A (en) Server system and the method for updating start image shelves
US10210004B2 (en) Method of providing at least one data carrier for a computer system and computer system including service processor independently operable from a main processor of the computer system
US9405559B2 (en) Efficient method of decoupling the downloading of a memory map and execution of a utility program contained in the memory map
CN116431190B (en) Firmware upgrading method and device, BMC chip, server and medium
US12014161B2 (en) Deployment of management features using containerized service on management device and application thereof
US20240036896A1 (en) Generating installation images based upon dpu-specific capabilities

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination