A method and system for realizing dual backup and self-recovery of server FRU information

By implementing double backup and self-recovery mechanisms for FRU information in the server, using the EEPROM module to store FRU information and performing regular comparisons and updates in the BMC module, the problem of FRU information loss after the server is powered off is solved and the integrity of the information is ensured. and availability, improving server maintenance and operational stability.

CN115114094BActive Publication Date: 2024-10-22INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202210764270.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-30
Publication Date
2024-10-22
Estimated Expiration
2042-06-30

AI Technical Summary

Technical Problem

FRU information is easily lost when existing servers are powered off, causing users to be unable to obtain server status and affecting maintenance and repair work.

Method used

The BMC module reads the FRU information when powering up and writes it into the memory. After integrity verification, the correct information is written into the EEPROM module to ensure that the information is not lost and is regularly compared and updated in the EEPROM when the server is running. FRU information to achieve double backup and self-recovery of information.

Benefits of technology

Ensure the accuracy and continuity of FRU information, avoid information loss caused by power outages, improve server maintenance and operational stability, and facilitate user inspection and maintenance work.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115114094B_ABST
    Figure CN115114094B_ABST
Patent Text Reader

Abstract

The present invention provides a method and system for realizing dual backup and self-recovery of FRU information of a server. After the BMC module is powered on, the FRU information is read and written into the memory; the integrity check is performed on the FRU information; the integrity check includes: whether the FRU information contains key information, whether the data check bit of the FRU information is correct, whether the length of the FRU information is correct, and whether the FRU information is changed; when the integrity check is satisfied, the FRU information is written into the EEPROM module. The present invention can perform integrity check on the FRU information to ensure the accuracy and completeness of the FRU information, and also configure a dual backup mechanism for the FRU information. If the FRU information stored in the memory is lost after the memory is powered off, the FRU information stored in the EEPROM module is retrieved to ensure the continuous use of the FRU information, and the FRU information can also be self-recovered to avoid affecting the normal operation of the server.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of server FRU information, and in particular to a method and system for realizing double backup and self-recovery of server FRU information. Background Art

[0002] With the development of the Internet, the use of servers is also expanding. During the operation of the server, the FRU information (Field Replaceable Unit) can be recorded. When a server fails, users can perform on-site repairs and replace corresponding parts.

[0003] In the server, BMC is also an important component. BMC (Baseboard Management Controller) is a control unit deployed in the server with independent power supply and independent I / O interface, which can control the server's sensors, hard disks, networks, graphics cards and other peripherals. Regardless of whether the server has an operating system installed or is turned on, as long as the baseboard management controller is powered on, BMC can monitor the server's operating status.

[0004] Currently, FRU information is usually stored in memory. When the system loses power, it is easy to cause memory information loss, resulting in loss of saved FRU information. If the user needs to extract the FRU information in the memory, it will be lost after the power failure, causing the user to be unable to find the FRU information and thus unable to understand the status of the server. When the server fails, it is impossible to find the problem information. Summary of the invention

[0005] In order to overcome the above-mentioned deficiencies in the prior art, the present invention provides a method for realizing dual backup and self-recovery of server FRU information, the method comprising:

[0006] After the BMC module is powered on, it reads the FRU information and writes the FRU information into the memory;

[0007] Perform integrity check on FRU information;

[0008] The integrity check includes: whether the FRU information contains key information, whether the data check bit of the FRU information is correct, whether the length of the FRU information is correct, and whether the FRU information has been changed;

[0009] When the FRU information includes key information, the data check bit of the FRU is correct, the length of the FRU information is correct, and the FRU information is not changed, the FRU information is written into the EEPROM module.

[0010] It should be further noted that the FRU information stored in the memory is lost when the memory loses power;

[0011] The FRU information stored in the EEPROM module will not be lost when power is off.

[0012] It should be further explained that when the server is in normal operation, the BMC module reads the FRU information in the memory;

[0013] When the server loses power, the memory FRU information is lost;

[0014] The process by which the BMC module reads FRU information from the EEPROM module and writes it to the FRU.

[0015] It should be further explained that the BMC module determines whether to receive new FRU information every time it runs for a preset period of time;

[0016] If yes, the received new FRU information is compared with the FRU information stored in the EEPROM module to determine whether they are consistent;

