Volume Chain Metadata Recovery After Creation Failure

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing virtual machine systems fail to effectively handle volume creation failures in shared storage environments, leading to metadata inconsistencies and access issues in both file-based and block-based storage systems.

Innovation Solution

The system creates temporary metadata and data files for new volumes with atomic operations, updates parent volume metadata, and manages leases to ensure correct status changes and cleanup in case of creation failures, employing garbage collection processes to identify and rectify incomplete volume creation attempts.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If volume creation operations are performed in shared storage environments, then virtual machine storage needs are met, but metadata inconsistencies occur when creation failures are detected

Engineering Contradiction:
Improvevolume creation reliabilityVSAvoidmetadata integrity
Core Design Contradiction:
ReliabilityVSLoss of information

Solution Approach 1:

The system performs preliminary actions by creating temporary metadata files and updating parent volume metadata before the volume creation is fully complete. This preliminary metadata setup allows the system to detect failures and perform corrective actions by reverting the parent volume metadata, thereby preventing metadata inconsistencies while maintaining reliable volume creation operations

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The system implements feedback mechanisms through garbage collection processes that continuously monitor for incomplete volume creation operations. When failures are detected, the system provides feedback by automatically correcting metadata inconsistencies and cleaning up temporary files, ensuring metadata integrity is maintained throughout the volume creation process

Inventive Principle:
Principle #23Feedback

2Stability of the object's composition

If atomic operations are used for metadata updates, then metadata consistency is improved, but system complexity increases

Engineering Contradiction:
Improvemetadata consistencyVSAvoidsystem complexity
Core Design Contradiction:
Stability of the object's compositionVSDevice complexity

Solution Approach 1:

The system segments the volume creation process into distinct phases with separate temporary metadata files for each stage. By dividing the metadata update process into manageable segments that can be independently created, tracked, and reverted, the system achieves atomic-like consistency without requiring complex atomic operation mechanisms, thereby maintaining metadata consistency while controlling system complexity

Inventive Principle:
Principle #1Segmentation

3Measurement precision

If garbage collection processes are implemented to detect failures, then volume creation failure detection is improved, but processing overhead increases

Engineering Contradiction:
Improvefailure detection accuracyVSAvoidprocessing efficiency
Core Design Contradiction:
Measurement precisionVSProductivity

Solution Approach 1:

The garbage collection process is designed to self-service by autonomously detecting incomplete volume creation operations through metadata analysis and automatically performing corrective actions. This self-service approach improves failure detection accuracy while minimizing processing overhead, as the system efficiently identifies and resolves issues without requiring extensive external intervention or complex processing sequences

Inventive Principle:
Principle #25Self-service

Data Source

PatentUS10846116B2Correcting a volume chain after a volume creation failure is detected
Publication Date: 2020.11.24 RED HAT ISRAEL
  • US10846116B2 patent drawing
  • US10846116B2 patent drawing
  • US10846116B2 patent drawing

AI summary

A system and method are disclosed for detecting and handling volume creation failures. In one implementation, a request to create a new volume in a volume chain for a virtual machine is received. A processing device creates a first metadata file for the new volume, where the first metadata file has a first filename indicating that creation of the new volume has not completed. A reference to a parent volume of the new volume is stored in the first metadata file, along with an indication that the new volume is a leaf of the volume chain. A second metadata file that is associated with the parent volume is updated in view of the new volume. The processing device creates a data file for the new volume and renames the first metadata file to a second filename indicating that creation of the new volume has completed.