Power-off protection method and device, related equipment and storage medium

Through the linkage between VIM and PIM of the cloud management platform and the DPU OS, the power-off protection program and notification mechanism are started, which solves the problem of passive power-off of the DPU OS during the power-off process of the bare metal server and ensures the safety and stability of the power-off process.

CN118802391APending Publication Date: 2024-10-18CHINA MOBILE COMM LTD RES INST +1
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410251300.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-03-05
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

During the power-off process of a bare metal server, the DPU is passively powered off as an ordinary PCIe device and cannot obtain power-off information, causing damage to running programs or file systems, posing potential faults.

Method used

The VIM and PIM of the cloud management platform are linked with the DPU OS to send instructions to start the power-off protection program to ensure that the DPU OS is ready for power-off. The BMC controls the power-off of the CPU and DPU, providing a power-off notification mechanism to avoid passive power-off.

Benefits of technology

This effectively avoids the risk of program damage or file system damage during the power-off process of the DPU OS, ensuring the stability of subsequent use of the device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118802391A_ABST
    Figure CN118802391A_ABST
Patent Text Reader

Abstract

The invention discloses a power-off protection method and device, related equipment and a storage medium. The method is applied to a virtual infrastructure manager (VIM) of a cloud management platform, and comprises the following steps: receiving a first instruction sent by a physical infrastructure manager (PIM) of the cloud management platform; sending a second instruction to an operating system (OS) corresponding to the DPU which is not independently powered on based on the first instruction; the second instruction is used for notifying the OS to start a power-off protection program; under the condition that the OS starts a power-off protection program and successfully runs the power-off protection program, receiving first information sent by the OS; the first information is used for notifying the VIM that the OS has completed power-off preparation; sending second information to the PIM based on the first information; the second information is used for the PIM to send a third instruction to a board-level management controller (BMC) of the server; the third instruction is used for controlling a central processing unit (CPU) of the server and the DPU to be powered off.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of core networks, and in particular to a power-off protection method, device, related equipment and storage medium. Background Art

[0002] The distributed processing unit (DPU) uses a non-independent power supply. When the bare metal server is powered off, the power-off signal received by the south bridge of the central processing unit (CPU) from the host-base board management controller (Host-BMC) will be captured by the host operating system (HOST OS). The HOST OS will prepare for power-off, including exiting running programs, saving running data, shutting down drivers, etc. Subsequently, the CPU, hardware, PCIe devices and other devices that share a power supply are powered off at the same time. At this time, the DPU is passively powered off as a normal PCIe device. In this process, the DPU OS in the DPU cannot prepare for power-off because it cannot obtain power-off information. Passive power-off has the risk of damaging programs running in the DPU or damaging the file system due to incomplete data writing, and there is a hidden danger of failure in the subsequent use of the device. Summary of the invention

[0003] In order to solve the existing technical problems, the embodiments of the present application provide a power-off protection method, device, related equipment and storage medium.

[0004] The technical solution of the embodiment of the present application is implemented as follows:

[0005] The embodiment of the present application provides a power-off protection method, which is applied to a virtual infrastructure manager (Virtual Interconnected Management, VIM) of a cloud management platform, including:

[0006] Receiving a first instruction sent by a physical infrastructure manager PIM of the cloud management platform; the first instruction is used to notify the VIM to power off a designated server with a DPU managed by the cloud management platform;

[0007] Sending a second instruction to an operating system (OS) corresponding to the DPU with non-independent power supply based on the first instruction; the second instruction is used to notify the OS to start a power-off protection program;

[0008] When the OS starts the power-off protection program and successfully runs the power-off protection program, receiving first information sent by the OS; the first information is used to notify the VIM that the OS has completed the power-off preparation;

[0009] Sending second information to the PIM based on the first information; the second information is used by the PIM to send a third instruction to the board management controller (Baseboard Management Controller, BMC) of the server; the third instruction is used to control the central processing unit (Central Processing Unit, CPU) of the server and the DPU to power off.

[0010] In the above scheme, the second instruction and the first information are both sent through the in-band network between the cloud management platform and the server; the second information includes notification information; the notification information is used to notify the PIM that the CPU and DPU of the server can be powered off.

[0011] The embodiment of the present application also provides a power-off protection method, which is applied to a physical infrastructure manager (Personal Information Management System, PIM) of a cloud management platform, including:

[0012] Sending a first instruction to the VIM of the cloud management platform, wherein the first instruction is used to notify the VIM to power off a designated server of the DPU managed by the cloud management platform;

[0013] When the DPU has completed power-off preparation, receiving second information sent by the VIM;

[0014] A third instruction is sent to the BMC of the server based on the second information; the third instruction is used to control the CPU and the DPU of the server to power off.

[0015] In the above scheme, the method further comprises:

[0016] A third instruction is sent to the BMC of the server based on the second information; the third instruction is used to control the CPU and the DPU of the server to power off.

[0017] In the above solution, the third instruction is sent through an out-of-band network between the cloud management platform and the server; the second information includes notification information; and the method further includes:

[0018] Based on the notification information, it is determined that the CPU and DPU of the server can be powered off.

[0019] In the above scheme, the method further comprises:

[0020] Receiving notification information sent by the BMC of the server;

[0021] Based on the notification information, it is determined that the CPU and DPU of the server have been powered off.

[0022] The embodiment of the present application further provides a power-off protection method, which is applied to a DPU OS in a designated server managed by a cloud management platform, including:

