| CPC G06F 3/0631 (2013.01) [G06F 3/0604 (2013.01); G06F 3/0689 (2013.01)] | 20 Claims |

|
1. A method for data storage, comprising:
selecting a target Redundant Array of Independent Disks (RAID) from a plurality of RAIDs in a storage resource pool;
determining a local neighbor matrix of the target RAID based on the target RAID, wherein the local neighbor matrix indicates distribution of a plurality of storage extents of a plurality of RAID extents of the target RAID on the storage resource pool; and
performing a resource reallocating operation on the storage resource pool based on the local neighbor matrix;
wherein determining a local neighbor matrix of the target RAID based on the target RAID comprises:
determining an iteration step size based on a width of the storage resource pool and a width of the RAID extent;
determining, for the target RAID, a set comprising a plurality of RAID extent groups, wherein the number of RAID extents in each RAID extent group of the plurality of RAID extent groups is equal to the iteration step size; and
traversing the set to determine the local neighbor matrix.
|