Best practices for mdadm, LVM and Btrfs in a file server?

Ubuntu Version:
25.10

Desktop Environment (if applicable):
GNOME

Problem Description:
No problem whatsoever. I’m just a very beginner in Linux’s world (I’ve only successfully set up a mini PC which serves my home automation with lots of dockers on it), and now I have a new computer that I’d like to use as file server to be connected to a couple of Macs in my office.

I’m in the process of moving my old file stores to this more modern setup, and I’m planning on settling on using Btrfs for its bitrot prevention, scrubbing and checkpointing features, which are very important for me. I have a few questions, however, about the best technologies to use around Btrfs.

My understanding is that Btrfs isn’t great at Raid5/6 (which is the thing I’d do as I have 3 disks available), and only considers Raid0/1 fully stable. Running Btrfs on mdadm’s Raid5/6 is safe though, correct? Also, if I’m not planning on spanning or resizing volumes at all, so LVM doesn’t really gain me much here, does it?

My initial plan is to run three drives in Raid5 via mdadm, and then use Btrfs on top of that. Are there any sticking points or best practice breakdowns in that sort of setup? Or is it better to go with Btrfs raid directly and why?

Any link to articles, guides, and documentation in general will be very much appreciated.

Thanks for any help you can offer!

If I may, I would suggest you to adopt ZFS which is far more competent as a file system over many disks.
I only had failures with btrfs (twice it eat my partition table) and since then I am very happy with zfs.

You may, thanks :pray: for the answer.
ZFS is very robust indeed, but it requires lots of RAM to work well (I follow the TrueNAS forum) and it’s performance are really ugly.

RAID 10 is also stable. You can use RAID 10 with three drives: take a look at the available profiles. There’s also a calculator to check space usage across multiple drives.

1 Like

say what? my laptop with 32gb ram is very fast, using 2 SSD.
Don’t quote others from forums, test it by yourself.

I have more than 50TB of data, don’t you think I would need a lookouts of RAM to have ZFS working properly in a 10GB/s etc network?