Container Block Device Metadata Consistency Check
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Current methods for detecting corruption in virtual environment block device and file system metadata are inefficient as they require stopping processes and unmounting the environment, which can lead to data loss and unsuccessful re-mounting, and do not guarantee the integrity of the metadata during the checking process.
Innovation Solution
A system and method that perform consistency checks on block device and file system metadata without stopping I/O operations, allowing temporary pauses to retrieve metadata, resume operations, and use snapshots to check file system consistency without terminating processes, ensuring data integrity and allowing for on-error actions.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If consistency check is performed on block device metadata while I/O operations are running, then detection of corruption can occur without stopping processes, but the metadata may be changed during checking making corruption detection complicated and unreliable
Solution Approach 1:
The patent creates a copy of the block device metadata in memory before performing consistency checks. This copy remains static while the original may be modified by I/O operations, allowing reliable corruption detection without requiring I/O suspension. The copying principle resolves the contradiction by decoupling the check target from the dynamic original metadata.
Solution Approach 2:
The patent performs preliminary actions by retrieving and copying metadata to memory before the consistency check begins. This preliminary retrieval ensures the metadata state is captured prior to any potential modifications during the check, enabling reliable corruption detection while I/O operations continue.
2Measurement precision
If I/O operations are stopped to retrieve block device metadata, then consistent metadata can be obtained for checking, but productivity decreases due to stopping operations
Solution Approach 1:
Instead of stopping I/O operations to ensure metadata consistency, the patent copies the metadata to memory while I/O continues. This copy provides a consistent snapshot for checking without requiring I/O suspension, thus maintaining productivity while achieving measurement precision.
Solution Approach 2:
The patent enables continuous I/O operations during the metadata consistency check by working on a copied version of the metadata. This maintains the continuity of useful action (I/O throughput) while still performing the necessary consistency verification.
3Reliability
If virtual environment is stopped to check for corruptions, then reliable detection can be performed, but time is lost and processes are terminated
Solution Approach 1:
The patent copies block device metadata to memory, allowing consistency checks to be performed on the copy while the virtual environment continues running. This eliminates the need to stop the environment for detection, reducing time loss while maintaining detection accuracy through the static copy.
Solution Approach 2:
The patent performs preliminary metadata copying to memory before the consistency check, creating a stable snapshot that enables accurate corruption detection without requiring environment shutdown. This preliminary action preserves both reliability and operational continuity.
4Reliability
If block device is unmounted to perform consistency check, then metadata can be checked safely, but subsequent mount operations may fail and data loss risk increases
Solution Approach 1:
The patent performs consistency checks on a copied version of the metadata stored in memory, not on the mounted block device itself. This approach ensures check safety without requiring unmounting, thereby maintaining ease of operation and preventing mount failures.
Data Source
AI summary
Disclosed herein are systems and methods for detecting container block device and file system inconsistencies. In one aspect, an exemplary method comprises, on a computing device, by a processor of the computing device, when an inconsistency is detected on the block device metadata retrieved without stopping I/O operations to the block device for the container, temporarily stopping I/O operations to the block device for the container, retrieving block device metadata while the I/O operations to the block device for the container are temporarily stopped, allowing the I/O operations to the block device for the container to resume, performing consistency check on the block device metadata; when no inconsistency is detected performing consistency check on the file system of the container based on a snapshot of the block device having a state of the file system therein.