[0023] Receiving a second instruction sent by the VIM of the cloud management platform;

[0024] Starting the DPU OS power-off protection program based on the second instruction;

[0025] When the DPU OS starts the power-off protection program and successfully runs the power-off protection program, first information is sent to the VIM; the first information is used to notify the VIM that the DPU OS has completed the power-off preparation.

[0026] The embodiment of the present application further provides a power-off protection device, which is arranged on the VIM of the cloud management platform, and includes:

[0027] A first receiving unit, configured to receive a first instruction sent by the PIM of the cloud management platform; the first instruction is used to notify the VIM to power off the server of the DPU managed by the cloud management platform;

[0028] A first sending unit, configured to send a second instruction to an OS corresponding to the DPU with non-independent power supply based on the first instruction; the second instruction is used to notify the OS to start a power-off protection program;

[0029] The first receiving unit is further used to receive first information sent by the OS when the OS starts the power-off protection program and successfully runs the power-off protection program; the first information is used to notify the VIM that the OS has completed the power-off preparation;

[0030] The first sending unit is further used to send second information to the PIM based on the first information; the second information is used by the PIM to send a third instruction to the BMC of the server; the third instruction is used to control the CPU and the DPU of the server to power off.

[0031] The embodiment of the present application further provides a power-off protection device, which is arranged on a PIM of a cloud management platform, and includes:

[0032] A second sending unit is used to send a first instruction to the VIM of the cloud management platform; the first instruction carries a first parameter; the first instruction is used to notify the VIM to power off the server corresponding to the DPU managed by the cloud management platform;

[0033] A second receiving unit, configured to receive second information sent by the VIM when the DPU OS has completed power-off preparation;

[0034] The second sending unit is further used to send a third instruction to the BMC of the server based on the second information; the third instruction is used to control the CPU and the DPU of the server to power off.

[0035] The embodiment of the present application further provides a power-off protection device, which is arranged on the DPU OS and includes:

[0036] A third receiving unit, used to receive a second instruction sent by the VIM of the cloud management platform;

[0037] A starting unit, used for starting a power-off protection program based on the second instruction;

[0038] The third sending unit is used to send first information to the VIM when the DPU OS starts the power-off protection program and successfully runs the power-off protection program; the first information is used to notify the VIM that the DPU OS has completed the power-off preparation.

[0039] The embodiment of the present application also provides a VIM of a cloud management platform, comprising: a first processor and a first memory for storing a computer program that can be run on the processor,

[0040] Wherein, the first processor is used to execute the steps of any one of the above-mentioned VIM side methods when running the computer program.

[0041] The embodiment of the present application further provides a PIM of a cloud management platform, comprising: a second processor and a second memory for storing a computer program that can be run on the processor,

[0042] The second processor is configured to execute the steps of any one of the above-mentioned methods on the PIM side when running the computer program.

[0043] The embodiment of the present application further provides a DPU OS of a cloud management platform, comprising: a third processor and a third memory for storing a computer program that can be run on the processor,

[0044] The third processor is used to execute the steps of any one of the above-mentioned methods on the DPU OS side when running the computer program.

[0045] An embodiment of the present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of any of the above-mentioned methods on the VIM side, or implements the steps of any of the above-mentioned methods on the PIM side, or implements the steps of any of the above-mentioned methods on the DPU OS side.

[0046] An embodiment of the present application further provides a storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the steps of any of the above-mentioned methods on the VIM side are implemented, or the steps of any of the above-mentioned methods on the PIM side are implemented, or the steps of any of the above-mentioned methods on the DPU OS side are implemented.

[0047] The power-off protection method, device, related equipment and storage medium provided in the embodiments of the present application, VIM receives a first instruction sent by PIM of the cloud management platform; the first instruction is used to notify the VIM to power off the designated server with DPU managed by the cloud management platform; based on the first instruction, a second instruction is sent to the operating system OS corresponding to the DPU with non-independent power supply; the second instruction is used to notify the OS to start a power-off protection program; when the OS starts the power-off protection program and successfully runs the power-off protection program, first information sent by the OS is received; the first information is used to notify the VIM that the OS has completed power-off preparation; based on the first information, second information is sent to the PIM; the second information is used for the PIM to send a third instruction to the BMC of the server; the third instruction is used to control the power-off of the CPU and the DPU of the server. According to an embodiment of the present application, a second instruction for notifying the OS to start a power-off protection program is sent to the OS corresponding to the DPU that is not independently powered based on the first instruction; when the OS starts the power-off protection program and successfully runs the power-off protection program, first information sent by the OS for notifying the VIM that the OS has completed power-off preparation is received; based on the first information, second information for the PIM to send a third instruction to the BMC of the server is sent to the PIM; that is, a DPU OS power-off notification mechanism is provided, power-off preparation can be performed, and passive power-off of the DPU OS is avoided, thereby reducing the risk of damaging programs running in the DPU due to passive power-off or damaging the file system due to incomplete data writing. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] Figure 1 It is a schematic diagram of the in-band and out-of-band management block diagram of a bare metal server based on a DPU;

[0049] Figure 2 This is a schematic diagram of the DPU non-independent power supply mode;

[0050] Figure 3 Schematic diagram of the power-off process for the non-independent power supply of the bare metal server DPU;

[0051] Figure 4 A schematic diagram of a power-off protection method flow chart of an embodiment of the present application;

[0052] Figure 5 A flowchart of another power-off protection method according to an embodiment of the present application;

