Two-level logical to physical mapping mechanism in a log-structured file system
Abstract
Example methods and systems for accessing data in a log-structured file system having a plurality of snapshots of storage objects backed by a first-level copy-on-write (COW) B+ tree data structure and a plurality of second-level B+ tree data structures have been disclosed. One example method includes obtaining a first first-level mapping associated with a first snapshot from the plurality of snapshots based on a first logical block address, wherein each of the plurality of snapshots corresponds to each of the plurality of second-level B+ tree data structures, identifying a first second-level B+ tree data structure corresponding to one of the plurality of snapshots based on the first first-level mapping, obtaining a first second-level mapping based on the first logical block address in the first second-level B+ tree data structure, obtaining a first physical block address based on the first second-level mapping, and accessing data at the first physical block address.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 5 · Forward citations: 0.
Claims (8)
- Claim 1Independent Claim
A method comprising: obtaining a first first-level mapping associated with a first snapshot, of a plurality of snapshots of storage objects backed by a first-level copy-on-write (COW) B+ tree data structure and a plurality of second-level B+ tree data structures, based on a first logical block address, wherein each of the plurality of snapshots corresponds to one of the plurality of second-level B+ tree data structures; obtaining a second first-level mapping associated with a second snapshot from the plurality of snapshots based on a second logical block address; in response to a determination that the first logical block address and the second logical block address are the same, identifying a first second-level B+ tree data structure from the plurality of second-level B+ tree data structures, which corresponds to one of the plurality of snapshots, based on the second first-level mapping; obtaining a first second-level mapping based on the second logical block address in the first seco
- Claim 2Depends on #1
The method of claim 1, wherein the first first-level mapping represents a key-value pair, and the key includes the first logical block address, and the values include a physical address of a root node of the first second-level B+ tree data structure and a number of contiguous data blocks from the first logical block address.
- Claim 3Depends on #1
The method of claim 1, wherein the first second-level mapping represents a key-value pair, and the key includes the first logical block address and the values include the first physical block address and a number of contiguous logical data blocks from the first logical block address.
- Claim 4Depends on #1
The method of claim 1, wherein the first second-level B+ tree data structure corresponds to the first snapshot.
- Claim 5Depends on #1
The method of claim 1, further comprising: identifying a second second-level B+ tree data structure corresponding to one of the plurality of snapshots based on the second first-level mapping; obtaining a second second-level mapping based on the second logical block address in the second second-level B+ tree data structure; obtaining a second physical block address based on the second second-level mapping; and accessing data at the second physical block address.
- Claim 6Depends on #1
The method of claim 1, wherein accessing data comprises accessing data in a log-structured file system (LFS).
- Claim 7Depends on #6
The method of claim 6, wherein the LFS is implemented in a virtualized computing environment.
- Claim 8Independent Claim
A non-transitory computer-readable storage medium that includes a set of instructions which, in response to execution by a processor of a computer system, cause the processor to perform operations comprising: obtaining a first first-level mapping associated with a first snapshot, of a plurality of snapshots of storage objects backed by a first-level copy-on-write (COW) B+ tree data structure and a plurality of second-level B+ tree data structures, based on a first logical block address, wherein each of the plurality of snapshots corresponds to one of the plurality of second-level B+ tree data structures; obtaining a second first-level mapping associated with a second snapshot from the plurality of snapshots based on a second logical block address; in response to a determination that the first logical block address and the second logical block address are the same, identifying a first second-level B+ tree data structure from the plurality of second-level B+ tree data structures, which c
Technical Overview & Description
BACKGROUND Unless otherwise indicated herein, the approaches described in this section are not admitted to be prior art by inclusion in this section. Virtualization allows the abstraction and pooling of hardware resources to support virtual machines (VMs) in a virtualized computing environment. For example, through server virtualization, virtualization computing instances such as VMs running different operating systems may be supported by the same physical machine (e.g., referred to as a “ host ” ). Each VM is generally provisioned with virtual resources to run an operating system and applications. The virtual resources may include central processing unit (CPU) resources, memory resources, storage resources, network resources, etc. In a distributed storage system, storage resources of a cluster of hosts may be aggregated to form a single shared pool of storage. VMs supported by the hosts within the cluster may then access the pool to store data. The data is stored and managed in a form of data containers called objects or storage objects. An object is a logical volume that has its data and metadata distributed in the distributed storage system. A virtual disk of a VM running on a host may also be an object and typically represented as a file in a file system of the host. A log-structured file system (LFS) is a type of file system that can be deployed in such a virtualized computing environment. LFS writes data to physical storage sequentially in the form of an append-only log rather than performing in-place overwrites. This improves write performance by allowing small write requests to be batched into large sequential writes, but requires a segment cleaner that periodically identifies under-utilized segments on physical storage (i.e., segments with a large percentage of “ dead ” data blocks that have been superseded by newer versions) and reclaims the under-utilized segments by compacting their remaining live data blocks into other, empty segments. Snapshotting is a
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (5)
| Patent | Title | Year | Citations |
|---|
Non-Patent Literature (1)
- Non-Published Commonly Owned U.S. Appl. No. 17/328,281, filed May 24, 2021 , 27 pages, VMware.