A component upgrading method, device and server

By creating virtual storage media and access channels in the server, the processor obtains system images from a remote location to upgrade components, solving the upgrade flexibility problem caused by components not supporting management protocols, and achieving more efficient component upgrades and remote maintenance.

CN113448598BActive Publication Date: 2026-01-02XINHUASAN INFORMATION TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202110595412.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-05-28
Publication Date
2026-01-02
Estimated Expiration
2041-05-28

AI Technical Summary

Technical Problem

In servers, upgrades cannot be completed if components do not support the management protocol, reducing the flexibility of upgrades.

Method used

By creating virtual storage media and establishing an access channel in the server, the processor obtains the system image from the remote device and performs component upgrades based on the system image, avoiding the need for the management controller to issue upgrade files based on the management protocol.

Benefits of technology

It enhances the flexibility of upgrading server components and improves the efficiency of remote server maintenance and upgrades.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113448598B_ABST
    Figure CN113448598B_ABST
Patent Text Reader

Abstract

The specification provides a component upgrading method, device and server, and relates to the technical field of communication. A component upgrading method is applied to a processor in a server, and includes the following steps: in a server starting process, sending a reading request to a virtual storage medium in the server through an established access channel, wherein the virtual storage medium is created by a management controller in the server; obtaining a system image corresponding to the reading request, and upgrading a component deployed in the server through an upgrading file obtained from the system image; and after the upgrading is completed, disconnecting the access channel of the virtual storage medium, and restarting the server. Through the above method, the flexibility of the server in upgrading the deployed component can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present specification relates to the technical field of communication, and particularly relates to a component upgrade method and device and server. BACKGROUND

[0002] With the popularity of the Internet, the application of servers carrying various services also gradually increases, and therefore, more demands are put forward for the maintenance and management of the servers. In the servers, components such as hard disks, network cards and array cards are provided, and these components need to be regularly upgraded in firmware to achieve more reliable use.

[0003] In the server, the management controller can be connected to each component through a PCIE (Peripheral Component Interconnect Express) bus, and a channel from the management controller to the component can be established based on a management protocol, for example, an MCTP protocol (Management Component Transport Protocol). When the management controller receives an upgrade file from a remote management device, the upgrade file can be distributed to the component through the established channel for upgrading. However, in the above component upgrade process, the components need to support the management protocol applied by the management controller, and in the case that the components do not support the management protocol, the upgrade of the components cannot be completed, which reduces the flexibility of upgrading the components in the server. SUMMARY

[0004] To overcome the problems in the related art, the present specification provides a component upgrade method, device and server.

[0005] In combination with a first aspect of the embodiments of the present specification, the present application provides a component upgrade method applied to a processor in a server, comprising:

[0006] In a server startup process, a read request is sent to a virtual storage medium in the server through an established access channel, wherein the virtual storage medium is created by a management controller in the server;

[0007] A system image corresponding to the read request is obtained, and a component deployed in the server is upgraded through an upgrade file obtained from the system image;

[0008] After the upgrade is completed, the access channel of the virtual storage medium is disconnected, and the server is restarted.

[0009] Further, the component deployed in the server is upgraded through the upgrade file obtained from the system image, comprising:

[0010] acquiring a component identifier of a component deployed in the server;

[0011] finding a corresponding upgrade file in a system image according to the component identifier;

[0012] downloading the found upgrade file to the corresponding component for upgrading.

[0013] Optionally, the method further comprises:

[0014] generating an upgrade log after the upgrading is completed, and sending the upgrade log to the management controller, wherein the upgrade log records the component identifier of the component that has completed the upgrading.

[0015] In combination with the second aspect of the embodiments of the present specification, the present application provides a component upgrading method applied to a management controller in a server, comprising:

[0016] creating a virtual storage medium in the server during a server starting process, and establishing an access channel to the virtual storage medium;

[0017] if a read request sent by a processor in the server to the virtual storage medium is received, acquiring a system image corresponding to the read request from a preset remote device;

[0018] sending the received system image to a memory corresponding to the processor, so that the processor in the server starts based on the system image, and upgrades a component deployed in the server according to an upgrade file contained in the system image.

[0019] Optionally, after the received system image is sent to the memory corresponding to the processor, the method further comprises:

[0020] receiving an upgrade log generated by the processor, and sending the upgrade log to the remote device.