[0053] Figure 6 A flowchart of another power-off protection method according to an embodiment of the present application;

[0054] Figure 7 This is a schematic diagram of the process of gracefully powering off the non-independent power supply of the bare metal server DPU in an embodiment of the present application;

[0055] Figure 8 This is a schematic diagram of the structure of a power-off protection device according to an embodiment of the present application;

[0056] Fig. 9 This is a structural schematic diagram of another power-off protection device according to an embodiment of the present application;

[0057] Fig.10 This is a structural schematic diagram of another power-off protection device according to an embodiment of the present application;

[0058] Fig.11 This is a schematic diagram of the structure of the VIM in the embodiment of the present application;

[0059] Fig.12 This is a schematic diagram of the structure of the terminal in the embodiment of the present application;

[0060] Fig.13 This is a schematic diagram of the structure of the DPU OS in the embodiment of the present application;

[0061] Fig.14 This is a schematic diagram of the power-off protection system structure according to an embodiment of the present application. DETAILED DESCRIPTION

[0062] The present application is further described in detail below in conjunction with the accompanying drawings and embodiments.

[0063] The bare metal server based on DPU realizes the management and issuance of bare metal through the DPU card. The cloud platform software (openstack agent) is installed in the DPU to connect to the cloud management platform VIM in the band. The out-of-band management module on the DPU receives the out-of-band management message sent by the cloud management platform PIM through the Host-BMC. Figure 1 As shown, Figure 1The figure is a schematic diagram of the in-band and out-of-band management block diagram of a bare metal server based on a DPU. The power consumption of a DPU card generally exceeds the PCIe 75W power supply. In order to reduce the changes to the traditional server motherboard, the introduction of a DPU in a bare metal server can adopt a non-independent power supply mode that adds an additional power supply cable based on the PCIe power supply. At this time, the DPU uses the same power supply as the CPU and other PCIe devices, such as Figure 2 As shown, Figure 2 This is a schematic diagram of the DPU non-independent power supply mode. When the bare metal server is powered off, the power-off process is as follows: Figure 3 As shown, Figure 3 This is a schematic diagram of the power-off process for the DPU of a bare metal server with non-independent power supply.

[0064] 1) The DPU uses a non-independent power supply. When the bare metal server is powered off, the CPU south bridge receives the power-off signal from the Host-BMC and is captured by the HOST OS. The HOST OS prepares for power-off, including exiting running programs, saving running data, and shutting down drivers. Subsequently, the CPU, hardware, PCIe devices, and other devices that share a power supply are powered off at the same time. At this time, the DPU is passively powered off as a normal PCIe device. In this process, the DPU OS in the DPU cannot prepare for power-off because it cannot obtain power-off information. Passive power-off has the risk of damaging programs running in the DPU or damaging the file system due to incomplete data writing, and there is a hidden danger of failure in the subsequent use of the device.

[0065] Based on this, in various embodiments of the present application, a technical solution for gracefully powering off the DPU bare metal server is achieved by linking the cloud management system (including VIM, PIM) with Host-BMC and DPU OS.

[0066] The present application embodiment provides a power-off protection method, which is applied to the VIM of the cloud management platform, such as Figure 4 As shown, Figure 4 The present invention is a schematic flow chart of a power-off protection method according to an embodiment of the present invention, including:

[0067] Step 401: receiving a first instruction sent by the PIM of the cloud management platform; the first instruction is used to notify the VIM to power off a designated server with a DPU managed by the cloud management platform;

[0068] Step 402: Sending a second instruction to the OS corresponding to the DPU with non-independent power supply based on the first instruction; the second instruction is used to notify the OS to start a power-off protection program;

[0069] Step 403: When the OS starts the power-off protection program and successfully runs the power-off protection program, receiving first information sent by the OS; the first information is used to notify the VIM that the OS has completed the power-off preparation;

[0070] Step 404: Send second information to the PIM based on the first information; the second information is used by the PIM to send a third instruction to the BMC of the server; the third instruction is used to control the CPU and the DPU of the server to power off.

[0071] It should be noted that the VIM, the PIM and the DPU can all be determined according to actual conditions and are not limited here. As an example, the VIM may be a cloud management platform VIM module A; the PIM may be a cloud management platform PIM module B; the DPU may be a non-independent power supply DPU, and the power-off protection program in the DPU OS may also be called a power-off protection module.

[0072] In step 401, the first instruction is used to notify the VIM to power off the designated DPU server managed by the cloud management platform, which can be understood as the PIM notifying the VIM to prepare to power off the designated DPU server managed by the cloud management platform; wherein, the first instruction can be determined according to the specific situation and is not limited here. As an example, the first instruction can be indicated by parameters.

[0073] In actual applications, the cloud management system PIM module notifies the cloud management system VIM module to prepare for power-off.

[0074] In step 402, the second instruction is used to notify the OS to start the power-off protection program, which can be understood as VIM notifying the DPU OS to start the power-off protection program; wherein, the second instruction can be determined according to the specific situation, and is not limited here. As an example, the second instruction can be indicated by a command. The second instruction can be sent through the in-band network between the cloud management platform and the server.

[0075] In actual applications, the VIM module of the cloud management system starts the power-off protection program by notifying the DPU OS module in-band.

[0076] In step 403, the first information is used to notify the VIM that the DPU OS has completed the power-off preparation, which can be understood as the DPU OS notifying the cloud management system that the VIM has completed the power-off preparation; wherein, the first information can be determined according to the specific situation, and is not limited here. As an example, the first information can be sent through a notification. The first information can be sent through the in-band network between the cloud management platform and the server.

