Method and apparatus for calculating storage system available capacity
OwnerRuliang Dong, Haixiao Jiang +4inventors
InventorsRuliang Dong, Haixiao Jiang, Jinyi Zhang, Qiang Xue, Jianqiang Shen, Gongyi Wang
Life of this patent
Estimating the term…
Abstract
A method for obtaining a storage system capacity is provided. An available capacity that is of a storage system and that is associated with each stripe length is obtained based on an obtained stripe length that can be effectively configured. Therefore, an available capacity of a system is optimally selected.
Claims18
A method for obtaining a storage system capacity in a redundant array of independent disks (RAID) storage system, wherein the RAID storage system comprises an available disk group (DGi), a quantity of disks in the available DGi is Ni, a capacity of a disk Di in the available DGi is CDi, and a capacity CDx of a disk Dx in a DGx is greater than a capacity CDx+1 of a disk Dx+1 in a DGx+1, wherein i is an integer from 1 to G, G is an integer, G is not less than 2, x is an integer, and x is an integer from 1 to G−1, wherein a stripe length that can be configured in the storage system is [r, z], and wherein r and z are positive integers and z is greater than r, and the method comprises:
- obtaining, by a processor of a management device, a candidate stripe length LORIGy, wherein a value of y is an integer in the stripe length from r to z that can be configured, and LORIGy=y;
- shrinking, by the processor of the management device, a capacity of a part of the disks in the available DGi, wherein the capacity of each disk is greater than CDG, to obtain a remaining capacity by disabling a portion of the capacity of the part of the disks based on an estimated capacity of the RAID storage system exceeding an actual capacity of the RAID storage system,
- wherein the estimated capacity is based on the capacity of the part of the disks and the stripe length LORIGy;
- obtaining, by the processor of the management device, an available capacity of the storage system and that is based on the remaining capacity;
- and
- providing, by the processor of the management device, an application access to the available capacity for the purpose of storing data.
A storage system comprising:
- a management device and a quantity of disks in Ni an available disk group (DGi),
- wherein, a capacity of a disk Di in the available DGi is CDi, and a capacity CDx of a disk Dx in a DGx is greater than a capacity CDx+1 of a disk Dx+1 in a DGx+1,
- wherein i is an integer from 1 to G, G is an integer, G is not less than 2, x is an integer, and x is an integer from 1 to G-1,
- wherein a stripe length that can be configured in the storage system is [r, z], and
- wherein r and z are positive integers and z is greater than r;
- and
- the management device comprising a processor and an interface, the processor communicating with the interface and the processor is configured to:
- obtain a candidate stripe length LORIGy, wherein a value of y is an integer in the stripe length from r to z that can be configured, and LORIGy=y;
- shrink a capacity of a part of the disks in the available DGi, wherein the capacity of each disk is greater than CDG, to obtain a remaining capacity by disabling a portion of the capacity of the part of the disks;
- obtain an available capacity of the storage system and that is based on the remaining capacity;
- and
- provide an application access to the available capacity for the purpose of storing data.
Dependencies are inferred from the claim text.