[0021] In combination with the third aspect of the embodiments of the present specification, the present application provides a component upgrading device applied to a processor in a server, comprising:

[0022] a reading unit configured to send a read request to a virtual storage medium in the server through the established access channel during a server starting process, wherein the virtual storage medium is created by a management controller in the server;

[0023] an upgrading unit configured to acquire a system image corresponding to the read request, and upgrade a component deployed in the server through an upgrade file acquired from the system image;

[0024] a disconnecting unit configured to disconnect the access channel of the virtual storage medium after the upgrading is completed, and restart the server.

[0025] Optionally, the upgrading unit comprises:

[0026] The identification module is configured to acquire component identifiers of components deployed in the server.

[0027] The searching module is configured to search for corresponding upgrade files in the system image according to the component identifiers.

[0028] The delivering module is configured to deliver the found upgrade files to corresponding components for upgrading.

[0029] Optionally, the apparatus further comprises:

[0030] The generating unit is configured to generate an upgrade log after the upgrading is completed, and send the upgrade log to the management controller, wherein the upgrade log records component identifiers of the components that have completed the upgrading.

[0031] In combination with the fourth aspect of the embodiments of the present specification, the present application provides a component upgrading apparatus applied to a management controller in a server, comprising:

[0032] The creating unit is configured to create a virtual storage medium in the server and establish an access channel to the virtual storage medium during a server starting process.

[0033] The acquiring unit is configured to acquire a system image corresponding to a read request from a preset remote device if the read request sent by a processor in the server to the virtual storage medium is received.

[0034] The mounting unit is configured to send the received system image to a memory corresponding to the processor, so that the processor in the server starts based on the system image, and upgrades components deployed in the server according to upgrade files contained in the system image.

[0035] Optionally, the apparatus further comprises:

[0036] The sending unit is configured to receive an upgrade log generated by the processor, and send the upgrade log to the remote device.

[0037] In combination with the fifth aspect of the embodiments of the present specification, the present application provides a server comprising a management controller and a processor.

[0038] During a server starting process, the management controller creates a virtual storage medium in the server and establishes an access channel to the virtual storage medium.

[0039] The management controller mounts the received system image to the virtual storage medium, and restarts the server.

[0040] The processor sends a read request to the created virtual storage medium through the created access channel.

[0041] The management controller obtains the system image corresponding to the read request from the preset remote device according to the received read request;

[0042] The management controller sends the received system image to the memory corresponding to the processor;

[0043] The processor starts according to the system image, and upgrades the components deployed in the server by using the upgrade file obtained from the system image;

[0044] After the upgrade is completed, the processor disconnects the access channel of the virtual storage medium, and restarts the server.

[0045] Optionally, after the upgrade is completed, the processor generates an upgrade log, and sends the upgrade log to the management controller, wherein the component identifier of the component that has completed the upgrade is recorded in the upgrade log.

[0046] If the management controller receives the upgrade log generated by the processor, the management controller sends the upgrade log to the remote device.

[0047] The technical solutions provided by the embodiments of the present specification can include the following beneficial effects:

[0048] In the embodiments of the present specification, by creating a virtual storage medium in the server and establishing an access channel to the virtual storage medium, when a read request of the processor to the virtual storage medium is received, a system image is obtained from a remote device, the processor starts according to the system image, and the components deployed in the server are upgraded based on the upgrade file contained in the system image, so that the server can load the system in the system image, and the upgrade file is issued to the components through the loaded system, avoiding the case that the management controller issues the upgrade file based on the management protocol, and the flexibility of upgrading the components in the server is improved.

[0049] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present specification. BRIEF DESCRIPTION OF DRAWINGS

[0050] The accompanying drawings incorporated in the specification and constituting a part of the specification illustrate embodiments consistent with the present specification and serve to explain the principles of the present specification together with the specification.

[0051] Figure 1 is a flowchart of a component upgrade method involved in the present application, applied to a management controller;

[0052] Figure 2 is a structural schematic diagram of a server involved in the present application;

[0053] Figure 3is a flowchart of a component upgrade method involved in the present application, applied to a processor;

[0054] Figure 4 is a component upgrade device involved in the present application, applied to a management controller;

[0055] Figure 5 is a component upgrade device involved in the present application, applied to a processor. DETAILED DESCRIPTION