[0077] In actual applications, the DPU OS completes the power-off protection program and notifies the cloud management system VIM module in-band that the power-off preparation has been completed; the cloud management system VIM module notifies the cloud management system PIM module that the power-off preparation has been completed.

[0078] In step 404, the second information is used by the VIM to notify the PIM that the server is powered off, and the PIM sending the third instruction to the BMC of the server can be understood as the PIM sending a host power-off instruction to the Host-BMC; wherein, the second information can be determined according to the specific situation and is not limited here. As an example, the second information can include notification information; the notification information is used to notify the PIM that the CPU and DPU of the server can be powered off.

[0079] The third instruction is used to control the central processing unit CPU of the server and the power off of the DPU; wherein, the third instruction can be determined according to the specific situation and is not limited here. As an example, the third instruction can be indicated by an electrical signal.

[0080] The second instruction may be sent via an in-band network between the cloud management platform and the server;

[0081] In actual applications, the cloud management system PIM sends a host power-off command to the Host-BMC out-of-band; the Host-BMC notifies the Host-CPU to power off, and the Host-OS receives the shutdown command and closes the application and driver.

[0082] In the embodiment of the present application, based on the first instruction, a second instruction is sent to the OS corresponding to the DPU with non-independent power supply to notify the OS to start a power-off protection program; when the OS starts the power-off protection program and successfully runs the power-off protection program, first information sent by the OS is received to notify the VIM that the power-off preparation has been completed; based on the first information, second information is sent to the PIM for the PIM to send a third instruction to the BMC of the server; that is, a DPU OS power-off notification mechanism is provided, which can perform power-off preparation, avoid passive power-off of the DPU OS, and thereby reduce the risk of damaging programs running in the DPU due to passive power-off or damaging the file system due to incomplete data writing.

[0083] In one embodiment, the second instruction and the first information are both sent through the in-band network between the cloud management platform and the server; the second information includes notification information; the notification information is used to notify the PIM that the CPU and DPU of the server can be powered off.

[0084] In an embodiment of the present application, both the second instruction and the first information are sent through the in-band network between the cloud management platform and the server; wherein, the in-band network sending can be determined according to the specific circumstances and is not limited here. As an example, the in-band network sending can be understood as in-band notification sending; for example, the cloud management system VIM module starts the power-off protection program by in-band notifying the DPU OS module; the DPU OS completes running the power-off protection program and completes the power-off preparation by in-band notifying the cloud management system VIM module.

[0085] The second information includes notification information; the notification information is used to notify the PIM that the CPU and DPU of the server can be powered off. The notification information can be determined according to specific circumstances and is not limited here. As an example, the notification information can be any notification information that notifies the PIM that the CPU and DPU of the server can be powered off, for example, the Host-BMC notifies the Host-CPU to power off, and the Host-OS receives a shutdown command and closes the application and driver.

[0086] Accordingly, the embodiment of the present application also provides a power-off protection method, such as Figure 5 As shown, Figure 5 This is a flow chart of another power-off protection method according to an embodiment of the present application, which is applied to the PIM of the cloud management platform, including:

[0087] Step 501: Send a first instruction to the VIM of the cloud management platform, where the first instruction is used to notify the VIM to power off a designated DPU server managed by the cloud management platform;

[0088] Step 502: When the DPU has completed power-off preparation, receiving second information sent by the VIM;

[0089] Step 503: Send a third instruction to the BMC of the server based on the second information; the third instruction is used to control the CPU and the DPU of the server to power off.

[0090] It should be noted that the VIM, the PIM and the DPU can all be determined according to actual conditions and are not limited here. As an example, the VIM may be a cloud management platform VIM module A; the PIM may be a cloud management platform PIM module B; the DPU may be a non-independently powered DPU, and the power-off protection program in the non-independently powered DPU OS may also be called a power-off protection module.

[0091] In step 501, the first instruction is used to notify the VIM to power off the designated DPU server managed by the cloud management platform, which can be understood as the PIM notifying the VIM to prepare to power off the designated DPU server managed by the cloud management platform; wherein, the first instruction can be determined according to the specific situation and is not limited here. As an example, the first instruction can be indicated by parameters.

[0092] In actual applications, the cloud management system PIM module notifies the cloud management system VIM module to prepare for power-off.

[0093] In step 502, the second information may be determined according to specific circumstances, which is not limited herein. As an example, the second information may include notification information; the notification information is used to notify the PIM that the CPU and DPU of the server can be powered off.

[0094] In actual applications, the DPU OS completes the power-off protection program and notifies the cloud management system VIM module in-band that the power-off preparation has been completed; the cloud management system VIM module notifies the cloud management system PIM module that the power-off preparation has been completed.

[0095] In step 503, the third instruction is used to control the central processing unit CPU of the server and the DPU to power off; wherein, the third instruction can be determined according to the specific situation and is not limited here. As an example, the third instruction can be indicated by an electrical signal.

[0096] As an example, the cloud management system PIM sends a host power-off command to the Host-BMC out-of-band. The Host-BMC notifies the Host-CPU to power off. The Host-OS receives the shutdown command and shuts down the application and driver. The power supplies of the Host-CPU, DPU and other devices are powered off.

[0097] In the embodiment of the present application, a DPU OS power-off notification mechanism is provided out-of-band to avoid the DPU OS being passively powered off without preparation.

