Method, device and equipment for sharing dual nonvolatile memories of BMC (Baseboard Management Controller) system and storage medium

By dividing storage areas in the BMC system and synchronizing and sharing data, the problem of low utilization of alternate flash resources in dual flash storage mode is solved, and efficient resource utilization and normal system operation are achieved.

CN119938410AActive Publication Date: 2025-05-06ZIGUANG HENGYUE TECH CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202510413085.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-03
Publication Date
2025-05-06
Estimated Expiration
2045-04-03

AI Technical Summary

Technical Problem

In the existing storage server operation and maintenance system, when the BMC system adopts dual flash storage mode, the resource utilization rate of backup flash is extremely low, resulting in waste of resources.

Method used

By dividing the storage area of ​​the BMC system, including the synchronization area and the shared area, synchronizing the core functional data of the main non-volatile memory and the backup non-volatile memory, and sharing application data and operation data in the shared area, ensuring the safe and reasonable storage of the data.

Benefits of technology

It effectively alleviates the phenomenon of resource waste during the sharing of dual nonvolatile memory in BMC system, improves the resource utilization rate of backup flash, and ensures that the system can be started and run normally when the main nonvolatile memory is damaged.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119938410A_ABST
    Figure CN119938410A_ABST
Patent Text Reader

Abstract

The invention relates to the field of storage server operation and maintenance, and particularly provides a method, a device and equipment for sharing double nonvolatile memories of a BMC system and a storage medium, the method comprises the following steps: dividing a storage area of the management controller BMC system, synchronizing core function data of a main nonvolatile memory and a standby nonvolatile memory, and storing the core function data of the main nonvolatile memory and the standby nonvolatile memory. Application data and running data of the primary nonvolatile memory and the backup nonvolatile memory are shared through a shared region of the storage region. By means of the method, the effect of relieving the phenomenon of resource waste in the process of sharing the double nonvolatile memories of the BMC system can be achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of storage server operation and maintenance, and in particular to a method, apparatus, device and storage medium for sharing dual non-volatile memories of a BMC system. Background Art

[0002] In the existing storage server operation and maintenance system, the BMC (Boredom Management Control) system usually adopts a dual flash (non-volatile memory) storage mode, that is, a one-master and one-backup design. Although this design can provide system redundancy, the backup flash is idle during normal operation.

[0003] In the dual flash solution currently commonly used in the industry, the resource utilization rate of the backup flash is extremely low. When the main flash is running stably, the storage space of the backup flash is completely unused, resulting in a waste of resources.

[0004] Therefore, how to alleviate the phenomenon of resource waste in the process of sharing dual non-volatile memories of the BMC system is a technical problem that needs to be solved. Summary of the invention

[0005] The purpose of the embodiments of the present application is to provide a method for sharing dual non-volatile memories of a BMC system. The technical solution of the embodiments of the present application can alleviate the phenomenon of resource waste in the process of sharing dual non-volatile memories of a BMC system.

[0006] In a first aspect, an embodiment of the present application provides a method for sharing dual non-volatile memories of a BMC system, comprising: dividing a storage area of ​​a management controller BMC system, wherein the storage area comprises a synchronization area and a shared area; synchronizing core function data of a main non-volatile memory and a backup non-volatile memory through the synchronization area of ​​the storage area, wherein the BMC system simultaneously mounts two storage chips of the main non-volatile memory and the backup non-volatile memory, and the core function data comprises running data of the core function of the BMC system; sharing application data and running data of the main non-volatile memory and the backup non-volatile memory through the shared area of ​​the storage area, wherein the application data and running data are multiple applications in the BMC system and running data corresponding to multiple applications.

[0007] In the above embodiments of the present application, by dividing the storage area of ​​the BMC system, the core function data of the two non-volatile memories can be synchronized, and the application data and running data can be shared in the shared area. Through the storage chip hardware design and the above area division method, the security of the shared area data can be guaranteed, and different areas can reasonably store corresponding data, thereby alleviating the phenomenon of resource waste in the process of sharing the dual non-volatile memories of the BMC system.