[0056] The exemplary embodiments will be described in detail herein with reference to the drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all the embodiments consistent with the present description.

[0057] The present application provides a component upgrade method, applied to a management controller in a server, as shown in Figure 1 , comprising:

[0058] S100, in the server startup process, a virtual storage medium is created in the server, and an access channel to the virtual storage medium is established.

[0059] As shown in Figure 2 , the motherboard in the server can be provided with a processor, a management controller and a boot chip, the processor, the management controller and the boot chip are connected through a bridge chipset (not shown), such as a south bridge chipset and a north bridge chipset, the management controller can be connected to the components based on the I 2 C bus. The management controller can be connected to component 1 and component 2 through the PCIE bus. The management controller can be a BMC (Baseboard Management Controller). Based on the configuration, the management controller can create a virtual storage medium in the server, such as a USB (Universal Serial Bus) and an optical drive, etc. The boot chip can be a BIOS (Basic Input Output System), etc. Among them, an access channel is established for the virtual storage medium, such as if the created virtual storage medium is a USB, the access channel can be a USB access channel.

[0060] The creation process can be based on the preset function of the management controller. For example, the creation process can be based on the pre-configuration, the management controller creates a virtual USB, sets the state of the virtual USB through a state parameter, and sets the state of the virtual USB as connected. So that the boot chip in the server can scan the virtual USB in the self-checking process. Thereafter, a part of the storage space in the memory of the management controller is divided, and the connection between the management controller and the processor is established through the USB bus of the south bridge chipset, that is, the management controller and the processor are connected through the access channel.

[0061] In this way, in the process of starting the server, the boot chip can scan the virtual USB in the self-checking process as the USB of the server itself, and allocate a storage space for the USB in the memory corresponding to the processor, so that the storage space divided by the management controller itself can interact with the storage space of the memory corresponding to the processor.

[0062] S101, if a read request sent by the processor in the server to the virtual storage medium is received, the system image corresponding to the read request is obtained from the preset remote device.

[0063] In the process of starting the server, according to the setting of the management controller, the processor can be guided to load the operating system from the virtual storage medium, at this time, the processor will send a read request to the virtual storage medium. When the read request is sent to the management controller through the access channel, the management controller can determine that the read request accesses the virtual storage medium based on the analysis of the read request. Then, the management controller can determine that the processor needs to be started and needs to obtain the system image required for starting.

[0064] Thereafter, the management controller can access the remote device based on the pre-configuration. The specific access mode can be that a mapping relationship between an address in the virtual storage medium and a storage space of the remote device is established in the management controller. Through the mapping relationship, the management controller can request the system image from the remote device through the communication protocol adapted to the remote device. The communication protocol can be TCP / IP protocol (Transmission Control Protocol / Internet Protocol), etc., which is not limited, as long as the management controller can communicate with the remote device.

[0065] S102, the received system image is sent to the memory corresponding to the processor, so that the processor in the server starts based on the system image, and upgrades the components deployed in the server according to the upgrade file contained in the system image.

[0066] The system image can be a small operating system, which contains a boot program, a kernel program, and an upgrade file for implementing component upgrade, etc. The system image comes from a remote device for managing and controlling the server, such as a KVM (Keyboard Video Mouse) device, or other management devices connected to the server through a network.

[0067] The boot program is used for automatic detection and register setting during server restart, such as UEFI (Unified Extensible Firmware Interface), PXE (Preboot eXecution Environment), and BIOS programs. The kernel program can be a driver (such as a PCIE driver) and a management tool for connecting components. The upgrade file is a file for upgrading firmware in the component, which needs to be transmitted to the component to enable the component to load the upgrade file during server component upgrade.

[0068] The system image can also contain an upgrade script, which can be used to implement related execution steps and related configurations during server startup.

[0069] Of course, the system image can also contain other files, configurations, and drivers to enable the server to load and execute the system by loading the contents in the system image, and to perform component upgrade, etc.

[0070] After the management controller in the server receives the system image, the system image can be sent to the memory corresponding to the processor through the access channel. In this way, during server startup, the processor can load the system image from the memory to form a small operating system, identify the components deployed in the server through the upgrade script, find the corresponding upgrade file in the system image and issue it, so that the components can be upgraded based on the issued upgrade file.

[0071] Optionally, after the system image received in step S101 is mounted to the virtual storage medium, the method further includes:

