CN116483402A - Power module upgrading method, server, electronic equipment and storage medium - Google Patents

Power module upgrading method, server, electronic equipment and storage medium Download PDF

Info

Publication number
CN116483402A
CN116483402A CN202310365869.5A CN202310365869A CN116483402A CN 116483402 A CN116483402 A CN 116483402A CN 202310365869 A CN202310365869 A CN 202310365869A CN 116483402 A CN116483402 A CN 116483402A
Authority
CN
China
Prior art keywords
power supply
power
module
mode
modules
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310365869.5A
Other languages
Chinese (zh)
Inventor
张格非
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202310365869.5A priority Critical patent/CN116483402A/en
Publication of CN116483402A publication Critical patent/CN116483402A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Abstract

The embodiment of the invention provides a power module upgrading method, a server, electronic equipment and a storage medium, wherein the method comprises the following steps: when an upgrade instruction is received, if the upgrade instruction is in a main and standby power supply mode, upgrading the main power supply module, the BMC cuts the working mode of the main PSU into a standby mode, cuts the standby PSU into the main mode, and upgrades the main power supply module; if the standby PSU is updated in the primary and standby power supply modes, the BMC upgrades the standby power supply module; if the power supply mode is the redundant power supply mode, upgrading the power supply modules, and simultaneously upgrading the PSUs to be upgraded by the BMC; if the power supply mode is the redundant power supply mode, the BMC sets a single PSU to be upgraded as a loading state, adjusts the output power of the rest PSUs which do not receive the upgrading instruction, and upgrades the single power supply module to be upgraded. The noninductive upgrading of the power supply modules in different working states under different power supply modes of the server is realized.

Description

