A method and device for controlling the state of a multi-node server power module

Through the collaborative work of CPLD and BMC management systems, a simple and reliable configuration of the multi-node server power module working mode is realized, which solves the problems of complex configuration and high cost in the existing technology, supports independent management of single nodes, and reduces the overall complexity of the system.

CN115756138BActive Publication Date: 2025-06-06INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211294796.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-21
Publication Date
2025-06-06
Estimated Expiration
2042-10-21

AI Technical Summary

Technical Problem

In multi-node servers, it is difficult for the prior art to realize a simple and reliable power module working mode configuration, and does not support the single node configuration of the power module working mode, which is relatively expensive and depends on CMC modules.

Method used

The first control of each power module is possessed through CPLD, and the BMC management system of a certain node is temporarily managed or configured on the BMC Web page. This simplifies the configuration logic, reduces costs, supports single-node configuration, and avoids the use of CMC modules.

Benefits of technology

It realizes the logical simplicity and reliability of the power module's working mode configuration, reduces implementation costs, supports independent configuration of single nodes, and improves the flexibility and manageability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115756138B_ABST
    Figure CN115756138B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of server power module state control, and specifically discloses a multi-node server power module state control method and device, logs in to the BMC management system of a certain node, and records it as the main BMC management system; the main BMC management system sends a control right acquisition command to the CPLD to acquire the control right of each power module; the main BMC management system sends a configuration command to each power module to configure the working state of each power module; wherein the working state of the power module includes the main power working mode, the backup power working mode and the normal working mode; after the working state of each power module is successfully configured, the main BMC management system sends a control right abandonment command to the CPLD, so that the control right of each power module is returned to the CPLD. The present invention makes the working mode configuration logic of the power module simple and reliable, easy to implement, low cost, and supports the configuration of the working mode of the power module by a single node, without using a CMC module.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of server power module state control, and in particular to a multi-node server power module state control method and device. Background Art

[0002] With the development of big data and cloud computing, the computing power requirements for servers are getting higher and higher, and multi-node servers have also emerged. As the energy supply unit of the whole machine, the server power supply is usually designed with redundant power supplies to improve the stability of the system. For example, the server power supply is usually designed to support N+N redundancy. When one power supply fails, the redundant power supply can continue to provide energy to ensure the normal operation of the system. When the system supports N+N power redundancy, N power supplies are set in the main output working state (active) and N power supplies are set in the standby state (standby). When one of the power supplies fails, the power supply in the standby state needs to enter the normal working mode to ensure the normal operation of the system, that is, all power supplies exit the active+standby working mode and enter the normal working mode.

[0003] In a multi-node server, each node has a mainboard, a BMC management board and a power module. For example, in a four-node server, the power modules of two nodes are in the main power mode, and the other two are in the backup mode. Of course, the configuration of the main and backup power modes of the multi-node server is completed through the CMC module. However, the logic of this configuration is complex, difficult to implement, and has a high cost. It also does not support the configuration of the power module working mode of a single node. Summary of the invention

[0004] In order to solve the above problems, the present invention provides a method and device for controlling the status of a power module of a multi-node server, wherein a CPLD has the first control right of each power module, and when configuring the working mode of the power module, a BMC management system of a certain node temporarily controls the control right of each power module to configure the working mode of the power module, or implements the working mode configuration of the power module on a BMC Web page of a certain node, so that the working mode configuration logic of the power module is simple and reliable, easy to implement, and low in cost, and supports the configuration of the working mode of the power module by a single node without using a CMC module.

[0005] In a first aspect, the technical solution of the present invention provides a multi-node server power module state control method, comprising the following steps:

[0006] Under normal conditions, the CPLD interacts with the power modules of each node to obtain the status information of each power module;

[0007] The control method for the power module status includes a BMC management system command method. When the BMC management system command method is executed to control the power module status of the multi-node server, the following steps are specifically included:

[0008] Log in to the BMC management system of a certain node and record it as the main BMC management system;

[0009] The main BMC management system sends a control right acquisition command to the CPLD to acquire the control right of each power module;

[0010] The main BMC management system sends configuration commands to each power module to configure the working status of each power module; the working status of the power module includes the main power working mode, the backup power working mode and the normal working mode;

[0011] After the working status of each power module is successfully configured, the main BMC management system sends a control right relinquishment command to the CPLD, so that the control right of each power module is returned to the CPLD.

[0012] Furthermore, the main BMC management system sends a configuration command to each power module to configure the working state of each power module, specifically including:

[0013] A signal is sent to the logic address of the power module to modify the register value of the power working mode command register address stored in the power module to the register value of the corresponding working mode.

