| CPC G06F 3/0617 (2013.01) [G06F 3/0644 (2013.01); G06F 3/0689 (2013.01)] | 20 Claims |

|
1. A method for disk mapping, the method comprising:
dividing a plurality of disks into a plurality of groups, the groups within the plurality of groups being different based on the number and type of disks in the groups;
dividing the plurality of groups into a set of available groups and a set of unavailable groups based on the type of a target redundant array of independent disks (RAID), wherein an available group represents that disk units in the available group are able to form the target RAID, and an unavailable group represents that disk units in the unavailable group are unable to form the target RAID; and
enabling, by mapping one or more disk units in one or more available groups of the set of available groups into the set of unavailable groups, one or more unavailable groups of the set of unavailable groups to form the target RAID;
wherein mapping the one or more available groups of the set of available groups into the set of unavailable groups further comprises:
comparing the sum of capacities of the mapped plurality of groups with the sum of capacities of the plurality of groups before mapping; and
mapping, based on determining that the sum of capacities of the mapped plurality of groups being greater than the capacities of the plurality of groups before mapping, the one or more available groups of the set of available groups into the set of unavailable groups.
|