[0008] In some embodiments, after sharing the application data and running data of the main non-volatile memory and the backup non-volatile memory through the shared area of ​​the storage area, it also includes: when the main non-volatile memory is damaged, starting the BMC system through the backup non-volatile memory, and sharing the application data and running data to the backup non-volatile memory; detecting whether the main non-volatile memory can be recognized; when the main non-volatile memory can be recognized, detecting and initializing the first startup area of ​​the main non-volatile memory, and detecting whether the shared area is readable; when the main non-volatile memory cannot be recognized, issuing a damage warning of the main non-volatile memory.

[0009] In the above-mentioned embodiment of the present application, when the main non-volatile memory is damaged, the BMC system can also be started through the startup area of ​​the backup non-volatile memory through synchronized and shared data to prevent the BMC system from failing to start. When the main non-volatile memory cannot be identified, an early warning will be issued in time to achieve the effect of timely maintenance.

[0010] In some embodiments, the main non-volatile memory includes a first boot area and a first shared area; the backup non-volatile memory includes a second boot area and a second shared area; the shared area includes a first shared area and a second shared area; and the synchronization area includes a first boot area and a second boot area.

[0011] In the above embodiment of the present application, by dividing the above area of ​​the main non-volatile memory, the functional program data and application program data when the BMC is started can be reasonably stored.

[0012] In some embodiments, core function data of a main non-volatile memory and a backup non-volatile memory are synchronized through a synchronization area of ​​a storage area, including: when the main non-volatile memory is damaged, synchronizing the core function data in a first boot area of ​​the main non-volatile memory to a second boot area of ​​the backup non-volatile memory.

[0013] In the above embodiments of the present application, by synchronizing the core function data, it can be ensured that when the main non-volatile memory is damaged, the BMC system can be normally started and the main core functions can be enabled.

[0014] In some embodiments, application data and running data of a main non-volatile memory and a backup non-volatile memory are shared through a shared area of ​​a storage area, including: when the main non-volatile memory is damaged, sharing the application data and running data of the main non-volatile memory to a second shared area of ​​the backup non-volatile memory.

[0015] In the above embodiments of the present application, by sharing application data and operation data, it can be ensured that when the main non-volatile memory is damaged, the BMC system can operate normally and start the main application.

[0016] In some embodiments, the core function data of the main non-volatile memory and the backup non-volatile memory are synchronized through the synchronization area of ​​the storage area, including: synchronizing the core function data stored in the synchronization area when the BMC system was last started to the main non-volatile memory and the backup non-volatile memory of the current BMC system.

[0017] In the above embodiment of the present application, the core function data used when the BMC system was last started can also be synchronized to the main non-volatile memory and the backup non-volatile memory of the current BMC system to quickly obtain the BMC core function data and start related functions.

[0018] In some embodiments, after sharing the application data and running data of the main non-volatile memory and the backup non-volatile memory through the shared area of ​​the storage area, it also includes: when the shared area of ​​the main non-volatile memory is full, storing the remaining application data and running data in the end area of ​​the shared area of ​​the backup non-volatile memory.

[0019] In the above embodiment of the present application, redundant data of the main non-volatile memory can be stored in the end area of ​​the shared area of ​​the backup non-volatile memory, thereby ensuring normal storage of subsequent data in the backup non-volatile memory and achieving the effect of reasonable use of storage space.

[0020] In a second aspect, an embodiment of the present application provides a device for sharing dual non-volatile memories of a BMC system, including: A region division module is used to divide the storage area of ​​the BMC system, wherein the storage area includes a synchronization area and a shared area; A synchronization module, used to synchronize core function data of a main non-volatile memory and a backup non-volatile memory through a synchronization area of ​​a storage area, wherein the BMC system simultaneously mounts two storage chips of the main non-volatile memory and the backup non-volatile memory, and the core function data includes operation data of the core function of the BMC system; The sharing module is used to share the application data and operation data of the main non-volatile memory and the backup non-volatile memory through the shared area of ​​the storage area, wherein the application data and operation data are multiple applications in the BMC system and the operation data corresponding to the multiple applications.

[0021] Optionally, the device further comprises: An early warning module is used for, after the sharing module shares the application data and operation data of the main non-volatile memory and the backup non-volatile memory through the shared area of ​​the storage area, when the main non-volatile memory is damaged, to start the BMC system through the backup non-volatile memory and share the application data and operation data to the backup non-volatile memory; Check whether the main non-volatile memory can be recognized; When the main non-volatile memory can be identified, detecting and initializing the first boot area of ​​the main non-volatile memory, and detecting whether the shared area is readable; When the main non-volatile memory cannot be recognized, a damage warning of the main non-volatile memory is issued.