[0014] Furthermore, after logging into the main BMC management system, the following steps are also included:

[0015] Send a control query command to the CPLD;

[0016] Determine whether each power module is currently controlled by CPLD according to the feedback information;

[0017] If so, the main BMC management system sends a control right acquisition command to the CPLD to acquire the control right of each power module;

[0018] If not, the main BMC management system sends a control right acquisition command to the CPLD to acquire the control right of each power module after the CPLD acquires the control right of each power module.

[0019] Furthermore, after the main BMC management system obtains the control right of each power module, the following steps are further included:

[0020] Send a control query command to the CPLD;

[0021] Determine whether each power module is currently controlled by the main BMC management system based on the feedback information;

[0022] If yes, the main BMC management system sends configuration commands to each power module;

[0023] If not, the main BMC management system sends a control right acquisition command to the CPLD again to try to acquire the control right of each power module;

[0024] If the main BMC management system still cannot obtain control of each power module after several attempts, a warning message will be issued.

[0025] Furthermore, before the main BMC management system sends the configuration command to each power module, the following steps are also included:

[0026] Send a power module logic address acquisition command to the CPLD to obtain the logic address of each power module;

[0027] According to the logical address of each power module, an operation mode query command is sent to each power module to obtain the current operation mode of each power module.

[0028] Furthermore, after the main BMC management system sends a configuration command to each power module and configures the working state of each power module, the following steps are also included:

[0029] Send a working mode query command to each power module to obtain the current working mode of each power module;

[0030] Determine whether the working mode of each power module is configured successfully;

[0031] If the configuration is successful, the main BMC management system sends a control relinquishment command to the CPLD;

[0032] If the configuration is not successful, the main BMC management system sends configuration commands to each power module again to reconfigure the working status of each power module;

[0033] If the configuration fails after several attempts, a warning message will be issued.

[0034] Furthermore, after the main BMC management system sends the control right relinquishing command to the CPLD, the following steps are also included:

[0035] Send a control query command to the CPLD;

[0036] Determine whether each power module is currently controlled by CPLD according to the feedback information;

[0037] If not, the main BMC management system sends a control relinquishment command to the CPLD again;

[0038] If after several attempts, each power module is still not controlled by the CPLD, a warning message is issued.

[0039] Furthermore, the control method for the power module state also includes a BMC Web page configuration method. When the BMC Web page configuration method is executed to control the power module state of the multi-node server, the following steps are specifically included:

[0040] Log in to the BMC web page of a node and configure the working mode of each power module by selecting options;

[0041] After the option configuration is completed, the option configuration information is sent to the register address of each power module information in the CPLD in the form of a command;

[0042] After parsing the register information, the CPLD sends the configuration information of each power module to each power module.

[0043] In a second aspect, the technical solution of the present invention provides a multi-node server power module state control device, comprising:

[0044] BMC management system login module: log in to the BMC management system of a certain node, which is recorded as the main BMC management system;

[0045] Control right acquisition module: The main BMC management system sends a control right acquisition command to the CPLD to acquire the control right of each power module;

[0046] Working status configuration module: The main BMC management system sends configuration commands to each power module to configure the working status of each power module; the working status of the power module includes the main power working mode, the backup power working mode and the normal working mode;

[0047] Control relinquishment module: After the working status of each power module is successfully configured, the main BMC management system sends a control relinquishment command to the CPLD to return the control of each power module to the CPLD.

[0048] Furthermore, the device also includes:

[0049] Option configuration module: Log in to the BMC Web page of a node and configure the working mode of each power module by selecting options;

[0050] Configuration information sending module: After the option configuration is completed, the option configuration information is sent in the form of commands to the register address of each power module information in the CPLD;

[0051] Configuration processing module: After CPLD parses the register information, it sends the configuration information of each power module to each power module.

[0052] A multi-node server power module state control method and device provided by the present invention have the following beneficial effects compared with the prior art: CPLD has the first control right of each power module, and when the working mode of the power module is configured, the BMC management system of a certain node temporarily manages the control right of each power module to configure the working mode of the power module, or the power module working mode configuration is implemented on the BMC Web page of a certain node, so that the working mode configuration logic of the power module is simple and reliable, easy to implement, low cost, and supports the configuration of the working mode of the power module by a single node, without using a CMC module. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] In order to more clearly illustrate the embodiments of the present application or the technical solutions of the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0054] Figure 1 This is a schematic diagram of the current multi-node server structure.

[0055] Figure 2 The present invention provides a flow chart of a method for controlling the state of a multi-node server power module in a BMC management system command mode.

