Design method and system of row snapshot based on distributed block storage
A design method and system design technology, applied in calculation, response error generation, data processing input/output process, etc., can solve the problem of limited number of snapshots, affecting data volume I/O performance, limited cloning level, etc. question
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0045] This embodiment provides a ROW snapshot design method based on distributed block storage. This embodiment adopts a virtual container volume, and records snapshot tree information under the virtual container volume. In this way, only the immutable virtual container volume needs to be provided to the outside world, and the snapshot operation and snapshot tree update will not be reflected to the external application, thus satisfying the function of online snapshot.
[0046] In this embodiment, the data is indexed by using the second-level bitmap, and the snapshot operation only needs to copy the first-level bitmap. The burden of snapshot operations is greatly reduced, and millisecond-level snapshots are achieved.
[0047] In this embodiment, the clone operation only needs to copy the first-level bitmap. While reducing the burden of the clone operation, the data between the clone volume and the source volume is also located through the L1 and L2 bitmap indexes, which reduce...
Embodiment 2
[0052] At the specific implementation level, this embodiment provides a snapshot organization method of a Row volume, refer to figure 1 As shown, the design of the Row volume in this embodiment adopts the method of adding a virtual container to a snapshot tree, as shown in the organization structure of the snapshot tree of the Row container volume (each node in the snapshot tree is a snapshot, corresponding to a unique snapshot id).
[0053] In this embodiment, when a Row volume is created, a volume container id (vol-1) is created in the system, and a header id of the snapshot tree is generated. The container ID records the IDs of all nodes in the snapshot tree.
[0054] In this embodiment, when the user creates a snapshot, a new id is generated based on the header id of the current snapshot tree as the new header id. And change the old header id to the snapshot id. When a snapshot rollback operation occurs, a new header ID is generated based on the specified snapshot ID of ...
Embodiment 3
[0057] In terms of specific implementation, this embodiment provides a basic snapshot operation of a Row volume. This embodiment creates a snapshot, generates a new header id based on the current header id, and copies the L1 chunk of the current header id to the new header id. The old header id becomes the snapshot id. Create snapshot operations such as figure 2 shown.
[0058] refer to image 3 As shown, delete the snapshot, mark the snapshot as deleted in the snapshot tree, and hide the snapshot. Then compare the L2 bitmap based on the L2 bitmap in the background task and recover the unique data of the snapshot, and move the data inherited by the child to the child snapshot. After all the data is moved, the snapshot node information is actually deleted from the snapshot tree.
[0059] refer to Figure 4 As shown, to roll back the snapshot, generate a new header id based on the snapshot id to be rolled back, copy the L1chunk information of the snapshot id to the new hea...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