[0098] In one embodiment, the third instruction is sent through an out-of-band network between the cloud management platform and the server; the second information includes notification information; and the method further includes:

[0099] Based on the notification information, it is determined that the CPU and DPU of the server can be powered off.

[0100] In an embodiment of the present application, the third instruction is sent through an out-of-band network between the cloud management platform and the server; wherein, the out-of-band network sending can be determined based on the specific circumstances and is not limited here. As an example, the out-of-band network sending can be understood as out-of-band notification sending; for example, the cloud management system PIM sends a host power-off instruction to the Host-BMC through an out-of-band method.

[0101] The specific determination process of determining that the CPU and DPU of the server can be powered off based on the notification information can be determined according to actual conditions and is not limited here. As an example, determining that the CPU and DPU of the server can be powered off based on the notification information can be that the cloud management system PIM sends the notification information to the Host-BMC through an out-of-band host power-off instruction to determine that the CPU and DPU of the server can be powered off.

[0102] In one embodiment, the method further comprises:

[0103] Receiving notification information sent by the BMC of the server;

[0104] Based on the notification information, it is determined that the CPU and DPU of the server have been powered off.

[0105] In the embodiment of the present application, the notification information can be determined according to the specific situation and is not limited here. As an example, the notification information can be sent through out-of-band notification; for example, Host-BMC notifies the cloud management system through out-of-band that the PIM host power-off has been completed.

[0106] Accordingly, the embodiment of the present application also provides a power-off protection method, such as Figure 6 As shown, Figure 6 This is a flow chart of another power-off protection method according to an embodiment of the present application, which is applied to a designated DPU server managed by a cloud management platform, including:

[0107] Step 601: Receive a second instruction sent by the VIM of the cloud management platform.

[0108] Step 602: Start the DPU OS power-off protection program based on the second instruction.

[0109] Step 603: When the DPU OS starts the power-off protection program and successfully runs the power-off protection program, first information is sent to the VIM; the first information is used to notify the VIM that the DPU OS has completed the power-off preparation.

[0110] It should be noted that the VIM can be determined according to actual conditions and is not limited here. As an example, the VIM can be VIM module A of the cloud management platform.

[0111] In step 601, the second instruction may be determined according to specific circumstances, which is not limited here. As an example, the second instruction may be indicated by a command. The second instruction may be sent via an in-band network between the cloud management platform and the server.

[0112] In actual applications, the VIM module of the cloud management system notifies the DPU OS module in-band to start the power-off protection program.

[0113] In step 602, the specific startup process of starting the DPU OS power-off protection program based on the second instruction can be determined according to the specific situation, and is not limited here. As an example, the cloud management system VIM module starts the power-off protection program by notifying the DPUOS module in-band.

[0114] In step 603, the first information is used to notify the VIM that the OS has completed the power-off preparation, which can be understood as the VIM notifying the cloud management system PIM that the power-off preparation has been completed; wherein, the first information can be determined according to the specific situation, and is not limited here. As an example, the first information can be sent through a notification. The first information can be sent through the in-band network between the cloud management platform and the server.

[0115] In actual applications, the VIM module of the cloud management system notifies the DPU OS module in-band to start the power-off protection program. After the DPU OS completes the power-off protection program, it notifies the VIM module of the cloud management system in-band that the power-off preparation is complete.

[0116] For ease of understanding, the power-off protection method in this application example is specifically a DPU power-off protection method based on the cloud management system. The cloud management system (including VIM, PIM) is linked with the Host-BMC and DPU OS to complete the technical solution of elegant power-off of the DPU bare metal server.

[0117] A power-off protection function module (hereinafter referred to as the module) is added to the VIM, PIM, and DPU OS. The cloud management system VIM module notifies the DPU OS module in-band to prepare for power-off. After receiving the power-off protection start message, the cloud management system PIM notifies the Host-BMC to complete the host power-off. The process is as follows Figure 7 As shown, Figure 7 This is a flowchart of gracefully powering off the DPU of a bare metal server with non-independent power supply according to an embodiment of the present application.

[0118] (1) The cloud management system PIM module notifies the cloud management system VIM module to prepare for power off;

[0119] (2) The VIM module of the cloud management system notifies the DPU OS module in-band to start the power-off protection program;

[0120] (3) The DPU OS completes the power-off protection program and notifies the cloud management system VIM module in-band that power-off preparations have been completed;

[0121] (4) The cloud management system VIM module notifies the cloud management system PIM module that power-off preparations have been completed;

[0122] (5) The cloud management system PIM sends a host power-off command to the Host-BMC out-of-band;

[0123] (6) Host-BMC notifies Host-CPU to power off. Host-OS receives the shutdown command and closes applications and drivers.

[0124] (7) Power off the host-CPU, DPU and other equipment;

[0125] (8) Host-BMC notifies the cloud management system PIM out-of-band that the host power-off is complete.

[0126] This application provides a DPU OS power-off notification mechanism to avoid passive power-off of the DPU OS.

[0127] In this application, the cloud management system completes the power-off management of the bare metal server through in-band and out-of-band cooperation, and the management capability is moved up to avoid the risk of program or data damage in the DPU caused by passive power-off due to the introduction of non-independent power supply DPU.

[0128] In order to implement the method of the embodiment of the present application, the embodiment of the present application also provides a power-off protection device, which is arranged on the VIM of the cloud management platform, such as Figure 8 As shown, Figure 8 This is a schematic diagram of the structure of a power-off protection device according to an embodiment of the present application; the device 800 includes:

