Mapping logical blocks of a logical storage extent to a replacement storage device
AssigneeEMC IP Holding Company LLC
InventorsGeng Han, Wayne Weihua Li, Jian Gao, Jamin Kang, Shaoqin Gong
Life of this patent
Estimating the term…
Abstract
Embodiments of the present disclosure relate to a method, a device and a computer readable medium for managing a storage system. The method can determine a mapping between a logical storage extent and a plurality of storage devices in a storage pool without storing a table of the mapping. Further, the method can record a new mapping after a storage devices fails and restore the original mapping after the failed storage device is replaced.
Claims18
A method of storage management, comprising:
- in response to a logical storage extent being to be distributed to a plurality of storage devices in a storage pool, dynamically determining a first mapping between the logical storage extent and the plurality of storage devices;
- distributing a plurality of logical blocks of the logical storage extent to storage blocks of the plurality of storage devices based on the first mapping;
- in response to a failure in a first one of the plurality of storage devices, determining, from the plurality of logical blocks, a portion of logical blocks that are distributed to storage blocks of the first storage device;
- determining a second mapping between the portion of logical blocks and storage blocks of a plurality of fault-free storage devices in the storage device pool, the second mapping being used for rebuilding data in the storage blocks of the first storage device into the storage blocks of the plurality of fault-free storage devices;
- storing the second mapping;
- in response to the first storage device being replaced by a second storage device, distributing the portion of logical blocks to storage blocks of the second storage device;
- replicating data in the storage blocks of the first storage device into the storage blocks of the second storage device, a mapping between the portion of logical blocks and the second storage device coinciding with the first mapping;
- and
- in response to data in the storage blocks of the first storage device being replicated into the storage blocks of the second storage device, releasing storage resources storing the second mapping.
An electronic device, comprising:
- at least one processor;
- and
- a memory coupled to the at least one processor and having instructions stored therein which, when executed by the at least one processor, cause the electronic device to perform acts comprising:
- in response to a logical storage extent being to be distributed to a plurality of storage devices in a storage pool, dynamically determining a first mapping between the logical storage extent and the plurality of storage devices;
- distributing a plurality of logical blocks of the logical storage extent to storage blocks of the plurality of storage devices, based on the first mapping;
- in response to a failure in a first one of the plurality of storage devices, determining, from the plurality of logical blocks, a portion of logical blocks that are distributed to storage blocks of the first storage device;
- determining a second mapping between the portion of logical blocks and storage blocks of a plurality of fault-free storage devices in the storage device pool, the second mapping being used for rebuilding data in the storage blocks of the first storage device into the storage blocks of the plurality of fault-free storage devices;
- storing the second mapping;
- in response to the first storage device being replaced by a second storage device, distributing the portion of logical blocks to storage blocks of the second storage device;
- replicating data in the storage blocks of the first storage device into the storage blocks of the second storage device, a mapping between the portion of logical blocks and the second storage device coinciding with the first mapping;
- and
- in response to data in the storage blocks of the first storage device being replicated into the storage blocks of the second storage device, releasing storage resources storing the second mapping.
A non-transitory computer-readable medium having instructions stored thereon which, when executed by at least one processing unit, cause the at least one processing unit to perform a method comprising:
- in response to a logical storage extent being to be distributed to a plurality of storage devices in a storage pool, dynamically determining a first mapping between the logical storage extent and the plurality of storage devices;
- distributing a plurality of logical blocks of the logical storage extent to storage blocks of the plurality of storage devices, based on the first mapping;
- in response to a failure in a first one of the plurality of storage devices, determining, from the plurality of logical blocks, a portion of logical blocks that are distributed to storage blocks of the first storage device;
- determining a second mapping between the portion of logical blocks and storage blocks of a plurality of fault-free storage devices in the storage device pool, the second mapping being used for rebuilding data in the storage blocks of the first storage device into the storage blocks of the plurality of fault-free storage devices;
- storing the second mapping;
- in response to the first storage device being replaced by a second storage device, distributing the portion of logical blocks to storage blocks of the second storage device;
- replicating data in the storage blocks of the first storage device into the storage blocks of the second storage device, a mapping between the portion of logical blocks and the second storage device coinciding with the first mapping;
- and
- in response to data in the storage blocks of the first storage device being replicated into the storage blocks of the second storage device, releasing storage resources storing the second mapping.
Dependencies are inferred from the claim text.