[0056] Figure 3 The present invention provides a flow chart of a method for controlling the status of a multi-node server power module in a BMC Web page configuration manner.

[0057] Figure 4 The present invention is a specific embodiment of the control method of the present invention, which is a flowchart of controlling the power module status by means of BMC management system commands.

[0058] Figure 5 The present invention is a flow chart of a control method according to a specific embodiment of the present invention, which controls the power module status in a BMC Web page configuration manner.

[0059] Figure 6 The present invention is a schematic diagram of the structure of a multi-node server power module status control device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0060] In order to enable those skilled in the art to better understand the present application, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.

[0061] Figure 1 This is a schematic diagram of the current multi-node server structure. Each node has a mainboard, a BMC management board and a power module. The BMC management board and the power module are connected to the mainboard. The mainboard of each node is connected to the power management board of the server. The power management board has a CPLD hardware circuit. The power management board plays a role in controlling the power modules of each node, distributing energy, and interacting with node information by uploading the CPLD firmware version. There are registers in the CPLD. In this embodiment, the registers in the CPLD are used to store power module information.

[0062] An embodiment of the present invention provides a multi-node server power module state control method. Under normal conditions, a CPLD interacts with the power modules of each node, that is, the CPLD has the first control right of each power module. The CPLD obtains the state information of each power module, and the state information includes the working mode and power consumption. The obtained power module state information is stored in a register and can be transmitted to the BMC management system of each node and displayed on the BMC Web page.

[0063] For example, the CPLD obtains status information of each power module. If the CPLD detects that a power module fails, the working mode of each power module (i.e., the power module status, the working mode includes the main power working mode, the backup power working mode and the normal working mode) needs to be adjusted, or the working mode of the power module needs to be adjusted according to user requirements. The control method of the embodiment of the present invention can control the power module status in two ways, one is a BMC management system command method, and the other is a BMC Web page configuration method.

[0064] Figure 2 The present invention provides a method for controlling the state of a multi-node server power module in a BMC management system command mode. The BMC management system command mode is that the BMC management system of a certain node obtains the control right of each power module, and the BMC management system directly sends commands to each power module to configure the working mode of the power module. Figure 2 As shown, the specific steps include the following steps.

[0065] S101, log in to the BMC management system of a certain node, which is recorded as the main BMC management system.

[0066] S102: The main BMC management system sends a control right acquisition command to the CPLD to acquire the control right of each power module.

[0067] Under normal circumstances, CPLD controls each power module. Therefore, the main BMC management system first sends a command to CPLD to make CPLD transfer the control of each power module to the main BMC management system. The main BMC management system temporarily manages these power modules, thus realizing the communication between the main BMC management system and each power module.

[0068] S103: The main BMC management system sends a configuration command to each power module to configure the working status of each power module.

[0069] The working states of the power module include main power working mode, backup power working mode and normal working mode.

[0070] Since the main BMC management system obtains the control right of each power module and can communicate with each power module, the main BMC management system directly sends configuration commands to each power module so that the working state of each power module is configured according to the command. It can be understood that the configuration command sent to each power module contains information about the state to be configured.

[0071] S104, after the working status of each power module is successfully configured, the main BMC management system sends a control right relinquishing command to the CPLD, so that the control right of each power module is returned to the CPLD.

[0072] After the main BMC management system successfully configures the working status of each power module, in order for the CPLD to continue to monitor the status information of each power module, the main BMC management system gives up the control right of each power module and returns the control right of each power module to the CPLD.

[0073] In a multi-node server power module state control method according to an embodiment of the present invention, a CPLD has the first control right of each power module. When configuring the working mode of the power module, a BMC management system of a certain node temporarily controls the control right of each power module to configure the working mode of the power module, so that the working mode configuration logic of the power module is simple and reliable, easy to implement, low cost, and supports the configuration of the working mode of the power module by a single node without using a CMC module.

[0074] In some specific embodiments, a register is configured in the power module, and the register address stores the working mode of the power module. The main BMC management system sends a configuration command to each power module. When configuring the working status of each power module, it specifically sends a command to the logical address of the power module to modify the register value of the power working mode command register address stored in the power module to the register value of the corresponding working mode.

[0075] For example, if the logic address of a power module is 0x58, the address of the power working mode command register in the power module is 0xe0, and the register value corresponding to the working mode to be configured is 0x01, then the command i2ctransfer –y 7 w2@0x58 0xe0 0x01 is sent to the power module to configure the power module to the main power working mode. 0x01 corresponds to the main power working mode, 0x02 corresponds to the backup power working mode, and 0x00 corresponds to the normal working mode.

