RAID 1 and Debian 10

Recently I decided I wanted my own storage server again (and not a NAS). In the process, I wanted to ensure I’d have something that could handle hardware failures fairly robustly (I am hosting a lot of stuff at this point) and also have slightly more expandable storage that only 4 bays in a RAID 5.

Sourcing hardware isn’t super hard any more (even if you’re trying to avoid Amazon a bit) and with Ryzen supporting ECC RAM by default, we can even ensure we’re fairly well protected from bit rot, but ensuring the RAM you oder is actually ECC? Well that’s another story. I ended up on Memory4Less to find actually reliable memory.

The major challenge was ensuring the OS drive would be a software RAID 1. md arrays are fairly easy to create, but making them actually bootable is another story.

auto bond0

iface bond0 inet static
	slaves	enp4s0	enp5s0
sudo mkfs.btrfs -d raid1 -m raid1 /dev/sda /dev/sdb /dev/sdc /dev/sdd