[0017] If they are consistent, the FRU information stored in the EEPROM module will not be updated;

[0018] If they are inconsistent, the new FRU information is checked for integrity;

[0019] If the integrity check passes, the FRU information stored in the EEPROM module is updated.

[0020] It should be further explained that the BMC module retrieves the FRU information to be updated;

[0021] Determine the update item corresponding to the FRU information to be updated;

[0022] The BMC module maps the update items corresponding to the FRU information to the update items of the FRU information stored in the EEPROM module;

[0023] Perform a one-to-one comparison and update the non-updated items stored in the EEPROM module to form updated FRU information.

[0024] When the update items of the FRU information stored in the EEPROM module do not include the update items corresponding to the updated FRU information, the update items corresponding to the updated FRU information are added to the EEPROM module, and the adding position matches the update items corresponding to the updated FRU information.

[0025] It should be further explained that after receiving the FRU modification information, the BMC module performs an integrity check on the FRU modification information;

[0026] After verification, the FRU modification information is stored in the internal and EEPROM modules respectively;

[0027] The BMC module modifies the BIOS option value according to the FRU modification information;

[0028] Configure the BIOS option value as modified data and store it in the EEPROM module.

[0029] The present invention also provides a server FRU information dual backup and self-recovery implementation system, the system includes: a BMC module, a verification module, a memory and an EEPROM module;

[0030] After the BMC module is powered on, the FRU information is read and written into the memory; the verification module performs integrity verification on the FRU information; when the FRU information contains key information, the FRU data check bit is correct, the length of the FRU information is correct, and the FRU information has not been changed, the FRU information is written into the EEPROM module.

[0031] It should be further explained that it also includes: a comparison module and an update module;

[0032] The BMC module is also used to determine whether to receive new FRU information every time it runs for a preset period of time;

[0033] If yes, the comparison module will compare the received new FRU information with the FRU information stored in the EEPROM module to determine whether they are consistent;

[0034] If they are consistent, the FRU information stored in the EEPROM module will not be updated;

[0035] If they are inconsistent, the verification module performs integrity verification on the new FRU information;

[0036] If the integrity check passes, the update module updates the FRU information stored in the EEPROM module.

[0037] It should be further explained that it also includes: a FRU information configuration module;

[0038] The FRU information configuration module configures the FRU information stored in the EEPROM module into FRU items;

[0039] The BMC module retrieves the FRU information to be updated;

[0040] Determine the update item corresponding to the FRU information to be updated;

[0041] The BMC module maps the update item corresponding to the FRU information to the FRU item of the FRU information stored in the EEPROM module;

[0042] Perform a one-to-one comparison and update the non-updated items stored in the EEPROM module to form updated FRU information.

[0043] It can be seen from the above technical solutions that the present invention has the following advantages:

[0044] The present invention can perform integrity check on FRU information to ensure the accuracy and completeness of FRU information, and also configure a double backup mechanism for FRU information. For example, if the FRU information stored in the memory is lost after the memory is powered off, the FRU information stored in the EEPROM module is retrieved to ensure continuous use of the FRU information. The FRU information can also be self-recovered to avoid affecting the normal operation of the server.

[0045] The server FRU information dual backup and self-recovery implementation method of the present invention utilizes BIOS option values ​​as indication information of FRU information and modifies the FRU information, thereby using BIOS to modify the FRU information of BMC, so that maintenance personnel can modify the FRU information of the server through BIOS, which is convenient for server inspection and maintenance. After modifying the FRU information of the BMC module, the present invention can also modify the DMI information in the BIOS according to the modified FRU information after the BIOS is restarted, so as to ensure that the server is started and runs in the latest state. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the technical solution of the present invention, the accompanying drawings required for use in the description will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.

[0047] Figure 1 Flowchart of the method for implementing dual backup and self-recovery of server FRU information;

[0048] Figure 2 A system diagram for implementing dual backup and self-recovery of server FRU information. DETAILED DESCRIPTION

[0049] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0050] The present invention provides a method for realizing dual backup and self-recovery of server FRU information, wherein the FRU information is used to record system configuration information, such as product serial number, etc. Each time the server is powered on, the BMC module obtains the FRU information and synchronizes it to the DMI information.