[0072] S103, receiving the upgrade log generated by the processor, and sending the upgrade log to the remote device.

[0073] When the system image is sent to the server by the remote device, in order to enable the remote device to understand the upgrade situation of the components in the server, the upgrade situation of the server can also be recorded. For example, Figure 2As shown, when the two components 1 and 2 that need to be upgraded are set in the server, after the upgrade process is performed, whether the components have completed the upgrade or the upgrade has failed can be recorded, for example, component 1 has completed the upgrade, and component 2 has not completed the upgrade, and the processor of the server can record this through the upgrade log, that is, the upgrade log can record the correspondence between the component identifier, slot and upgrade result of the component.

[0074] After the server completes the upgrade process, the processor can feed back the upgrade log to the management controller for recording, and return the upgrade log to the remote device through the management controller. In this way, after the remote device receives the upgrade log, the upgrade log can be displayed to enable the remote staff to know the upgrade component situation, thereby performing the next operation, and the efficiency of remote server maintenance and upgrade is improved.

[0075] Correspondingly, the application provides a component upgrade method applied to a processor in a server, which comprises the steps of Figure 3 As shown, comprising:

[0076] S300, in the server starting process, a read request is sent to the virtual storage medium in the server through the established access channel.

[0077] When the server starts, the boot chip performs scanning to detect the current various devices on the server, such as USB, optical drive and hard disk, and divides a plurality of storage spaces in the memory corresponding to the processor to realize the mapping of the devices. The virtual storage medium created by the management controller can also be detected as a device, and is allocated a storage space in the memory.

[0078] In the boot chip, the priority of the storage medium used for system startup can also be configured, in order to enable the virtual storage medium to be started, the priority of the virtual storage medium can be set to be higher than that of other storage media.

[0079] Due to the creation of the management controller, the virtual storage medium will be considered as an entity device connected to the server by the boot chip and the processor, at this time, the processor can send a read request based on the access channel between the virtual storage medium.

[0080] S301, acquiring a system image corresponding to the read request, and upgrading the components deployed in the server through the upgrade file acquired from the system image.

[0081] When the management controller receives a read request to access the virtual storage medium, the management controller can obtain a system image from the remote device based on the pre-setting and send the system image to the memory corresponding to the processor, so that the processor loads the system image. The system image is similar to a small operating system, and after the small operating system is loaded, the components can be upgraded through the small operating system. Since the system image has been sent to the memory corresponding to the processor, the upgrade here can be an upgrade operation based on an in-band channel, without the need to connect the channel between the processor and the components through the management controller based on a management protocol (such as the MCTP protocol).

[0082] The specific upgrade process can be as follows: S301, upgrading the components deployed in the server through the upgrade file obtained in the system image, including:

[0083] S301A, obtaining the component identifier of the component deployed in the server.

[0084] After the processor loads the small operating system, the management controller can detect the components deployed in the server and determine the slot positions of the components and the component identifiers of the components. The component identifier can be pre-set according to the function of the component, such as component identifier 1 indicating that the component is a network card and component identifier 2 indicating that the component is a hard disk management card.

[0085] S301B, searching for a corresponding upgrade file in the system image according to the component identifier.

[0086] After obtaining the component identifier, the processor can search in the system image according to the component identifier, so as to find the upgrade file corresponding to the component identifier. For example, component identifier 1 corresponds to upgrade file 1, and component identifier 2 corresponds to upgrade file 2.

[0087] S301C, issuing the found upgrade file to the corresponding component for upgrade.

[0088] After the corresponding upgrade file is found, the processor can connect the processor and the component through the in-band channel by running the small operating system, and issue the upgrade file to the corresponding component through the in-band channel, so that the component receiving the upgrade file can perform firmware upgrade.

[0089] S302, after the upgrade is completed, disconnecting the access channel of the virtual storage medium and restarting the server.

[0090] After the component to be upgraded completes the upgrade execution and feeds back the notification of completion of the upgrade to the processor, the processor determines whether all the components have completed the upgrade operation.

[0091] After determining that all the components that need to be upgraded have fed back the notification of completion of upgrade, the processor can disconnect the access channel of the virtual storage medium. The way of disconnecting the access channel can be to eject the created virtual storage medium. In addition, the processor can also complete the above disconnection operation through the management controller.

