US 12,393,348 B2
Method, electronic device, and program product for disk mapping
Shuangshuang Liang, Zunyi (CN); Yang Zhang, Chengdu (CN); and Chaojun Zhao, Chengdu (CN)
Assigned to Dell Products L.P., Round Rock, TX (US)
Filed by Dell Products L.P., Round Rock, TX (US)
Filed on Feb. 26, 2024, as Appl. No. 18/586,999.
Claims priority of application No. 202311008010.5 (CN), filed on Aug. 10, 2023.
Prior Publication US 2025/0053306 A1, Feb. 13, 2025
Int. Cl. G06F 3/06 (2006.01)
CPC G06F 3/0617 (2013.01) [G06F 3/0644 (2013.01); G06F 3/0689 (2013.01)] 20 Claims
OG exemplary drawing
 
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.