[0076] In some specific embodiments, in order to realize the normal configuration of the working mode of the power module, after logging into the main BMC management system, the following steps are also included:

[0077] Step 1: Send a control right query command to the CPLD;

[0078] Step 2: judging whether each power module is currently controlled by CPLD according to the feedback information;

[0079] Step 3: If yes, the main BMC management system sends a control right acquisition command to the CPLD to acquire the control right of each power module;

[0080] Step 4: If not, wait until the CPLD has the control right of each power module, and then the main BMC management system sends a control right acquisition command to the CPLD to acquire the control right of each power module.

[0081] The main BMC management system applies to the CPLD for the control right of each power module. If the CPLD does not have the control right of a power module, it cannot transfer the control right to the main BMC management system. Therefore, the main BMC management system first queries the control right of each power module. If the CPLD has the control right of each power module, the main BMC management system sends a control right acquisition command to the CPLD to transfer the control right.

[0082] In some specific embodiments, after the main BMC management system obtains the control right of each power module, the following steps are further included:

[0083] Step 1: Send a control right query command to the CPLD;

[0084] Step 2: judging whether each power module is currently controlled by the main BMC management system according to the feedback information;

[0085] Step 3: If yes, the main BMC management system sends a configuration command to each power module;

[0086] Step 4: If not, the main BMC management system sends a control right acquisition command to the CPLD again to try to acquire the control right of each power module;

[0087] Step 5: If the main BMC management system still cannot obtain control of each power module after several attempts, a warning message is issued.

[0088] After the main BMC management system sends a control right acquisition command to the CPLD, it will acquire the control right of each power module. To ensure that the control right acquisition is successful, after the control right acquisition is completed, the control right of each power module is queried to check whether it is acquired normally by the main BMC management system. If multiple attempts fail to acquire the control right normally, an alarm is issued.

[0089] In some specific implementations, before the main BMC management system sends the configuration command to each power module, the following steps are further included:

[0090] Step 1: Send a power module logic address acquisition command to the CPLD to acquire the logic address of each power module;

[0091] Step 2: Send a working mode query command to each power module according to the logical address of each power module to obtain the current working mode of each power module.

[0092] The main BMC management system first obtains the logical address of the power module so that it can send relevant commands to the power module later. Then it obtains the current working mode of each power module and saves it to provide a basis for subsequent analysis.

[0093] In some specific embodiments, after the main BMC management system sends a configuration command to each power module and configures the working state of each power module, the following steps are further included:

[0094] Step 1: Send a working mode query command to each power module to obtain the current working mode of each power module;

[0095] Step 2: determine whether the working mode of each power module is configured successfully;

[0096] Step 3: If the configuration is successful, the main BMC management system sends a control relinquishment command to the CPLD;

[0097] Step 4: If the configuration is not successful, the main BMC management system sends a configuration command to each power module again to reconfigure the working status of each power module;

[0098] Step 5: If the configuration fails after several attempts, a warning message will be issued.

[0099] The main BMC management system sends configuration commands to each power module to configure the working status of each power module. To ensure successful configuration, after configuration, it queries the working mode of the current power module again to see if it is the same as expected. If it is the same, the configuration is successful, otherwise it is unsuccessful. If the main BMC management system fails to configure successfully for multiple times, there are some faults and an alarm is required.

[0100] In some specific embodiments, after the main BMC management system sends the control right relinquishing command to the CPLD, the following steps are also included:

[0101] Step 1: Send a control right query command to the CPLD;

[0102] Step 2: judging whether each power module is currently controlled by CPLD according to the feedback information;

[0103] Step 3: If not, the main BMC management system sends a control relinquishment command to the CPLD again;

[0104] Step 4: If each power module is still not controlled by the CPLD after several attempts, a warning message is issued.

[0105] The above steps are used to detect whether the main BMC management system has normally given up the control of each power module. It is necessary to ensure that the control of the power module is returned to the CPLD. If the control is successfully given up after multiple attempts, there is a fault and an alarm is issued.

[0106] A multi-node server power module state control method according to an embodiment of the present invention can also be controlled by BMC Web page configuration. Figure 3 The present invention provides a flow chart of a method for controlling the state of a multi-node server power module in a BMC Web page configuration mode. When the state of a multi-node server power module is controlled in a BMC Web page configuration mode, the BMC management system no longer obtains the control right of the power module, but selects an option on the BMC Web page, sends the relevant command to the CPLD, and then the CPLD parses the command, and the CPLD sends a command to the power module to configure the working mode of the power module.