[0092] After disconnection, the server is restarted again. Since the access channel of the virtual storage medium has been disconnected, the virtual storage medium will not be detected by the boot chip, at this time, the server is restarted based on the operating system in the server, so that the server returns to normal work.

[0093] The technical solutions provided by the embodiments of the present specification can include the following beneficial effects:

[0094] In the embodiments of the present specification, by creating a virtual storage medium in the server and establishing an access channel with the virtual storage medium, when receiving a read request of the virtual storage medium by the processor, the system image is obtained from the remote device, the processor is started according to the system image, and the components deployed in the server are upgraded based on the upgrade file contained in the system image, so that the server can issue the upgrade file to the components through the loaded system after loading the system in the system image, avoiding the need for the management controller to issue the upgrade file based on the management protocol, and improving the flexibility of upgrading the components in the server.

[0095] Optionally, the method further comprises:

[0096] S303, after the upgrade is completed, an upgrade log is generated and sent to the management controller.

[0097] In the upgrade log, the component identifier of the component that completes the upgrade is recorded.

[0098] After receiving the notification of completion of upgrade or the notification of failure of upgrade fed back by the component, the processor can record the correspondence between the component identifier, the slot and the upgrade result of the component based on the notification of completion of upgrade, that is, generate an upgrade log. Through recording, the processor can know which components complete the upgrade and which components have errors in the upgrade process.

[0099] After the processor generates the upgrade log, the upgrade log can be issued to the management controller for storage, so that the management controller can display based on the upgrade log to enable the staff to determine the upgrade status of each component. Moreover, if the system image comes from a remote device, the management controller can also return the upgrade log to the remote device, so that the staff operating the remote device remotely can know the upgrade result of the component, thereby improving the efficiency of remote upgrade of the server.

[0100] Correspondingly, the application provides a component upgrading device, which is applied to a processor in a server, as shown in the following. Figure 4 The device comprises the following components:

[0101] A reading unit is configured to send a reading request to a virtual storage medium in the server through an established access channel during a server startup process, wherein the virtual storage medium is created by a management controller in the server.

[0102] An upgrading unit is configured to obtain a system image corresponding to the reading request and upgrade a component deployed in the server through an upgrading file obtained from the system image.

[0103] A disconnecting unit is configured to disconnect the access channel of the virtual storage medium and restart the server after the upgrading is completed.

[0104] Further, the upgrading unit comprises the following components:

[0105] An identifying module is configured to obtain a component identifier of the component deployed in the server.

[0106] A searching module is configured to search for a corresponding upgrading file in the system image according to the component identifier.

[0107] A delivering module is configured to deliver the searched upgrading file to the corresponding component for upgrading.

[0108] Optionally, the device further comprises the following components:

[0109] A generating unit is configured to generate an upgrading log after the upgrading is completed and send the upgrading log to the management controller, wherein the upgrading log records the component identifier of the component whose upgrading is completed.

[0110] Correspondingly, the application provides a component upgrading device, which is applied to a management controller in a server, as shown in the following. Figure 5 The device comprises the following components:

[0111] A creating unit is configured to create a virtual storage medium in the server and establish an access channel of the virtual storage medium during a server startup process.

[0112] An obtaining unit is configured to obtain a system image corresponding to a reading request from a preset remote device if the reading request sent by a processor in the server to the virtual storage medium is received.

[0113] A mounting unit is configured to send the received system image to a memory corresponding to the processor, so that the processor in the server starts based on the system image and upgrades a component deployed in the server according to an upgrading file contained in the system image.

[0114] Optionally, the apparatus further comprises:

[0115] a sending unit configured to receive the upgrade log generated by the processor and send the upgrade log to the remote device.

[0116] Correspondingly, the present application provides a server, as shown in the specification, comprising a management controller and a processor. Figure 2 The management controller is configured to create a virtual storage medium in the server and establish an access channel to the virtual storage medium during a server startup process.

[0117] The management controller is configured to mount the received system image to the virtual storage medium and restart the server.

[0118] The processor is configured to send a read request to the created virtual storage medium through the created access channel.

[0119] The management controller is configured to obtain a system image corresponding to the read request from a preset remote device according to the received read request.

[0120] The management controller is configured to send the received system image to the memory corresponding to the processor.

