Patent ID: 9733844
Date: 2017-08-15
CPC Classifications: G06F

Claim:
1. A method for extending life of a storage system which includes a storage controller and a disk group, wherein the disk group includes a plurality of solid-state disks (SSDs), wherein each of the SSDs is divided into multiple chunks that are accessible to the storage controller, the method performed by the storage controller comprising: monitoring a bad blocks capacity of each of the plurality of SSDs, wherein each SSD includes multiple blocks, and wherein at least one SSD includes one or more bad blocks; selecting the at least one SSD as a source SSD in response to the bad blocks capacity of one of the SSDs reaching a threshold; calculating an amount of data to be migrated from the source SSD based on a capacity usage ratio of the source SSD and an average capacity usage ratio of the disk group, wherein the capacity usage ratio of the source SSD is greater than the average capacity usage ratio of the disk group, wherein the capacity usage ratio of the source SSD is a ratio of an occupied capacity of the source SSD divided by an available capacity of the source SSD, wherein the average capacity usage ratio of the disk group is a ratio of an occupied capacity of the disk group divided by an available capacity of the disk group; identifying a number of chunks to be migrated from the source SSD based on the amount of data to be migrated from the source SSD and a size of each chunk; selecting one or more destination SSDs in the disk group with a capacity usage ratio less than the average capacity usage ratio of the disk group; and migrating the data to be migrated from the source SSD to the one or more destination SSDs according to the number of chunks, wherein the data to be migrated from the source SSD is migrated in a unit of chunk, wherein each of multiple chunks is unit of a chunk group, and wherein the chunk group includes a plurality of chunks each belonging to different SSDs.