[0107] like Figure 3 As shown, when executing the BMC Web page configuration method to control the status of the power modules of the multi-node servers, the following steps are specifically included.

[0108] S201, log in to the BMC Web page of a node, and configure the working mode of each power module by selecting an option.

[0109] The user can select the BMC Web page of a node as needed and select options on the BMC Web page, for example, select the working mode of the first power module as the main power working mode.

[0110] S202, after the option configuration is completed, the option configuration information is sent in the form of a command to the register address in the CPLD where the information of each power module is placed.

[0111] Click the Finish button to send the command to the CPLD register.

[0112] S203, after parsing the register information, the CPLD sends the configuration information of each power module to each power module.

[0113] The CPLD reads the register value, parses the configuration information, and then sends commands to the power module to configure the working mode.

[0114] To further understand the present invention, a specific embodiment is provided below to further explain the present invention in detail. When the specific embodiment uses a command to set the working mode of the power supply, the BMC management system is first entered, and the power supply working mode is set by obtaining the control right of the server power supply, and the control right of the server power supply is released after the setting is completed. The BMC Web page displays relevant information such as power consumption, which is read by the BMC management system from the register of the power module information in the CPLD. The CPLD can only put the read relevant power information in the corresponding register under the premise that the CPLD has the control right over the power module. Therefore, when the BMC Web page is used to set the working mode of the power supply, the BMC management system no longer obtains the control right of the server power supply, and sends a control command to the register storing the power information in the CPLD, and the CPLD translates and forwards the command to set the working mode of the server power supply.

[0115] Take a four-node server as an example. Each node has a mainboard, a BMC management board, and a power module. The four nodes are connected to a power management board. The power management board controls the power modules of each node, distributes energy, and interacts with node information by uploading the CPLD firmware version. The CPLD has control over the power module.

[0116] Name the power modules of the four-node server as PSU0, PSU1, PSU2, and PSU3.

[0117] The register and power module logic addresses are configured as follows:

[0118] 0x50 is the register address of the PSU0 information of the internal power supply module of CPLD;

[0119] 0x51 is the register address of the CPLD internal power module PSU1 information;

[0120] 0x52 is the register address of the CPLD internal power module PSU2 information;

[0121] 0x53 is the register address of the CPLD internal power module PSU3 information;

[0122] 0x58 is the logical address of the power module PSU0;

[0123] 0x59 is the logical address of the power module PSU1;

[0124] 0x5a is the logical address of the power module PSU2;

[0125] 0x5b is the logical address of the power module PSU3;

[0126] 0xe0 is the address of the power module's active+standby working mode command register.

[0127] When writing control commands to the power active+standby working mode command register in the power module, 0x01 represents that the power module is set to active working mode, 0x02 represents that the power module is set to standby working mode, and 0x00 represents that the power module is set to normal working mode (normal working mode).

[0128] In this specific embodiment, by entering any node BMC management system of the four-node server and sending corresponding commands to the CPLD, the BMC management system can obtain the control rights of the four power modules corresponding to the four nodes. For example, the command:

[0129] i2ctransfer –y 7 w2@0x11 0xb8 0x00 obtains the control right of PSU0 for the BMC management system;

[0130] i2ctransfer –y 7 w2@0x11 0xb8 0x01 obtains the control right of PSU1 for the BMC management system;

[0131] i2ctransfer –y 7 w2@0x11 0xb8 0x02 obtains the control right of PSU2 for the BMC management system;

[0132] i2ctransfer –y 7 w2@0x11 0xb8 0x03 Get the control of PSU3 for the BMC management system.

[0133] Similarly, the BMC management system can give up the control of the four power modules corresponding to the four nodes by sending corresponding commands to the CPLD. For example, the command:

[0134] i2ctransfer –y 7 w2@0x11 0xb8 0x10 is for the BMC management system to give up the control of PSU0;

[0135] i2ctransfer –y 7 w2@0x11 0xb8 0x11 is for the BMC management system to give up the control of PSU1;

[0136] i2ctransfer –y 7 w2@0x11 0xb8 0x12 is for the BMC management system to give up the control of PSU2;

[0137] i2ctransfer –y 7 w2@0x11 0xb8 0x13 is used by the BMC management system to give up the control of PSU3.

[0138] The BMC management system can query the power module control information before and after obtaining or giving up the power module control, such as the command:

[0139] i2ctransfer –y 7 w1@0x11 0x38 r6 is used to query the power module control information.

