Storage data cross-domain read-write enhancement control method and system based on domestic BMC platform
By dividing data domains in server storage devices and setting permission control policies, ensuring that the main controller is responsible for all read and write operations, the problems of data access conflicts and insufficient security existing in traditional server data synchronization are solved, and a higher level of security is achieved. Data synchronization stability and reliability.
Patent Information
- Application Number
- CN202410956188.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-17
- Publication Date
- 2024-09-24
AI Technical Summary
The traditional server dual-controller architecture has problems such as data access conflicts, low verification efficiency, long synchronization response time, and insufficient data security during the data synchronization process, making it difficult to meet high stability and high availability requirements.
Divide multiple data domains in the storage device, and set the permission control policy so that the standby controller does not have direct access. All read and write operations are performed by the main controller. After receiving the write data command, the main controller performs data block verification and synchronization. Ensure data consistency and integrity.
It effectively improves the stability and reliability of server products in the data synchronization process and meets the industry's needs for high availability and high data security.
Smart Images

Figure CN118689404A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of domestic BMC (Baseboard Management Controller), for example, to a method and system for enhanced control of cross-domain reading and writing of storage data based on a domestic BMC platform. Background Art
[0002] In server products, to ensure system stability and reliability, dual controller architecture is often used to achieve real-time data synchronization. However, during the data synchronization process, various types of data need to be effectively classified and processed, especially key information, such as key data of server operation, which is particularly critical.
[0003] In the traditional method, two controllers access the storage device through the same link. Although device redundancy is achieved, it is easy to cause data access conflicts. For this reason, one controller is usually set as the main controller and the other as the backup controller, and the main controller is responsible for the main data reading, writing and synchronization tasks. However, even so, there are still problems such as low data verification efficiency, long synchronization response time and insufficient data security, which makes it difficult to meet the server industry's high requirements for high stability, no downtime and no data loss.
[0004] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present application, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0005] In order to provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. The summary is not an extensive review, nor is it intended to identify key / critical elements or delineate the scope of protection of these embodiments, but rather serves as a prelude to the detailed description that follows.
[0006] The disclosed embodiments provide a method and system for enhanced control of cross-domain reading and writing of storage data based on a domestic BMC platform, which effectively improves the stability and reliability of server products during data synchronization and meets the industry's requirements for high availability and high data security.
[0007] In some embodiments, the method comprises: Divide a plurality of data domains in the storage device, each data domain is used to store data of different categories, and at least one key data domain is included to store key information of the server; Set the permission control strategy so that the standby controller has no right to directly access and read and write the storage data area, and all read and write operations are performed by the main controller; When the standby controller receives a write data command from an external device, it determines that it is in the standby controller state and forwards the write data command to the main controller; After receiving the write data command from the standby controller, the master controller parses the target data block ID according to the data address in the command, reads the entire content of the data block, then modifies the content of the corresponding data block according to the specific address of the write command, and recalculates the checksum of the entire data block; The main controller writes the modified data and its checksum into the storage data area and verifies whether the written data is consistent with the original data in the memory to ensure that the data is written successfully; If the data verification is consistent, the main controller will synchronize the updated data and its check value to the standby controller, and the standby controller will update the data in its own memory accordingly to maintain the consistency of data between the main and standby controllers.
[0008] Optionally, the data block read and write verification process includes: (a) The main controller reads the contents of the entire data block before writing data; (b) modifying the corresponding part of the data block according to the address and length of the write command, and recalculating the checksum of the entire data block; (c) writing the modified data and the new check value into the storage data area; (d) Read the newly written data and checksum from the storage data area and compare them with the data in the memory. If they are consistent, the write is confirmed to be successful. Otherwise, retry or record an error log.
[0009] Optionally, when writing data across multiple data blocks, a segmented writing and verification method is adopted to ensure the data integrity and consistency of each data block.
[0010] Optionally, if the total length of the write command is greater than the length of a single data block, the main controller decomposes the write command into multiple sub-commands, and performs read and write verification operations on the data blocks corresponding to each sub-command until all data blocks are written successfully.
[0011] Optionally, the key information includes manufacturer hardware information, system activation information, and software activation information.
[0012] In some embodiments, the system uses the aforementioned storage data cross-domain read and write enhanced control method based on the domestic BMC platform, and the system includes: The main controller is used to perform read and write operations on the storage device, including receiving write data commands forwarded by the standby controller, and performing data processing, verification and writing operations; The standby controller is used to receive the write data command sent by the external device and determine whether it needs to be forwarded to the main controller for processing according to its own status; Storage devices are used to store server data, including key data and other data divided by data domains.
[0013] The method and system for enhanced control of cross-domain read and write of storage data based on a domestic BMC platform provided by the embodiments of the present disclosure can achieve the following technical effects: Data domain division: The present disclosure divides N data domains in the storage device, each data domain stores data of different categories, among which the key data domain is specifically used to store key data such as manufacturer hardware information, system activation information, software activation information, etc., to ensure the strictness and high reliability of its read and write operations.
[0014] Primary and standby controller authority control: It is clear that the standby controller has no right to directly access and read and write the data area of the storage device. All read and write operations are performed by the primary controller. The standby controller is only responsible for forwarding the write data command to the primary controller to achieve orderly collaboration between the primary and standby controllers.
[0015] Data block read and write verification and synchronization: After receiving the write data command, the main controller determines the target data block ID based on the data address, reads the entire data block content, modifies the data at the specified address, and recalculates the data block verification value. Subsequently, the updated data and verification value are written to the data area and a data consistency comparison is performed. After confirmation, the data and verification value are synchronized to the standby controller to ensure the integrity and timeliness of data backup.
[0016] The above general description and the following description are exemplary and explanatory only and are not intended to limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] One or more embodiments are exemplarily described by corresponding drawings, which do not limit the embodiments. Elements with the same reference numerals in the drawings are shown as similar elements, and the drawings do not constitute a scale limitation, and wherein: Figure 1 It is a schematic diagram of a storage data cross-domain read-write enhanced control system based on a domestic BMC platform provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0018] In order to be able to understand the features and technical contents of the embodiments of the present disclosure in more detail, the implementation of the embodiments of the present disclosure is described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present disclosure. In the following technical description, for the convenience of explanation, a full understanding of the disclosed embodiments is provided through multiple details. However, one or more embodiments can still be implemented without these details. In other cases, to simplify the drawings, well-known structures and devices can be simplified for display.
[0019] The terms "first", "second", etc. in the embodiments of the present disclosure are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchanged where appropriate, so as to describe the embodiments of the present disclosure described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions.
[0020] Unless otherwise stated, the term "plurality" means two or more.
[0021] In the embodiment of the present disclosure, the character " / " indicates that the preceding and following objects are in an "or" relationship. For example, A / B indicates: A or B.
[0022] The term "and / or" is a description of the association relationship between objects, indicating that three relationships can exist. For example, A and / or B means: A or B, or, A and B.
[0023] The term "correspondence" may refer to an association relationship or a binding relationship. The correspondence between A and B means that there is an association relationship or a binding relationship between A and B.
[0024] like Figure 1 As shown, the present invention relates to a storage data cross-domain read and write enhanced control method based on a domestic BMC, comprising: Data domain division: N data domains are divided in the storage device, each of which stores different types of data. The key data domain is specifically used to store key data such as manufacturer hardware information, system activation information, and software activation information to ensure the strictness and high reliability of its read and write operations.
[0025] Primary and standby controller authority control: It is clear that the standby controller has no right to directly access and read and write the data area of the storage device. All read and write operations are performed by the primary controller. The standby controller is only responsible for forwarding the write data command to the primary controller to achieve orderly collaboration between the primary and standby controllers.
[0026] Data block read and write verification and synchronization: After receiving the write data command, the main controller determines the target data block ID based on the data address, reads the entire data block content, modifies the data at the specified address, and recalculates the data block verification value. Subsequently, the updated data and verification value are written to the data area and a data consistency comparison is performed. After confirmation, the data and verification value are synchronized to the standby controller to ensure the integrity and timeliness of data backup.
[0027] The data block read and write verification process includes: (a) The main controller reads the contents of the entire data block before writing data; (b) modifying the corresponding part of the data block according to the address and length of the write command, and recalculating the checksum of the entire data block; (c) writing the modified data and the new check value into the storage data area; (d) Read the newly written data and checksum from the storage data area and compare them with the data in the memory. If they are consistent, the write is confirmed to be successful. Otherwise, retry or record an error log.
[0028] Optionally, when writing data across multiple data blocks, a segmented writing and verification method is adopted to ensure the data integrity and consistency of each data block.
[0029] Optionally, if the total length of the write command is greater than the length of a single data block, the main controller decomposes the write command into multiple sub-commands, and performs read and write verification operations on the data blocks corresponding to each sub-command until all data blocks are written successfully.
[0030] As an example, the implementation process of the storage data cross-domain read and write enhanced control method based on the domestic BMC platform is as follows: The standby controller receives a command from an external device to write data; 2. The standby controller determines whether it has the right to access and read and write data in the data area; 3. The standby controller determines that it has no right to access the data area and forwards the command to write data to the main controller; 4. Based on the write data sent by the standby controller, the main controller needs to parse the data and verify the validity of the data to see if there is a transmission error. If not, it determines that the data is invalid and returns an error. Record the log.
[0031] 5. The main controller analyzes the data mainly including: data address, data length, and data content.
[0032] 6. The main controller searches the data address block for the ID of the data block to which the current data belongs according to the data address; the query results may be in two situations: returning the data block ID and returning that the data block ID cannot be found. Because it involves writing multiple data blocks, there are multiple situations: According to the address of the write command, the returned data block ID of the data block is found. According to the data block ID, the length of the data block can be found. The length sent by the write command is compared with the length of the current data block to see if it is greater than the total length of the current data block; 1) If it is greater than the total length of the current data, it means that the write command needs to write data across data blocks.
[0033] a. According to the address of the current write command, find the data block address, read the data of the entire data block, calculate the length of the current data block, and subtract the current write address from the end address of the current data. The calculation formula is: The data length written in the current data block = the end address of the current data block – the start address of the write command; b. Modify the content of the current data block according to the calculated data length and the length of the current write command, calculate the check value; write the written data into the data storage area, and also write the calculated check value into the data storage area; c. The main controller reads the newly written data from the storage device and matches it with the data in the memory. If the data in the two are consistent, the write command operation is considered successful.
[0034] If the data of the two are inconsistent, and they are still inconsistent after retrying the write operation, it is judged as a write failure, a log is recorded, and a failure is returned.
[0035] d. After writing data successfully, the main controller updates the data in its own memory and synchronizes the content of the currently written data to the standby controller; the standby controller modifies the data in its own memory according to the synchronized data, making the data of the main and standby controllers consistent.
[0036] e. According to the result just calculated, the command length of writing data is greater than the length of the current data block, so multiple data blocks are required to write data.
[0037] The remaining length of the write command = the total length of the write command – the length of the data block that should be written last time The new target address of the write command = the original target address of the write command + the last written length f. According to the current new write target address, continue to search for which data block it belongs to. Because the definition of the data block is not a data block definition area with continuous addresses, the search result is that there is no data block at this address. The BMC needs to create a new data block and then read and write it. The method is the same as ad; g. The search result at this time is that there is a corresponding data block at this address, and data needs to be written continuously in the same way as ad.
[0038] 2) If it is less than the total length of the current data, it means that only the current data block needs to be written. The method is the same as ad in 1).
[0039] In some embodiments, the system uses the aforementioned storage data cross-domain read and write enhanced control method based on the domestic BMC platform, and the system includes: The main controller is used to perform read and write operations on the storage device, including receiving write data commands forwarded by the standby controller, and performing data processing, verification and writing operations; The standby controller is used to receive the write data command sent by the external device and determine whether it needs to be forwarded to the main controller for processing according to its own status; Storage devices are used to store server data, including key data and other data divided by data domains.
[0040] The present disclosure divides N data domains in a storage device, each data domain stores data of different categories, wherein the key data domain is specifically used to store key data such as manufacturer hardware information, system activation information, and software activation information, to ensure the strictness and high reliability of its read and write operations.
[0041] The disclosure clarifies that the standby controller has no right to directly access and read and write the data area of the storage device, and all read and write operations are performed by the main controller. The standby controller is only responsible for forwarding the write data command to the main controller to achieve orderly cooperation between the main and standby controllers.
[0042] After receiving the write data command, the main controller determines the target data block ID based on the data address, reads the entire data block content, modifies the data at the specified address, and recalculates the data block check value. Subsequently, the updated data and check value are written to the data area and a data consistency comparison is performed. After confirmation, the data and check value are synchronized to the standby controller to ensure the integrity and timeliness of data backup.
[0043] In summary, the present disclosure effectively improves the stability and reliability of server products during data synchronization, and meets the industry's needs for high availability and high data security.
[0044] The above description and the accompanying drawings fully illustrate the embodiments of the present disclosure so that those skilled in the art can practice them. Other embodiments may include structural, logical, electrical, process and other changes. The embodiments represent only possible changes. Unless explicitly required, separate components and functions are optional, and the order of operation may vary. The parts and features of some embodiments may be included in or replace the parts and features of other embodiments. Moreover, the words used in this application are only used to describe the embodiments and are not used to limit the scope of protection. As used in the description in the text, unless the context clearly indicates, the singular forms of "a", "an" and "the" are intended to include plural forms as well. Similarly, the term "and / or" as used in this application refers to any and all possible combinations of one or more associated listings. In addition, when used in this application, the term "comprise" and its variants "comprises" and / or comprising refer to the presence of stated features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or groups thereof. In the absence of further restrictions, the elements defined by the sentence "including one..." do not exclude the presence of other identical elements in the process, method or device including the elements. In this article, each embodiment may focus on the differences from other embodiments, and the same and similar parts between the embodiments may refer to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, then the relevant parts can refer to the description of the method part.
[0045] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software may depend on the specific application and design constraints of the technical solution. The technicians may 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 embodiments of the present disclosure. The technicians may clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.
[0046] In the embodiments disclosed herein, the disclosed methods and products (including but not limited to devices, equipment, etc.) can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units can be only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to implement this embodiment. In addition, each functional unit in the embodiment of the present disclosure may be integrated in a processing unit, or each unit may exist physically separately, or two or more units may be integrated in one unit.
[0047] The flowchart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to the embodiment of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. 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, which can depend on the functions involved. In the description corresponding to the flowchart and the block diagram in the accompanying drawings, the operations or steps corresponding to different boxes can also occur in a different order from the order disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. Each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a dedicated hardware-based system that performs the specified functions or actions, or may be implemented by a combination of dedicated hardware and computer instructions.
Claims
1. A method for enhanced control of cross-domain reading and writing of storage data based on a domestic BMC platform, characterized in that: include: Divide the storage device into multiple data domains, each data domain is used to store different types of data, including at least one key data domain for storing key information of the server; Set the permission control policy so that the standby controller has no right to directly access and perform read and write operations on the storage data area. All read and write operations are performed by the main controller. When the standby controller receives a write data command from an external device, it determines that it is in the standby controller state and forwards the write data command to the main controller; After receiving the write data command from the standby controller, the master controller parses the target data block ID according to the data address in the command, reads the entire content of the data block, modifies the content of the corresponding data block according to the specific address of the write command, and recalculates the checksum of the entire data block; The main controller writes the modified data and its checksum into the storage data area and verifies whether the written data is consistent with the original data in the memory to ensure that the data is written successfully; If the data verification is consistent, the master controller will synchronize the updated data and its checksum to the standby controller, and the standby controller will update the data in its own memory accordingly to maintain data consistency between the master and standby controllers.
2. The method according to claim 1, characterized in that The data block read and write verification process includes: (a) The main controller reads the contents of the entire data block before writing data; (b) Modify the corresponding part of the data block according to the address and length of the write command, and recalculate the checksum of the entire data block; (c) writing the modified data and the new check value into the storage data area; (d) Read the newly written data and checksum from the storage data area and compare them with the data in the memory. If they are consistent, the write is confirmed to be successful. Otherwise, retry or record an error log.
3. The method according to claim 1, characterized in that When writing data across multiple data blocks, segmented writing and verification are used to ensure the data integrity and consistency of each data block.
4. The method according to claim 3, characterized in that If the total length of the write command is greater than the length of a single data block, the main controller decomposes the write command into multiple sub-commands and performs read and write verification operations on the data blocks corresponding to each sub-command until all data blocks are written successfully.
5. The method according to claim 1, characterized in that The key information includes manufacturer hardware information, system activation information and software activation information.
6. A storage data cross-domain read and write enhanced control system based on a domestic BMC platform, characterized in that: Using the method for enhanced control of cross-domain reading and writing of storage data based on a domestic BMC platform as described in any one of claims 1 to 5, the system includes: The main controller is used to perform read and write operations on the storage device, including receiving write data commands forwarded by the standby controller and performing data processing, verification and writing operations; The standby controller is used to receive write data commands from external devices and determine whether they need to be forwarded to the main controller for processing based on its own status; Storage devices are used to store server data, including key data and other data divided by data domains.
Citation Information
Cited By
Server data docking management control system and method
CN120492155A
