Storage System Consistency Point Tracking for Data Integrity
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Modern storage systems face challenges in maintaining data consistency due to the loss of data in cache memory during unexpected shutdowns, as existing methods fail to ensure that data written to the cache is also stored in the persistent storage system, leading to an inconsistent state.
Innovation Solution
The solution involves using a consistency point (CP) and next consistency point (NCP) object system, where counters track user writes in cache and persistent storage, allowing the system to reset to a consistent state by deleting data written after a specific timestamp, and dynamically adjusting the time interval based on write frequency and cache size.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Speed
If data is stored in cache memory to increase operation speed, then write speed is improved, but data consistency is worsened due to potential data loss during unexpected shutdowns
Solution Approach 1:
The system performs preliminary actions by pre-computing and storing consistency points and next consistency points before crashes occur. The consistency point mechanism proactively tracks which data has been successfully written to persistent storage, allowing the system to quickly restore to a known consistent state without needing to re-process all data after a crash.
Solution Approach 2:
The patent introduces an intermediary mechanism using consistency points and next consistency points as mediators between the cache memory and persistent storage. These intermediaries track the boundary between uncommitted and committed data, enabling the system to determine exactly what needs to be recovered or discarded after a shutdown without examining all data.
2Reliability
If the system tracks all user writes to ensure data consistency, then data integrity is improved, but system complexity increases due to multiple counters and time tracking
Solution Approach 1:
The patent segments the tracking of user writes into distinct temporal intervals using consistency points and next consistency points. Instead of tracking all writes uniformly, the system divides the write stream into segments between these checkpoints, making the complexity manageable and the tracking more efficient. Each segment can be independently processed during recovery.
Solution Approach 2:
The system changes parameters by using time-based thresholds (consistency points) to simplify the tracking of write operations. Rather than tracking every individual write detail, the system uses time intervals and counter comparisons to determine data consistency, reducing the complexity of the tracking mechanism while maintaining integrity.
3Reliability
If the system deletes data written after the consistency point to reset to a known state, then data consistency is improved, but data loss increases due to deletion of potentially committed data
Solution Approach 1:
The system uses feedback mechanisms through counters that track the number of user writes between consistency points and next consistency points. This feedback allows the system to verify whether data written after a consistency point has actually been committed to persistent storage before deleting it, preventing unnecessary data loss while maintaining consistency.
Solution Approach 2:
The patent replaces mechanical data deletion with a more intelligent verification process using counters and time-based tracking. Instead of blindly deleting all data after a consistency point, the system substitutes this with a verification mechanism that compares write counts and time intervals to determine safe deletion boundaries, reducing unnecessary data loss.
Data Source
AI summary
A system and method for managing a storage system may include recording, in a cache memory, data related to user writes to the storage system; setting a time in a next consistency point (NCP) object with a value greater than the current time; and maintaining a first counter related to the number of user writes recorded in the cache memory and that occurred before the time included in the NCP object and after a time included in a consistency point (CP) object; maintaining a second counter related to the number of user writes that were stored in a persistent storage system and that occurred before the time in the NCP object and after a time in the CP object. A system and method for managing a storage system may include initializing the storage system to a consistent state based on the time included in the CP object.


