I'm currently working on a project that requires me to write a script to identify a set of drives added for the purpose of storage and install them as a RAID array. I'm having trouble finding information on the actual creation process though beyond the commands necessary.
Do the drives I create the RAID from need to be formatted and partitioned first? Or does
mdadm --create
do this for you?I'm told that the project will support a variable number of drives. My boss suggested using RAID level 5, but unless I'm misunderstanding RAID levels, RAID level 5 requires at least 3 drives, where I think we're targeting using 2 to start. Do specific RAID levels have a minimum drive count?
To add the RAID array to my
fstab
file, do I just assemble it? Or do I also need to mount it before/after it's assembled?
I've found a few tutorials on the setup process, but beyond that, I haven't really been able to dig up this information.