[0121] The processor is configured to start up according to the system image and upgrade the components deployed in the server through the upgrade file obtained from the system image.

[0122] The processor is configured to disconnect the access channel of the virtual storage medium and restart the server after the upgrade is completed.

[0123] Optionally, after the virtual storage medium is created in the server and the access channel to the virtual storage medium is established, the management controller receives the system image sent by the remote device.

[0124] The processor is configured to generate an upgrade log after the upgrade is completed and send the upgrade log to the management controller, wherein the component identifier of the component for which the upgrade is completed is recorded in the upgrade log.

[0125] The processor is configured to generate an upgrade log after the upgrade is completed and send the upgrade log to the management controller, wherein the component identifier of the component for which the upgrade is completed is recorded in the upgrade log.

[0126] If the management controller receives the upgrade log generated by the processor, the management controller sends the upgrade log to the remote device.

[0127] The technical solutions provided by the embodiments of the present application can have the following beneficial effects:

[0128] In the embodiments of the present specification, by creating a virtual storage medium in the server and establishing an access channel with the virtual storage medium, and mounting the obtained system image to the virtual storage medium, the server can load the system image for starting, and upgrade the components deployed in the server based on the upgrade file contained in the system image, so that the server can issue the upgrade file to the components through the loaded system after loading the system in the system image, avoiding the need for the management controller to issue the upgrade file based on the management protocol, and improving the flexibility of upgrading the components in the server.

[0129] It should be understood that the present specification is not limited to the precise construction that has been described above and illustrated in the accompanying drawings, and that various modifications and changes can be made without departing from the scope thereof.

[0130] The above only describes the preferred embodiments of the present specification, and is not used to limit the present specification, and any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present specification shall be included in the protection scope of the present specification.

Claims

1. A method of component upgrade, characterized by, A processor applied to a server, comprising: In the server startup process, a read request is sent to a virtual storage medium in the server through an established access channel, wherein the virtual storage medium is created by a management controller in the server, and a memory corresponding to the processor is divided into a plurality of storage spaces to realize device mapping, and when the server starts, the virtual storage medium is scanned out by a boot chip, and the virtual storage medium is allocated with a corresponding storage space; A system image corresponding to the read request is obtained, components deployed in the server are upgraded through upgrade files obtained from the system image, and the system image is loaded, wherein the system image is received by the management controller from a preset remote device and sent to the memory corresponding to the processor, a mapping relationship between addresses in the virtual storage medium and storage spaces of the remote device is established in the management controller, the management controller requests the system image from the remote device through a communication protocol adapted to the remote device, and the upgrade is performed through an in-band channel; After the upgrade is completed, the access channel of the virtual storage medium is disconnected, and the server is restarted.

2. The method of claim 1, wherein, The components deployed in the server are upgraded through the upgrade files obtained from the system image, comprising: Obtaining a component identifier of the components deployed in the server; According to the component identifier, corresponding upgrade files are searched in the system image; The found upgrade files are issued to the corresponding components for upgrade.

3. The method of claim 1, wherein, Further comprising: After the upgrade is completed, an upgrade log is generated and sent to the management controller, wherein the component identifier of the component completing the upgrade is recorded in the upgrade log.

4. A component upgrade method characterized by, A management controller applied to a server, comprising: In the server startup process, a virtual storage medium is created in the server, and an access channel to the virtual storage medium is established, wherein a memory corresponding to a processor of the server is divided into a plurality of storage spaces to realize device mapping, and when the server starts, the virtual storage medium is scanned out by a boot chip, and the virtual storage medium is allocated with a corresponding storage space; If a read request sent by the processor in the server to the virtual storage medium is received, a system image corresponding to the read request is obtained from a preset remote device, wherein a mapping relationship between addresses in the virtual storage medium and storage spaces of the remote device is established in the management controller, and through the mapping relationship, the management controller requests the system image from the remote device through a communication protocol adapted to the remote device; The received system image is sent to the memory corresponding to the processor, so that the processor in the server starts based on the system image, and components deployed in the server are upgraded according to upgrade files contained in the system image, and the system image is loaded, wherein the upgrade is performed through an in-band channel.

5. The method of claim 4, wherein, After the received system image is sent to the memory corresponding to the processor, further comprising: Receive the upgrade log generated by the processor, and send the upgrade log to the remote device.

