Referencing: https://lemmy.world/post/17588348

I want to make a NAS with a 500GB boot drive and 2x16TB HDDs. Based on my previous post, btrfs is a good option. It also looks easy to get started. My plan for the NAS would be to purchase several 16TB drives, and only use 2 of them.

My first question is about different drives. Could I purchase two different brand drives and use them with btrfs? (I assume yes)

2nd question: how does the replacement process go? Like if drive A died, so I remove it, and put a brand new replacement in. What do I have to do with btrfs to get the raid 1 back going? Any links or guides would be amazing.

@tobogganablaze@lemmus.org
link
fedilink
English
5
edit-2
4M

My first question is about different drives. Could I purchase two different brand drives and use them with btrfs? (I assume yes)

You can.

2nd question: how does the replacement process go? Like if drive A died, so I remove it, and put a brand new replacement in. What do I have to do with btrfs to get the raid 1 back going? Any links or guides would be amazing.

Depends on what NAS/Software you have. If your NAS supports hot-swaps you can just pull out the defective drive and plug in another. Otherwise you’ll have to shut it down, swap the drive and turn it back on.

If you have already have the spare drive ready and you have slots availible, you can run a “hot spare”. This way you can even start the raid rebuild if you’re not physically near your NAS (like when a drive fails while you’re on holiday or sm).

@Dust0741@lemmy.world
creator
link
fedilink
English
24M

Hm okay. I was thinking of using Debian and likely a 4 bay case.

So the process for a dead HDD: Power off. Pull out dead drive and replace. Power on. Now what? Does Debian/a specific motherboard support auto rebuilding the raid 1? Or what are the commands to rebuild?

Btrfs has it’s own build-in raid. From what I understand you should mount the filesystem with -o degraded and then use btrfs replace to switch to the new drive. I’ve never had to do that myself yet though.

@tobogganablaze@lemmus.org
link
fedilink
English
2
edit-2
4M

I’m using Synology/DMS and there you have a pretty neat GUI that lists newly detected drives and let’s you assign them to your storage pool and rebuild the raid. I’d expect it to be quite similar on software like TrueNAS Rockstor.

Tywèle [she|her]
link
fedilink
English
54M

TrueNAS uses ZFS

Ah, my bad.

Create a post

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!

  • 1 user online
  • 157 users / day
  • 444 users / week
  • 1.17K users / month
  • 3.85K users / 6 months
  • 1 subscriber
  • 3.69K Posts
  • 74.2K Comments
  • Modlog