[0022] Optionally, the main non-volatile memory includes a first boot area and a first shared area; The backup non-volatile memory includes a second boot area and a second shared area; The shared area includes a first shared area and a second shared area; The synchronization area includes a first start-up area and a second start-up area.

[0023] Optionally, the synchronization module is specifically used for: When the main non-volatile memory is damaged, the core function data in the first boot area of ​​the main non-volatile memory is synchronized to the second boot area of ​​the backup non-volatile memory.

[0024] Optionally, the shared module is used to: When the main non-volatile memory is damaged, the application data and the operation data of the main non-volatile memory are shared to the second sharing area of ​​the backup non-volatile memory.

[0025] Optionally, the synchronization module is specifically used for: The core function data stored in the synchronization area when the BMC system was last started is synchronized to the main non-volatile memory and the backup non-volatile memory of the current BMC system.

[0026] Optionally, the device further comprises: A storage module is used for storing the remaining application data and running data in the end area of ​​the shared area of ​​the backup non-volatile memory after the shared module shares the application data and running data of the main non-volatile memory and the backup non-volatile memory through the shared area of ​​the storage area, when the shared area of ​​the main non-volatile memory is full.

[0027] In a third aspect, an embodiment of the present application provides an electronic device, comprising a processor and a memory, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the steps in the method provided in the first aspect are performed.

[0028] In a fourth aspect, an embodiment of the present application provides a readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps in the method provided in the first aspect are performed.

[0029] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or be understood by practicing the embodiments of the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0031] Figure 1 A flowchart of a method for sharing dual non-volatile memories in a BMC system provided by an embodiment of the present application; Figure 2 A schematic diagram of the space usage principle of a BMC system provided in an embodiment of the present application; Figure 3 A flowchart of an implementation method for sharing dual non-volatile memories in a BMC system provided in an embodiment of the present application; Figure 4 A schematic block diagram of a device for sharing dual non-volatile memories of a BMC system provided in an embodiment of the present application; Figure 5 A schematic block diagram of the structure of a device for sharing dual non-volatile memories in a BMC system provided in an embodiment of the present application. DETAILED DESCRIPTION

[0032] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application usually described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.

[0033] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

[0034] First, some terms involved in the embodiments of the present application are explained to facilitate understanding by those skilled in the art.

[0035] ‌The BMC (Baseboard Management Controller) system is a dedicated controller used to monitor and manage servers. It is independent of the server's operating system and hardware and provides an access interface through the IPMI (Intelligent Platform Management Interface) protocol. ‌‌

[0036] Flash (non-volatile memory) space is a non-volatile memory used to store data and programs. It uses electronic methods to read and write, with fast access speed and high reliability.

[0037] The present application is applied to the scenario of storage server application. The specific scenario is to store the data of the BMC system in different areas of the storage server by dividing the storage server, so as to ensure that different flashes in the BMC system can realize the operation of the BMC system and the reasonable storage of resources.

[0038] However, in the existing storage server operation and maintenance system, the BMC (management control) system usually adopts a dual flash (non-volatile memory) storage mode, that is, a one-master and one-backup design. Although this design can provide system redundancy, the backup flash is idle during normal operation. In the dual flash solution currently used in the industry, the resource utilization rate of the backup flash is extremely low. When the main flash is running stably, the storage space of the backup flash is completely unused, resulting in a waste of resources.

[0039] To this end, the present application divides the storage area of ​​the management controller BMC system, wherein the storage area includes a synchronization area and a shared area; through the synchronization area of ​​the storage area, the core function data of the main non-volatile memory and the backup non-volatile memory are synchronized, wherein the BMC system simultaneously mounts two storage chips of the main non-volatile memory and the backup non-volatile memory, and the core function data includes the operation data of the core function of the BMC system; through the shared area of ​​the storage area, the application data and operation data of the main non-volatile memory and the backup non-volatile memory are shared, wherein the application data and operation data are multiple applications in the BMC system and the operation data corresponding to multiple applications. By dividing the storage area of ​​the BMC system, the core function data of the two non-volatile memories can be synchronized, and the application data and operation data can be shared in the shared area. Through the hardware design of the storage chip and the above-mentioned area division method, the security of the shared area data can be guaranteed, and the corresponding data can be reasonably stored in different areas, so as to alleviate the phenomenon of resource waste in the process of sharing the dual non-volatile memories of the BMC system.