Power module upgrading method, server, electronic equipment and storage medium
Technical Field
The present invention relates to the technical field of baseboard management controllers, and in particular, to a power module upgrading method, a server, an electronic device, and a computer readable storage medium.
Background
Related upgrade schemes of battery modules (Power Supply Unit, PSU) in a server do not support noninductive upgrade, and a single PSU server or servers of a plurality of PSUs upgrade all PSUs simultaneously, so that a main board of the server is powered down, a system is powered off, a user cannot continue to use, and user experience is poor.
Disclosure of Invention
In view of the above, embodiments of the present invention have been made to provide a power module upgrade method, a server, an electronic device, and a computer-readable storage medium that overcome or at least partially solve the above problems.
In order to solve the above problems, an embodiment of the present invention discloses a power module upgrade method, which is applied to a server, wherein the server includes a baseboard management controller and a plurality of power modules, and the method includes:
when an upgrade instruction input by a user is received, the baseboard management controller acquires state information of the power supply module and power supply mode information of a server; the state information of the power supply modules comprises the number of the power supply modules, the working states of the power supply modules, the working modes of the power supply modules and the output power of a single power supply module; the working state of the power supply module comprises an enabling state and a loading state; the working modes of the power supply module comprise a main mode and a standby mode; the server power supply mode information comprises a main power supply mode, a standby power supply mode and a redundant power supply mode;
If the power supply mode of the server is a main and standby power supply mode, the upgrade instruction is to upgrade the main power supply module, the baseboard management controller switches the working mode of the main power supply module to a standby mode, switches the standby power supply module to the main mode, and upgrades the main power supply module in the standby mode;
if the power supply mode of the server is a main power supply mode and the upgrade instruction is to upgrade the standby power supply module, the baseboard management controller upgrades the standby power supply module;
if the power supply mode of the server is a redundant power supply mode, the upgrade instruction upgrades a plurality of power supply modules, and the baseboard management controller upgrades the plurality of power supply modules to be upgraded simultaneously;
if the power supply mode of the server is a redundant power supply mode, the upgrade instruction is to upgrade a single power supply module, the baseboard management controller sets the working state of the single power supply module to be upgraded to a loading state, adjusts the output power of the rest power supply modules which do not receive the upgrade instruction, and upgrades the single power supply module to be upgraded.
Optionally, the state information of the power supply module further includes a power supply module health state; the power supply module health state comprises a normal state and an abnormal state; if the power supply mode of the server is a primary power supply mode and the upgrade instruction is to upgrade the primary power supply module, the baseboard management controller switches the working mode of the primary power supply module to a standby mode, switches the standby power supply module to the primary mode, and upgrades the primary power supply module in the standby mode, including:
The baseboard management controller inquires whether a target standby power supply module exists from a state table; the target standby power supply module is a standby power supply module with a power supply module health state in a normal state and a power supply module working state in an enabling state; the state table records state information of the power supply module and power supply mode information of the server;
if the target standby power supply module exists, the baseboard management controller switches the working mode of the target standby power supply module to a main mode, and switches the working mode of the main power supply module to a standby mode, so that the target standby power supply module is used as the main power supply module for supplying power;
and the baseboard management controller upgrades the main power supply module in a standby mode.
Optionally, the method further comprises:
and if the target standby power supply module does not exist, the baseboard management controller writes the new version of the main power supply module into a buffer area of the main power supply module, and upgrades the main power supply module.
Optionally, if the power supply mode of the server is a primary power supply mode and the upgrade instruction is to upgrade the standby power supply module, the baseboard management controller upgrades the standby power supply module, including:
The baseboard management controller inquires the health state of the standby power supply module from the state table;
and under the condition that the health state of the standby power supply module is in a normal state, the baseboard management controller upgrades the standby power supply module.
Optionally, the method further comprises:
if the health state of the standby power supply module is abnormal, the baseboard management controller sets the working state of the standby power supply module to be a loading state, writes in the standby power supply module of a new version through an I2C bus, and restarts the server to upgrade the standby power supply module.
Optionally, if the power supply mode of the server is a redundant power supply mode, the upgrade instruction is to upgrade a plurality of power supply modules, and the baseboard management controller upgrades the plurality of power supply modules to be upgraded simultaneously, including:
the baseboard management controller inquires the quantity of the power supply modules with the working states of the power supply modules being enabled from the state table;
and under the condition that the number of the power supply modules with the working states of the power supply modules being enabled is larger than the number of the plurality of power supply modules to be upgraded, the baseboard management controller upgrades the plurality of power supply modules to be upgraded simultaneously.
Optionally, the state information of the power supply module further includes a single power supply module maximum power and a server demand power; and when the number of the power modules with the power module working state being the enabling state is greater than the number of the plurality of power modules to be upgraded, the baseboard management controller upgrades the plurality of power modules to be upgraded simultaneously, including:
the baseboard management controller calculates the quantity difference value between the quantity of the power supply modules in the enabling state and the quantity of the power supply modules to be upgraded according to the quantity of the power supply modules in the enabling state and the quantity of the plurality of power supply modules to be upgraded;
the baseboard management controller calculates the sum of the maximum power of the power supply modules corresponding to the quantity difference according to the quantity difference and the maximum power of the single power supply module, and judges whether the sum of the maximum power of the power supply modules corresponding to the quantity difference can meet the required power of the server;
and under the condition that the sum of the maximum power of the power supply modules corresponding to the quantity difference value meets the required power of the server, the baseboard management controller resets the output power of the power supply modules corresponding to the quantity difference value according to the quantity difference value and the required power of the server, and upgrades the power supply modules to be upgraded simultaneously.
Optionally, the method further comprises:
and if the sum of the maximum power of the power supply modules corresponding to the quantity difference value does not meet the required power of the server, the baseboard management controller upgrades the plurality of power supply modules to be upgraded in sequence.
Optionally, the method further comprises:
if the number of the power supply modules in the power supply module working state is the enabling state and is equal to the number of the plurality of power supply modules to be upgraded, the baseboard management controller inquires the maximum power of the single power supply module in the enabling state from the state table and judges whether the maximum power of the single power supply module in the enabling state meets the power required by the server;
when the maximum power of a single power module meets the power required by the server, the baseboard management controller sets the output power of one power module of the plurality of power modules to be upgraded to the maximum power so that the one power module of the plurality of power modules to be upgraded supplies power to the server, sets the working state of the rest power modules to be upgraded to a loading state, and upgrades the rest power modules to be upgraded simultaneously;
After the remaining power modules to be upgraded are upgraded, the baseboard management controller sets the working states of the remaining power modules to be upgraded to an enabling state, sets the working states of one of the power modules to be upgraded to a loading state, and upgrades the one of the power modules to be upgraded.
Optionally, if the power supply mode of the server is a redundant power supply mode, and the upgrade instruction is to upgrade a single power supply module, the baseboard management controller sets a working state of the single power supply module to be upgraded to a loading state, adjusts output power of remaining power supply modules that do not receive the upgrade instruction, and upgrades the single power supply module to be upgraded, including:
the baseboard management controller queries the health status of the single power module to be upgraded from the status table;
and under the condition that the health state of the single power module to be upgraded is a normal state, the baseboard management controller sets the working state of the single power module to be upgraded to a loading state, adjusts the output power of the rest power modules which do not receive the upgrading instruction, and upgrades the single power module to be upgraded.
The embodiment of the invention also discloses a server, which comprises a substrate management controller and a plurality of power modules;
the baseboard management controller is used for acquiring the state information of the power supply module and the power supply mode information of the server when receiving an upgrade instruction input by a user; the state information of the power supply modules comprises the number of the power supply modules, the working states of the power supply modules, the working modes of the power supply modules and the output power of a single power supply module; the working state of the power supply module comprises an enabling state and a loading state; the working modes of the power supply module comprise a main mode and a standby mode; the server power supply mode information comprises a main power supply mode, a standby power supply mode and a redundant power supply mode;
the baseboard management controller is configured to switch a working mode of the main power module to a standby mode, switch the standby power module to the main mode, and upgrade the main power module in the standby mode if the power supply mode of the server is the main-standby power supply mode and the upgrade instruction is to upgrade the main power module;
the baseboard management controller is configured to upgrade the standby power supply module if the power supply mode of the server is a primary and standby power supply mode, and the upgrade instruction is to upgrade the standby power supply module;
The baseboard management controller is configured to upgrade the plurality of power modules to be upgraded simultaneously if the power supply mode of the server is a redundant power supply mode and the upgrade instruction is to upgrade the plurality of power modules;
and the baseboard management controller is used for setting the working state of the single power module to be upgraded to a loading state if the power supply mode of the server is a redundant power supply mode and the upgrading instruction is to upgrade the single power module, and adjusting the output power of the rest power modules which do not receive the upgrading instruction to upgrade the single power module to be upgraded.
Optionally, the state information of the power supply module further includes a power supply module health state; the power supply module health state comprises a normal state and an abnormal state;
the baseboard management controller is used for inquiring whether a target standby power supply module exists from the state table; the target standby power supply module is a standby power supply module with a power supply module health state in a normal state and a power supply module working state in an enabling state; the state table records state information of the power supply module and power supply mode information of the server; if the target standby power supply module exists, switching the working mode of the target standby power supply module into a main mode, and switching the working mode of the main power supply module into a standby mode, so that the target standby power supply module is used as the main power supply module for supplying power; and upgrading the main power supply module in the standby mode.
Optionally, the baseboard management controller is further configured to, if the target standby power module does not exist, write the new version of the primary power module into the buffer area of the primary power module, and upgrade the primary power module.
Optionally, the baseboard management controller is configured to query the state table for the health status of the standby power module; and under the condition that the health state of the standby power supply module is in a normal state, upgrading the standby power supply module.
Optionally, the baseboard management controller is further configured to set the working state of the standby power module to a loading state if the health state of the standby power module is abnormal, write in the new version of the standby power module through the I2C bus, restart the server, and upgrade the standby power module.
Optionally, the baseboard management controller is configured to query the number of power modules whose working states are enabled from the state table; and under the condition that the number of the power supply modules with the working states of the power supply modules being enabled is larger than the number of the plurality of power supply modules to be upgraded, simultaneously upgrading the plurality of power supply modules to be upgraded.
Optionally, the state information of the power supply module further includes a single power supply module maximum power and a server demand power;
the baseboard management controller is used for calculating the quantity difference value between the quantity of the power supply modules in the enabling state and the quantity of the power supply modules to be upgraded according to the quantity of the power supply modules in the enabling state and the quantity of the plurality of power supply modules to be upgraded; calculating the sum of the maximum power of the power supply modules corresponding to the quantity difference according to the quantity difference and the maximum power of the single power supply module, and judging whether the sum of the maximum power of the power supply modules corresponding to the quantity difference can meet the required power of the server; and under the condition that the sum of the maximum power of the power supply modules corresponding to the quantity difference value meets the required power of the server, resetting the output power of the power supply modules corresponding to the quantity difference value according to the quantity difference value and the required power of the server, and simultaneously upgrading the power supply modules to be upgraded.
Optionally, the baseboard management controller is further configured to sequentially upgrade the plurality of power modules to be upgraded if the sum of the maximum powers of the power modules corresponding to the number difference does not meet the power required by the server.
Optionally, the baseboard management controller is further configured to query a maximum power of a single power module in an enabling state from the state table if the number of power modules in the enabling state is equal to the number of the plurality of power modules to be upgraded, and determine whether the maximum power of the single power module in the enabling state meets the server required power; setting the output power of one of the power supply modules to be upgraded to the maximum power under the condition that the maximum power of a single power supply module meets the power required by the server, so that one of the power supply modules to be upgraded supplies power to the server, setting the working states of the rest of the power supply modules to be upgraded to a loading state, and simultaneously upgrading the rest of the power supply modules to be upgraded; after the remaining power supply modules to be upgraded are upgraded, setting the working states of the remaining power supply modules to be upgraded to an enabling state, setting the working states of one of the plurality of power supply modules to be upgraded to a loading state, and upgrading the one of the plurality of power supply modules to be upgraded.
Optionally, the baseboard management controller is configured to query the state table for the health status of the single power module to be upgraded; and under the condition that the health state of the single power module to be upgraded is a normal state, setting the working state of the single power module to be upgraded to be a loading state, and adjusting the output power of the rest power modules which do not receive the upgrading instruction to upgrade the single power module to be upgraded.
The embodiment of the invention also discloses an electronic device, which comprises: a processor, a memory and a computer program stored on the memory and capable of running on the processor, which when executed by the processor, performs the steps of the power module upgrade method as described above.
The embodiment of the invention also discloses a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the computer program realizes the steps of the power module upgrading method when being executed by a processor.
The embodiment of the invention has the following advantages:
in the embodiment of the invention, when an upgrade instruction input by a user is received, a baseboard management controller acquires state information of a power supply module and power supply mode information of a server; the state information of the power supply modules comprises the number of the power supply modules, the working states of the power supply modules, the working modes of the power supply modules and the output power of the single power supply module; the working state of the power supply module comprises an enabling state and a loading state; the working modes of the power supply module comprise a main mode and a standby mode; the server power supply mode information comprises a main power supply mode, a standby power supply mode and a redundant power supply mode; if the power supply mode of the server is a main power supply mode and a standby power supply mode, and the upgrading instruction is to upgrade the main power supply module, the baseboard management controller switches the working mode of the main power supply module to the standby mode, switches the standby power supply module to the main mode, and upgrades the main power supply module in the standby mode; if the power supply mode of the server is the main power supply mode and the standby power supply mode, the upgrade instruction is to upgrade the standby power supply module, and the substrate management controller upgrades the standby power supply module; if the power supply mode of the server is a redundant power supply mode, the upgrade instruction is to upgrade a plurality of power supply modules, and the baseboard management controller upgrades a plurality of power supply modules to be upgraded simultaneously; if the power supply mode of the server is a redundant power supply mode and the upgrading instruction is to upgrade the single power supply module, the baseboard management controller sets the working state of the single power supply module to be upgraded to a loading state, adjusts the output power of the remaining power supply modules which do not receive the upgrading instruction, and upgrades the single power supply module to be upgraded. Therefore, the noninductive upgrading of the power supply modules in different working states under different power supply modes of the server is realized, and the action of firmware upgrading of the power supply modules cannot be perceived for a server user, so that the situation that the server is unavailable due to upgrading of the related technology is avoided; for operation and maintenance personnel, the power supply module can be updated at any time, and the operation and maintenance cost is reduced.
Drawings
FIG. 1 is a flowchart of a power module upgrade method according to an embodiment of the present invention;
fig. 2 is a PSU server architecture diagram provided in an embodiment of the present invention;
FIG. 3 is a flowchart of an upgrade of a power module according to an embodiment of the present invention;
FIG. 4 is a block diagram of a server according to an embodiment of the present invention;
FIG. 5 is an electronic device provided by an embodiment of the present invention;
fig. 6 is a computer readable storage medium according to an embodiment of the present invention.
Detailed Description
In order that the above-recited objects, features and advantages of the present invention will become more readily apparent, a more particular description of the invention will be rendered by reference to the appended drawings and appended detailed description.
When the power module of the server in the related technology is updated, the server does not support the noninductive updating, and the power module is updated after the server is required to be interrupted, so that the experience of a user can be influenced; for the scene of upgrading the power supply modules in batches, unified maintenance and upgrading in specific time are needed, the operation and maintenance cost is high, and the conditions are severe.
One of the core concepts of the embodiment of the invention is that according to the state information of the power supply module and the power supply mode information of the server, the noninductive upgrading of the power supply module in different working states is realized under different power supply modes of the server, and the action of firmware upgrading of the power supply module is not perceived for a server user, so that the condition that the server is unavailable caused by upgrading of the related technology is avoided; for operation and maintenance personnel, the power supply module can be updated at any time, and the operation and maintenance cost is reduced.
Referring to fig. 1, a step flow chart of a power module upgrading method provided by an embodiment of the present invention is shown and applied to a server, where the server includes a baseboard management controller and a plurality of power modules, and the method specifically may include the following steps:
step 101, when an upgrade instruction input by a user is received, the baseboard management controller acquires state information of the power supply module and power supply mode information of a server; the state information of the power supply modules comprises the number of the power supply modules, the working states of the power supply modules, the working modes of the power supply modules and the output power of a single power supply module; the working state of the power supply module comprises an enabling state and a loading state; the working modes of the power supply module comprise a main mode and a standby mode; the server power supply mode information comprises a main power supply mode, a standby power supply mode and a redundant power supply mode.
As shown in fig. 2, a PSU server architecture diagram provided in an embodiment of the present invention may include a baseboard management controller (Baseboard Management Controller, BMC) and a power module PSU, where the PSU may be multiple. The operation and maintenance personnel can input PSU upgrading instructions, and the BMC can control PSU upgrading according to the PSU upgrading instructions.
In the embodiment of the invention, the BMC can acquire the state information of the PSU in the current server in real time, and update the state table according to the state information of the current PSU of the server.
As an example, the state information of PSU and server state information may be recorded in a state table. Wherein the state information of the PSU may include a single PSU supply voltage, a single PSU operation mode, a single PSU buffer status, a single PSU operation status, current PSU version information, a single PSU output power, a number of PSUs, a PSU total output power, and the like; the server state information may include information on the current operating state of the server, the power required by the server, the power supply mode of the server, and so on.
The working state of the power supply module can comprise an enabling state and a loading state; the power module working modes can comprise a main mode and a standby mode; the server power mode information may include a primary power mode and a redundant power mode.
The primary power supply mode may refer to a mode in which a part of PSUs in the server are used as primary PSUs to supply power to the server, and another part of power supply modules are used as standby PSUs to not participate in power supply; the redundant power supply mode may refer to a mode in which all PSUs in the server supply power to the server at the same time, and power consumption required by the server is averagely shared.
It should be noted that, the active/standby power supply mode can improve the power supply efficiency of the power supply module, reduce the power consumption of the server, and prolong the service life of the power supply module, but has low power supply capability; the primary power supply and the standby power supply can be understood as serial power supply, the primary PSU fault has a large influence on the server, the server use is seriously influenced, and the standby PSU fault does not influence the server use. The redundant power supply mode has high overall power supply capacity, and the influence on the server is small when the single-path power supply fails, but the power supply efficiency of the power supply module is low, and the power consumption is large; redundant power supply can be understood as simultaneous power supply of multiple PSUs, each PSU being responsible for a part of the total power consumption with less impact on overall use in case of failure.
As an example, when receiving an upgrade instruction input by a user, the BMC may query the state table for state information of the PSU and server power mode information.
For example, the BMC may query the state table for the current server power supply mode as the active/standby power supply mode, the target PSU has a working mode as the active mode, and the target PSU has an enabled state, and the PSU outputs 2000W, which indicates that the target PSU is used as the active PSU to provide the power of 2000W for the server.
Step 102, if the power supply mode of the server is the primary power supply mode and the upgrade instruction is to upgrade the primary power supply module, the baseboard management controller switches the working mode of the primary power supply module to the standby mode, switches the standby power supply module to the primary mode, and upgrades the primary power supply module in the standby mode.
In the embodiment of the invention, firmware (FW) is run in the power module PSU as a driver of the PSU to implement the PSU operation. An upgrade to a PSU may be understood as an upgrade to firmware of the PSU.
As an example, if the power supply mode of the server is the primary and backup power supply modes and the upgrade instruction is to upgrade the primary power supply module, the BMC may switch the working mode of the primary power supply module to the backup mode, switch the backup power supply module to the primary mode, and upgrade the primary power supply module in the backup mode. The standby power supply module is used as the main power supply module to supply power, and the working state of the main power supply module is adjusted to be in a standby mode, so that the normal operation of the server is not affected when the main power supply module is upgraded, and the non-inductive upgrade of the PSU in the main and standby power supply modes of the server is realized.
In one embodiment, the status information of the power module further includes a power module health status; the baseboard management controller inquires whether a target standby power supply module exists from a state table; the target standby power supply module is a standby power supply module with a power supply module health state in a normal state and a power supply module working state in an enabling state; the state table records state information of the power supply module and power supply mode information of the server; if the target standby power supply module exists, the baseboard management controller switches the working mode of the target standby power supply module to a main mode, and switches the working mode of the main power supply module to a standby mode, so that the target standby power supply module is used as the main power supply module for supplying power; and upgrading the main power supply module in the standby mode.
As an example, if the power supply mode of the server is the primary power supply mode and the upgrade instruction is to upgrade the primary power supply module, the BMC may query from the state table whether there is a target standby power supply module in which the health state of the power supply module is a normal state and the working state of the power supply module is an enabled state.
If the target standby power supply module exists, the BMC can switch the working mode of the target standby power supply module into a main mode and switch the working mode of the main power supply module into a standby mode, so that the target standby power supply module is used as the main power supply module to supply power for the server, and then the main power supply module in the standby mode is upgraded. After the working mode is switched, the state table is updated, and the upgrade of the main power supply module is completed.
In one embodiment, if the target standby power module does not exist, the baseboard management controller writes the new version of the main power module into a buffer area of the main power module, and upgrades the main power module.
As an example, if all the standby PSUs recorded in the state table do not satisfy that the health state is the normal state and the power module operating state is the enabled state, the baseboard management controller may write new firmware of the PSU into the buffer of the main PSU to be upgraded, so as to upgrade the main PSU. For example, when the BMC monitors that the operating system is in a closed state or issues a restart command, the BMC may re-read the new firmware in the buffer, and complete the upgrade of the firmware of the main PSU.
Step 103, if the power supply mode of the server is the primary and standby power supply modes, and the upgrade instruction is to upgrade the standby power supply module, the baseboard management controller upgrades the standby power supply module.
In the embodiment of the invention, since the standby PSU does not participate in power supply, if the upgrade instruction is to upgrade the standby PSU, the BMC may directly upgrade the standby PSU.
In one embodiment, the baseboard management controller queries the state table for the health status of the backup power module; and under the condition that the health state of the standby power supply module is in a normal state, the baseboard management controller upgrades the standby power supply module.
As an example, if the power supply mode of the server is the primary and standby power supply mode, and the upgrade instruction is to upgrade the standby power supply module, the BMC may query from the state table whether the health state of the standby PSU to be upgraded is a normal state, and upgrade the standby power supply module if the health state is a normal state.
In one embodiment, if the health status of the standby power module is abnormal, the baseboard management controller sets the working status of the standby power module to be a loading status, writes in the standby power module of a new version through an I2C bus, and restarts the server to upgrade the standby power module.
As an example, if the power supply mode of the server is the main power supply mode and the upgrade instruction is to upgrade the standby power supply module, the BMC queries from the state table that the health state of the standby PSU to be upgraded is an abnormal state, then the working state of the standby power supply module may be set to a loading state, and then the I2C bus is used to write in the new version of the standby power supply module, restart the server, and complete the upgrade of the standby power supply module.
As an example, after the PSU is started successfully, the BMC may obtain the current health status of the standby PSU through a Command, and if the standby PSU is still in an abnormal state, may record a PSU fault log, complete the upgrade procedure, and return an upgrade failure to the operation and maintenance personnel.
Step 104, if the power supply mode of the server is the redundant power supply mode, the upgrade instruction is to upgrade the plurality of power supply modules, and the baseboard management controller upgrades the plurality of power supply modules to be upgraded simultaneously.
As an example, if the power supply mode of the server is the redundant power supply mode and the upgrade instruction is to upgrade the plurality of power supply modules, the baseboard management controller may upgrade the plurality of power supply modules to be upgraded in parallel.
In one embodiment, the baseboard management controller queries the number of power modules whose working states are enabled from the state table; and if the number of the power supply modules with the working states of the power supply modules being the enabling states is larger than the number of the plurality of power supply modules to be upgraded, the baseboard management controller upgrades the plurality of power supply modules to be upgraded simultaneously.
As an example, if the power supply mode of the server is the redundant power supply mode and the upgrade instruction is to upgrade the plurality of power supply modules, the baseboard management controller may query the number of power supply modules whose power supply modules are in an enabled state, and if the number of power supply modules whose power supply modules are in an enabled state is greater than the number of the plurality of power supply modules to be upgraded, the baseboard management controller may upgrade the plurality of power supply modules to be upgraded in parallel.
In one embodiment, the status information of the power supply module further includes a single power supply module maximum power and a server demand power; the baseboard management controller upgrades the plurality of power modules to be upgraded simultaneously, and the method can comprise the following substeps:
in the substep S11, the baseboard management controller calculates a number difference between the number of power modules in the enabled state and the number of power modules to be upgraded according to the number of power modules in the enabled state and the number of power modules to be upgraded.
As an example, the BMC may query the enabled state power module number from the state table to calculate a number difference between the enabled state power module number and the number of power modules to be upgraded. For example, if the BMC queries from the state table that the number of enabled state power modules is 8 and the number of power modules to be upgraded in the upgrade instruction is 2, the BMC may calculate that the number difference between the number of enabled state power modules and the number of multiple power modules to be upgraded is 6.
And S12, the baseboard management controller calculates the sum of the maximum powers of the power supply modules corresponding to the quantity difference according to the quantity difference and the maximum power of the single power supply module, and judges whether the sum of the maximum powers of the power supply modules corresponding to the quantity difference can meet the required power of the server.
As an example, the BMC may query the state table for the maximum power of the power module corresponding to each PSU in the number difference, and may calculate the sum of the maximum powers of the power modules corresponding to the number difference according to the number difference and the maximum power of the power module corresponding to each PSU in the number difference.
For example, the BMC queries the state table for the maximum power 2000W of the power module corresponding to each PSU in the number difference, and if the number of power modules corresponding to the number difference is 6, the sum of the maximum powers of the power modules corresponding to the number difference is 2000w×6=12000W.
As an example, the BMC may query the server required power from the state table, and may determine whether the sum of the maximum powers of the power modules corresponding to the difference in number can satisfy the server required power according to the sum of the maximum powers of the power modules corresponding to the difference in number and the server required power. For example, the BMC queries the state table that the server demand power is 4000W, and the sum of the maximum powers of the power supply modules corresponding to the number difference is 12000W, and then the sum of the maximum powers of the power supply modules corresponding to the number difference satisfies the server demand power.
And S13, resetting the output power of the power supply module corresponding to the quantity difference value according to the quantity difference value and the server required power by the baseboard management controller under the condition that the sum of the maximum power of the power supply modules corresponding to the quantity difference value meets the server required power, and simultaneously upgrading the power supply module to be upgraded.
As an example, if the sum of the maximum powers of the power supply modules corresponding to the number difference value meets the power required by the server, it is indicated that upgrading the PSU to be upgraded does not affect the normal use of the server. The BMC can reset the output power of the power supply module corresponding to the quantity difference value according to the quantity difference value and the server required power, update the state table and upgrade the power supply module to be upgraded at the same time. Therefore, when a plurality of power supplies to be upgraded are simultaneously upgraded, the normal operation of the server is not affected, and the non-inductive upgrade of the PSU in the redundant power supply mode of the server is realized.
In order that those skilled in the art may better understand the embodiments of the present invention, the following description of the embodiments of the present invention is provided by way of example:
(1) The BMC inquires the PSU of the enabling state from the state table as 5, and the server requires power P Total (S) =4000W, single PSU maximum power P Forehead (forehead) =3000W;
(2) Due to the redundant supply, each PSU that calculates the enabled state on average provides 4000W/5 of power consumption, i.e. the single PSU output power P of the enabled state Conveying device =800W;
(3) If the number of the PSUs to be upgraded in the upgrading instruction is 2, the difference between the number of the PSUs to be upgraded and the PSU in the enabling state is 3;
(4) Sum of maximum powers P of 3 PSUs 1 =3000W×3=9000W>P Total (S) =4000W, i.e. P 1 >P Total (S) The BMC can upgrade a plurality of PSUs to be upgraded at the same time;
(5) The BMC may set the operating states of the 2 PSUs to be upgraded to a loading state and recalculate the output power of the 3 PSUs of the remaining enabled state: p (P) 2 =(3000/3)W=1000W;
(6) The BMC may set the output power 800W of each of the 3 PSUs in the enabled state to 1000W and update the state table to complete the parallel upgrade of the 2 PSUs to be upgraded.
In one embodiment, if the number of power modules in which the power module operating state is the enabling state is equal to the number of the plurality of power modules to be upgraded, the upgrading method of the plurality of power modules to be upgraded may specifically include the following substeps:
Step S21, the baseboard management controller inquires the maximum power of the single power module in the enabled state from the state table, and judges whether the maximum power of the single power module in the enabled state meets the server required power;
for example, if the number of power modules whose power module operation state is the enabled state is equal to the number of power modules to be upgraded, for example, the number of PSUs in the enabled state is 5, and the number of PSUs to be upgraded in the upgrade instruction is also 5. The BMC may query the state table for the maximum power of the single power module of the enabled state and determine whether the maximum power of the single power module of the enabled state satisfies the server required power.
And S22, setting the output power of one of the power supply modules to be upgraded to be the maximum power by the baseboard management controller under the condition that the maximum power of a single power supply module meets the power required by the server, so that one of the power supply modules to be upgraded supplies power to the server, setting the working states of the rest power supply modules to be upgraded to be loading states, and simultaneously upgrading the rest power supply modules to be upgraded.
For example, if the maximum power of a single power module meets the power required by the server, the BMC may set the output power of one PSU of the power modules to be upgraded to the maximum power, power the PSU alone to the server, set the working states of the remaining power modules to be upgraded to the loading state, and upgrade the remaining power modules to be upgraded.
And S23, after the remaining power modules to be upgraded are upgraded, the baseboard management controller sets the working state of the remaining power modules to be upgraded as an enabling state, sets the working state of one power module of the plurality of power modules to be upgraded as a loading state, and upgrades the one power module of the plurality of power modules to be upgraded.
For example, after the remaining power modules to be upgraded are upgraded, the BMC may set the working states of the remaining power modules to be upgraded to an enabling state, set the working states of one of the power modules to be upgraded to a loading state, and upgrade the one of the power modules to be upgraded. Therefore, when the number of the power supply modules with the working states of the power supply modules being enabled is equal to the number of the plurality of power supply modules to be upgraded, the plurality of power supply modules to be upgraded are upgraded step by step.
In order that those skilled in the art may better understand the embodiments of the present invention, the following description of the embodiments of the present invention is provided by way of example:
(1) The BMC inquires the PSU of the enabling state from the state table as 5, and the server requires power P Total (S) =4000W, single PSU maximum power P Forehead (forehead) =5000W, then the single PSU output power P of the current enabled state Conveying device =800W;
(2) If the number of the PSUs to be upgraded in the upgrading instruction is 5, namely the number of the power modules with the power modules in the working state being the enabling state is equal to the number of the power modules to be upgraded;
(3) BMC judges the maximum power P of a single PSU Forehead (forehead) >P Total (S) I.e. a single PSU can independently complete normal power supply to the server;
(4) The BMC can set the output power of PSU1 to 4000W, and set the working states of PSU2, PSU3, PSU4 and PSU5 to loading states;
(5) The BMC upgrades PSU2, PSU3, PSU4 and PSU5 simultaneously, and sets the working states of PSU2, PSU3, PSU4 and PSU5 in a loading state as an enabling state after the upgrading is finished;
(6) The BMC sets the output power of PSU2, PSU3, PSU4 and PSU5 to 1000W respectively, and sets the working state of PSU1 to a loading state;
(7) The PSU1 in the loaded state is upgraded.
Thus, the BMC completes the step-by-step upgrade of the 4 power supply modules to be upgraded.
In one embodiment, if the sum of the maximum powers of the power supply modules corresponding to the number difference does not meet the required power of the server, the baseboard management controller upgrades the power supply modules to be upgraded in sequence.
As an example, if the sum of the maximum powers of the power supply modules corresponding to the number difference value does not meet the power required by the server, if the BMC continues to upgrade the plurality of power supply modules to be upgraded at the same time, normal use of the server is affected, so that the BMC can upgrade the plurality of power supply modules to be upgraded in sequence, so that normal operation of the server is not affected when the power supply to be upgraded is upgraded, and non-inductive upgrade of the PSU in the redundant power supply mode of the server is realized.
For example, the PSU of the enabled state is 5, and the server requires power P Total (S) =4000W, single PSU maximum power P Forehead (forehead) =3000W, then single PSU output power P in enabled state Conveying device =800W; if the number of PSUs to be upgraded in the upgrade instruction is 4, the difference between the number of PSUs to be upgraded and the PSU in the enable state is 1, and the maximum power P of 1 PSU is 1 Forehead (forehead) =3000W<P Total (S) =4000W, i.e. if 4 PSUs to be upgraded are upgraded simultaneously, the server cannot be used normally, so the following upgrade-by-upgrade method is adopted:
(1) The BMC sets PSU1 to be upgraded to a loading state;
(2) The BMC calculates the output power of the remaining 4 PSUs: 4000W/4=1000W;
(3) The BMC outputs power P to each PSU of the remaining 4 PSUs Conveying device Set to 1000W;
(4) The BMC upgrades the PSU1 to be upgraded, the working state of which is the loading state;
(5) Setting the working state of the upgraded PSU1 to an enabling state, and recovering the output power of each PSU of the 5 PSUs in the enabling state to 800W;
(6) Setting PSU2 to be upgraded to a loading state;
(7) Repeating the steps (2) - (5) to finish the upgrade of the PSU2 to be upgraded;
(8) Setting PSU3 to be upgraded to a loading state;
(9) Repeating the steps (2) - (5) to finish the upgrade of the PSU3 to be upgraded;
(10) Setting the PSU4 to be upgraded to a loading state;
(11) Repeating the steps (2) - (5), and finishing the upgrade of the PSU4 to be upgraded.
Thus, the BMC finishes the sequential upgrading of the 4 power modules to be upgraded.
Step 105, if the power supply mode of the server is the redundant power supply mode and the upgrade instruction is to upgrade a single power supply module, the baseboard management controller sets the working state of the single power supply module to be upgraded to a loading state, adjusts the output power of the remaining power supply modules which do not receive the upgrade instruction, and upgrades the single power supply module to be upgraded.
As an example, if the power supply mode of the server is the redundant power supply mode and the upgrade instruction is to upgrade a single power supply module, the BMC may set the working state of the single power supply module to be upgraded to a loading state, and adjust the output power of the remaining power supply modules that do not receive the upgrade instruction, so as to upgrade the single power supply module to be upgraded.
For example, the PSU of the enabled state is 5, and the server requires power P Total (S) =4000W, single PSU maximum power P Forehead (forehead) =3000W, then single PSU output power P in enabled state Conveying device =800W; when the upgrade instruction is that one power module PSU1 of the 5 PSUs is upgraded, the BMC can set the working state of the PSU1 to be a loading state; the output power of the remaining 4 PSUs is adjusted to be: 4000W/4=1000W; the BMC upgrades the PSU1 in the loading state and updates the state table, so that the PSU1 can be upgraded under the condition that the normal use of the server is not affected.
In one embodiment, the baseboard management controller queries the state of health of the single power module to be upgraded from the state table; and under the condition that the health state of the single power module to be upgraded is a normal state, the baseboard management controller sets the working state of the single power module to be upgraded to a loading state, adjusts the output power of the rest power modules which do not receive the upgrading instruction, and upgrades the single power module to be upgraded.
As an example, when the power supply mode of the server is the redundant power supply mode and the upgrade instruction is to upgrade the single power supply module, the BMC may first query the state table for the health status of the single power supply module to be upgraded, and may complete the upgrade of the single power supply module to be upgraded under the condition that the health status of the single power supply module to be upgraded is normal.
Fig. 3 is a flowchart of a power module upgrade provided by an embodiment of the present invention, and in order to enable those skilled in the art to better understand the embodiment of the present invention, the following description is provided by using a power module upgrade flowchart example:
(1) Starting;
(2) The BMC acquires PSU state information and server state information through IPMI commands and the like;
(3) Updating a state table according to PSU state information and server state information;
(4) The BMC confirms whether an upgrade instruction is received or not, and if not, the BMC returns to the step (2);
(5) If the current upgrade scene is received, judging the current upgrade scene according to the state table information;
(6) Deciding an upgrade scheme of the PSU according to the determined scene;
(7) Upgrading PSU to be upgraded according to an upgrading scheme;
(8) After the upgrading is finished, returning an upgrading result and updating a state table;
(9) And (5) ending.
In the embodiment of the invention, when an upgrade instruction input by a user is received, a baseboard management controller acquires state information of a power supply module and power supply mode information of a server; the state information of the power supply modules comprises the number of the power supply modules, the working states of the power supply modules, the working modes of the power supply modules and the output power of the single power supply module; the working state of the power supply module comprises an enabling state and a loading state; the working modes of the power supply module comprise a main mode and a standby mode; the server power supply mode information comprises a main power supply mode, a standby power supply mode and a redundant power supply mode; if the power supply mode of the server is a main power supply mode and a standby power supply mode, and the upgrading instruction is to upgrade the main power supply module, the baseboard management controller switches the working mode of the main power supply module to the standby mode, switches the standby power supply module to the main mode, and upgrades the main power supply module in the standby mode; if the power supply mode of the server is the main power supply mode and the standby power supply mode, the upgrade instruction is to upgrade the standby power supply module, and the substrate management controller upgrades the standby power supply module; if the power supply mode of the server is a redundant power supply mode, the upgrade instruction is to upgrade a plurality of power supply modules, and the baseboard management controller upgrades a plurality of power supply modules to be upgraded simultaneously; if the power supply mode of the server is a redundant power supply mode and the upgrading instruction is to upgrade the single power supply module, the baseboard management controller sets the working state of the single power supply module to be upgraded to a loading state, adjusts the output power of the remaining power supply modules which do not receive the upgrading instruction, and upgrades the single power supply module to be upgraded. Therefore, the noninductive upgrading of the power supply modules in different working states under different power supply modes of the server is realized, and the action of firmware upgrading of the power supply modules cannot be perceived for a server user, so that the situation that the server is unavailable due to upgrading of the related technology is avoided; for operation and maintenance personnel, the power supply module can be updated at any time, and the operation and maintenance cost is reduced.
It should be noted that, for simplicity of description, the method embodiments are shown as a series of acts, but it should be understood by those skilled in the art that the embodiments are not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred embodiments, and that the acts are not necessarily required by the embodiments of the invention.
Referring to fig. 4, a block diagram of a server according to an embodiment of the present invention is shown, where the server 40 includes a baseboard management controller 401 and a plurality of power modules 402;
the baseboard management controller 401 is configured to obtain status information of the power module and server power supply mode information when receiving an upgrade instruction input by a user; the state information of the power supply modules comprises the number of the power supply modules, the working states of the power supply modules, the working modes of the power supply modules and the output power of a single power supply module; the working state of the power supply module comprises an enabling state and a loading state; the working modes of the power supply module comprise a main mode and a standby mode; the server power supply mode information comprises a main power supply mode, a standby power supply mode and a redundant power supply mode;
The baseboard management controller 401 is configured to switch the working mode of the main power module to a standby mode, switch the standby power module to the main mode, and upgrade the main power module in the standby mode if the power supply mode of the server is the main-standby power supply mode and the upgrade instruction is to upgrade the main power module;
the baseboard management controller 401 is configured to upgrade the standby power supply module if the power supply mode of the server is a primary power supply mode and the upgrade instruction is to upgrade the standby power supply module;
the baseboard management controller 401 is configured to upgrade a plurality of power modules to be upgraded simultaneously if the power supply mode of the server is a redundant power supply mode and the upgrade instruction is to upgrade the plurality of power modules to be upgraded;
the baseboard management controller 401 is configured to set a working state of a single power module to be upgraded to a loading state if the power supply mode of the server is a redundant power supply mode and the upgrade instruction is to upgrade the single power module, and adjust output power of remaining power modules that do not receive the upgrade instruction, so as to upgrade the single power module to be upgraded.
In an alternative embodiment, the status information of the power module further includes a power module health status; the power supply module health state comprises a normal state and an abnormal state;
the baseboard management controller is used for inquiring whether a target standby power supply module exists from the state table; the target standby power supply module is a standby power supply module with a power supply module health state in a normal state and a power supply module working state in an enabling state; the state table records state information of the power supply module and power supply mode information of the server; if the target standby power supply module exists, switching the working mode of the target standby power supply module into a main mode, and switching the working mode of the main power supply module into a standby mode, so that the target standby power supply module is used as the main power supply module for supplying power; and upgrading the main power supply module in the standby mode.
In an alternative embodiment, the baseboard management controller is further configured to, if the target standby power module does not exist, write the new version of the active power module into the buffer area of the active power module, and upgrade the active power module.
In an alternative embodiment, the baseboard management controller is configured to query the state table for the health status of the standby power module; and under the condition that the health state of the standby power supply module is in a normal state, upgrading the standby power supply module.
In an optional embodiment, the baseboard management controller is further configured to set the working state of the standby power module to a loading state if the health state of the standby power module is abnormal, write in the standby power module in a new version through an I2C bus, restart the server, and upgrade the standby power module.
In an optional embodiment, the baseboard management controller is configured to query the state table for the number of power modules whose working states are enabled; and under the condition that the number of the power supply modules with the working states of the power supply modules being enabled is larger than the number of the plurality of power supply modules to be upgraded, simultaneously upgrading the plurality of power supply modules to be upgraded.
In an alternative embodiment, the state information of the power supply module further includes a single power supply module maximum power and a server demand power;
The baseboard management controller is used for calculating the quantity difference value between the quantity of the power supply modules in the enabling state and the quantity of the power supply modules to be upgraded according to the quantity of the power supply modules in the enabling state and the quantity of the plurality of power supply modules to be upgraded; calculating the sum of the maximum power of the power supply modules corresponding to the quantity difference according to the quantity difference and the maximum power of the single power supply module, and judging whether the sum of the maximum power of the power supply modules corresponding to the quantity difference can meet the required power of the server; and under the condition that the sum of the maximum power of the power supply modules corresponding to the quantity difference value meets the required power of the server, resetting the output power of the power supply modules corresponding to the quantity difference value according to the quantity difference value and the required power of the server, and simultaneously upgrading the power supply modules to be upgraded.
In an optional embodiment, the baseboard management controller is further configured to sequentially upgrade the plurality of power modules to be upgraded if a sum of maximum powers of the power modules corresponding to the number difference does not meet the server required power.
In an optional embodiment, the baseboard management controller is further configured to query a maximum power of a single power module in an enabled state from the state table if the number of power modules in the enabled state is equal to the number of power modules to be upgraded, and determine whether the maximum power of the single power module in the enabled state meets the server required power; setting the output power of one of the power supply modules to be upgraded to the maximum power under the condition that the maximum power of a single power supply module meets the power required by the server, so that one of the power supply modules to be upgraded supplies power to the server, setting the working states of the rest of the power supply modules to be upgraded to a loading state, and simultaneously upgrading the rest of the power supply modules to be upgraded; after the remaining power supply modules to be upgraded are upgraded, setting the working states of the remaining power supply modules to be upgraded to an enabling state, setting the working states of one of the plurality of power supply modules to be upgraded to a loading state, and upgrading the one of the plurality of power supply modules to be upgraded.
In an alternative embodiment, the baseboard management controller is configured to query the state table for the health status of the single power module to be upgraded; and under the condition that the health state of the single power module to be upgraded is a normal state, setting the working state of the single power module to be upgraded to be a loading state, and adjusting the output power of the rest power modules which do not receive the upgrading instruction to upgrade the single power module to be upgraded.
For the device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments for relevant points.
The embodiment of the invention also provides an electronic device 50, which comprises:
the power module upgrading method comprises a processor 501, a memory 502 and a computer program 5021 stored in the memory and capable of running on the processor, wherein the computer program realizes the processes of the power module upgrading method embodiment when being executed by the processor, and can achieve the same technical effects, and the repetition is avoided, and the description is omitted here.
The embodiment of the present invention further provides a computer readable storage medium 60, on which a computer program 601 is stored, where the computer program when executed by a processor implements each process of the above embodiment of the power module upgrade method, and the same technical effects can be achieved, so that repetition is avoided, and no further description is given here.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described by differences from other embodiments, and identical and similar parts between the embodiments are all enough to be referred to each other.
It will be apparent to those skilled in the art that embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the invention may take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiment and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal 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 terminal. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or terminal device comprising the element.
The power module upgrading method, the server, the electronic device and the computer readable storage medium provided by the invention are described in detail, and specific examples are applied to illustrate the principles and the implementation of the invention, and the description of the examples is only used for helping to understand the method and the core idea of the invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present invention, the present description should not be construed as limiting the present invention in view of the above.

