I'm trying to setup a RAID6 on my Ubuntu machine with mdadm.
I read a few tutorials and all of them use partition names directly like:
$ sudo mdadm \
--create /dev/md0 \
--level=6 --raid-devices=4 \
/dev/sdb1 /dev/sdc1 /dev/sdd1 /dev/sde1
As far as I know partition names can change depending on where they're connected to.
So (logically) I tried to "bind" the partitions not by name but by UUID and surprisingly I didn't find much resources when it comes to doing that.
I've found one post here that I think tries the same.
The methodology in the post uses /dev/disk/by-partuuid/<X> where <X> is some ID presumably obtained through a command like sudo blkid /dev/sdX.
My question is now, how would I go about creating a RAID6 array with UUIDs instead of partition names?
Also, as a bonus: I've read that omitting devices in /etc/mdadm/mdadm.conf leads mdadm to "scan" the partitions for superblocks and assemble the array based on that. Is that a good methodology for a local RAID setup?