I have multiple external storage-spaces which can be mounted with
Over these spaces I want to create a raid device.
My idea was the creation of data files with
dd if=/dev/zero of=/extStorages/storage[0..x]/data
Now I created loop devices with
losetup /dev/loop[0..x] /extStorages/storage[0..x]/data
And create the raid device on top of the loop devices
mdadm --create /dev/md/md0 --level=<level> --raid-devices=x /dev/loop0 .. /dev/loopx mkfs.ext4 /dev/md/md0 mount /dev/md/md0 /Storage
This is working until the next reboot as the loop devices are not persistent.
Therefore mounting the raid on
fstab isn't possible.
How can I solve this?