Patent ID: 11106376

Abstract:
Embodiments of the present disclosure provide a method of storage allocation, an electronic device, a storage system and a computer program product. The method of storage allocation includes: obtaining respective wear levels of a plurality of disks associated with a redundant array of independent disks (RAID). The method further includes: determining respective spare extents in disk extents of the plurality of disks based on the obtained wear levels, such that a number of spare extents in a disk is positively correlated with the wear level of the disk. The method also includes: selecting, from disk extents other than the spare extents, a predetermined number of disk extents for creating RAID extents for the RAID, the predetermined number of disk extents being from different disks of the plurality of disks. Through the embodiments of the present disclosure, a life cycle of a disk is prolonged, frequent replacement of worn disks with new disks is avoided, and data loss is reduced.