[0051] The present invention aims to solve the problem that the current server cannot modify the FRU information of the BMC in the BIOS. Once the server loses power, the FRU information in the memory is lost, so that the user cannot obtain the FRU information, which brings troubles to the inspection, maintenance and data search of the server.

[0052] Specifically, if Figure 1 As shown, the method includes:

[0053] S101, after the BMC module is powered on, reads the FRU information and writes the FRU information into the memory;

[0054] S102, performing integrity check on FRU information;

[0055] The integrity check includes: whether the FRU information contains key information, whether the data check bit of the FRU information is correct, whether the length of the FRU information is correct, and whether the FRU information has been changed;

[0056] S103 . When the FRU information contains key information, the data check bit of the FRU is correct, the length of the FRU information is correct, and the FRU information is not changed, the FRU information is written into the EEPROM module.

[0057] In the server FRU information double backup and self-recovery implementation method involved in the present invention, in order to ensure that the FRU information is not lost when the server loses power, the FRU information stored in the memory is lost after the memory loses power; while the FRU information stored in the EEPROM module is not lost when the power is lost.

[0058] Among them, after the BMC module is powered on, the verified FRU information is stored in the memory and EEPROM module respectively. Since the FRU information in the EEPROM module is not lost when the power is off, the subsequent use of the FRU information can be guaranteed, which solves the problem that the current server cannot modify the FRU information of the BMC in the BIOS. Once the server is powered off, the FRU information in the memory is lost after the power is off, making it impossible for users to obtain the FRU information.

[0059] Further, as a refinement and extension of the specific implementation of the above embodiment, in order to fully illustrate the specific implementation process in this embodiment, the method includes:

[0060] When the server is operating normally, the BMC module reads the FRU information in the memory;

[0061] When the server loses power, the memory FRU information is lost;

[0062] The process by which the BMC module reads FRU information from the EEPROM module and writes it to the FRU.

[0063] Further, as a refinement and expansion of the specific implementation of the above embodiment, in order to fully illustrate the specific implementation process in this embodiment, the method includes: the BMC module runs for a preset time period each time, determining whether to receive new FRU information;

[0064] If yes, the received new FRU information is compared with the FRU information stored in the EEPROM module to determine whether they are consistent;

[0065] If they are consistent, the FRU information stored in the EEPROM module will not be updated;

[0066] If they are inconsistent, the new FRU information is checked for integrity;

[0067] If the integrity check passes, the FRU information stored in the EEPROM module is updated.

[0068] That is to say, the FRU information can be updated irregularly to meet the use requirements of the server. It can be updated manually by the user, or the FRU information can be updated through communication with the server through the terminal to meet the use requirements of the server.

[0069] For the update method of the present invention, the BMC module retrieves the FRU information to be updated;

[0070] Determine the update item corresponding to the FRU information to be updated;

[0071] The BMC module maps the update items corresponding to the FRU information to the update items of the FRU information stored in the EEPROM module;

[0072] Perform a one-to-one comparison and update the non-updated items stored in the EEPROM module to form updated FRU information.

[0073] That is to say, for the update of FRU information, part of the content may be updated instead of updating all the content of the FRU information. In this way, the update efficiency is improved and the update is targeted.

[0074] When the update items of the FRU information stored in the EEPROM module do not include the update items corresponding to the updated FRU information, the update items corresponding to the updated FRU information are added to the EEPROM module, and the adding position matches the update items corresponding to the updated FRU information.

[0075] Specifically, when the BMC module stores the FRU information, it can sort out the FRU information structure, that is, construct the FRU information items and form an information table corresponding to the FRU information items. When the FRU information needs to be updated, the update items corresponding to the FRU information are matched to the update items of the FRU information stored in the EEPROM module for updating. Of course, the previous update items can be replaced or deleted. After the update, it is saved in the EEPROM module.

[0076] It should be noted that the update of FRU information includes deletion, modification, and addition.

[0077] It can be seen that the embodiment of the present invention can update the FRU information item by item according to the server operation needs, which facilitates the user's maintenance of the server operation and improves the efficiency of maintaining the server.

[0078] Further, as a refinement and extension of the specific implementation of the above embodiment, in order to fully illustrate the specific implementation process in this embodiment, the method includes:

[0079] After receiving the FRU modification information, the BMC module performs integrity check on the FRU modification information;

[0080] After verification, the FRU modification information is stored in the internal and EEPROM modules respectively;