6. A component upgrading apparatus characterized by comprising: The processor applied to a server comprises: A reading unit is configured to send a reading request to a virtual storage medium in the server through an established access channel during a server startup process, wherein the virtual storage medium is created by a management controller in the server, and a memory corresponding to the processor is divided into a plurality of storage spaces to realize device mapping, and the virtual storage medium is scanned by a boot chip and allocated with a corresponding storage space during the server startup; An upgrading unit is configured to obtain a system image corresponding to the reading request, upgrade components deployed in the server through an upgrade file obtained from the system image, and load the system image, wherein the system image is received by the management controller from a preset remote device and sent to the memory corresponding to the processor, a mapping relationship between addresses in the virtual storage medium and storage spaces of the remote device is established in the management controller, the management controller requests the system image from the remote device through a communication protocol adapted to the remote device through the mapping relationship, and the upgrade is performed through an in-band channel; A disconnecting unit is configured to disconnect the access channel of the virtual storage medium after the upgrade is completed and restart the server.

7. The apparatus of claim 6, wherein, The upgrading unit comprises: An identifying module is configured to obtain a component identifier of the components deployed in the server; A searching module is configured to search for a corresponding upgrade file in the system image according to the component identifier; A delivering module is configured to deliver the found upgrade file to the corresponding components for upgrade.

8. The apparatus of claim 6, wherein, Further comprising: A generating unit is configured to generate an upgrade log after the upgrade is completed and send the upgrade log to the management controller, wherein the upgrade log records the component identifier of the components that have completed the upgrade.

9. A component upgrading apparatus characterized by comprising: The management controller applied to a server comprises: A creating unit is configured to create a virtual storage medium in the server during a server startup process and establish an access channel with the virtual storage medium, wherein a memory corresponding to a processor in the server is divided into a plurality of storage spaces to realize device mapping, and the virtual storage medium is scanned by a boot chip and allocated with a corresponding storage space during the server startup; An obtaining unit is configured to obtain a system image corresponding to a reading request from a preset remote device if the reading request sent by the processor in the server to the virtual storage medium is received, wherein a mapping relationship between addresses in the virtual storage medium and storage spaces of the remote device is established in the management controller, and the management controller requests the system image from the remote device through a communication protocol adapted to the remote device through the mapping relationship; The mounting unit is configured to send the received system image to the memory corresponding to the processor, so that the processor in the server is started based on the system image, and the components deployed in the server are upgraded according to the upgrade file contained in the system image, and the system image is loaded, wherein the upgrade is performed through an in-band channel.

10. The apparatus of claim 9, wherein, Further comprising: The sending unit is configured to receive the upgrade log generated by the processor, and send the upgrade log to the remote device.

11. A server, characterized by The management controller and the processor are included, wherein the memory corresponding to the processor of the server is divided into a plurality of storage spaces to realize the mapping of the device; During the startup process of the server, the management controller creates a virtual storage medium in the server, and establishes an access channel with the virtual storage medium, wherein the management controller has a mapping relationship between the address in the virtual storage medium and the storage space of the remote device; The management controller mounts the received system image to the virtual storage medium, and restarts the server; The processor scans out the virtual storage medium through a boot chip, allocates a corresponding storage space for the virtual storage medium, and sends a read request to the created virtual storage medium through the created access channel; The management controller obtains the system image corresponding to the read request from the preset remote device according to the mapping relationship and the communication protocol adapted between the management controller and the remote device; The management controller sends the received system image to the memory corresponding to the processor; The processor is started according to the system image, and the components deployed in the server are upgraded through the upgrade file obtained from the system image, wherein the upgrade is performed through an in-band channel; After the upgrade is completed, the processor disconnects the access channel of the virtual storage medium, and restarts the server.

12. The server of claim 11, wherein, After the upgrade is completed, the processor generates an upgrade log and sends it to the management controller, wherein the component identifier of the component that has completed the upgrade is recorded in the upgrade log; If the management controller receives the upgrade log generated by the processor, the upgrade log is sent to the remote device.

Citation Information

Patent Citations

  • Method and system for remote upgrade supporting firmware automatic recovery function

    CN107247603A

  • Host self-checking system, method and device

    CN111158966A

  • Server firmware upgrading method and system, electronic equipment and storage medium

    CN111538517A

  • Virtual drive generation method and device and computer readable storage medium

    CN112817644A