[0040] In the embodiment of the present application, the execution subject may be a BMC system dual non-volatile memory sharing device in a BMC system dual non-volatile memory sharing system. In actual applications, the BMC system dual non-volatile memory sharing device may be an electronic device such as a terminal device and a server, which is not limited here.

[0041] Combine the following Figure 1 The method for sharing dual non-volatile memories of a BMC system according to an embodiment of the present application is described in detail.

[0042] Please see Figure 1 , Figure 1 A flowchart of a method for sharing dual non-volatile memories in a BMC system provided by an embodiment of the present application is shown in FIG. Figure 1 The method for sharing dual non-volatile memories of a BMC system includes: Step 110: Divide the storage area of ​​the BMC system.

[0043] The storage area includes a synchronization area and a shared area. The BMC system simultaneously mounts two storage chips for the main non-volatile memory and the backup non-volatile memory. The BMC system chip supports two SPI (serial peripheral) interfaces to ensure that the two storage chips can be powered on and mounted in the system at the same time. The BMC system uses two SPI buses at the same time to ensure that the two storage chips are powered on at the same time, and the two storage chip areas can be seen under the BMC system. During the use of the system, the software is relied on to distinguish and call different flash areas.

[0044] In some embodiments of the present application, the main non-volatile memory includes a first boot area and a first shared area; the backup non-volatile memory includes a second boot area and a second shared area; the shared area includes a first shared area and a second shared area; and the synchronization area includes a first boot area and a second boot area.

[0045] In the above embodiment of the present application, by dividing the above area of ​​the main non-volatile memory, the functional program data and application program data when the BMC is started can be reasonably stored.

[0046] Optionally, the first startup area and the second startup area can constitute a first-level synchronization area, which can be used to start the BMC system. A storage area can also be separately divided as a second-level synchronization area to store some setting programs and program running data of the BMC system. The specific setting program can be set according to requirements.

[0047] Among them, the first-level synchronization area is the BMC system main and backup flash (main non-volatile memory and backup non-volatile memory) startup area. This area does not support modification and is the initial program area for the main and backup flash startup. The second-level synchronization area stores all key function programs and data to ensure that even if one flash is damaged, there is still a complete backup on the other flash to ensure that the core functions of the system are not lost; the startup area of ​​the main and backup flash is separated to ensure that when one flash is damaged, the system can still start normally and run the core functions. The design of the synchronization area ensures the security of key data. Even if one flash is damaged, there is still a complete backup on the other flash.

[0048] Optionally, BMC system space usage can be set by Figure 2 The specific principle schematic diagram shown is described in detail.

[0049] Please see Figure 2 , Figure 2 A schematic diagram of a BMC system space usage principle provided for this application, as shown in the figure, includes: BMC system and internal dual falsh space (main non-volatile memory flash0 and backup non-volatile memory flash1).

[0050] flash0 includes a first boot area, a first synchronization area and a shared area.

[0051] Flash1 includes a second boot area, a second synchronization area and the shared area.

[0052] Among them, both flashes have fixed and identical read-only areas, which are the BMC system startup area and data synchronization area. When the currently running BMC system is abnormal, the BMC system is started from the backup flash without affecting each other, and the newly started BMC reads the data in the BMC data synchronization area, synchronizes part of the status data of the last abnormal BMC or synchronizes the data in the main flash synchronization area, so that some BMC services can continue to run. The first startup area and the second startup area store the Bootloader (startup loader), BMC kernel and root file system.

[0053] The BMC system running program shared area is two flash running program shared areas, which are all areas except the startup area and data synchronization area; this area is actually two partitions, for example, 0 and 1. When the program is running, you can choose to save the data in area 0 or area 1. No matter which of the two areas, some commonly used application data, cache data, or log data can be stored. If the data is lost, it will not affect the re-collection of related data.

[0054] also, Figure 2 The specific BMC system space usage principle shown can be Figure 1 The specific methods and steps shown are implemented and will not be described in detail here.

