US 12,008,263 B2
Garbage collection and data storage method and apparatus, and storage system
Ying Wang, Beijing (CN); and Xiaobao Zhao, Beijing (CN)
Assigned to HUAWEI TECHNOLOGIES CO., LTD., Shenzhen (CN)
Filed by HUAWEI TECHNOLOGIES CO., LTD., Shenzhen (CN)
Filed on Feb. 24, 2021, as Appl. No. 17/183,657.
Application 17/183,657 is a continuation of application No. PCT/CN2019/098256, filed on Jul. 30, 2019.
Claims priority of application No. 201810983555.0 (CN), filed on Aug. 27, 2018.
Prior Publication US 2021/0181992 A1, Jun. 17, 2021
Int. Cl. G06F 3/06 (2006.01); G06F 11/14 (2006.01); G11B 20/12 (2006.01); H03M 13/15 (2006.01)
CPC G06F 3/0659 (2013.01) [G06F 3/0619 (2013.01); G06F 3/0673 (2013.01); G06F 11/1469 (2013.01); G11B 20/1217 (2013.01); H03M 13/154 (2013.01); G06F 2201/82 (2013.01); G11B 2020/1238 (2013.01); G11B 2020/1292 (2013.01)] 17 Claims
OG exemplary drawing
 
1. A data storage method comprising:
after a data failure occurs in a second memory, recovering first data associated with the second memory of a storage system to obtain the first data, and obtaining an expiration time of the recovered first data associated with the second memory of the storage system;
selecting, based on the expiration time of the recovered first data, a target storage area from a plurality of storage areas, wherein the plurality of storage areas belong to at least one first memory of the storage system; and
sending at least a portion of the recovered first data to a first memory in which the target storage area is located, wherein
after the at least a portion of the recovered first data is stored in the target storage area, the expiration time of the at least a portion of the recovered first data is between an earliest expiration time and a latest expiration time in expiration time of old data stored in the target area.