Calculate RAID array usable capacity, redundancy, efficiency, and fault tolerance, plus memory and file-storage estimates for arrays.
- All Miscellaneous Calculators
- Drive Capacity Calculator
- Backup Capacity Calculator
- Storage Percentage Calculator
- Data Size Calculator
- Video File Size Calculator
Calculator Functions
| Function | What it does | What it requires |
|---|---|---|
| RAID — equal drives | Estimates the usable capacity of a RAID 0, 1, 5, 6 or 10 array, JBOD or spanned set of identical drives | Requires the RAID level, the number of drives and the capacity per drive |
| RAID — mixed drives | Estimates usable capacity when the drives differ in size | Requires the RAID level and a list of every drive size with its unit, up to 200 drives |
| RAID 50 / 60 — equal drives | Estimates the usable capacity of RAID 5 or RAID 6 groups striped together | Requires the RAID level, the number of groups, the drives per group and the capacity per drive |
| RAID 50 / 60 — mixed drives | Estimates RAID 50 or RAID 60 capacity when the drives differ in size | Requires the RAID level, the number of groups, the drives per group and a list with one size for every drive |
| Memory for an array | Finds the memory taken by an array of fixed-size elements | Requires the number of elements and the element data size. Per-element overhead, fixed overhead and alignment in bytes are optional |
| Elements that fit in memory | Finds how many whole elements fit in a given amount of memory | Requires the available capacity and the element data size. Per-element overhead, fixed overhead and alignment in bytes are optional |
| Files that fit in storage | Estimates how many files of an average size fit in a storage capacity | Requires the available capacity and the average file size. Reserved capacity in percent, 10 when blank, and per-file overhead in bytes are optional |
TB, GB, MB and kB are decimal units and TiB, GiB, MiB and KiB are binary units: 1 GB is 1,000,000,000 bytes and 1 GiB is 2³⁰ = 1,073,741,824 bytes [2]. RAID results are shown in both, with the raw capacity, the space given to redundancy and the drive failures the array survives.
Array Capacity Formulas
| U | Usable capacity before formatting |
| D | Number of drives’ worth of space left for data at the chosen RAID level |
| s | Capacity of the smallest drive |
RAID — equal drives
D depends on the level. RAID 0 stripes data with no parity, RAID 1 mirrors it, RAID 5 gives up one drive’s worth of space to rotating parity, and RAID 6 uses dual parity and survives two drive failures [1].
| Level | D for n drives | Fewest drives | Failures survived |
|---|---|---|---|
| RAID 0 | n | 2 | None |
| RAID 1 | 1 | 2 | n − 1 |
| RAID 5 | n − 1 | 3 | Any 1 |
| RAID 6 | n − 2 | 4 | Any 2 |
| RAID 10 | n ÷ 2 | 4, even | 1 in each mirrored pair |
| JBOD or Spanning | Sum of all drives | 1 | None |
Four 8 TB drives in RAID 5 give 3 × 8 = 24 TB, and six 4 TB drives in RAID 6 give 4 × 4 = 16 TB. JBOD and spanning join the drives end to end [1], so the usable capacity is simply their total.
RAID — mixed drives
Each member of a RAID 0, 1, 5, 6 or 10 set contributes only as much as the smallest drive. Drives of 8, 10 and 12 TB in RAID 5 give 2 × 8 = 16 TB: 8 TB goes to redundancy and 6 TB on the two larger drives is left unused. In JBOD the same three drives give 30 TB.
RAID 50 / 60 — equal drives
D = g × (d − 2) for RAID 60
g is the number of groups and d the drives in each group. Each group is a RAID 5 or RAID 6 set, and the groups are striped together [1]. Two groups of four 4 TB drives give 2 × 3 × 4 = 24 TB in RAID 50 and 2 × 2 × 4 = 16 TB in RAID 60. RAID 50 needs at least 3 drives per group and RAID 60 at least 4, with at least 2 groups.
RAID 50 / 60 — mixed drives
The same count of data drives is multiplied by the smallest drive anywhere in the array. Two groups of three drives, with three 4 TB and three 6 TB drives, give 2 × 2 × 4 = 16 TB in RAID 50. The list must hold exactly g × d sizes.
Memory for an array
total = N × stride + fixed
S is the element data size, o the per-element overhead, a the alignment and N the number of elements, all in bytes. With no overhead and an alignment of 1, the total is N × S: 100 elements of 4 bytes take 400 B. With 5-byte elements, 2 bytes of overhead each and 8-byte alignment, the stride is 8 B, so 1,000 elements plus 16 B of fixed overhead take 8,016 B.
Elements that fit in memory
stride)
C is the available capacity in bytes. With 1 GiB and 4-byte elements, 1,073,741,824 ÷ 4 = 268,435,456 elements fit.
Files that fit in storage
(1 − r ÷ 100) ÷ (F + o))
r is the reserved capacity in percent, F the average file size and o the per-file overhead. With 1 GiB, a 10% reserve and 4 MiB files, 966,367,641 bytes are available and 230 files fit.
Limits of This Estimate
- RAID capacity is given before the filesystem is created. Controller metadata, hot spares and filesystem overhead reduce it further, and RAID is not a backup.
- The mixed-drive result uses the smallest drive for every member. Some controllers and software arrays can use part of the extra space on larger drives.
- The memory functions describe a contiguous array with a fixed stride. Object headers and allocator overhead in a given language or runtime have to be entered as overhead.
- The file count uses one average file size. Real files vary, and filesystems allocate space in whole blocks.
Sources
- SNIA, Common RAID Disk Data Format Specification, Revision 1.2: definitions of the RAID levels, concatenation and striped groups
- NIST, Prefixes for binary multiples: decimal GB and binary GiB