[0055] Step 120: Synchronize the core function data of the main non-volatile memory and the backup non-volatile memory through the synchronization area of ​​the storage area.

[0056] Among them, the BMC system simultaneously mounts two storage chips of the main non-volatile memory and the backup non-volatile memory. The core function data of the main non-volatile memory and the backup non-volatile memory are the core function data stored in the main non-volatile memory and the backup non-volatile memory, including the operation data of the core function of the BMC system. The core function can be determined according to the BMC system with different functions.

[0057] In some embodiments of the present application, core functional data of a main non-volatile memory and a backup non-volatile memory are synchronized through a synchronization area of ​​a storage area, including: when the main non-volatile memory is damaged, synchronizing the core functional data in a first boot area of ​​the main non-volatile memory to a second boot area of ​​the backup non-volatile memory.

[0058] In the above process, the present application can ensure that the BMC system can be normally started and the main core functions can be enabled when the main non-volatile memory is damaged through synchronization of the core function data.

[0059] Among them, the core function data in the first boot area of ​​the main non-volatile memory can be synchronized to the second boot area of ​​the backup non-volatile memory by directly copying it to the second boot area of ​​the backup non-volatile memory in a copy and backup manner, or the core function data can be backed up to the cloud and the core function data stored in the cloud can be downloaded and stored in the second boot area of ​​the backup non-volatile memory.

[0060] In some embodiments of the present application, the core function data of the main non-volatile memory and the backup non-volatile memory are synchronized through the synchronization area of ​​the storage area, including: synchronizing the core function data stored in the synchronization area when the BMC system was last started to the main non-volatile memory and the backup non-volatile memory of the current BMC system.

[0061] In the above process, the present application can also synchronize the core function data used when the BMC system was last started to the main non-volatile memory and the backup non-volatile memory of the current BMC system, so as to quickly obtain the BMC core function data and start related functions.

[0062] The synchronization may be performed in the form of copy backup.

[0063] Step 130: Share the application data and operation data of the main non-volatile memory and the backup non-volatile memory through the shared area of ​​the storage area.

[0064] The application data and the operation data are multiple application programs in the BMC system and the operation data corresponding to the multiple application programs.

[0065] In some embodiments of the present application, application data and running data of a main non-volatile memory and a backup non-volatile memory are shared through a shared area of ​​a storage area, including: when the main non-volatile memory is damaged, sharing the application data and running data of the main non-volatile memory to a second shared area of ​​the backup non-volatile memory.

[0066] In the above process, the present application can ensure that the BMC system can operate normally and start the main application program when the main non-volatile memory is damaged by sharing the application program data and the operation data.

[0067] The second shared area and the first shared area may be combined into one shared area, and when the main non-volatile memory stores application data and running data, they may be stored in the shared area.

[0068] In some embodiments of the present application, after sharing the application data and running data of the main non-volatile memory and the backup non-volatile memory through the shared area of ​​the storage area, it also includes: when the main non-volatile memory is damaged, starting the BMC system through the backup non-volatile memory, and sharing the application data and running data to the backup non-volatile memory; detecting whether the main non-volatile memory can be recognized; when the main non-volatile memory can be recognized, detecting and initializing the first startup area of ​​the main non-volatile memory, and detecting whether the shared area is readable; when the main non-volatile memory cannot be recognized, issuing a damage warning of the main non-volatile memory.

[0069] In the above process, when the main non-volatile memory is damaged, the present application can also start the BMC system through the startup area of ​​the backup non-volatile memory through synchronized and shared data to prevent the BMC system from failing to start. When the main non-volatile memory cannot be identified, an early warning will be issued in time to achieve the effect of timely maintenance.

[0070] Among them, the early warning process includes information such as damage time and location.

[0071] In some embodiments of the present application, after sharing the application data and running data of the main non-volatile memory and the backup non-volatile memory through the shared area of ​​the storage area, it also includes: when the shared area of ​​the main non-volatile memory is full, storing the remaining application data and running data in the end area of ​​the shared area of ​​the backup non-volatile memory.

[0072] In the above process, the present application can store redundant data of the main non-volatile memory to the end area of ​​the shared area of ​​the backup non-volatile memory, thereby ensuring normal storage of subsequent data of the backup non-volatile memory and achieving the effect of reasonable use of storage space.