[0140] If the BMC management system does not obtain control of the power supply of any node, that is, the CPLD has control over the power module, after sending the command to query the power module control information, the system replies with 0x05 0x10 0x10 0x10 0x10 0xbb; if the control of PSU0 is obtained through the BMC management system of the second node of the server, after sending the command to query the power module control information, the system replies with 0x05 0x02 0x10 0x10 0x10 0xc9.

[0141] After setting the active+standby working mode of the power module, you can determine whether the setting is successful by the change in the power module power consumption displayed on the BMC Web page. The power module power consumption and other related information displayed on the BMC Web page are read by the BMC management system from the registers that store the power module information inside the CPLD. The CPLD can only put the read related power information in the corresponding registers when it has the control over the power module. Therefore, after the BMC management system obtains the control over the power module and sets the working mode of the power module, it must give up the control over the power module, so that it will not affect the BMC Web page to obtain the power module power consumption and other related information of the power module.

[0142] The following takes entering the BMC management system of the zeroth node of a four-node server to set PSU0 and PSU2 to active working mode and setting PSU1 and PSU3 to standby working mode as an example for explanation.

[0143] Figure 4 This is a flow chart of controlling the power module status in a BMC management system command mode in this specific embodiment, including the following steps.

[0144] 1. Log in to the server node zero BMC management system through the cmd window as follows:

[0145] ssh sysadmin@100.3.25.162;

[0146] Enter the login password to log in to the BMC management system.

[0147] 2. Query the server power module control information as follows:

[0148] i2ctransfer –y 7 w1@0x11 0x38 r6;

[0149] The system replies 0x05 0x10 0x10 0x10 0x10 0xbb, indicating that the CPLD has control over the power module.

[0150] 3. The server node zero BMC management system obtains the control rights of power modules PSU0, PSU1, PSU2, and PSU3 as follows:

[0151] i2ctransfer –y 7 w2@0x11 0xb8 0x00;

[0152] i2ctransfer –y 7 w2@0x11 0xb8 0x01;

[0153] i2ctransfer –y 7 w2@0x11 0xb8 0x02;

[0154] i2ctransfer –y 7 w2@0x11 0xb8 0x03.

[0155] 4. Query the server power module control information to verify whether the BMC management system has successfully obtained the power module control. The method is as follows:

[0156] i2ctransfer –y 7 w1@0x11 0x38 r6;

[0157] The system return value is 0x05 0x00 0x00 0x00 0x00 0xfb, indicating that the BMC management system at node 0 has control over four power modules.

[0158] 5. Query the communication address of the power module that has obtained control rights. The method is as follows:

[0159] i2cdetect –y 7;

[0160] The system return value shows that the communication addresses of the four power modules are 0x58, 0x59, 0x5a, and 0x5b.

[0161] 6. Query the current working modes of the four power modules as follows:

[0162] i2ctransfer –y 7 w1@0x58 0xe0 r3 The system return value is: 0x00 0x0c 0xff;

[0163] i2ctransfer –y 7 w1@0x59 0xe0 r3 The system return value is: 0x00 0x0a 0xff;

[0164] i2ctransfer –y 7 w1@0x5a 0xe0 r3 The system return value is: 0x00 0x00 0xff;

[0165] i2ctransfer –y 7 w1@0x5b 0xe0 r3 The system return value is: 0x00 0x06 0xff;

[0166] The system return value is 0x00, indicating that the current power module working mode is normal working mode.

[0167] 7. Set PSU0 and PSU2 to active working mode, and set PSU1 and PSU3 to standby working mode. The method is as follows:

[0168] i2ctransfer –y 7 w2@0x58 0xe0 0x01;

[0169] i2ctransfer –y 7 w2@0x59 0xe0 0x02;

[0170] i2ctransfer –y 7 w2@0x5a 0xe0 0x01;

[0171] i2ctransfer –y 7 w2@0x5b 0xe0 0x02.

[0172] 8. Query the current working modes of the four power modules and verify whether the working modes of the power modules are set successfully. The method is as follows:

[0173] i2ctransfer –y 7 w1@0x58 0xe0 r3 The system return value is: 0x01 0x0b 0xff;

[0174] i2ctransfer –y 7 w1@0x59 0xe0 r3 The system return value is: 0x02 0x04 0xff;

[0175] i2ctransfer –y 7 w1@0x5a 0xe0 r3 The system return value is: 0x01 0x07 0xff;

[0176] i2ctransfer –y 7 w1@0x5b 0xe0 r3 The system return value is: 0x02 0x08 0xff.

[0177] The system return value is 0x01, indicating that the current power working mode is active working mode.

[0178] The system return value is 0x02, indicating that the current power supply working mode is standby working mode.

