Mad World #Save_GAZA: Free Palestine  

Search

RAID Calculator for Synology NAS: SHR, RAID 5, 6 and 10

RAID Calculator for Synology NAS: SHR, RAID 5, 6 and 10

This RAID calculator shows how much space each RAID type leaves for your files. Enter the size of each drive, as printed on its label: drives of different sizes work too. For every RAID type you get the space for files, the space used for protection, the space left unused, and how many drives can fail before you lose data.

It covers Synology's SHR and SHR-2 next to RAID 1, 5, 6 and 10, and it can show the sizes the way DSM, the Synology NAS system, shows them. We checked it against Synology's own RAID Calculator with the drives of our example: the numbers are the same.

RAID calculator

Your drives (size in TB, as printed on each drive)

    Show space

      The calculator opens with one 4 TB drive and two 8 TB drives. Type another size in a box, add a drive with + Add a drive (it copies the size of the last drive), or take one out with ×. The results change as you type.

      How to read the results

      • For files (blue): the space you can fill with your own data.
      • Protection (orange): the space RAID fills with parity or with a mirror copy, so that your files survive a dead drive.
      • Unused (striped): space on the drives that this RAID type cannot use. Classic RAID counts every drive as if it were the size of the smallest one, so the extra space of a larger drive is lost.
      • Drives that can fail: how many drives can stop working at the same time without losing data. "No drive can fail" means that one dead drive loses everything.
      • Most space with protection: the RAID type that gives the most space for files while it still survives a dead drive.

      Drive makers count in decimal units (1 TB is 1,000,000,000,000 bytes), while DSM counts in binary units and still writes "TB": an "8 TB" drive shows as 7.3 TB. Choose As DSM shows it to see the sizes Storage Manager will show you. That view also takes off about 10 GB of every drive, which DSM keeps for its system and swap partitions. When you create a volume, its file system keeps a little more for its own data: about 4% on Btrfs and 2% on ext4.

      RAID capacity for common setups

      Space for files with drives of the same size, in TB as printed on the drives (multiply by 0.91 for the size DSM shows). A dash means that the RAID type needs more drives, or an even number of drives for RAID 10. RAID 1 always gives the size of one drive: it keeps a full copy on each of its 2 to 4 drives.

      DrivesTotalSHRRAID 5SHR-2RAID 6RAID 10
      2 × 4 TB8 TB4 TB––––
      2 × 8 TB16 TB8 TB––––
      2 × 16 TB32 TB16 TB––––
      3 × 4 TB12 TB8 TB8 TB–––
      3 × 8 TB24 TB16 TB16 TB–––
      4 × 4 TB16 TB12 TB12 TB8 TB8 TB8 TB
      4 × 8 TB32 TB24 TB24 TB16 TB16 TB16 TB
      4 × 12 TB48 TB36 TB36 TB24 TB24 TB24 TB
      4 × 16 TB64 TB48 TB48 TB32 TB32 TB32 TB
      5 × 8 TB40 TB32 TB32 TB24 TB24 TB–
      5 × 16 TB80 TB64 TB64 TB48 TB48 TB–
      6 × 12 TB72 TB60 TB60 TB48 TB48 TB36 TB
      8 × 16 TB128 TB112 TB112 TB96 TB96 TB64 TB

      With drives of the same size, SHR gives the same space as RAID 5 (or as RAID 1 with two drives), and SHR-2 the same as RAID 6. The difference shows with mixed sizes:

      DrivesTotalSHRRAID 5SHR-2RAID 6
      4 TB + 8 TB + 8 TB20 TB12 TB8 TB––
      4 TB + 4 TB + 8 TB + 8 TB24 TB16 TB12 TB8 TB8 TB
      2 TB + 4 TB + 6 TB + 8 TB20 TB12 TB6 TB6 TB4 TB
      4 TB + 8 TB + 12 TB + 16 TB40 TB24 TB12 TB12 TB8 TB
      8 TB + 8 TB + 16 TB + 16 TB48 TB32 TB24 TB16 TB16 TB
      4 TB + 4 TB + 4 TB + 8 TB + 8 TB28 TB20 TB16 TB12 TB12 TB

      What is Synology SHR?

      SHR (Synology Hybrid RAID) is Synology's way of building RAID from drives of different sizes. DSM cuts the drives into slices: a first slice the size of the smallest drive, on every drive, then a next slice on the drives that are larger, and so on. Each slice is protected on its own, and DSM joins the slices into one storage pool.

      With our example of one 4 TB and two 8 TB drives:

      1. The first slice uses 4 TB of each of the three drives, with parity like RAID 5: 8 TB for files.
      2. The second slice uses the other 4 TB of the two 8 TB drives, as a mirror: 4 TB for files.

      That makes 12 TB for files, where RAID 5 gives 8 TB and leaves 8 TB unused. Space that only one drive has (or, with SHR-2, only one or two drives) cannot be protected and stays unused, as the calculator shows.

      SHR survives one dead drive once the pool has two drives or more; SHR-2 survives two and needs at least four drives. SHR is on most home and small-office models, and it is the default when you set up a new NAS with Synology's DS finder app. Models built for RAID groups, mostly Synology's larger business models, do not offer it: check your model's datasheet.

      Like Synology's own calculator, this one assumes a storage pool created with all its drives at once. A pool that grows one drive at a time can end up smaller: Synology's example is an SHR pool of two 4 TB and two 8 TB drives, where swapping one 4 TB drive for a 6 TB one adds nothing, because no other drive matches the extra 2 TB. To grow an SHR pool, add or swap in drives at least as large as the largest drive already in it.

      SHR vs RAID 5

      • Drives of the same size: the same space and the same protection, one drive.
      • Mixed sizes: SHR uses the extra space of the larger drives as soon as two drives share it. With 4 + 4 + 8 + 8 TB, SHR gives 16 TB for files and RAID 5 gives 12 TB.
      • Growing later: with SHR you can buy larger drives one at a time. With RAID 5, a larger drive only counts as the size of the smallest one until every drive has been replaced.
      • When to pick RAID 5: on a model that does not offer SHR.

      You cannot switch a storage pool between RAID 1 and SHR later, but an SHR pool can be changed to SHR-2 when you add drives. Choose before you copy your files.

      RAID types on a Synology NAS

      N is the number of drives in the storage pool.

      RAID typeDrivesDrives that can failSpace for your files
      SHR (SHR-1)1 or more1 (0 with a single drive)Optimized by DSM for mixed sizes
      SHR-24 or more2Optimized by DSM for mixed sizes
      Basic10The drive's size
      JBOD1 or more0Sum of all drives
      RAID 02 or more0Sum of all drives
      RAID 12 to 4N − 1Smallest drive
      RAID 53 or more1(N − 1) × smallest drive
      RAID 64 or more2(N − 2) × smallest drive
      RAID 104 or more, even1, up to half if each one is in a different mirrored pair(N / 2) × smallest drive
      RAID F13 or more SSDs1(N − 1) × smallest SSD

      Not every model offers every type: it depends on the number of drive bays, and RAID F1 exists only on some all-flash models. Some types cannot grow later: a RAID 0 storage pool cannot be expanded, neither by adding drives nor by replacing them with larger ones.

      Which RAID type should you choose?

      • Two drives: SHR or RAID 1. Both keep a full copy of your files on each drive.
      • Three to seven drives: SHR, Synology's own advice, with a hot spare (a drive that waits to replace a dead one) from five drives. RAID 5 if your model has no SHR.
      • Eight drives or more, or files you cannot afford to lose: SHR-2 or RAID 6. Rebuilding a large drive takes many hours, and a second failure during the rebuild destroys a pool that survives only one.
      • Speed first, four or more drives of the same size: RAID 10.
      • A NAS with SSDs only, if it supports it: RAID F1. It writes more parity to one SSD on purpose, so that the SSDs do not all wear out at the same time.
      • Avoid RAID 0 and JBOD for anything you want to keep: one dead drive loses everything.

      A two-bay NAS such as the Synology DS218 can only use Basic, JBOD, RAID 0, RAID 1 or SHR; RAID 5, RAID 6 and SHR-2 need more drives.

      Check the numbers with Synology's RAID Calculator

      Synology has its own RAID Calculator on its website. We gave it the same drives, one 4 TB and two 8 TB, and compared SHR with RAID 5. Its numbers are those of our calculator in the As DSM shows it view:

      Synology RAID Calculator with one 4 TB and two 8 TB drives: SHR gives 10.9 TB of available capacity, RAID 5 gives 7.3 TB and leaves 7.3 TB unused
      Synology's RAID Calculator with 4 TB + 8 TB + 8 TB: (1) SHR, (2) RAID 5.
      4 TB + 8 TB + 8 TB, as DSM shows itFor filesProtectionUnused
      SHR10.9 TB7.3 TBnone
      RAID 57.3 TB3.6 TB7.3 TB

      Synology's tool shows two RAID types side by side and suggests NAS models for your drives, which helps before you buy one. The calculator on this page compares every type at once.

      RAID is not a backup

      RAID keeps the NAS running when a drive dies. It does not protect you from a deleted file, ransomware, a failed power supply or a fire: those reach every drive at once. Keep a second copy somewhere else, for example in the cloud (see Backblaze B2 vs Synology C2). To use the NAS itself as the backup target of a Mac, see how to back up a Mac to a Synology NAS with Time Machine.

      Frequently asked questions

      How do you calculate RAID 5 capacity?

      Multiply the size of the smallest drive by the number of drives minus one. Three 8 TB drives give (3 − 1) × 8 = 16 TB for files. RAID 6 takes two drives off instead of one: (N − 2) × the smallest drive.

      Is SHR better than RAID 5?

      With drives of the same size, they give the same space and the same protection. With mixed sizes, SHR gives more: 12 TB instead of 8 TB with 4 + 8 + 8 TB. RAID 5 stays the choice on models without SHR.

      How many drives can fail in SHR?

      One with SHR, once the pool has two drives or more, and two with SHR-2. An SHR pool with a single drive has no protection.

      Why does DSM show less space than my drives add up to?

      DSM counts in binary units (an 8 TB drive shows as 7.3 TB), keeps about 10 GB of each drive for itself, and uses space for protection; the file system then keeps a little more. A pool that grew one drive at a time can also end up below the calculator's estimate.

      Can I mix drive sizes in a Synology NAS?

      Yes. SHR is made for it. Classic RAID also accepts drives of different sizes, but it uses each drive only up to the size of the smallest one.

      What is the difference between SHR and SHR-2?

      SHR survives one dead drive and SHR-2 survives two. SHR-2 needs at least four drives and gives up the space of about two drives to protection.

      Sources

      Tags:
      Yassine

      Yassine

      Yassine founded IGProd to educate the visitors with technological tutorials. These helpful guides are available for all sorts of professionals and novices, whether they work in technology or not!

      Surf freely 💗

      Leave a comment

      Your email address will not be published. Required fields are marked *

      Your experience on this site will be improved by allowing cookies Cookie Policy