Magnetic Disk Source-Tracing Regions for Data Recovery
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Distributed storage systems face challenges in ensuring data consistency, particularly in fault scenarios, leading to difficulties in data recovery and determining the source of erroneous data.
Innovation Solution
A data storing method that constructs a data region and an external source-tracing region in a magnetic disk, with corresponding internal and external source-tracing regions, allowing for efficient data recovery and fault tracing by writing source-tracing information and swiping data between regions.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Quantity of substance
If distributed storage systems break up continuous data blocks and save them in different regions of different hard disks, then storage capacity and distribution efficiency are improved, but data recovery difficulty increases and source determination becomes inaccurate
Solution Approach 1:
The patent introduces source-tracing regions as intermediary storage areas that record the origin and movement history of data blocks. These intermediary regions act as mediators between the scattered data blocks and the system that needs to recover them, enabling accurate tracking of data sources without affecting the distributed storage structure
Solution Approach 2:
The system performs preliminary actions by pre-constructing source-tracing regions and continuously recording data block origin information before any data loss or corruption occurs. This advance preparation enables rapid and accurate data recovery by having the source information already available when needed
2Ease of operation
If external users can modify and delete data in the distributed storage system, then system accessibility and operation flexibility are improved, but data consistency and security deteriorate
Solution Approach 1:
The source-tracing mechanism provides continuous feedback about the origin and history of data blocks. When data is modified or deleted, the system can trace back to the original source and detect inconsistencies, creating a feedback loop that maintains data consistency even with external user operations
Solution Approach 2:
The system applies preliminary anti-action by pre-recording source-tracing information that can counteract unauthorized or erroneous data modifications. This creates a protective mechanism that can identify and revert unwanted changes before they cause data consistency issues
3Measurement precision
If source-tracing regions are maintained separately from data regions, then data source tracking accuracy is improved, but device complexity and storage space utilization worsen
Solution Approach 1:
The patent merges the source-tracing regions with the data regions in the same storage space, creating a unified storage structure. This combining approach maintains accurate source tracking while reducing overall system complexity and improving storage space utilization compared to completely separate tracing systems
Data Source
AI summary
The present disclosure discloses a data storing method, an apparatus, an electronic device and a readable storage medium, wherein the method includes: constructing a data region and an external source-tracing region in a magnetic disk of a distributed storage system in advance, wherein the data region and the external source-tracing region have a corresponding relation, and in an internal memory, simultaneously constructing an internal source-tracing region that corresponds to the external source-tracing region; when it is detected that the data region is written with a target datum, writing source-tracing information corresponding to the target datum into the internal source-tracing region; and downwardly swiping the data of the internal source-tracing region to the external source-tracing region, to store the source-tracing information of the data region by the external source-tracing region. Therefore, the data may be accurately and efficiently recovered, and the reason for data loss is timely determined.