[0073] Among them, the BMC system includes multiple applications and corresponding application data. Multiple applications and corresponding application data can be stored in the shared area of ​​the main non-volatile memory first. When the shared area of ​​the main non-volatile memory is full, it is stored in the shared area of ​​the backup non-volatile memory. At the same time, larger logs are fixedly stored in the end area of ​​the shared area of ​​the backup non-volatile memory to ensure the real-time storage of large files; this is used to store applications and data, which significantly improves the utilization rate of storage resources.

[0074] In the above Figure 1 In the process shown, the present application divides the storage area of ​​the management controller BMC system, wherein the storage area includes a synchronization area and a shared area; through the synchronization area of ​​the storage area, the core function data of the main non-volatile memory and the backup non-volatile memory are synchronized, wherein the BMC system simultaneously mounts two storage chips of the main non-volatile memory and the backup non-volatile memory, and the core function data includes the operation data of the core function of the BMC system; through the shared area of ​​the storage area, the application data and operation data of the main non-volatile memory and the backup non-volatile memory are shared, wherein the application data and operation data are multiple applications in the BMC system and the operation data corresponding to multiple applications. By dividing the storage area of ​​the BMC system, the core function data of the two non-volatile memories can be synchronized, and the application data and operation data can be shared in the shared area. Through the hardware design of the storage chip and the above-mentioned area division method, the security of the shared area data can be guaranteed, and the corresponding data can be reasonably stored in different areas, so as to alleviate the phenomenon of resource waste in the process of sharing the dual non-volatile memories of the BMC system.

[0075] Combine the following Figure 3 The implementation method of the BMC system dual non-volatile memory sharing in the embodiment of the present application is described in detail.

[0076] Please see Figure 3 , Figure 3 A flowchart of an implementation method for sharing dual non-volatile memories in a BMC system provided in an embodiment of the present application is shown in FIG. Figure 3 The implementation method of the dual non-volatile memory sharing of the BMC system shown includes: The BMC system includes two falsh spaces (main non-volatile memory flash0 and backup non-volatile memory flash1).

[0077] When flash0 is damaged, BMC starts from flash1 and detects whether flash0 can be recognized. If not, it means that the flash0 chip is damaged and flash0 cannot be loaded. The loading of some programs in flash0 is skipped and BMC is started normally.

[0078] If flash0 can be identified, it means that the flash0 indication boot area of ​​BMC is damaged. Load flash0 to boot and initialize BMC flash0. When BMC boot is completed and the application runs normally, check whether the data in the flash0 shared area is readable and writable.

[0079] When the data in the flash0 shared area can be read and written normally, the BMC system operates normally, and an alarm is given that the BMCflash0 boot area is damaged. Please repair it.

[0080] When the data in the flash0 shared area cannot be read or written normally, uninstall flash0.

[0081] also, Figure 3 The specific methods and steps shown can be found in Figure 1 The method shown will not be described in detail here.

[0082] Previous article Figure 1 , Figure 3 Describes the method of sharing dual non-volatile memories in the BMC system. Figure 4-Figure 5 The invention describes a device for sharing dual non-volatile memories of a BMC system.

[0083] Please refer to Figure 4 , is a schematic block diagram of a BMC system dual non-volatile memory shared device 400 provided in an embodiment of the present application, the device 400 may be a module, program segment or code on an electronic device. The device 400 is similar to the above Figure 1 The method embodiment corresponds to and can be executed Figure 1 The various steps involved in the method embodiment and the specific functions of the device 400 can be found in the description below. To avoid repetition, the detailed description is appropriately omitted here.

[0084] Optionally, the device 400 includes: The area division module 410 is used to divide the storage area of ​​the BMC system, wherein the storage area includes a synchronization area and a shared area; The synchronization module 420 is used to synchronize the core function data of the main non-volatile memory and the backup non-volatile memory through the synchronization area of ​​the storage area, wherein the BMC system simultaneously mounts two storage chips of the main non-volatile memory and the backup non-volatile memory, and the core function data includes the operation data of the core function of the BMC system; The sharing module 430 is used to share the application data and operation data of the main non-volatile memory and the backup non-volatile memory through the shared area of ​​the storage area, wherein the application data and operation data are multiple applications in the BMC system and the operation data corresponding to the multiple applications.

