this post was submitted on 14 Dec 2023
30 points (84.1% liked)

Selfhosted

39256 readers
348 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS
 

I recently got a few (5) hard drives to turn my home server into a NAS with trueNAS scale and my idea is to have 4 usable and 1 for redundancy, my question is... How does RAID work, like what is RAID 0, RAID 5, software RAID etc, and does any of that even matter for my use case?

you are viewing a single comment's thread
view the rest of the comments
[–] c0mbatbag3l@lemmy.world 8 points 9 months ago (4 children)

If you have four drives you can do RAID 6 assuming your controller supports it.

RAID 0 just puts your data on multiple drives, giving you higher read/write speeds but with no built in redundancy.

RAID 1 is just a copy, you have your data duplicated so that if anything fails there's an immediate copy. No increase in RW speeds.

RAID 5/6 use "parity data" which operates somewhat like RNA/DNA when going through mitosis. The four building blocks TCGA only connect with one of the other four in pairs of two, so even if you have half the data (RNA) you know what the other half is by logical extension. The difference is that 5 uses 3 drives at a time whereas 6 uses 4, you can only withstand the failure of one drive in RAID 5 but 6 can handle the loss of two.

RAID 10 (one-zero, not "ten") does exactly what the name suggests, it combines the direct copy of RAID 1 with the striping of RAID 0 to give you double RW speeds with redundancy.

Each one will reduce your overall storage by a certain amount, either because of copying the data completely or taking up space for "parity data." The only one that doesn't do this is RAID 0 but you have absolutely no redundancy there and if You're considering RAID for home use I'm going to assume that's important to you.

[–] pory@lemmy.world 3 points 9 months ago (1 children)

I thought RAID1 enabled faster reads too, because both drives have the complete file. Writes don't get a speed bump ofc, since those are still bottlenecked by the slowest single drive in the array

[–] c0mbatbag3l@lemmy.world 2 points 9 months ago

That could be, I was trained in systems admin but work as a network engineer by profession. I've only set up one server in an enterprise environment and it was using RAID 6.

I'd assume you could read from both disks at the same time though.

load more comments (2 replies)