How does Synology Hybrid RAID work?

6

3

I'm not looking for what Synology Hybrid RAID (SHR) allows the user to do, but rather, what is the concept that SHR uses to allow you combine disks of different sizes? In most RAID implementations such as ZFS, Linux RAID/mdadm or Btrfs, only disks of the same size can be combined. I have also heard that SHR is based on Linux RAID, and if so, how can it allow me to use different sized disks when standard Linux RAID can't? Does it use a scheme where disks are partitioned into equal sized chunks and then setup in an array? The documentation on Synology's website explains the outcome that SHR can achieve, but now how it achieves it, which is what I would like to know.

wispi

Posted 2018-10-10T23:49:46.610

Reputation: 61

Look up JBOD. Synology isn't the only people doing this, and it's not a unique or new technology. – music2myear – 2018-10-10T23:54:27.340

1@music2myear I am familiar with the concept of JBOD, however JBOD provides no redundancy, whereas SHR does provide redundancy. – wispi – 2018-10-10T23:56:26.370

It might be some proprietary format - hence why the name Synology Hybrid Raid.. your best bet is to ask Synology directly. – Darius – 2018-10-11T01:23:21.103

Easiest way to find out is probably to log in to an existing synology box (it uses Linux), and have a look at how it is set up. – dirkt – 2018-10-11T05:37:42.720

@dirkt Unfortunately, I don't own a Synology box. – wispi – 2018-10-11T22:48:01.260

To the best of my experience SHR is a hybrid of RAID and JBOD. It allows prioritization of storage space or redundancy, and can run with only partial redundancy. This article seems to offer some information (but still lacks any sort of deep-dive) https://nascompares.com/2016/07/06/what-is-shr-and-what-is-the-difference-between-synology-hybrid-raid-and-ordinary-raid/. As others have mentioned, the place to learn what you want is Synology themselves, and it is up to them whether or not they publish information about their technology.

– music2myear – 2018-10-11T23:00:41.417

Answers

4

Synology Hybrid RAID works as follows:

  • One md RAID 1 across all disks for the NAS root file system (about 2.3GB on my system).
  • One md RAID 1 across all disks for swap (about 2GB on my system).
  • One LVM volume group containing multiple md RAIDs (either RAID 5/6 or RAID 1 for two devices).

If you have 2⨉1TB and 2⨉2TB, there would be two md devices in the VG: One with 1TB (minus root and swap) across all devices and another one with 1TB across the two larger devices.

When you replace one of the 1TB devices with a 3TB device, the first md will be repaired, the second md will be reshaped to a RAID 5 containing the "second TB" of each of the larger 3 devices and the last TB is not available.

As soon as you replace one of the 2TB devices with another 3TB device, a RAID1 of the last TB of the now two 3TB devices will be created and added to the LVM VG.

siegi

Posted 2018-10-10T23:49:46.610

Reputation: 237