[0085] Optionally, the device further comprises: An early warning module is used for, after the sharing module shares the application data and operation data of the main non-volatile memory and the backup non-volatile memory through the shared area of ​​the storage area, when the main non-volatile memory is damaged, to start the BMC system through the backup non-volatile memory and share the application data and operation data to the backup non-volatile memory; to detect whether the main non-volatile memory can be identified; when the main non-volatile memory can be identified, to detect and initialize the first startup area of ​​the main non-volatile memory, and to detect whether the shared area is readable; when the main non-volatile memory cannot be identified, to issue a damage early warning of the main non-volatile memory.

[0086] Optionally, the main non-volatile memory includes a first boot area and a first shared area; The backup non-volatile memory includes a second boot area and a second shared area; the shared area includes a first shared area and a second shared area; and the synchronization area includes a first boot area and a second boot area.

[0087] Optionally, the synchronization module is specifically used for: When the main non-volatile memory is damaged, the core function data in the first boot area of ​​the main non-volatile memory is synchronized to the second boot area of ​​the backup non-volatile memory.

[0088] Optionally, the shared module is used to: When the main non-volatile memory is damaged, the application data and the operation data of the main non-volatile memory are shared to the second sharing area of ​​the backup non-volatile memory.

[0089] Optionally, the synchronization module is specifically used for: The core function data stored in the synchronization area when the BMC system was last started is synchronized to the main non-volatile memory and the backup non-volatile memory of the current BMC system.

[0090] Optionally, the device further comprises: A storage module is used for storing the remaining application data and running data in the end area of ​​the shared area of ​​the backup non-volatile memory after the shared module shares the application data and running data of the main non-volatile memory and the backup non-volatile memory through the shared area of ​​the storage area, when the shared area of ​​the main non-volatile memory is full.

[0091] Please refer to Figure 5The structure schematic block diagram of a device for sharing dual non-volatile memories of a BMC system provided in an embodiment of the present application, the device may include a memory 510 and a processor 520. Optionally, the device may also include: a communication interface 530 and a communication bus 540. The device is similar to the above Figure 1 The method embodiment corresponds to and can be executed Figure 1 The various steps involved in the method embodiment and the specific functions of the device can be found in the description below.

[0092] Specifically, the memory 510 is used to store computer-readable instructions.

[0093] Processor 520, configured to process readable instructions stored in the memory, capable of executing Figure 1 The steps in the method.

[0094] The communication interface 530 is used for signaling or data communication with other node devices, for example, for communication with a server or a terminal, or for communication with other device nodes, but the embodiments of the present application are not limited thereto.

[0095] The communication bus 540 is used to realize direct connection and communication among the above components.

[0096] The communication interface 530 of the device in the embodiment of the present application is used to communicate with other node devices for signaling or data. The memory 510 can be a high-speed RAM memory or a non-volatile memory, such as at least one disk memory. The memory 510 can also be at least one storage device located away from the aforementioned processor. The memory 510 stores computer-readable instructions. When the computer-readable instructions are executed by the processor 520, the electronic device executes the aforementioned Figure 1 The method process shown. The processor 520 can be used on the device 400 and used to perform the functions in the present application. Exemplarily, the above-mentioned processor 520 can be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, and the embodiments of the present application are not limited thereto.

[0097] The embodiment of the present application also provides a readable storage medium, when the computer program is executed by a processor, Figure 1 The method process in the method embodiment shown is executed by the electronic device.

[0098] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the device described above can refer to the corresponding process in the aforementioned method, and will not be described in detail here.

[0099] In summary, the embodiment of the present application provides a method, device, equipment and storage medium for sharing dual non-volatile memories of a BMC system, the method comprising dividing the storage area of ​​the management controller BMC system, synchronizing the core function data of the main non-volatile memory and the backup non-volatile memory, and sharing the application data and operation data of the main non-volatile memory and the backup non-volatile memory through the shared area of ​​the storage area. This method can achieve the effect of alleviating the phenomenon of resource waste in the process of sharing dual non-volatile memories of the BMC system.

[0100] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0101] In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.

[0102] If the function is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, and other media that can store program codes.

[0103] The above description is only an embodiment of the present application and is not intended to limit the scope of protection of the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application. It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings.

