Set up software RAID on Linux using mdadm

4 pointsposted 7 months ago
by gergof

3 Comments

gergof

7 months ago

Recently, I decided to get a big upgrade for my home NAS, so I had to set up a RAID array once again. Since I’m not doing this on a daily basis, I tend to forget the commands, so I have a document with all the instructions. I think that it might be helpful for some of you, so I polished it up a bit.

I’m going to cover the following aspects of the process: - choosing the drives - choosing and setting up the HBA - choosing a software RAID solution - and finally setting up the array itself

throwawayqqq11

7 months ago

Thank you for sharing and also mentioning FS RAID solutions like zfs and btrfs.

I am in the process of creating my home NAS via nixos, "so i dont have to remember these steps". But as it seems, maintaining a RAID always involves manual steps.

I havent decided on zfs/btrfs/mdadm yet, but i am inclined to turn toward a FS solution, since they have apparently more resilience features, which mdadm lacks. Unfortunately you didnt touch that aspect of mdadm, maybe there are some knobs and alerts to tune.

yanko

7 months ago

having few most probable disaster recovery cases are must like simulating drive failure or pilling drive while raid is working and recovery followup Also booting with degraded raid