Claims (13)

1. The utility model provides a power module upgrading method which is characterized in that the method is applied to a server, the server comprises a baseboard management controller and a plurality of power modules, and the method comprises the following steps:
when an upgrade instruction input by a user is received, the baseboard management controller acquires state information of the power supply module and power supply mode information of a server; the state information of the power supply modules comprises the number of the power supply modules, the working states of the power supply modules, the working modes of the power supply modules and the output power of a single power supply module; the working state of the power supply module comprises an enabling state and a loading state; the working modes of the power supply module comprise a main mode and a standby mode; the server power supply mode information comprises a main power supply mode, a standby power supply mode and a redundant power supply mode;
if the power supply mode of the server is a main and standby power supply mode, the upgrade instruction is to upgrade the main power supply module, the baseboard management controller switches the working mode of the main power supply module to a standby mode, switches the standby power supply module to the main mode, and upgrades the main power supply module in the standby mode;
if the power supply mode of the server is a main power supply mode and the upgrade instruction is to upgrade the standby power supply module, the baseboard management controller upgrades the standby power supply module;
If the power supply mode of the server is a redundant power supply mode, the upgrade instruction upgrades a plurality of power supply modules, and the baseboard management controller upgrades the plurality of power supply modules to be upgraded simultaneously;
if the power supply mode of the server is a redundant power supply mode, the upgrade instruction is to upgrade a single power supply module, the baseboard management controller sets the working state of the single power supply module to be upgraded to a loading state, adjusts the output power of the rest power supply modules which do not receive the upgrade instruction, and upgrades the single power supply module to be upgraded.
2. The method of claim 1, wherein the status information of the power module further comprises a power module health status; the power supply module health state comprises a normal state and an abnormal state; if the power supply mode of the server is a primary power supply mode and the upgrade instruction is to upgrade the primary power supply module, the baseboard management controller switches the working mode of the primary power supply module to a standby mode, switches the standby power supply module to the primary mode, and upgrades the primary power supply module in the standby mode, including:
The baseboard management controller inquires whether a target standby power supply module exists from a state table; the target standby power supply module is a standby power supply module with a power supply module health state in a normal state and a power supply module working state in an enabling state; the state table records state information of the power supply module and power supply mode information of the server;
if the target standby power supply module exists, the baseboard management controller switches the working mode of the target standby power supply module to a main mode, and switches the working mode of the main power supply module to a standby mode, so that the target standby power supply module is used as the main power supply module for supplying power;
and the baseboard management controller upgrades the main power supply module in a standby mode.
3. The method as recited in claim 2, further comprising:
and if the target standby power supply module does not exist, the baseboard management controller writes the new version of the main power supply module into a buffer area of the main power supply module, and upgrades the main power supply module.
4. The method of claim 3, wherein if the power mode of the server is a primary power mode and the upgrade instruction is to upgrade the standby power module, the baseboard management controller upgrades the standby power module, including:
The baseboard management controller inquires the health state of the standby power supply module from the state table;
and under the condition that the health state of the standby power supply module is in a normal state, the baseboard management controller upgrades the standby power supply module.
5. The method as recited in claim 4, further comprising:
if the health state of the standby power supply module is abnormal, the baseboard management controller sets the working state of the standby power supply module to be a loading state, writes in the standby power supply module of a new version through an I2C bus, and restarts the server to upgrade the standby power supply module.
6. The method of claim 5, wherein if the power mode of the server is a redundant power mode, the upgrade instruction is to upgrade a plurality of power modules, and the baseboard management controller upgrades the plurality of power modules to be upgraded simultaneously, comprising:
the baseboard management controller inquires the quantity of the power supply modules with the working states of the power supply modules being enabled from the state table;
and under the condition that the number of the power supply modules with the working states of the power supply modules being enabled is larger than the number of the plurality of power supply modules to be upgraded, the baseboard management controller upgrades the plurality of power supply modules to be upgraded simultaneously.
7. The method of claim 6, wherein the status information of the power supply modules further includes a single power supply module maximum power and a server demand power; and when the number of the power modules with the power module working state being the enabling state is greater than the number of the plurality of power modules to be upgraded, the baseboard management controller upgrades the plurality of power modules to be upgraded simultaneously, including:
the baseboard management controller calculates the quantity difference value between the quantity of the power supply modules in the enabling state and the quantity of the power supply modules to be upgraded according to the quantity of the power supply modules in the enabling state and the quantity of the plurality of power supply modules to be upgraded;
the baseboard management controller calculates the sum of the maximum power of the power supply modules corresponding to the quantity difference according to the quantity difference and the maximum power of the single power supply module, and judges whether the sum of the maximum power of the power supply modules corresponding to the quantity difference can meet the required power of the server;
and under the condition that the sum of the maximum power of the power supply modules corresponding to the quantity difference value meets the required power of the server, the baseboard management controller resets the output power of the power supply modules corresponding to the quantity difference value according to the quantity difference value and the required power of the server, and upgrades the power supply modules to be upgraded simultaneously.
8. The method as recited in claim 7, further comprising:
and if the sum of the maximum power of the power supply modules corresponding to the quantity difference value does not meet the required power of the server, the baseboard management controller upgrades the plurality of power supply modules to be upgraded in sequence.
9. The method as recited in claim 7, further comprising:
if the number of the power supply modules in the power supply module working state is the enabling state and is equal to the number of the plurality of power supply modules to be upgraded, the baseboard management controller inquires the maximum power of the single power supply module in the enabling state from the state table and judges whether the maximum power of the single power supply module in the enabling state meets the power required by the server;
when the maximum power of a single power module meets the power required by the server, the baseboard management controller sets the output power of one power module of the plurality of power modules to be upgraded to the maximum power so that the one power module of the plurality of power modules to be upgraded supplies power to the server, sets the working state of the rest power modules to be upgraded to a loading state, and upgrades the rest power modules to be upgraded simultaneously;
After the remaining power modules to be upgraded are upgraded, the baseboard management controller sets the working states of the remaining power modules to be upgraded to an enabling state, sets the working states of one of the power modules to be upgraded to a loading state, and upgrades the one of the power modules to be upgraded.
10. The method according to claim 1, wherein if the power supply mode of the server is a redundant power supply mode, the upgrade instruction is to upgrade a single power supply module, the baseboard management controller sets the working state of the single power supply module to be upgraded to a loading state, adjusts output power of remaining power supply modules that do not receive the upgrade instruction, and upgrades the single power supply module to be upgraded, including:
the baseboard management controller queries the health status of the single power module to be upgraded from the status table;
and under the condition that the health state of the single power module to be upgraded is a normal state, the baseboard management controller sets the working state of the single power module to be upgraded to a loading state, adjusts the output power of the rest power modules which do not receive the upgrading instruction, and upgrades the single power module to be upgraded.
11. The server is characterized by comprising a substrate management controller and a plurality of power modules;
the baseboard management controller is used for acquiring the state information of the power supply module and the power supply mode information of the server when receiving an upgrade instruction input by a user; the state information of the power supply modules comprises the number of the power supply modules, the working states of the power supply modules, the working modes of the power supply modules and the output power of a single power supply module; the working state of the power supply module comprises an enabling state and a loading state; the working modes of the power supply module comprise a main mode and a standby mode; the server power supply mode information comprises a main power supply mode, a standby power supply mode and a redundant power supply mode;
the baseboard management controller is configured to switch a working mode of the main power module to a standby mode, switch the standby power module to the main mode, and upgrade the main power module in the standby mode if the power supply mode of the server is the main-standby power supply mode and the upgrade instruction is to upgrade the main power module;
the baseboard management controller is configured to upgrade the standby power supply module if the power supply mode of the server is a primary and standby power supply mode, and the upgrade instruction is to upgrade the standby power supply module;
The baseboard management controller is configured to upgrade the plurality of power modules to be upgraded simultaneously if the power supply mode of the server is a redundant power supply mode and the upgrade instruction is to upgrade the plurality of power modules;
and the baseboard management controller is used for setting the working state of the single power module to be upgraded to a loading state if the power supply mode of the server is a redundant power supply mode and the upgrading instruction is to upgrade the single power module, and adjusting the output power of the rest power modules which do not receive the upgrading instruction to upgrade the single power module to be upgraded.
12. An electronic device, comprising: a processor, a memory and a computer program stored on the memory and capable of running on the processor, which when executed by the processor performs the steps of the power module upgrade method according to any one of claims 1-10.
13. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the power module upgrade method according to any one of claims 1-10.
CN202310365869.5A 2023-04-07 2023-04-07 Power module upgrading method, server, electronic equipment and storage medium Pending CN116483402A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310365869.5A CN116483402A (en) 2023-04-07 2023-04-07 Power module upgrading method, server, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310365869.5A CN116483402A (en) 2023-04-07 2023-04-07 Power module upgrading method, server, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116483402A true CN116483402A (en) 2023-07-25