[0104] The above is only a specific implementation 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.

[0105] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" 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, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

Claims

1. A method for sharing dual non-volatile memories in a BMC system, characterized in that: include: Dividing the storage area of ​​the BMC system, wherein the storage area includes a synchronization area and a shared area; Synchronizing the core function data of the main non-volatile memory and the backup non-volatile memory through the synchronization area of ​​the storage area, wherein the BMC system simultaneously mounts two storage chips of the main non-volatile memory and the backup non-volatile memory, and the core function data includes the operation data of the core function of the BMC system; The application data and operation data of the main non-volatile memory and the backup non-volatile memory are shared through the shared area of ​​the storage area, wherein the application data and the operation data are multiple applications in the BMC system and the operation data corresponding to the multiple applications.

2. The method according to claim 1, characterized in that After sharing the application data and the operation data of the main non-volatile memory and the backup non-volatile memory through the shared area of ​​the storage area, the method further includes: When the main non-volatile memory is damaged, starting the BMC system through the backup non-volatile memory, and sharing the application data and the operation data to the backup non-volatile memory; detecting whether the main non-volatile memory is identifiable; When the main non-volatile memory can be identified, detecting and initializing a first boot area of ​​the main non-volatile memory, and detecting whether the shared area is readable; When the main non-volatile memory cannot be identified, a damage warning of the main non-volatile memory is issued.

3. The method according to claim 2, characterized in that The main non-volatile memory includes a first boot area and a first shared area; The backup non-volatile memory includes a second boot area and a second shared area; The shared area includes the first shared area and the second shared area; The synchronization area includes the first startup area and the second startup area.

4. The method according to claim 3, characterized in that The step of synchronizing the core function data of the main non-volatile memory and the backup non-volatile memory through the synchronization area of ​​the storage area comprises: When the main non-volatile memory is damaged, the core function data in the first boot area of ​​the main non-volatile memory is synchronized to the second boot area of ​​the backup non-volatile memory.

5. The method according to claim 4, characterized in that The sharing of the application data and the operation data of the main non-volatile memory and the backup non-volatile memory through the shared area of ​​the storage area comprises: When the main non-volatile memory is damaged, the application data and the running data of the main non-volatile memory are shared to the second sharing area of ​​the backup non-volatile memory.

6. The method according to any one of claims 1 to 5, characterized in that: The step of synchronizing the core function data of the main non-volatile memory and the backup non-volatile memory through the synchronization area of ​​the storage area comprises: The core function data stored in the synchronization area when the BMC system was last started is synchronized to the main non-volatile memory and the backup non-volatile memory of the current BMC system.

7. The method according to any one of claims 1 to 5, characterized in that: After sharing the application data and the operation data of the main non-volatile memory and the backup non-volatile memory through the shared area of ​​the storage area, the method further includes: When the shared area of ​​the primary non-volatile memory is full, the remaining application data and running data are stored in the end area of ​​the shared area of ​​the backup non-volatile memory.

8. A device for sharing dual non-volatile memories in a BMC system, characterized in that: include: A region division module, used for dividing the storage area of ​​the BMC system, wherein the storage area includes a synchronization area and a shared area; A synchronization module, used for synchronizing the core function data of the main non-volatile memory and the backup non-volatile memory through the synchronization area of ​​the storage area, wherein the BMC system simultaneously mounts two storage chips of the main non-volatile memory and the backup non-volatile memory, and the core function data includes the operation data of the core function of the BMC system; A sharing module is used to share the application data and operation data of the main non-volatile memory and the backup non-volatile memory through the shared area of ​​the storage area, wherein the application data and the operation data are multiple applications in the BMC system and the operation data corresponding to the multiple applications.

9. An electronic device, characterized in that: include: A memory and a processor, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the steps in the method according to any one of claims 1 to 7 are executed.

10. A computer-readable storage medium, characterized in that: include: A computer program, when the computer program is run on a computer, causes the computer to execute the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Implementation of an integrity-protected secure storage

    CN101176125A

  • Double-BMC FLASH upgrading method and equipment

    CN110990045A

  • Structure and method for realizing dual-redundancy Flash

    CN113110862A

  • Server firmware upgrading file storage method and system and related components

    CN113704177A

  • Server cluster fault monitoring system, method and device and medium

    CN114189429A