I want to create a soft RAID-5 and use UUIDs im the mdadm config file. So I have four disks with 1 partition each that spans the whole disk. But since the partitons don'5 have a filesystem, blkid does not give a UUID. Is there a way to do that?
I want to create a soft RAID-5 and use UUIDs im the mdadm config file. So I have four disks with 1 partition each that spans the whole disk. But since the partitons don'5 have a filesystem, blkid does not give a UUID. Is there a way to do that?
You first create the RAID5 device and then use the UUID of it in your mdadm.conf, not the UUID for a filesystem:
So I have a
mdadm.conf
ofUse the entries in
/dev/disk/by-id
to reference the parts of the RAID. For example:/dev/disk/by-id/ata-ST9320423AS_5VH56VSB
First create your desired raid array with mdadm command. As soon as this is done you will have a UUID for the md. Then you can create a mdadm.conf with
Verify later on with
ls -l /dev/disk/by-uuid/