[0129] The first receiving unit 801 is used to receive a first instruction sent by a physical infrastructure manager PIM of the cloud management platform; the first instruction is used to notify the VIM to power off a server with a data processing unit DPU managed by the cloud management platform;

[0130] A first sending unit 802 is used to send a second instruction to the operating system OS corresponding to the DPU with non-independent power supply based on the first instruction; the second instruction is used to notify the OS to start a power-off protection program;

[0131] The first receiving unit 801 is further configured to receive first information sent by the OS when the OS starts the power-off protection program and successfully runs the power-off protection program; the first information is used to notify the VIM that the OS has completed the power-off preparation;

[0132] The first sending unit 802 is also used to send second information to the PIM based on the first information; the second information is used by the PIM to send a third instruction to the board management controller BMC of the server; the third instruction is used to control the central processing unit CPU of the server and the DPU to power off.

[0133] In one embodiment, the second instruction and the first information are both sent through the in-band network between the cloud management platform and the server; the second information includes notification information; the notification information is used to notify the PIM that the CPU and DPU of the server can be powered off.

[0134] In order to implement the method on the PIM side of the embodiment of the present application, the embodiment of the present application also provides a power-off protection device, which is set on the PIM of the cloud management platform, such as Fig. 9 As shown, Fig. 9 This is a schematic diagram of the structure of another power-off protection device according to an embodiment of the present application. The device 900 includes:

[0135] The second sending unit 901 is used to send a first instruction to the virtual infrastructure manager VIM of the cloud management platform; the first instruction carries a first parameter; the first instruction is used to notify the VIM to power off the server corresponding to the data processing unit DPU managed by the cloud management platform;

[0136] A second receiving unit 902 is configured to receive second information sent by the VIM when the DPU OS has completed power-off preparation;

[0137] The second sending unit 901 is further used to send a third instruction to the board management controller BMC of the server based on the second information; the third instruction is used to control the central processing unit CPU of the server and the DPU to power off.

[0138] In one embodiment, the second sending unit 901 is further used to send a third instruction to the board management controller BMC of the cloud management platform based on the second information; the third instruction is used to control the central processing unit CPU of the server and the DPU to power off.

[0139] In one embodiment, the third instruction is sent through an out-of-band network between the cloud management platform and the server; the second information includes notification information; the device 900 also includes a determination unit for determining whether the CPU and DPU of the server can be powered off based on the notification information.

[0140] In one embodiment, the second receiving unit 902 is further configured to receive notification information sent by the BMC of the server;

[0141] The determining unit is further configured to determine, based on the notification information, that powering off of the CPU and the DPU of the server has been completed.

[0142] In order to implement the method on the DPU OS side of the embodiment of the present application, the embodiment of the present application also provides a power-off protection device, which is arranged on the data processing unit DPU OS, such as Fig.10 As shown, Fig.10 This is a structural diagram of another power-off protection device according to an embodiment of the present application. The device 1000 includes:

[0143] The third receiving unit 1001 is used to receive a second instruction sent by the virtual infrastructure manager VIM of the cloud management platform;

[0144] A starting unit 1002, configured to start a power-off protection program based on the second instruction;

[0145] The third sending unit 1003 is used to send first information to the VIM when the DPU OS starts the power-off protection program and successfully runs the power-off protection program; the first information is used to notify the VIM that the DPU OS has completed the power-off preparation.

[0146] It should be noted that: the power-off protection device provided in the above embodiment only uses the division of the above program modules as an example when performing power-off protection. In actual applications, the above processing can be assigned to different program modules as needed, that is, the internal structure of the device is divided into different program modules to complete all or part of the processing described above. In addition, the power-off protection device provided in the above embodiment and the power-off protection method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0147] Based on the hardware implementation of the above-mentioned program module, an embodiment of the present application also provides a VIM for a cloud management platform, comprising: a first processor and a first memory for storing a computer program that can be run on the processor, wherein the first processor is used to implement the steps in the power-off protection method provided in the above-mentioned embodiment when running the computer program.

[0148] Based on the hardware implementation of the above-mentioned program module, an embodiment of the present application also provides a PIM of a cloud management platform, including: a second processor and a second memory for storing a computer program that can be run on the processor, wherein the second processor is used to implement the steps in the power-off protection method provided in the above-mentioned embodiment when running the computer program.

[0149] Based on the hardware implementation of the above-mentioned program module, an embodiment of the present application also provides a DPU OS of a cloud management platform, including: a third processor and a third memory for storing a computer program that can be run on the processor, wherein the third processor is used to implement the steps in the power-off protection method provided in the above-mentioned embodiment when running the computer program.

[0150] Correspondingly, an embodiment of the present application provides a computer program product, including a computer program, on which a computer program is stored, and when the computer program is executed by a processor, the steps in the power-off protection method provided in the above embodiment are implemented.

[0151] Correspondingly, an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps in the power-off protection method provided in the above embodiment are implemented.

[0152] It should be noted here that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium and device embodiments of this application, please refer to the description of the method embodiments of this application for understanding.

[0153] It should be noted that Fig.11 Schematic diagram of the structure of VIM in the embodiment of the present application, as shown in Fig.11 As shown, the VIM1100 includes: a first processor 1101 and a first memory 1103 . Optionally, the VIM1100 may also include a first communication interface 1102 .