[0179] 9. After the setting is successful, in order not to affect the display of power module information on the BMC Web page, the BMC management system needs to give up the control of the four power modules. The method is as follows:

[0180] i2ctransfer –y 7 w2@0x11 0xb8 0x10;

[0181] i2ctransfer –y 7 w2@0x11 0xb8 0x11;

[0182] i2ctransfer –y 7 w2@0x11 0xb8 0x12;

[0183] i2ctransfer –y 7 w2@0x11 0xb8 0x13.

[0184] 10. Query the server power module control information to verify whether the BMC management system has successfully given up the power module control. The method is as follows:

[0185] i2ctransfer –y 7 w1@0x11 0x38 r6.

[0186] The system replies 0x05 0x10 0x10 0x10 0x10 0xbb, indicating that the CPLD currently has control over the power module.

[0187] In this specific embodiment, when the BMC Web page configuration mode is used, the power supply working mode is set by selecting the option of setting the power supply working mode on the BMC Web page. The working principle is explained below by taking setting the power supply module PSU0 to the active working mode as an example. Figure 5 This is a flow chart of controlling the power module status in a BMC Web page configuration manner in this specific embodiment, including the following processes.

[0188] In a four-node server, you can access the BMC web page of any node to obtain relevant information about the four power modules corresponding to the four nodes at the same time.

[0189] When the power module PSU0 is set to the active working mode on the BMC Web page, the BMC management system no longer obtains the control of the power module PSUO, and no longer sends the command of writing 0x01 (active working mode) in 0xe0 (the register address of the power module for storing the active+standby working mode) to 0x58 (the logical address of PSUO). Instead, the command is sent to 0x50 (the register address of the power module PSU0 information in the CPLD). After receiving the command, the CPLD translates the command and forwards it to 0x58.

[0190] To verify whether the power module is set to active+standby working mode on the BMC Web page successfully, you can use the following two methods:

[0191] 1. The indicator light of the power module in active working mode is solid green, and the indicator light of the power module in standby working mode is flashing green.

[0192] 2. The power consumption of a power module in active working mode displayed on the BMC Web page is the value after the power module current is shared. The power consumption of a power module in standby working mode displayed on the BMC Web page is generally less than 10W.

[0193] An embodiment of a method for controlling the status of a multi-node server power module is described in detail above. Based on the method for controlling the status of a multi-node server power module described in the above embodiment, an embodiment of the present invention also provides a device for controlling the status of a multi-node server power module corresponding to the method.

[0194] Figure 6is a schematic diagram of the structure of a multi-node server power module state control device provided by an embodiment of the present invention, such as Figure 6 As shown, the device includes the following functional modules.

[0195] BMC management system login module: logs in to the BMC management system of a certain node, recorded as the main BMC management system.

[0196] Control right acquisition module: The main BMC management system sends a control right acquisition command to the CPLD to acquire the control right of each power module.

[0197] Working status configuration module: The main BMC management system sends configuration commands to each power module to configure the working status of each power module. The working status of the power module includes the main power working mode, the backup power working mode and the normal working mode.

[0198] Control relinquishment module: After the working status of each power module is successfully configured, the main BMC management system sends a control relinquishment command to the CPLD to return the control of each power module to the CPLD.

[0199] The BMC management system login module, the control right acquisition module, the working state configuration module and the control right abandonment module are executed to realize the control of the power module state in the BMC management system command mode.

[0200] Option configuration module: Log in to the BMC web page of a node and configure the working mode of each power module by selecting options.

[0201] Configuration information sending module: After the option configuration is completed, the option configuration information is sent in the form of commands to the register address of each power module information in the CPLD.

[0202] Configuration processing module: After CPLD parses the register information, it sends the configuration information of each power module to each power module.

[0203] The execution option configuration module, the configuration information sending module and the configuration processing module are used to realize the control of the power module status by the BMC Web page configuration method.

[0204] The multi-node server power module state control device of this embodiment is used to implement the aforementioned multi-node server power module state control method. Therefore, the specific implementation method of the device can be seen in the embodiment part of the multi-node server power module state control method in the previous text. Therefore, its specific implementation method can refer to the description of the corresponding embodiments of each part, which will not be elaborated here.

[0205] In addition, since the multi-node server power module state control device of this embodiment is used to implement the aforementioned multi-node server power module state control method, its function corresponds to that of the aforementioned method and will not be described in detail here.

[0206] The above disclosure is only a preferred embodiment of the present invention, but the present invention is not limited thereto. Any non-creative changes that can be thought of by a person skilled in the art, as well as several improvements and modifications made without departing from the principle of the present invention, should fall within the protection scope of the present invention.

