CN110365524B - Mirror image upgrading method and system for server node firmware - Google Patents

Mirror image upgrading method and system for server node firmware Download PDF

Info

Publication number
CN110365524B
CN110365524B CN201910567596.6A CN201910567596A CN110365524B CN 110365524 B CN110365524 B CN 110365524B CN 201910567596 A CN201910567596 A CN 201910567596A CN 110365524 B CN110365524 B CN 110365524B
Authority
CN
China
Prior art keywords
upgrading
server
firmware
firmware image
information
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.)
Active
Application number
CN201910567596.6A
Other languages
Chinese (zh)
Other versions
CN110365524A (en
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 CN201910567596.6A priority Critical patent/CN110365524B/en
Publication of CN110365524A publication Critical patent/CN110365524A/en
Application granted granted Critical
Publication of CN110365524B publication Critical patent/CN110365524B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0889Techniques to speed-up the configuration process
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a mirror image upgrading method and a mirror image upgrading system for server node firmware, wherein the method comprises the following steps: the method comprises the steps that a master control whole cabinet server sends upgrading information to all controlled whole cabinet servers, when each controlled whole cabinet server receives the upgrading information, a first node identification and a first firmware image identification which are contained in the upgrading information are obtained, target server node firmware matched with the first node identification is determined, a target server node firmware image matched with the first firmware image identification is determined according to a server node firmware image of the target server node firmware, and the target server node firmware image is upgraded according to an upgrading firmware image version packet contained in the upgrading information. By applying the method provided by the invention, each controlled cabinet server upgrades the mirror image of the server node firmware according to the upgrading information sent by the master control cabinet server, thereby realizing the simultaneous upgrading of the server node firmware in a plurality of whole cabinet servers.

Description

Mirror image upgrading method and system for server node firmware
Technical Field
The invention relates to the field of computers, in particular to a method and a system for upgrading an image of server node firmware.
Background
The whole cabinet server is an independent product integrating a cabinet and server nodes, a plurality of server node firmware are usually arranged in each whole cabinet server, and each server node firmware corresponds to a plurality of firmware mirror images. The whole cabinet server adopts centralized power supply and centralized heat dissipation to uniformly manage the server node firmware in the aspect of integration and management of the server node firmware, has great advantages compared with the traditional server, and is more and more extensive in practical application.
With the improvement of the performance requirements of users on the servers, the number of the whole cabinet servers in the machine room is increased, and simultaneously, the number of the server node firmware in each whole cabinet server is increased, in the prior art, the basic management of each whole cabinet server in the machine room can be realized by using a certain whole cabinet server to manage other whole cabinet servers, namely, a master whole cabinet server is determined from each whole cabinet of the machine room, the rest whole cabinet servers are determined to be controlled whole cabinet servers, each controlled whole cabinet server is uniformly managed by using the determined master whole cabinet server, and the server node firmware on one whole cabinet server can only be upgraded and then upgraded on the server node firmware on another whole cabinet server in the upgrading management of the server node firmware in a plurality of whole cabinets, namely, serial upgrading, the upgrading time is too long, and the efficiency is low.
Disclosure of Invention
In view of this, an embodiment of the present invention provides a method for upgrading a mirror image of a server node firmware, where a master control whole cabinet server sends upgrade information to each controlled whole cabinet server, and each controlled whole cabinet server upgrades a mirror image of a node firmware according to the upgrade information, so as to upgrade node firmware of multiple whole cabinet servers at the same time.
In order to achieve the above purpose, the embodiments of the present invention provide the following technical solutions:
a mirror image upgrading method for server node firmware is applied to a whole cabinet server group, wherein the whole cabinet server group comprises a master control whole cabinet server and at least one controlled whole cabinet server, and the method comprises the following steps:
the master control whole cabinet server sends upgrading information to each controlled whole cabinet server; the upgrading information comprises an upgrading firmware image version package and identification information, wherein the identification information comprises a first node identification and a first firmware image identification;
when each controlled whole cabinet server receives the upgrading information sent by the master control whole cabinet server, determining target server node firmware matched with the first node identifier in the controlled whole cabinet server according to the first node identifier contained in the identification information, and upgrading the target server node firmware image according to an upgrading firmware image version packet contained in the upgrading information; the target server node firmware image is a server node firmware image in which a firmware image identifier is matched with a first firmware image identifier contained in the identifier information in each server node firmware image corresponding to the target server node firmware.
Optionally, the determining the target server node firmware in the controlled rack server that matches the first node identifier includes:
acquiring each server node firmware of the server of the controlled whole cabinet, and determining a node identifier of each server node firmware;
matching the node identification of each server node firmware with the first node identification;
and determining the node identifier of the server node firmware matched with the first node identifier as a target node identifier, and determining the server node firmware corresponding to the target node identifier as a target server node firmware.
Optionally, the method, after the upgrading the target server node firmware image, further includes:
monitoring the upgrading state of the firmware image of the target server node in the upgrading process;
when the upgrading state represents that upgrading is finished, generating upgrading result information according to the upgrading state, and sending the upgrading result information to the main control whole cabinet server; the upgrade result information includes upgrade success information or upgrade failure information.
In the foregoing method, optionally, after the master control complete cabinet server sends the upgrade information to each controlled complete cabinet server, the method further includes:
the master control whole cabinet server receives the upgrading result information sent by each controlled whole cabinet server;
the main control whole cabinet server executes a first operation on each piece of upgrading result information, and determines the upgrading result information of the currently executed first operation as target upgrading result information;
the first operation includes: and judging whether the target upgrading result information is upgrading success information or not, if the target upgrading result information is judged not to be upgrading success information, prompting whether to upgrade the server node firmware image in the controlled complete cabinet server corresponding to the target result information again or not, and sending upgrading information to the controlled complete cabinet server again when receiving an instruction for upgrading again.
In the foregoing method, optionally, the sending, by the master control complete cabinet server, the update information to each controlled complete cabinet server includes:
when receiving an upgrade firmware image version package submission request, acquiring each upgrade firmware image version package contained in the submission request and identification information corresponding to each upgrade firmware image version package;
determining a controlled complete cabinet server corresponding to each upgraded firmware image version package;
and for each upgrade firmware image version package, sending upgrade information to a controlled complete cabinet server corresponding to the upgrade firmware image version package according to the upgrade firmware image version package and identification information corresponding to the upgrade firmware image version package.
Optionally, in the method, the sending, to each firmware image version upgrade package, upgrade information to a controlled complete equipment cabinet server corresponding to the firmware image version upgrade package according to the firmware image version upgrade package and identification information corresponding to the firmware image version upgrade package includes:
acquiring an IP address of each controlled whole cabinet server, and forming an upgrading firmware image version packet set by upgrading firmware image version packets corresponding to each controlled whole cabinet server with the same IP address so as to divide each upgrading firmware image version packet into a plurality of upgrading firmware image version packet sets;
and for each upgrading firmware image version packet set, sending upgrading information to a controlled complete cabinet server corresponding to the upgrading firmware image version packet set according to the upgrading firmware image version packet set and identification information corresponding to each upgrading firmware image version packet in the upgrading firmware image version packet set.
An image upgrade system for server node firmware, the system comprising:
the master control whole cabinet server is used for sending upgrading information to each controlled whole cabinet server; the upgrading information comprises an upgrading firmware image version package and identification information, wherein the identification information comprises a first node identification and a first firmware image identification;
the controlled whole cabinet server is used for determining target server node firmware matched with the first node identifier in the controlled whole cabinet server according to the first node identifier contained in the identifier information when receiving the upgrade information sent by the master control whole cabinet server, and upgrading the target server node firmware image according to an upgrade firmware image version packet contained in the upgrade information; the target server node firmware image is a server node firmware image in which a firmware image identifier is matched with a first firmware image identifier contained in the identifier information in a server node firmware image corresponding to the target server node firmware.
Optionally, the system in which the controlled complete rack server is configured to determine the target server node firmware in the controlled complete rack server that matches the first node identifier includes:
the controlled complete cabinet server is specifically used for acquiring each server node firmware of the controlled complete cabinet server and determining a node identifier of each server node firmware;
matching the node identification of each server node firmware with the first node identification;
and determining the node identifier of the server node firmware matched with the first node identifier as a target node identifier, and determining the server node firmware corresponding to the target node identifier as a target server node firmware.
Optionally, in the above system, the controlled rack server is further configured to:
monitoring the upgrading state of the firmware image of the target server node in the upgrading process;
when the upgrading state represents that upgrading is finished, generating upgrading result information according to the upgrading state, and sending the upgrading result information to the main control whole cabinet server; the upgrade result information includes upgrade success information or upgrade failure information.
Optionally, in the above system, the master control entire cabinet server is further configured to:
receiving upgrading result information sent by each controlled cabinet server;
executing a first operation on each piece of upgrading result information, and determining the upgrading result information of the currently executed first operation as target upgrading result information;
the first operation includes: and judging whether the target upgrading result information is upgrading success information or not, if the target upgrading result information is judged not to be upgrading success information, prompting whether to upgrade the server node firmware image in the controlled complete cabinet server corresponding to the target result information again or not, and sending upgrading information to the controlled complete cabinet server again when receiving an instruction for upgrading again.
Compared with the prior art, the invention has the following advantages:
the invention provides a mirror image upgrading method of server node firmware, which comprises the following steps: the master control whole cabinet server sends upgrading information to each controlled whole cabinet server; the upgrading information comprises an upgrading firmware image version package and identification information, wherein the identification information comprises a first node identification and a first firmware image identification; when each controlled whole cabinet server receives upgrade information sent by the master control whole cabinet server, determining target server node firmware matched with a first node identifier in the controlled whole cabinet server according to the first node identifier contained in the upgrade information, and upgrading a target server node firmware image according to an upgrade firmware image version packet contained in the upgrade information; the target server node firmware image is a server node firmware image in which a firmware image identifier is matched with a first firmware image identifier contained in the identifier information in a server node firmware image corresponding to the target server node firmware. By applying the mirror image upgrading method of the server node firmware provided by the invention, the main control whole cabinet server sends upgrading information to each controlled whole cabinet server, and each controlled whole cabinet server upgrades the mirror image of the server node firmware according to the upgrading information, so that the server node firmware in a plurality of whole cabinet servers is upgraded at the same time, and the upgrading efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a method for updating an image of a server node firmware according to an embodiment of the present invention;
fig. 2 is an exemplary diagram of an image upgrading method for server node firmware according to an embodiment of the present invention;
fig. 3 is a flowchart of another method for updating an image of a firmware of a server node according to an embodiment of the present invention;
fig. 4 is a diagram illustrating another example of an image upgrading method for server node firmware according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an image upgrading system for server node firmware according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, belong to the protection scope of the present invention.
The embodiment of the invention provides a mirror image upgrading method of server node firmware, which can be applied to a whole cabinet server group, wherein the whole cabinet server group comprises a master control whole cabinet server and at least one controlled whole cabinet server, and a flow chart of the method is shown in figure 1 and specifically comprises the following steps:
s101: the master control whole cabinet server sends upgrading information to each controlled whole cabinet server;
in the method provided by the embodiment of the invention, the master control whole cabinet server is used for managing all the controlled whole cabinet servers in a unified manner, the master control whole cabinet server firstly checks whether the server node firmware of each controlled whole cabinet server operates normally and whether the network connectivity is normal, and sends the upgrading information to each controlled whole cabinet under the condition that the server node firmware operates normally and the network connectivity is normal, wherein the upgrading information comprises an upgrading firmware mirror image version package and identification information, and the identification information comprises a first node identification and a first firmware mirror image identification.
It should be noted that, as shown in fig. 2, the whole master cabinet server and each whole controlled cabinet server are connected to the same local area network LAN, the firmware of each server node in the whole cabinet server is also connected to the local area network, the CMC in the figure is a chassis management controller of the whole cabinet server and is used for managing the whole cabinet server, and the whole master cabinet server sends the upgrade information to each whole controlled cabinet server through the local area network.
S102: when each controlled whole cabinet server receives upgrade information sent by a master control whole cabinet server, determining a target server node firmware matched with a first node identifier in the controlled whole cabinet server according to the first node identifier contained in the upgrade information;
in the method provided by the embodiment of the invention, when any one controlled complete cabinet server receives the upgrading information sent by the master control complete cabinet server, each baseboard management controller BMC in the controlled complete cabinet server judges whether the node identifier is consistent with the node identifier of the self server node firmware according to the first node identifier contained in the upgrading information, if so, the self server node firmware is judged to be required to be upgraded, and the server node firmware required to be upgraded is determined to be the target server node firmware; and if not, ignoring the upgrading information.
S103: each controlled complete cabinet server upgrades the firmware image of the target server node according to the upgrade firmware image version packet contained in the upgrade information;
in the method provided by the embodiment of the invention, each controlled cabinet server determines the firmware image of the server node corresponding to the target server node firmware according to the target server node firmware, determines the firmware image identification of each server node firmware image, matches each firmware image identification with the first firmware image identification respectively, determines the server node firmware image corresponding to the firmware image identification matched with the first firmware image identification as the target server node firmware image, and upgrades the target server node firmware image according to the upgrade firmware image version packet in the upgrade information so as to upgrade the node firmware in the controlled cabinet server.
Optionally, the number of the server node firmware images corresponding to the server node firmware in the controlled whole cabinet may be two, and according to the first firmware image identifier, the server node firmware image corresponding to the first firmware image identifier may be selected to be upgraded.
It should be noted that the master control whole cabinet server may arbitrarily select one or more server node firmware in each controlled whole cabinet server to be updated simultaneously, when a plurality of server node firmware in the controlled whole cabinet server needs to be updated, each server node firmware may correspond to one piece of update information, or a plurality of server node firmware may correspond to one piece of update information, where the update information includes a plurality of update firmware image version packets and identification information corresponding to each update firmware image version packet.
The image upgrading method for the server node firmware provided by the embodiment of the invention comprises the steps that a master control complete machine sends upgrading information to each controlled complete machine cabinet server through a server, each controlled complete machine cabinet server determines an upgrading firmware image version packet, a first node identifier and a first firmware image identifier contained in the upgrading information, server node firmware corresponding to the first node identifier in a plurality of server node firmware of the controlled complete machine cabinet server is determined as target server node firmware according to the first node identifier, a server node firmware image corresponding to the first firmware image identifier is determined from the server node firmware image corresponding to the target server node firmware, and firmware image upgrading is carried out on the server node firmware image corresponding to the first firmware image identifier, so that the server node firmware is upgraded. By applying the image upgrading method for the server node firmware provided by the embodiment of the invention, the controlled cabinet servers are uniformly managed by the master control whole cabinet server to upgrade the image of the server node firmware, so that the upgrading efficiency is improved.
In the foregoing embodiment of the present invention, the step S102 disclosed in fig. 1 relates to determining the target server node firmware matching the first node identifier in the controlled complete enclosure server, and includes the following steps:
acquiring each server node firmware of the server of the controlled whole cabinet, and determining a node identifier of each server node firmware;
matching the node identification of each server node firmware with the first node identification;
and determining the node identifier of the server node firmware matched with the first node identifier as a target node identifier, and determining the server node firmware corresponding to the target node identifier as target server node firmware.
In the method provided by the embodiment of the invention, each controlled complete cabinet server is provided with a plurality of server node firmware, each server node firmware is managed by a Baseboard Management Controller (BMC), each server node firmware corresponds to different node identifiers, optionally, each controlled complete cabinet node server is provided with but not limited to 8 server node firmware, the node identifiers of each server node firmware are respectively matched with the first node identifier, and the server node firmware corresponding to the node identifier matched with the first node identifier is determined as the target server node firmware.
In the above embodiment of the present invention, after the step 103 disclosed in fig. 1 is performed to update the firmware image of the target server node, the method further includes the following steps:
monitoring the upgrading state of the firmware image of the target server node in the upgrading process;
when the upgrading state represents that upgrading is finished, generating upgrading result information according to the upgrading state, and sending the upgrading result information to the main control whole cabinet server; the upgrade result information includes upgrade success information or upgrade failure information.
In the method provided by the embodiment of the invention, the controlled whole cabinet server monitors the upgrading state in real time in the upgrading process of the target server node firmware image, generates upgrading result information according to the upgrading state when upgrading is finished, wherein the upgrading result information comprises upgrading success information and upgrading failure information, and sends the upgrading result information to the main control whole cabinet server.
Optionally, in the method provided by the embodiment of the present invention, the controlled whole cabinet server may also send the update information to the main control whole cabinet server in real time according to the monitored update state in the update process of the target server node firmware image.
In the above embodiment of the present invention, the master control complete equipment cabinet server related to step 101 disclosed in fig. 1 sends the upgrade information to each controlled complete equipment cabinet server, as shown in fig. 3, specifically includes the following steps:
s301: when receiving a submission request of an upgrade firmware image version package, acquiring each upgrade firmware image version package contained in the submission request and identification information corresponding to each upgrade firmware image version package;
in the method provided by the embodiment of the invention, when a request for submitting the firmware image upgrading version package is received, each submitted firmware image upgrading version package and identification information corresponding to each firmware image upgrading version package are obtained, wherein the identification information comprises a first node identification and a first firmware image identification.
S302: determining a controlled complete cabinet server corresponding to each upgraded firmware image version package;
in the method provided by the embodiment of the invention, each controlled complete equipment cabinet server and all server node firmware corresponding to each controlled complete equipment cabinet node server are stored in a main cabinet controller (CMC) page in a main control complete equipment cabinet server, and the server node firmware to be upgraded is determined according to a first node identifier contained in the identification information, so that the controlled complete equipment cabinet server to which the server node firmware belongs is determined.
S303: and for each upgrade firmware image version package, sending upgrade information to a controlled complete cabinet server corresponding to the upgrade firmware image version package according to the upgrade firmware image version package and identification information corresponding to the upgrade firmware image version package.
In the method provided by the embodiment of the invention, each upgrade firmware image version package and identification information corresponding to the upgrade firmware image version package are sent to a controlled complete cabinet server corresponding to the upgrade firmware image version package;
it should be noted that the method provided by the embodiment of the present invention may upgrade one or more server node firmware in each controlled complete equipment cabinet server, when it is necessary to upgrade a plurality of server node firmware in the controlled complete equipment cabinet server, each server node firmware may correspond to one piece of upgrade information, and if each server node corresponds to one piece of upgrade information, one controlled complete equipment cabinet server may receive a plurality of pieces of upgrade information; optionally, the method may further include that the plurality of server node firmware corresponds to one piece of upgrade information, where the upgrade information includes a plurality of upgrade firmware image version packets and identification information corresponding to each upgrade firmware image version packet, and when the plurality of server node firmware corresponds to one piece of upgrade information, a specific process in which the master control complete cabinet server sends the upgrade information to the controlled complete cabinet server includes:
acquiring an IP address of each controlled whole cabinet server, and forming an upgrading firmware image version packet set by upgrading firmware image version packets corresponding to each controlled whole cabinet server with the same IP address so as to divide each upgrading firmware image version packet into a plurality of upgrading firmware image version packet sets;
and for each upgrade firmware image version packet set, sending upgrade information to a controlled complete equipment cabinet server corresponding to the upgrade firmware image version packet set according to the upgrade firmware image version packet set and identification information corresponding to each upgrade firmware image version packet in the upgrade firmware image version packet set.
In the method provided by the embodiment of the invention, the firmware image upgrading version packages corresponding to the controlled complete cabinet servers with the same IP addresses of the controlled complete cabinet servers are combined into the firmware image upgrading version package set, so that the firmware image upgrading version packages of the server node firmware of the same controlled complete cabinet server are combined into one firmware image upgrading version package set, and the whole firmware image upgrading version package set is directly sent to the controlled complete cabinet servers corresponding to the firmware image upgrading version package set.
According to the mirror image upgrading method for the server node firmware, when a firmware image upgrading version package submission request is received, each firmware image upgrading version package in the submission request and identification information corresponding to each firmware image upgrading version package are obtained, a controlled complete machine cabinet server corresponding to each firmware image upgrading version package is determined, and upgrading information is sent to the controlled complete machine cabinet server corresponding to each firmware image upgrading version package according to each firmware image upgrading version package and the identification information corresponding to each firmware image upgrading version package; the upgrading information is sent to the controlled equipment cabinet servers corresponding to the upgrading firmware image version packages according to the upgrading firmware image version packages and the identification information corresponding to the upgrading firmware image version packages, the upgrading firmware image version packages and the identification information can be sent to the controlled equipment cabinet servers corresponding to the upgrading firmware image version packages, the upgrading firmware image version packages corresponding to the controlled equipment cabinet servers with the same IP address can be grouped to form an upgrading firmware image version package set, and then the upgrading firmware image version set is sent to the controlled equipment cabinet servers corresponding to the upgrading firmware image version package set. By applying the method provided by the embodiment of the invention, all the controlled cabinet servers of the server node firmware mirror image to be upgraded are controlled in a unified manner to upgrade the server node firmware through the master control whole cabinet server, so that the batch upgrade and update are realized, and the operation and maintenance efficiency of the whole cabinet server group is improved.
The method provided by the embodiment of the present invention may further include: the main control whole cabinet server receives the upgrading result information sent by each controlled whole cabinet server, and executes a first operation on each piece of upgrading result information, wherein the first operation comprises the following steps: and judging whether the upgrading result information is upgrading success information or not, if so, displaying the server node firmware corresponding to the upgrading result information on the main control whole cabinet server, otherwise, prompting whether the staff upgrade again or not, if receiving a re-upgrading instruction, sending upgrading information to the controlled whole cabinet server corresponding to the upgrading result information again, and receiving the upgrading information by the controlled whole cabinet server and upgrading again according to the upgrading information.
It should be noted that, in the method provided in the embodiment of the present invention, the entire master control cabinet server may uniformly manage each entire controlled cabinet server to perform the image upgrade of the server node firmware, and may also control the image upgrade of the server node firmware of the entire master control cabinet server itself.
In the method provided in the embodiment of the present invention, the overall implementation of the image upgrading method for the server node firmware is described, as shown in fig. 4, the method specifically includes the following steps:
in the method provided by the embodiment of the present invention, there may be a plurality of controlled complete cabinet servers, and in order to specifically describe the overall implementation method of the present invention, fig. 4 shows an upgrade process for the server node firmware when 1 controlled complete cabinet server exists, and when there are a plurality of controlled complete cabinet servers, the upgrade process is similar to the upgrade process for the controlled complete cabinet server shown in fig. 4.
When the whole cabinet server receives a submission request of an upgrade firmware image version package, acquiring each upgrade firmware image version package contained in the submission request and identification information corresponding to each upgrade firmware image version package, and determining server node firmware to be upgraded according to the identification information so as to determine a controlled whole cabinet server corresponding to the server node firmware, namely a controlled whole cabinet server corresponding to the server node firmware is determined by a CMC page preset in a master control whole cabinet server.
For each upgrade firmware image version package, the master control whole cabinet server sends upgrade information to the controlled whole cabinet server corresponding to the upgrade firmware image version package through the local area network according to the upgrade firmware image version package and the identification information corresponding to the upgrade firmware image version package;
when the controlled whole cabinet server receives the upgrading information, the baseboard management controller in the controlled whole cabinet server judges whether the node identifier is the node identifier of the self server node firmware according to the first node identifier in the upgrading information, if so, determining the server node firmware as a target server node firmware, determining a server node firmware image corresponding to the first firmware image identifier in each server node firmware image of the target server node firmware as a target server node firmware image according to the first firmware image identifier in the upgrade information, and upgrading the determined target server node firmware image according to the upgrade firmware image version packet in the upgrade information, monitoring the upgrading state in real time in the upgrading process, generating upgrading result information according to the upgrading state when upgrading is finished, and sending the upgrading result information to a main control whole cabinet server;
the main control whole cabinet server judges the upgrading result information sent by the controlled whole cabinet, if the upgrading result information is upgrading success information, the server node firmware which is upgraded successfully is displayed on a CMC page of the main control whole cabinet server, if the upgrading result is upgrading failure information, whether the upgrading is carried out again is judged, namely whether the server node firmware in the controlled whole cabinet server corresponding to the upgrading result information is upgraded again is prompted, when a re-upgrading instruction is received, the upgrading is judged again, and the upgrading information is sent to the controlled whole cabinet server corresponding to the upgrading result information again.
An embodiment of the present invention further provides an image upgrading system for server node firmware, a schematic structural diagram of which is shown in fig. 5, and the image upgrading system specifically includes:
a master control whole cabinet server 501, configured to send update information to each controlled whole cabinet server; the upgrading information comprises an upgrading firmware image version package and identification information, wherein the identification information comprises a first node identification and a first firmware image identification;
the controlled whole cabinet server 502 is configured to, when receiving the upgrade information sent by the master control whole cabinet server, determine, according to a first node identifier included in the identifier information, a target server node firmware in the controlled whole cabinet server that matches the first node identifier, and upgrade, according to an upgrade firmware image version package included in the upgrade information, a target server node firmware image; the target server node firmware image is a server node firmware image in which a firmware image identifier is matched with a first firmware image identifier contained in the identifier information in a server node firmware image corresponding to the target server node firmware.
The specific implementation manner of the controlled complete cabinet server 502 determining the target server node firmware in the controlled complete cabinet server matched with the first node identifier is as follows:
the controlled complete cabinet server is specifically used for acquiring each server node firmware of the controlled complete cabinet server and determining a node identifier of each server node firmware;
matching the node identification of each server node firmware with the first node identification;
and determining the node identifier of the server node firmware matched with the first node identifier as a target node identifier, and determining the server node firmware corresponding to the target node identifier as a target server node firmware.
The controlled cabinet server 502 is further configured to:
monitoring the upgrading state of the firmware image of the target server node in the upgrading process;
when the upgrading state represents that upgrading is finished, generating upgrading result information according to the upgrading state, and sending the upgrading result information to the main control whole cabinet server; the upgrade result information includes upgrade success information or upgrade failure information.
The master control whole cabinet server 501 is further configured to:
receiving upgrading result information sent by each controlled cabinet server;
executing a first operation on each piece of upgrading result information, and determining the upgrading result information of the currently executed first operation as target upgrading result information;
the first operation includes: and judging whether the target upgrading result information is upgrading success information or not, if the target upgrading result information is judged not to be upgrading success information, prompting whether to upgrade the server node firmware image in the controlled complete cabinet server corresponding to the target result information again or not, and sending upgrading information to the controlled complete cabinet server again when receiving an instruction for upgrading again.
The specific implementation manner of sending the upgrade information to each controlled complete equipment cabinet server by the master control complete equipment cabinet server 501 is as follows:
when receiving a submission request of an upgrade firmware image version package, acquiring each upgrade firmware image version package contained in the submission request and identification information corresponding to each upgrade firmware image version package;
determining a controlled complete cabinet server corresponding to each upgraded firmware image version package;
and for each upgrade firmware image version package, sending upgrade information to a controlled complete cabinet server corresponding to the upgrade firmware image version package according to the upgrade firmware image version package and identification information corresponding to the upgrade firmware image version package.
The specific implementation manner of sending the upgrade information to the controlled equipment cabinet server corresponding to the upgrade firmware image version packet by the master control equipment cabinet server 501 according to the upgrade firmware image version packet and the identification information corresponding to the upgrade firmware image version packet is as follows:
acquiring an IP address of each controlled whole cabinet server, and forming an upgrading firmware image version packet set by upgrading firmware image version packets corresponding to each controlled whole cabinet server with the same IP address so as to divide each upgrading firmware image version packet into a plurality of upgrading firmware image version packet sets;
and for each upgrading firmware image version packet set, sending upgrading information to a controlled complete cabinet server corresponding to the upgrading firmware image version packet set according to the upgrading firmware image version packet set and identification information corresponding to each upgrading firmware image version packet in the upgrading firmware image version packet set.
In the image upgrading system for the server node firmware provided by the embodiment of the present invention, the master control complete machine sends the upgrade information to each controlled complete machine cabinet server through the server, each controlled complete machine cabinet server determines the upgrade firmware image version packet, the first node identifier and the first firmware image identifier included in the upgrade information, determines the server node firmware corresponding to the first node identifier as the target server node firmware among the plurality of server node firmware of the controlled complete machine cabinet server according to the first node identifier, determines the server node firmware image corresponding to the first firmware image identifier from the server node firmware image corresponding to the target server node firmware, and performs firmware image upgrading on the server node firmware image corresponding to the first firmware image identifier, so as to upgrade the server node firmware. By applying the image upgrading system of the server node firmware provided by the embodiment of the invention, the controlled cabinet servers are uniformly managed by the main control cabinet server to upgrade the image of the server node firmware, so that the upgrading efficiency is improved.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. For the device-like embodiment, since it is basically similar to the method embodiment, the description is simple, and reference may be made to the partial description of the method embodiment for relevant points.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be 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.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functions of the units may be implemented in one or more of software and/or hardware in implementing the invention.
From the above description of the embodiments, it is clear to those skilled in the art that the present invention can be implemented by software plus necessary general hardware platform. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which may be stored in a storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments.
The method and system for upgrading the mirror image of the server node firmware provided by the invention are described in detail, a specific example is applied in the method to explain the principle and the implementation of the invention, and the description of the embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (6)

1. A mirror image upgrading method for server node firmware is characterized in that the method is applied to a whole cabinet server group, the whole cabinet server group comprises a master control whole cabinet server and at least one controlled whole cabinet server, and the method comprises the following steps:
the master control whole cabinet server sends upgrading information to each controlled whole cabinet server; the upgrading information comprises an upgrading firmware image version package and identification information, wherein the identification information comprises a first node identification and a first firmware image identification;
the master control whole cabinet server sends upgrading information to each controlled whole cabinet server, and the upgrading information comprises the following steps:
when receiving a submission request of an upgrade firmware image version package, acquiring each upgrade firmware image version package contained in the submission request and identification information corresponding to each upgrade firmware image version package;
determining a controlled complete cabinet server corresponding to each upgraded firmware image version package;
acquiring the IP address of each controlled whole cabinet server, and forming an upgrading firmware image version packet set by upgrading firmware image version packets corresponding to each controlled whole cabinet server with the same IP address so as to divide each upgrading firmware image version packet into a plurality of upgrading firmware image version packet sets;
for each upgrade firmware image version packet set, sending upgrade information to a controlled complete equipment cabinet server corresponding to the upgrade firmware image version packet set according to the upgrade firmware image version packet set and identification information corresponding to each upgrade firmware image version packet in the upgrade firmware image version packet set;
when each controlled whole cabinet server receives the upgrading information sent by the master control whole cabinet server, determining target server node firmware matched with the first node identifier in the controlled whole cabinet server according to the first node identifier contained in the identification information, and upgrading the target server node firmware image according to an upgrading firmware image version packet contained in the upgrading information; the target server node firmware image is a server node firmware image, wherein in each server node firmware image corresponding to the target server node firmware, a firmware image identifier is matched with a first firmware image identifier contained in the identification information;
the determining the target server node firmware matched with the first node identifier in the controlled complete cabinet server includes: acquiring each server node firmware of the server of the controlled whole cabinet, and determining a node identifier of each server node firmware; matching the node identification of each server node firmware with the first node identification; if the matching is consistent, determining the node identifier of the server node firmware matched with the first node identifier as a target node identifier, and determining the server node firmware corresponding to the target node identifier as a target server node firmware; and if the matching is inconsistent, ignoring the upgrading information.
2. The method of claim 1, wherein after upgrading the target server node firmware image, further comprising:
monitoring the upgrading state of the firmware image of the target server node in the upgrading process;
when the upgrading state represents that upgrading is finished, generating upgrading result information according to the upgrading state, and sending the upgrading result information to the main control whole cabinet server; the upgrade result information includes upgrade success information or upgrade failure information.
3. The method of claim 1, wherein after the master control complete cabinet server sends the upgrade information to each controlled complete cabinet server, the method further comprises:
the master control whole cabinet server receives the upgrading result information sent by each controlled whole cabinet server;
the main control whole cabinet server executes a first operation on each piece of upgrading result information, and determines the upgrading result information of the currently executed first operation as target upgrading result information;
the first operation includes: and judging whether the target upgrading result information is upgrading success information or not, if the target upgrading result information is judged not to be upgrading success information, prompting whether to upgrade the server node firmware image in the controlled complete cabinet server corresponding to the target result information again or not, and sending upgrading information to the controlled complete cabinet server again when receiving an instruction for upgrading again.
4. An image upgrade system for server node firmware, the system comprising:
the master control whole cabinet server is used for sending upgrading information to each controlled whole cabinet server; the upgrading information comprises an upgrading firmware image version packet and identification information, wherein the identification information comprises a first node identification and a first firmware image identification;
the main control whole cabinet server is specifically used for:
when receiving a submission request of an upgrade firmware image version package, acquiring each upgrade firmware image version package contained in the submission request and identification information corresponding to each upgrade firmware image version package;
determining a controlled complete cabinet server corresponding to each upgraded firmware image version package;
acquiring an IP address of each controlled whole cabinet server, and forming an upgrading firmware image version packet set by upgrading firmware image version packets corresponding to each controlled whole cabinet server with the same IP address so as to divide each upgrading firmware image version packet into a plurality of upgrading firmware image version packet sets;
for each upgrade firmware image version packet set, sending upgrade information to a controlled complete equipment cabinet server corresponding to the upgrade firmware image version packet set according to the upgrade firmware image version packet set and identification information corresponding to each upgrade firmware image version packet in the upgrade firmware image version packet set;
the controlled whole cabinet server is used for determining target server node firmware matched with the first node identifier in the controlled whole cabinet server according to the first node identifier contained in the identifier information when receiving the upgrade information sent by the master control whole cabinet server, and upgrading the target server node firmware image according to an upgrade firmware image version packet contained in the upgrade information; the target server node firmware image is a server node firmware image corresponding to the target server node firmware, in which a firmware image identifier matches with a first firmware image identifier included in the identifier information, and the controlled cabinet server is configured to determine the target server node firmware matching with the first node identifier in the controlled cabinet server, and the target server node firmware image includes: the controlled complete cabinet server is specifically used for acquiring each server node firmware of the controlled complete cabinet server and determining a node identifier of each server node firmware; matching the node identification of each server node firmware with the first node identification; if the matching is consistent, determining the node identifier of the server node firmware matched with the first node identifier as a target node identifier, and determining the server node firmware corresponding to the target node identifier as a target server node firmware; and if the matching is inconsistent, ignoring the upgrading information.
5. The system of claim 4, wherein the controlled cabinet server is further configured to:
monitoring the upgrading state of the firmware image of the target server node in the upgrading process;
when the upgrading state represents that upgrading is finished, generating upgrading result information according to the upgrading state, and sending the upgrading result information to the main control whole cabinet server; the upgrade result information includes upgrade success information or upgrade failure information.
6. The system of claim 4, wherein the master rack-wide server is further configured to:
receiving upgrading result information sent by each controlled cabinet server;
executing a first operation on each piece of upgrading result information, and determining the upgrading result information of the currently executed first operation as target upgrading result information;
the first operation includes: and judging whether the target upgrading result information is upgrading success information or not, if the target upgrading result information is judged not to be upgrading success information, prompting whether to upgrade the server node firmware image in the controlled complete cabinet server corresponding to the target result information again or not, and sending upgrading information to the controlled complete cabinet server again when receiving an instruction for upgrading again.
CN201910567596.6A 2019-06-27 2019-06-27 Mirror image upgrading method and system for server node firmware Active CN110365524B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910567596.6A CN110365524B (en) 2019-06-27 2019-06-27 Mirror image upgrading method and system for server node firmware

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910567596.6A CN110365524B (en) 2019-06-27 2019-06-27 Mirror image upgrading method and system for server node firmware

Publications (2)

Publication Number Publication Date
CN110365524A CN110365524A (en) 2019-10-22
CN110365524B true CN110365524B (en) 2022-07-08

Family

ID=68215796

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910567596.6A Active CN110365524B (en) 2019-06-27 2019-06-27 Mirror image upgrading method and system for server node firmware

Country Status (1)

Country Link
CN (1) CN110365524B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111625264B (en) * 2020-05-22 2023-03-28 苏州浪潮智能科技有限公司 Method, device, equipment and medium for upgrading multi-level management system
CN113407222B (en) * 2021-06-17 2022-11-11 南方电网数字电网研究院有限公司 Service updating method and device, computer equipment and storage medium
CN113568632A (en) * 2021-06-22 2021-10-29 东莞市奥海科技股份有限公司 Server power firmware updating method and device, computer equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106911507A (en) * 2017-02-28 2017-06-30 郑州云海信息技术有限公司 A kind of method and system for whole machine cabinet server B MC firmware more new managements
CN109254780A (en) * 2018-08-30 2019-01-22 郑州云海信息技术有限公司 A kind of method, apparatus and controlled terminal of batch refresh server node firmware

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108512684B (en) * 2017-02-28 2021-07-27 阿里巴巴集团控股有限公司 Firmware upgrading method and system and firmware upgrading management device
CN109088783A (en) * 2018-11-01 2018-12-25 郑州云海信息技术有限公司 Refresh progress acquisition methods, device and equipment between whole machine cabinet server multistage

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106911507A (en) * 2017-02-28 2017-06-30 郑州云海信息技术有限公司 A kind of method and system for whole machine cabinet server B MC firmware more new managements
CN109254780A (en) * 2018-08-30 2019-01-22 郑州云海信息技术有限公司 A kind of method, apparatus and controlled terminal of batch refresh server node firmware

Also Published As

Publication number Publication date
CN110365524A (en) 2019-10-22

Similar Documents

Publication Publication Date Title
US8601466B2 (en) Software deployment method and system, software deployment server and user server
CN110365524B (en) Mirror image upgrading method and system for server node firmware
EP3291499B1 (en) Method and apparatus for network service capacity expansion
US10140112B2 (en) Update management system and update management method
US7013462B2 (en) Method to map an inventory management system to a configuration management system
WO2020135799A1 (en) Vnf service instantiation method and device
CN108683516A (en) A kind of upgrade method of application example, device and system
US11093296B2 (en) System, virtualization control apparatus, method for controlling a virtualization control apparatus, and program
US20100115070A1 (en) Method for generating manipulation requests of an initialization and administration database of server cluster, data medium and corresponding a server cluster, data medium and corresponding service cluster
WO2016037479A1 (en) Method, device and system for optimizing virtualized network function (vnf)
CN108089913B (en) Virtual machine deployment method of super-fusion system
CN109886693B (en) Consensus realization method, device, equipment and medium for block chain system
WO2018192478A1 (en) Cloud management platform, virtual machine management method, system thereof
CN107666493B (en) Database configuration method and equipment thereof
CN109358876A (en) A kind of version synchronization method and device, equipment, storage medium
CN110391940A (en) Response method, device, system, equipment and the storage medium of address of service
CN107479888A (en) Operating system mirror image deployment services device method, system, equipment and storage medium
CN110784347A (en) Node management method, system, equipment and storage medium for container cluster
TWI707561B (en) Management system and management method of vnf
US20220182851A1 (en) Communication Method and Apparatus for Plurality of Administrative Domains
WO2016198004A1 (en) Network gambit configuration method and apparatus under virtualization technology
CN108471373A (en) A kind of resource bid, VNF examples creation method and device
CN115766439A (en) KVM device batch upgrading method and device and electronic device
CN111064643B (en) Node server and data interaction method and related device thereof
WO2020249080A1 (en) Virtual network function (vnf) deployment method and apparatus

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
GR01 Patent grant
GR01 Patent grant