[0154] It can be understood that the first memory 1103 can be a volatile memory or a non-volatile memory, and can also include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a ferromagnetic random access memory, a flash memory, a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM); the magnetic surface memory can be a disk memory or a tape memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM, SyncLink Dynamic Random Access Memory), and direct RAM bus random access memory (DRRAM, Direct Rambus Random Access Memory).The first memory 1103 described in the embodiments of the present application is intended to include but is not limited to these and any other suitable types of memories.

[0155] The method disclosed in the above embodiment of the present application can be applied to the first processor 1101, or implemented by the first processor 1101. The first processor 1101 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the first processor 1101 or by instructions in the form of software. The above-mentioned first processor 1101 may be a general-purpose processor, a digital signal processor (DSP, DigitalSignal Processor), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The first processor 1101 can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor may be a microprocessor or any conventional processor, etc. In combination with the steps of the method disclosed in the embodiment of the present application, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module may be located in a storage medium, which is located in the first memory 1103, and the first processor 1101 reads the information in the first memory 1103 and completes the steps of the above method in combination with its hardware.

[0156] It should be noted that Fig.12 is a schematic diagram of the structure of the terminal in the embodiment of the present application, such as Fig.12 As shown, the PIM 1200 includes: a second processor 1201 and a second memory 1203 . Optionally, the PIM 1200 may also include a second communication interface 1202 .

[0157] It can be understood that the second memory 1203 can be a volatile memory or a non-volatile memory, and can also include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM); the magnetic surface memory can be a disk memory or a tape memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM, SyncLink Dynamic Random Access Memory), and direct RAM bus random access memory (DRRAM, Direct Rambus Random Access Memory).The second memory 1203 described in the embodiments of the present application is intended to include but is not limited to these and any other suitable types of memories.

[0158] The method disclosed in the above embodiment of the present application can be applied to the second processor 1201, or implemented by the second processor 1201. The second processor 1201 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware or software instructions in the second processor 1201. The above-mentioned second processor 1201 may be a general-purpose processor, a digital signal processor (DSP, DigitalSignal Processor), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The second processor 1201 can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor may be a microprocessor or any conventional processor, etc. In combination with the steps of the method disclosed in the embodiment of the present application, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module may be located in a storage medium, which is located in the second memory 1203, and the second processor 1201 reads the information in the second memory 1203, and completes the steps of the above method in combination with its hardware.

[0159] It should be noted that Fig.13 Schematic diagram of the structure of the DPU OS in the embodiment of the present application. Fig.13 As shown, the DPU OS 1300 includes: a third processor 1301 and a third memory 1303 . Optionally, the DPU OS 1300 may further include a third communication interface 1302 .

[0160] It can be understood that the third memory 1303 can be a volatile memory or a non-volatile memory, and can also include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM); the magnetic surface memory can be a disk memory or a tape memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM, SyncLink Dynamic Random Access Memory), and direct RAM bus random access memory (DRRAM, Direct Rambus Random Access Memory).The third memory 1303 described in the embodiments of the present application is intended to include but is not limited to these and any other suitable types of memories.

[0161] The method disclosed in the above embodiment of the present application can be applied to the third processor 1301, or implemented by the third processor 1301. The third processor 1301 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the third processor 1301. The above third processor 1301 may be a general processor, a digital signal processor (DSP, DigitalSignal Processor), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The third processor 1301 can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application. The general processor may be a microprocessor or any conventional processor, etc. In combination with the steps of the method disclosed in the embodiment of the present application, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module may be located in a storage medium, which is located in the third memory 1303, and the third processor 1301 reads the information in the third memory 1303, and completes the steps of the above method in combination with its hardware.

[0162] In order to implement the method provided in the embodiment of the present application, the embodiment of the present application also provides a power-off protection system, such as Fig.14 As shown, Fig.14 This is a schematic diagram of the structure of the power-off protection system according to an embodiment of the present application. The system includes: VIM1401, PIM1402, and DPU OS1403.

[0163] Here, it should be noted that the specific processing procedures of VIM1401, PIM1402, and DPU OS1403 have been described in detail above and will not be repeated here.

[0164] In an exemplary embodiment, the device may be implemented by one or more application specific integrated circuits (ASIC), DSP, programmable logic device (PLD), complex programmable logic device (CPLD), field programmable gate array (FPGA), general processor, controller, microcontroller (MCU), microprocessor, or other electronic components to execute the aforementioned method.

[0165] It should be understood that "one embodiment" or "an embodiment" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application. The above-mentioned sequence numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments.

[0166] It should be noted that, in this application, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0167] The methods disclosed in several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.

[0168] The features disclosed in several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.

[0169] The features disclosed in several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.

[0170] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0171] It should be noted that: "first", "second", etc. are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0172] In addition, the technical solutions described in the embodiments of the present application can be combined arbitrarily without conflict.

[0173] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application.

Claims

1. A power-off protection method, It is characterized in that The virtual infrastructure manager VIM used in the cloud management platform includes: Receive a first instruction sent by a physical infrastructure manager PIM of the cloud management platform; the first instruction is used to notify the VIM to power off a designated server with a data processing unit DPU managed by the cloud management platform; Sending a second instruction to the operating system OS corresponding to the DPU with non-independent power supply based on the first instruction; the second instruction is used to notify the OS to start a power-off protection program; When the OS starts the power-off protection program and successfully runs the power-off protection program, receiving first information sent by the OS; the first information is used to notify the VIM that the OS has completed the power-off preparation; Sending second information to the PIM based on the first information; the second information is used by the PIM to send a third instruction to the board management controller BMC of the server; the third instruction is used to control the central processing unit CPU of the server and the DPU to power off.

