Flash Partition Backup for Configuration File Integrity
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing methods for backing up configuration files in a computer device's flash memory storage device are prone to damage the storage device due to frequent writing, require additional hardware, or increase hardware costs.
Innovation Solution
A method involving a flash memory storage device with three partitions: a first partition storing a configuration file version, a second partition for backup, and a third partition for repair, using cyclic redundancy checks and selective overwriting to ensure data integrity and reduce hardware costs.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If rsync utility is used to synchronize partitions for backup, then configuration file backup is achieved, but flash memory storage device is frequently written and prone to damage
Solution Approach 1:
The system creates a bootable backup partition in advance during initialization, storing a complete copy of the configuration files and filesystem structure. This preliminary backup partition can be immediately activated if the primary partition fails, eliminating the need for frequent synchronization writes during operation.
Solution Approach 2:
Instead of continuous or frequent synchronization, the system performs backup operations periodically during正常的 initialization processes. The BMC only updates the backup partition when configuration files are modified and a reboot is scheduled, rather than continuously monitoring and synchronizing changes.
2Reliability
If dual-image approach is adopted with two complete image files, then initialization reliability is improved, but storage capacity requirement doubles
Solution Approach 1:
The backup system is segmented into a primary partition for active configuration files and a separate bootable backup partition for backup copies. This segmentation allows the system to maintain two functional partitions without requiring two complete duplicate sets of all configuration files, optimizing storage usage while ensuring reliability.
Solution Approach 2:
The system creates a bootable copy of the primary partition that includes the configuration files and necessary boot structures. This copy serves as the backup, allowing the BMC to boot from the backup partition if the primary partition fails, providing redundancy without duplicating the entire system image multiple times.
3Productivity
If frequent writing to backup partition is performed, then configuration file synchronization is maintained, but flash memory lifespan is reduced
Solution Approach 1:
The backup partition is prepared in advance during system initialization with a complete set of configuration files. This preliminary action ensures that backup data is available immediately when needed, eliminating the need for frequent update writes during normal operation.
Solution Approach 2:
The system intelligently determines when backup updates are necessary based on configuration file modification status. Updates are performed only when configuration files are modified and a reboot is scheduled, allowing the system to self-manage backup synchronization without unnecessary writes.
Data Source
AI summary
A method for backing up a configuration file of a computer device is implemented by a baseboard management controller, and includes steps of: mounting a first partition, a second partition and a third partition of a flash memory storage device of the computer device; storing a copy of the configuration file in at least one of the first partition, the second partition and the third partition that has been mounted successfully as a backup; running an operating system stored in the flash memory storage device; and neither reading nor writing to the third partition while running the OS.