[0081] The BMC module modifies the BIOS option value according to the FRU modification information;

[0082] Configure the BIOS option value as modified data and store it in the EEPROM module.

[0083] After receiving the FRU information modification instruction, the BMC module modifies the preset BIOS option value according to the FRU information modification instruction. The FRU information modification can be issued through the relevant information provided by the BIOS interface. The BMC module runs the modified FRU information.

[0084] For the modification method of the present invention, FRU information modification can involve relevant information of BIOS value, so that BIOS can directly determine the BIOS option value to be operated according to the FRU information modification instruction. The specific content of the FRU information related information involved in the present invention is not limited and can be set according to the server situation.

[0085] The server FRU information dual backup and self-recovery implementation method of the present invention utilizes BIOS option values ​​as indication information of FRU information and modifies the FRU information, thereby using BIOS to modify the FRU information of BMC, so that maintenance personnel can modify the FRU information of the server through BIOS, which is convenient for server inspection and maintenance. After modifying the FRU information of the BMC module, the present invention can also modify the DMI information in the BIOS according to the modified FRU information after the BIOS is restarted, so as to ensure that the server starts and runs in the latest state.

[0086] like Figure 2 As shown, based on the above method, the present invention also provides a server FRU information dual backup and self-recovery implementation system, the system includes: a BMC module, a verification module, a memory and an EEPROM module;

[0087] After the BMC module is powered on, the FRU information is read and written into the memory; the verification module performs integrity verification on the FRU information; when the FRU information contains key information, the FRU data check bit is correct, the length of the FRU information is correct, and the FRU information has not been changed, the FRU information is written into the EEPROM module.

[0088] The system provided by the present invention further includes: a comparison module and an update module;

[0089] The BMC module is also used to determine whether to receive new FRU information every time it runs for a preset period of time;

[0090] If yes, the comparison module will compare the received new FRU information with the FRU information stored in the EEPROM module to determine whether they are consistent;

[0091] If they are consistent, the FRU information stored in the EEPROM module will not be updated;

[0092] If they are inconsistent, the verification module performs integrity verification on the new FRU information;

[0093] If the integrity check passes, the update module updates the FRU information stored in the EEPROM module.

[0094] The system also includes: a FRU information configuration module;

[0095] The FRU information configuration module configures the FRU information stored in the EEPROM module into FRU items;

[0096] The BMC module retrieves the FRU information to be updated;

[0097] Determine the update item corresponding to the FRU information to be updated;

[0098] The BMC module maps the update item corresponding to the FRU information to the FRU item of the FRU information stored in the EEPROM module;

[0099] Perform a one-to-one comparison and update the non-updated items stored in the EEPROM module to form updated FRU information.

[0100] The system provided by the present invention solves the problem that the current server cannot modify the FRU information of the BMC in the BIOS. Once the server loses power, the FRU information in the memory is lost, making it impossible for users to obtain the FRU information, which brings troubles to the inspection, maintenance and data search of the server. Enhance the security and recoverability of server FRU information and reduce costs; solve the problem of unrepairable server FRU information. Save the factory cost of the server;

[0101] Moreover, the system of the present invention can use software and protocol to verify FRU information. The FRU information of the system has a double backup mechanism.

[0102] Further, as a refinement and expansion of the specific implementation of the above embodiment, in order to fully illustrate the specific implementation process in this embodiment,

[0103] A new process (FRU_Check_Backup) is added to the BMC module, which implements dual backup of FRU information. The process performs integrity check on FRU information. FRU information is dual-backed up.

[0104] The BMC module adds another process (FRU_Self_Recovery) to implement FRU information self-recovery.

[0105] When the FRU_Check_Backup process finds that the verification of FRU information fails, it starts the process of reading the corresponding FRU information from the BMC and writing it back to the FRU; (2) When the server operation and maintenance personnel manually find that the FRU information is abnormal, they send a custom IPMI command to the BMC, and the FRU_Self_Recovery process starts the process of reading the corresponding FRU information from the EEPROM and writing it back to the FRU.