Family

ID=87218677

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310365869.5A Pending CN116483402A (en) 2023-04-07 2023-04-07 Power module upgrading method, server, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116483402A (en)

Similar Documents

Publication Publication Date Title
US9870159B2 (en) Solid-state disk (SSD) management
US8954784B2 (en) Reduced power failover
CN103324495A (en) Method and system for data center server boot management
US20090049337A1 (en) System and method for testing redundancy and hot-swapping capability of a redundant power supply
KR20140055938A (en) Rack and method thereof for simultaneously updating basic input output systems
RU2690750C1 (en) Method for powering the system and its computer system
JP2011145910A (en) Information processing apparatus and firmware updating method of the same
CN112477919B (en) Dynamic redundancy backup method and system suitable for train control system platform
US20180143774A1 (en) Multi-mode data replication for data loss risk reduction
EP2761458A1 (en) Hardware consumption architecture
US8595545B2 (en) Balancing power consumption and high availability in an information technology system
CN103713925A (en) Method and device for avoiding service interruption of storage array in upgrading process
JP2012194892A (en) Software update device, software update method, and software update program
TW201626134A (en) Rack having multi-RMMs and firmware updating method for the rack
US20160259384A1 (en) Method of performing power management in rack-mount system
US10788872B2 (en) Server node shutdown
US20150153819A1 (en) Management apparatus and method for controlling information processing apparatuses
US8499080B2 (en) Cluster control apparatus, control system, control method, and control program
CN102866927A (en) Method and device for collocating basic input/output system, and method for managing basic input/output system
CN116483402A (en) Power module upgrading method, server, electronic equipment and storage medium
CN113064614B (en) Firmware upgrading method and system for redundant power supply system of server
CN106708668A (en) BBU accumulator mode switching method based on Rack machine cabinet
CN114069600A (en) Power supply method, device and system
CN114385412A (en) Storage management method, apparatus and computer program product
CN115373733B (en) Model version adjusting method and device of model service and electronic equipment

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