Claims

1. A method for controlling the state of a multi-node server power module. It is characterized in that The following steps are involved: Under normal conditions, the CPLD interacts with the power modules of each node to obtain the status information of each power module; The control method for the power module status includes a BMC management system command method. When the BMC management system command method is executed to control the power module status of the multi-node server, the following steps are specifically included: Log in to the BMC management system of a certain node and record it as the main BMC management system; Send a control right query command to CPLD; Determine whether each power module is currently controlled by CPLD according to the feedback information; If so, the main BMC management system sends a control right acquisition command to the CPLD to acquire the control right of each power module; If not, the main BMC management system sends a control right acquisition command to the CPLD to acquire the control right of each power module after the CPLD has the control right of each power module. The main BMC management system sends a configuration command to each power module to configure the working state of each power module, including sending a command to modify the register value of the power working mode command register address stored in the power module to the register value of the corresponding working mode to the logical address of the power module; wherein the working state of the power module includes the main power working mode, the backup power working mode and the normal working mode; After the working status of each power module is successfully configured, the main BMC management system sends a control right relinquishment command to the CPLD, so that the control right of each power module is returned to the CPLD.

2. The multi-node server power module state control method according to claim 1, It is characterized in that After the main BMC management system obtains control of each power module, the following steps are also included: Send a control right query command to CPLD; Determine whether each power module is currently controlled by the main BMC management system based on the feedback information; If yes, the main BMC management system sends configuration commands to each power module; If not, the main BMC management system sends a control right acquisition command to the CPLD again to try to acquire the control right of each power module; If the main BMC management system still cannot obtain control of each power module after several attempts, a warning message will be issued.

3. The multi-node server power module state control method according to claim 2, It is characterized in that Before the main BMC management system sends a configuration command to each power module, the following steps are also included: Send a power module logic address acquisition command to the CPLD to obtain the logic address of each power module; According to the logical address of each power module, an operation mode query command is sent to each power module to obtain the current operation mode of each power module.

4. The multi-node server power module state control method according to claim 3, It is characterized in that The main BMC management system sends a configuration command to each power module. After configuring the working status of each power module, the following steps are also included: Send a working mode query command to each power module to obtain the current working mode of each power module; Determine whether the working mode of each power module is configured successfully; If the configuration is successful, the main BMC management system sends a control relinquishment command to the CPLD; If the configuration is not successful, the main BMC management system sends configuration commands to each power module again to reconfigure the working status of each power module; If the configuration fails after several attempts, a warning message will be issued.

5. The multi-node server power module state control method according to claim 4, It is characterized in that After the main BMC management system sends the control relinquishment command to the CPLD, the following steps are also included: Send a control query command to the CPLD; Determine whether each power module is currently controlled by CPLD according to the feedback information; If not, the main BMC management system sends a control relinquishment command to the CPLD again; If after several attempts, each power module is still not controlled by the CPLD, a warning message is issued.

6. The method for controlling the state of a multi-node server power module according to any one of claims 1 to 5, It is characterized in that The control method for the power module status also includes a BMC Web page configuration method. When the BMC Web page configuration method is executed to control the power module status of the multi-node server, the following steps are specifically included: Log in to the BMC web page of a node and configure the working mode of each power module by selecting options; After the option configuration is completed, the option configuration information is sent to the register address of each power module information in the CPLD in the form of a command; After parsing the register information, the CPLD sends the configuration information of each power module to each power module.

7. A multi-node server power module state control device, It is characterized in that include, BMC management system login module: log in to the BMC management system of a certain node, which is recorded as the main BMC management system; Control right acquisition module: The main BMC management system sends a control right acquisition command to the CPLD to acquire the control right of each power module; Working status configuration module: The main BMC management system sends configuration commands to each power module to configure the working status of each power module; the working status of the power module includes the main power working mode, the backup power working mode and the normal working mode; Control relinquishment module: After the working status of each power module is successfully configured, the main BMC management system sends a control relinquishment command to the CPLD to return the control of each power module to the CPLD.

8. The multi-node server power module state control device according to claim 7, It is characterized in that The device also includes, Option configuration module: Log in to the BMC Web page of a node and configure the working mode of each power module by selecting options; Configuration information sending module: After the option configuration is completed, the option configuration information is sent in the form of commands to the register address of each power module information in the CPLD; Configuration processing module: After CPLD parses the register information, it sends the configuration information of each power module to each power module.

Citation Information

Patent Citations

  • Multi-main-system interactive communication and management method and device

    CN111123792A

  • Server fan regulation and control method and system, electronic equipment and storage medium

    CN114911332A