[0106] The units and algorithm steps of each example described in the embodiments disclosed in the server FRU information dual backup and self-recovery implementation method and system provided by the present invention can be implemented by electronic hardware, computer software or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0107] The block diagrams shown in the accompanying drawings of the server FRU information dual backup and self-recovery implementation system provided by the present invention are only functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities can be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0108] The server FRU information dual backup and self-recovery implementation method and system provided by the present invention are combined with the units and algorithm steps of each example described in the embodiments disclosed herein, and can be implemented by electronic hardware, computer software or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0109] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for realizing dual backup and self-recovery of server FRU information, characterized in that: Methods include: After the BMC module is powered on, it reads the FRU information and writes the FRU information into the memory; Perform integrity check on FRU information; The integrity check includes: whether the FRU information contains key information, whether the data check bit of the FRU information is correct, whether the length of the FRU information is correct, and whether the FRU information has been changed; When the FRU information contains key information, the data check bit of the FRU is correct, the length of the FRU information is correct, and the FRU information is not changed, the FRU information is written into the EEPROM module; In the method, the BMC module runs for a preset time period each time to determine whether to receive new FRU information; If yes, the received new FRU information is compared with the FRU information stored in the EEPROM module to determine whether they are consistent; If they are consistent, the FRU information stored in the EEPROM module will not be updated; If they are inconsistent, the new FRU information is checked for integrity; If the integrity check passes, the FRU information stored in the EEPROM module is updated; In the method, the BMC module retrieves the FRU information to be updated; Determine the update item corresponding to the FRU information to be updated; The BMC module maps the update items corresponding to the FRU information to the update items of the FRU information stored in the EEPROM module; Perform one-to-one comparison and update the unupdated items stored in the EEPROM module to form updated FRU information; The method further includes: after the BMC module receives the FRU modification information, performing integrity check on the FRU modification information; After verification, the FRU modification information is stored in the internal and EEPROM modules respectively; The BMC module modifies the BIOS option value according to the FRU modification information; Configure the BIOS option value as modified data and store it in the EEPROM module.

2. The method for realizing dual backup and self-recovery of server FRU information according to claim 1, characterized in that: The FRU information stored in the memory is lost when the memory loses power; The FRU information stored in the EEPROM module will not be lost when power is off.

3. The method for realizing dual backup and self-recovery of server FRU information according to claim 1, characterized in that: When the server is operating normally, the BMC module reads the FRU information in the memory; When the server loses power, the memory FRU information is lost; The process by which the BMC module reads FRU information from the EEPROM module and writes it to the FRU.

4. The method for realizing dual backup and self-recovery of server FRU information according to claim 1, characterized in that: When the update items of the FRU information stored in the EEPROM module do not include the update items corresponding to the updated FRU information, the update items corresponding to the updated FRU information are added to the EEPROM module, and the adding position matches the update items corresponding to the updated FRU information.

5. A server FRU information dual backup and self-recovery implementation system, characterized in that: The system adopts the server FRU information double backup and self-recovery implementation method as described in any one of claims 1 to 4; The system includes: BMC module, verification module, memory and EEPROM module; After the BMC module is powered on, the FRU information is read and written into the memory; the verification module performs integrity verification on the FRU information; when the FRU information contains key information, the FRU data check bit is correct, the length of the FRU information is correct, and the FRU information has not been changed, the FRU information is written into the EEPROM module.

6. The server FRU information dual backup and self-recovery implementation system according to claim 5, characterized in that: Also includes: Compare modules and update modules; The BMC module is also used to determine whether to receive new FRU information every time it runs for a preset period of time; If yes, the comparison module will compare the received new FRU information with the FRU information stored in the EEPROM module to determine whether they are consistent; If they are consistent, the FRU information stored in the EEPROM module will not be updated; If they are inconsistent, the verification module performs integrity verification on the new FRU information; If the integrity check passes, the update module updates the FRU information stored in the EEPROM module.

7. The server FRU information dual backup and self-recovery implementation system according to claim 5, characterized in that: Also includes: FRU information configuration module; The FRU information configuration module configures the FRU information stored in the EEPROM module into FRU items; The BMC module retrieves the FRU information to be updated; Determine the update item corresponding to the FRU information to be updated; The BMC module maps the update item corresponding to the FRU information to the FRU item of the FRU information stored in the EEPROM module; Perform a one-to-one comparison and update the non-updated items stored in the EEPROM module to form updated FRU information.

Citation Information

Cited By

  • FRU information calling, backup and synchronization method, system, equipment and medium

    CN115964220A