Dynamic load balancing of distributed parity in a RAID array
First Claim
Patent Images
1. A method of redistributing parity blocks within a distributed parity disk array (“
- DPDA”
) composed of original data storage devices (“
disks”
) upon the addition of a new disk, comprising;
determining an original parity pattern of the DPDA which indicates parity block assignments among the original disks;
determining an original repeat interval of the original parity pattern;
creating an intermediate parity pattern based on the original parity pattern, the intermediate parity pattern indicating parity block assignments among the original disks and the new disk;
determining a number of parity blocks assigned to each original disk within the intermediate parity pattern;
determining a total number of disks in the DPDA including the original disks and the new disk;
calculating a transfer number equal to the number of parity blocks assigned to each original disk within the intermediate parity pattern divided by the total number of disks within the DPDA;
creating a new parity pattern by transferring to the new disk within the intermediate parity pattern a number of parity blocks from each original disk equal to the transfer number; and
redistributing the parity blocks within the DPDA to conform the new parity pattern.
2 Assignments
0 Petitions
Accused Products
Abstract
A parity pattern defines a repeated distribution of parity blocks within a distributed parity disk array (“DPDA”). The parity pattern identifies on which disks the parity block or blocks for a stripe are located. When a new disk is added to the DPDA, the parity pattern is modified so that the distribution of parity blocks within the parity pattern is even. Parity blocks within the DPDA are then redistributed to conform with the modified parity pattern.
23 Citations
12 Claims
-
1. A method of redistributing parity blocks within a distributed parity disk array (“
- DPDA”
) composed of original data storage devices (“
disks”
) upon the addition of a new disk, comprising;determining an original parity pattern of the DPDA which indicates parity block assignments among the original disks; determining an original repeat interval of the original parity pattern; creating an intermediate parity pattern based on the original parity pattern, the intermediate parity pattern indicating parity block assignments among the original disks and the new disk; determining a number of parity blocks assigned to each original disk within the intermediate parity pattern; determining a total number of disks in the DPDA including the original disks and the new disk; calculating a transfer number equal to the number of parity blocks assigned to each original disk within the intermediate parity pattern divided by the total number of disks within the DPDA; creating a new parity pattern by transferring to the new disk within the intermediate parity pattern a number of parity blocks from each original disk equal to the transfer number; and redistributing the parity blocks within the DPDA to conform the new parity pattern. - View Dependent Claims (2, 3, 4, 5, 6)
- DPDA”
-
7. A computer system comprising:
-
a host computer; a DPDA controller in communication with the host computer, the DPDA controller comprising a processor in communication with a memory, the memory storing computer executable code; a plurality of original data storage devices (“
disks”
) coupled to at least one of the host computer or the DPDA controller;a DPDA comprising at least two of the original disks, the DPDA comprising a plurality of stripes; a DPDA metadata storage area within at least one of the original disks; and a data structure comprising an original parity pattern within the metadata storage area that defines an original repeat interval of parity blocks distributed within the DPDA, wherein, when a new disk is added to the DPDA, the processor executes the computer executable code to perform DPDA controller functions comprising; reading the original parity pattern from the data structure and storing the original parity pattern in the memory; determining the original repeat interval of the original parity pattern; creating an intermediate parity pattern based on the original parity pattern, the intermediate parity pattern indicating parity block assignments among the original disks and the new disk, and storing the intermediate parity pattern in the memory; determining a number of parity blocks assigned to each original disk within the intermediate parity pattern; determining a total number of disks in the DPDA including the original disks and the new disk; calculating a transfer number equal to the number of parity blocks assigned to each original disk within the intermediate parity pattern divided by the total number of disks within the DPDA; using the data structure to determine a location of parity blocks within the DPDA; creating a new parity pattern by transferring to the new disk within the intermediate parity pattern a number of parity blocks from each original disk equal to the transfer number;
modifying the data structure with the new parity pattern; andredistributing parity blocks within the DPDA to conform to the new parity pattern within the modified data structure. - View Dependent Claims (8, 9, 10)
-
-
11. A method of adding a new data storage device (“
- disk”
) to a pre-existing striped parity RAID array composed of original disks, comprising;determining an original parity pattern of the RAID array which defines a repeated distribution of parity blocks throughout the RAID array across the original disks; creating a new parity pattern from the original parity pattern by repeating the original parity pattern within the new parity pattern a number of times equal to the least common multiple between the length of the original parity pattern and the number of total disks, including the original disks and the new disk, the new parity pattern defining a repeated distribution of parity blocks throughout the RAID array across the original disks and the new disk; assigning symbolic identifiers to the parity blocks within the new parity pattern after repeating the original parity pattern within the new parity pattern, there being as many different types of symbolic identifiers as an order of parity of the RAID array, each disk within the new parity pattern being assigned an equal number of each of the different types of symbolic identifiers, each of the parity blocks corresponding to a particular stripe within the new parity pattern being assigned exactly one of each type of symbolic identifier; selecting one of the different symbolic identifiers; identifying a select number of parity blocks assigned the selected symbolic identifier from each original disk within the new parity pattern; and redistributing the parity blocks throughout the original disks and the new disk in accordance with the new parity pattern, wherein the redistribution comprises; moving the identified parity blocks from the original disks to the new disk within the new parity pattern; and balancing the distribution of parity blocks so that the each of the original disks and the new disk has the same number of parity blocks within the new parity pattern, wherein the original parity pattern is repeated within the new parity pattern at least twice before balancing the distribution of parity blocks within the new parity pattern. - View Dependent Claims (12)
- disk”
Specification