Skip to content

Experience with BTRFS RAID?

(inb4 the write hole. I know about it and address it below.)

Hi fellow Arch users -- I am seeking advice and anecdotes related to BTRFS RAID usage for at-home NAS.

Here's the deal. I recently acquired an external 5-bay HDD enclosure that attaches via USB-A 3.1. I would like to plug this into my Arch machine to serve as network attached storage for the rest of my home, and I would like to use RAID 5 to allow for single disk failure.

Since this is consumer grade hardware, I would rather use software RAID so that I have maximum control in (re)building the array. I currently use BTRFS on my root partition, and I quite like it. So I am hoping to use BTRFS in a RAID 5 configuration.

I am aware that BTRFS has a "write hole" in RAID 5/6 configurations. But from what I understand, any data loss requires (1) an in-progress write, (2) an unclean shutdown, and (3) a drive failure. A simple unclean shutdown results in a partial write that can be scrubbed without failure. In practice, it seems extremely unlikely to cause data loss, especially in a low-write environment like a home network.

So I have a few questions for the community:

  • Have you used BTRFS in a RAID 5 configuration? How was your experience? Any advice for configuring the array?

  • Will this setup even work? I have never used an external HDD bay before. Will each of the drives appear separately?

  • Which drives should I get? I see WD Red recommended frequently for NAS. But (1) my use case is general file storage and less media streaming, and (2) they are fairly pricey. The whole point of RAID is "redundant array of inexpensive disks". Should I just get the cheapest disks and rely on RAID for data integrity?

  • What's your favorite solution for BTRFS snapshotting? Do you script it out yourself or rely on some other tool? What about setting up cron jobs?

7 points8 comments
Open on Reddit
About this post
Posted
Archived
Score
7 · 75% up
Kind
Text
ID
rt1qed

Author

4
posts
104
comments
1
media
View profile
No comments archived yet. Reddit counts 8.

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.