Distributed Block Storage Command Processing via tgtadm
Find Innovative SolutionsGenerate 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
Engineering 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
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.
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
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.
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
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.
Data Source
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).


