Synology's Hybrid RAID (BTRFS+SHR) deep dive - Can I trust it?

Поділитися
Вставка
  • Опубліковано 8 чер 2024
  • Synology recommends BTRFS to deliver its SHR data protection solution, but BTRFS has a reputation for an untrusted RAID5 and 6 implementation. How does Synology provide the benefits that come with BTRFS, without those risks? I also cover how the BTRFS differs from EXT4 and how it provides features like snapshots.
    Link to my video on why to use SHR and how it compares to RAID - • RAID vs SHR - Why you ...
    Link to my video on RAID and RAID parity - • How does RAID and RAID...
    You can support me at www.buymeacoffee.com/sometechguy
    Thank you to everyone for watching!
  • Наука та технологія

КОМЕНТАРІ • 19

  • @PeterHonig.
    @PeterHonig. 9 місяців тому +3

    I am glad that I ran across your YT channel, as your videos are topnotch!

    • @sometechguy
      @sometechguy  9 місяців тому +2

      Appreciate the comment, thank you!

  • @Croissant---
    @Croissant--- 9 місяців тому +3

    Great work! Keep it up man

    • @sometechguy
      @sometechguy  9 місяців тому +1

      Thank you, appreciate it!

  • @jensdroessler3575
    @jensdroessler3575 5 місяців тому

    Interesting stuff! I‘d like to know details of how Synology migrates from mirror to RAID5 equivalent, and from SHR to SHR2. Do you know any specifics?

    • @sometechguy
      @sometechguy  4 місяці тому +1

      SHR will use the underlying MD driver to perform this, so its the standard MD process to move from one RAID type (RAID5) to another (RAID6). The TL:DR on this would be that its a very slow and long process where the parity needs to be recalculated for every bit on every drive in the array from the data of all the other disks. I am performing a SHR-1 to SHR-2 migration currently on a NAS, going from 5 18Tb drives to 6 and this looks to take around ~30 days to complete. And this isn't Synology specific, it would presumably take a similar time on any Linux box with MD running. And looking at utilization during this process, the NAS is not CPU or memory bound, it just looks to be IO wait.
      I also performed a disk replace to upgrade a disk from 6Tb to 20Tb in a different SHR-2 array, and this took about 15 hours. And this operation is a pure copy operation. I will likely summarize both of these into a video once the migration is complete for those who have the same questions and to see how the process looks in advance of people doing it themselves.
      Hope this helps

  • @MR-vj8dn
    @MR-vj8dn 3 місяці тому

    Interesting. Not sure about if “md” itself will handle creating a SHR like partition (on a regular Linux machine).

  • @DaveEtchells
    @DaveEtchells 2 місяці тому

    Great vid!
    Is there any at all to scrub an ext4 volume? I guess you could write a script that would copy every file and delete the original once the write was complete. That’d at least force all the file data to go through the RAID logic, which should clean it up as long as you didn’t have more simultaneous errors than your parity would support.
    I have a total of ~27 TB on a 32 TB SHR volume spanning 8 disks including two spares. It’s for long-term storage and isn’t even powered on most of the time. I worry about bit rot, but unfortunately at the time I set it up, btrfs wasn’t at all stable on Synology.
    I dunno, maybe I’m just being too paranoid, since I’d think that random flipped bits here or there would get sorted out by the parity logic.
    (OTOH, best practices say you should rewrite any hard drive data more than ~5-10 years old, so many I should just have one of the AIs write me a big old data-refresh script at some point?)

    • @sometechguy
      @sometechguy  2 місяці тому +1

      ext4 doesn't offer scrubbing unfortunately, this is primarily a capability of BTRFS and ZFS (and some less known FS's). But yes, the parity logic is only really to recover from disk errors / failures and not data corruption. There may be system tools that would do the job on ext4, but not sure off hand.
      Not sure how fast data rots on unpowered magnetic media. Its certainly way better than on NAND but maybe 10 years significantly increases the chance that enough bits got flipped that you have a problem.
      Maybe its time for some shiny 20tb disks running SHR with BTRFS and copy that data over. :-)

    • @DaveEtchells
      @DaveEtchells 2 місяці тому

      @@sometechguy Haha - yeah, a pack of new 20TBs and Btrfs would certainly be a bump in reliability :-) This is just purely archival data from a former business (I tested cameras and lenses for 20+ years), so there’s really no justification or budget for putting any money into it.
      We’ll see, maybe in 5 years I’ll just buy a pair of 36 TB drives for $150 each, make two copies and forget about it 😂
      Thanks for the super-quick answer, btw!

  • @manuelthallinger7297
    @manuelthallinger7297 Місяць тому

    Isnt this against the GPL from Synology, using btrfs without open sourc

    • @sometechguy
      @sometechguy  Місяць тому

      I would think they can fork it, but I don’t know the specific terms for the btrfs code.Many commercial products are built on open source code bases.

  • @ntfsguy3601
    @ntfsguy3601 5 місяців тому

    CoW is also used by Microsoft's ReFS.

    • @sometechguy
      @sometechguy  5 місяців тому

      This is really interesting, thank you. I will take a deeper look at ReFS. Seems it’s the future replacement for NTFS?

    • @harryshuman9637
      @harryshuman9637 5 місяців тому +1

      @@sometechguy It's gonna take MS so long to roll it out Windows will no longer be relevant.

  • @joshuaspires9252
    @joshuaspires9252 4 місяці тому

    I am annoyed with the meh performance of zfs so far on my unraid. another issue torrent files are normally dynamic and grow as it downloads thus over ran a couple of my HDD in the array.. so i had to manually move files,, thus i was looking in to BTRFS for my unraid now you be saying don't due to torrents :(

    • @sometechguy
      @sometechguy  4 місяці тому +1

      I think torrents should be fine. But yes, probably don't use Copy on Write on the volume for the torrents downloads directory as the files will be constantly growing, and that could result in constantly creating new files. But you can put the completed files on a different volume with CoW enabled. This isn't something I have done, but it seems reasonable.
      On Synology you can do this not enabling data checksum when you create the volume, but cannot be edited later.
      Does that help?

  • @bartowl
    @bartowl 7 місяців тому +3

    so much video and still it is not clear how SHR is organized on disks, except that it is handled by md driver. also it is also not really clear if you can have ext4 on SHR, as you state that btrfs is mandatory for SHR and yet there are boxes running ext4 on SHR organized disks... I expected a bit more :/

    • @sometechguy
      @sometechguy  7 місяців тому +2

      Sorry if it didn't have what you wanted, but I would say that all videos can't be all things to all people. MD uses standard RAID semantics, and I do have a video that covers how the various RAID types organise data, that explains things like RAID1, RAID5 and RAID6 which the SHR implementation use under the hood with MD. I also have another video with higher level on how SHR organises its data to maximise drive usage.
      For reasons of time, i wanted to keep the video to a specific topic. There is always more that can be added, and some people want more detail, and some less.
      On the other EXT4 point, you are correct and mandatory was the wrong word. I have tried to make it clear from the video title and description that this firmly about BRTFS and SHR, where BTRFS is the recommendation for many reasons I mention in the video. But it is, as you say possible to implement SHR with Ext4. I just wouldn't personally.