Writing data into redundant array of independent disks (RAID) of storage system
AssigneeHuawei Technologies Co., Ltd.
InventorsLetian Yi, Xin Fang, Zhenhua Zhang
Life of this patent
Estimating the term…
Abstract
In a storage system, a control device determines that at least one first storage device of X storage devices is out of service. Then, the control device selects a second storage device from the X storage device. A quantity of stripe members of a data stripe stored in the second storage device is less than a ratio of T divided by X. The control device further writes target data into the second storage device. The target data is a data unit or a check unit used to update at least one stripe member of the data stripe stored in the first storage device.
Claims16
A method for writing data into a storage system comprising a control device and X storage devices forming a redundant array of independent disks (RAID), wherein a data stripe having T stripe members is stored in the RAID, and wherein X and T are integers, the method comprising:
- when a first storage device of the RAID that stores at least one stripe member is out of service, selecting, by the control device, a second storage device of the RAID, wherein a quantity of stripe members of the data stripe stored in the second storage device is less than a ratio of T divided by X;
- and
- writing, by the control device, target data into the second storage device, wherein the target data is a data unit or a check unit that is used to update the at least one stripe member of the data stripe stored in the first storage device.
A method for writing data into a storage system comprising a control device and X storage devices forming a redundant array of independent disks (RAID), wherein a data stripe stored in the RAID includes N+M stripe members in which N are data units and M are check units generated based on the N data units, and wherein X, M and N are integers, N≥2, M≥1, and N+M≥X;
- the method comprising:
- when a first storage device of the RAID that stores at least one stripe member is out of service, selecting, by the control device, Y+1 second storage devices of the RAID;
- and
- writing, by the control device, target data into the Y+1 second storage devices,
- wherein Y=M−(┌(N+M)/X┐−1), wherein the target data is one or more data units or one or more check units used to update the at least one stripe member of the data stripe stored in the first storage device, and wherein ┌(N+M)/X┐ is a ceiling function of (N+M)/X.
A storage system, comprising a control device and X storage devices forming a redundant array of independent disks (RAID), wherein a data stripe having T stripe members is stored in the RAID, wherein X and T are integers;
- wherein the control device is configured to:
- when a first storage device of the RAID that stores at least one stripe member is out of service, select a second storage device of the RAID, wherein a quantity of stripe members of the data stripe stored in the second storage device is less than a ratio of T divided by X;
- and
- write target data into the second storage device, wherein the target data is a data unit or a check unit that is used to update the at least one stripe member of the data stripe stored in the first storage device.
A storage system, comprising a control device and X storage devices forming a redundant array of independent disks (RAID), wherein a data stripe stored in the RAID includes N+M stripe members in which N are data units and M are check units generated based on the N data units, and wherein X, M and N are integers, N≥2, M≥1, and N+M≥X;
- wherein the control device is configured to:
- when a first storage device of the RAID that stores at least one stripe member is out of service, select Y+1 second storage devices of the RAID;
- and
- write target data into the Y+1 second storage devices,
- wherein Y=M−(┌(N+M)/X┐−1), wherein the target data is one or more data units or one or more check units used to update the at least one stripe member of the data stripe stored in the first storage device, and wherein ┌(N+M)/X┐ is a ceiling function of (N+M)/X.
Dependencies are inferred from the claim text.