Reconstruction of dense tree volume metadata state across crash recovery
First Claim
1. A method comprising:
- receiving a write request directed towards a logical unit (LUN), the write request having data, a logical block address (LBA) and a first length representing a first address range of the LUN, the write request processed at a storage system having a memory;
associating a key with the data;
determining whether a first metadata structure exceeds an occupancy threshold to store a first data entry having the key, a first offset and the first length representing the first address range of the LUN, the first metadata structure assigned a first generation identifier (ID);
in response to determining that the first metadata structure exceeds the occupancy threshold, storing the first data entry in a second metadata structure, the second metadata structure assigned a second generation ID different from the first generation ID;
merging a second data entry of a first level 0 of the first metadata structure with a third data entry of a level 1 of the first metadata structure to form a fourth data entry, the second data entry having a second offset and a second length representing a second address range, the third data entry having a third offset and a third length representing a third address range, the fourth data entry representing a merge of the second address range with the third address range; and
storing the fourth data entry in a storage array of solid state drives (SSDs) attached to the storage system.
1 Assignment
0 Petitions
Accused Products
Abstract
Embodiments herein are directed to efficient crash recovery of persistent metadata managed by a volume layer of a storage input/output (I/O) stack executing on one or more nodes of a cluster. Volume metadata managed by the volume layer is organized as a multi-level dense tree, wherein each level of the dense tree includes volume metadata entries for storing the volume metadata. When a level of the dense tree is full, the volume metadata entries of the level are merged with the next lower level of the dense tree. During a merge operation, two sets of generation IDs may be used in accordance with a double buffer arrangement: a first generation ID for the append buffer that is full (i.e., a merge staging buffer) and a second, incremented generation ID for the append buffer that accepts new volume metadata entries. Upon completion of the merge operation, the lower level (e.g., level 1) to which the merge is directed is assigned the generation ID of the merge staging buffer.
41 Citations
20 Claims
-
1. A method comprising:
-
receiving a write request directed towards a logical unit (LUN), the write request having data, a logical block address (LBA) and a first length representing a first address range of the LUN, the write request processed at a storage system having a memory; associating a key with the data; determining whether a first metadata structure exceeds an occupancy threshold to store a first data entry having the key, a first offset and the first length representing the first address range of the LUN, the first metadata structure assigned a first generation identifier (ID); in response to determining that the first metadata structure exceeds the occupancy threshold, storing the first data entry in a second metadata structure, the second metadata structure assigned a second generation ID different from the first generation ID; merging a second data entry of a first level 0 of the first metadata structure with a third data entry of a level 1 of the first metadata structure to form a fourth data entry, the second data entry having a second offset and a second length representing a second address range, the third data entry having a third offset and a third length representing a third address range, the fourth data entry representing a merge of the second address range with the third address range; and storing the fourth data entry in a storage array of solid state drives (SSDs) attached to the storage system. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A method comprising:
-
receiving a write request directed towards a logical unit (LUN), the write request having data, a logical block address (LBA) and a length representing a first address range of the LUN, the write request processed at a storage system having a memory; associating a key with the data; adding a first data entry to a level 0 of a first metadata structure stored in the memory, the first data entry representing the first address range of the LUN, the first metadata structure representing a second address range of the LUN overlapping the first address range, the first data entry having the key, wherein adding the first data entry renders the level 0 of the first metadata structure full, wherein the first metadata structure is assigned a first generation identifier (ID); creating a second metadata structure assigned a second generation ID different from the first generation ID; merging the level 0 of the first metadata structure with a level 1 of the first metadata structure stored in a storage array of solid state drives (SSDs) attached to the storage system, the level 1 of the first metadata structure shared with the second metadata structure; and storing a result of the merging in the level 1 of the first metadata structure in a storage array of solid state drives (SSDs) attached to the storage system.
-
-
11. A system comprising:
-
a storage system having a memory connected to a processor via a bus; a storage array coupled to the storage system and having one or more solid state drives (SSDs); a storage I/O stack executing on the processor of the storage system, the storage I/O stack when executed operable to; receive a write request directed towards a logical unit (LUN), the write request having data, a logical block address (LBA) and a first length representing a first address range of the LUN, the write request processed at a storage system having a memory; associate a key with the data; determine whether a first metadata structure exceeds an occupancy threshold to store a first data entry having the key, a first offset and the first length representing the first address range of the LUN, the first metadata structure assigned a first generation identifier (ID); in response to determining that the first metadata structure exceeds the occupancy threshold, store the first data entry in a second metadata structure, the second metadata structure assigned a second generation ID different from the first generation ID; merge a second data entry of a first level 0 of the first metadata structure with a third data entry of a level 1 of the first metadata structure to form a fourth data entry, the second data entry having a second offset and a second length representing a second address range, the third data entry having a third offset and a third length representing a third address range, the fourth data entry representing a merge of the second address range with the third address range; and store the fourth data entry in a storage array of solid state drives (SSDs) attached to the storage system. - View Dependent Claims (12, 13, 14, 15, 16, 17, 18, 19, 20)
-
Specification