2. The method according to claim 1, It is characterized in that The second instruction and the first information are both sent through the in-band network between the cloud management platform and the server; the second information includes notification information; the notification information is used to notify the PIM that the CPU and DPU of the server can be powered off.

3. A power-off protection method, It is characterized in that Physical Infrastructure Manager (PIM) for cloud management platforms, including: Sending a first instruction to a virtual infrastructure manager VIM of the cloud management platform, wherein the first instruction is used to notify the VIM to power off a designated server with a data processing unit DPU managed by the cloud management platform; When the DPU has completed power-off preparation, receiving second information sent by the VIM; A third instruction is sent to a board management controller BMC of the server based on the second information; the third instruction is used to control the central processing unit CPU of the server and the DPU to power off.

4. The method according to claim 3, It is characterized in that The method further comprises: A third instruction is sent to a board management controller BMC of the server based on the second information; the third instruction is used to control the central processing unit CPU of the server and the DPU to power off.

5. The method according to claim 4, It is characterized in that The third instruction is sent through the out-of-band network between the cloud management platform and the server; the second information includes notification information; and the method further includes: Based on the notification information, it is determined that the CPU and DPU of the server can be powered off.

6. The method according to claim 3, It is characterized in that The method further comprises: Receiving notification information sent by the BMC of the server; Based on the notification information, it is determined that the CPU and DPU of the server have been powered off.

7. A power-off protection method, It is characterized in that DPU OS used in designated servers managed by the cloud management platform, including: Receiving a second instruction sent by a virtual infrastructure manager VIM of the cloud management platform; Starting the DPU OS power-off protection program based on the second instruction; When the DPU OS starts the power-off protection program and successfully runs the power-off protection program, first information is sent to the VIM; the first information is used to notify the VIM that the DPU OS has completed the power-off preparation.

8. A power-off protection device, It is characterized in that Set up on the virtual infrastructure manager VIM of the cloud management platform, including: A first receiving unit is used to receive a first instruction sent by a physical infrastructure manager PIM of the cloud management platform; the first instruction is used to notify the VIM to power off a server with a data processing unit DPU managed by the cloud management platform; A first sending unit is used to send a second instruction to the operating system OS corresponding to the DPU with non-independent power supply based on the first instruction; the second instruction is used to notify the OS to start a power-off protection program; The first receiving unit is further used to receive first information sent by the OS when the OS starts the power-off protection program and successfully runs the power-off protection program; the first information is used to notify the VIM that the OS has completed the power-off preparation; The first sending unit is also used to send second information to the PIM based on the first information; the second information is used by the PIM to send a third instruction to the board management controller BMC of the server; the third instruction is used to control the central processing unit CPU of the server and the DPU to power off.

9. A power-off protection device, It is characterized in that Set up on the physical infrastructure manager PIM of the cloud management platform, including: A second sending unit is used to send a first instruction to a virtual infrastructure manager VIM of the cloud management platform; the first instruction carries a first parameter; the first instruction is used to notify the VIM to power off a server corresponding to a data processing unit DPU managed by the cloud management platform; A second receiving unit, configured to receive second information sent by the VIM when the DPU OS has completed power-off preparation; The second sending unit is further used to send a third instruction to the board management controller BMC of the server based on the second information; the third instruction is used to control the central processing unit CPU of the server and the DPU to power off.

10. A power-off protection device, It is characterized in that Set on the data processing unit DPU OS, including: A third receiving unit, configured to receive a second instruction sent by a virtual infrastructure manager VIM of the cloud management platform; A starting unit, used for starting a power-off protection program based on the second instruction; The third sending unit is used to send first information to the VIM when the DPU OS starts the power-off protection program and successfully runs the power-off protection program; the first information is used to notify the VIM that the DPU OS has completed the power-off preparation.

11. A virtual infrastructure manager VIM for a cloud management platform, It is characterized in that include: a first processor and a first memory for storing a computer program executable on the processor, Wherein, when the first processor is used to run the computer program, the steps of the method described in any one of claims 1 to 2 are executed.

12. A physical infrastructure manager PIM for a cloud management platform, It is characterized in that include: a second processor and a second memory for storing a computer program executable on the processor, Wherein, when the second processor is used to run the computer program, the steps of the method described in any one of claims 3 to 6 are executed.

13. A data processing unit DPU OS of a cloud management platform, It is characterized in that include: a third processor and a third memory for storing a computer program executable on the processor, Wherein, the third processor is used to execute the steps of the method according to claim 7 when running the computer program.

14. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, it implements the steps of the method described in any one of claims 1 to 2, or implements the steps of the method described in any one of claims 3 to 6, or implements the steps of the method described in claim 7.

15. A storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, it implements the steps of the method described in any one of claims 1 to 2, or implements the steps of the method described in any one of claims 3 to 6, or implements the steps of the method described in claim 7.

Citation Information

Patent Citations

  • Virtual configuration management method and device based on DPU, equipment and medium

    CN116257320A

  • Method for setting server DPU network card to enter FS-5 state

    CN117075708A

  • Synchronized shutdown of host operating system and data processing unit operating system

    US20230315485A1

  • Data processing unit integration

    WO2023141164A1