Distributed Block Storage Command Processing via tgtadm

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current RBD block storage systems do not support online snapshot rollback, requiring cumbersome unmounting and remounting processes, which affects performance and user experience in high-performance distributed deployments.

Innovation Solution

A distributed block storage service command processing method that uses tgtadm to acquire and parse RBD commands, transmitting task parameters to an ISCSI target via IPC, starting dedicated threads for processing, and monitoring real-time results to display progress on a human-computer interface, allowing operations like snapshot rollback without unmounting and remounting.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If snapshot rollback is performed through traditional rbd command line, then snapshot rollback can be achieved, but the volume must be unloaded layer by layer first, making the process cumbersome and time-consuming

Engineering Contradiction:
Improvesnapshot rollback capabilityVSAvoidoperation complexity
Core Design Contradiction:
ReliabilityVSEase of operation

Solution Approach 1:

The patent introduces tgtadm as an intermediary management tool between the user and the ISCSI target. This intermediary handles snapshot rollback operations by transmitting task parameters to the ISCSI target through IPC communication, enabling online rollback without requiring volume unmounting. The intermediary abstracts the complex rollback process into simple commands that can be executed while the volume remains mounted.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Adaptability or versatility

If frequent rbd commands are called to manage block storage, then block storage operations can be performed, but a large number of processes are started, increasing cluster load and affecting overall performance

Engineering Contradiction:
Improveblock storage operation capabilityVSAvoidcluster performance
Core Design Contradiction:
Adaptability or versatilityVSProductivity

Solution Approach 1:

The patent merges multiple rbd command operations into a unified tgtadm management framework. Instead of starting separate processes for each rbd command, the system consolidates command processing through a single tgtadm interface that communicates with the ISCSI target via IPC. This merging reduces the number of processes started and decreases cluster load while maintaining full block storage operation capabilities.

Inventive Principle:
Principle #5Merging (Combining)

3Reliability

If online snapshot rollback is not supported, then system stability is maintained, but the unmounting and remounting process is required, reducing user experience and efficiency

Engineering Contradiction:
Improvesystem stabilityVSAvoidrollback time
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The patent implements preliminary action by pre-establishing the tgtadm management framework and IPC communication channels before snapshot operations are needed. The system prepares the ISCSI target with the necessary infrastructure to handle rollback commands online, so when a rollback is required, it can be executed immediately without unmounting. This preliminary setup enables fast online rollback while maintaining system stability.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS11656802B2Distributed block storage service command processing method, apparatus, device and medium
Publication Date: 2023.05.23 LANGCHAO ELECTRONIC INFORMATION IND CO LTD
  • US11656802B2 patent drawing
  • US11656802B2 patent drawing
  • US11656802B2 patent drawing

AI summary

Disclosed are a distributed block storage service command processing method, apparatus, a device and a medium. The method includes: by means of tgtadm, acquiring a rbd command of a block storage service, parsing the rbd command to obtain a corresponding task parameter, and then transmitting the task parameter to an ISCSI target (S11); by means of tgtd, starting a dedicated thread for processing a task corresponding to the task parameter, and monitoring a real-time processing result of the current task (S12); and returning the real-time processing result to the tgtadm by means of the ISCSI target, whereby the tgtadm displays the real-time processing result on a human-computer interface (S13).