i want to move the roofs of my Arcadyan ARV752DPW to an external USB-Flash-Drive. I have done this before, but only with one drive. Now I want to do it with two drives in RAID1.
I have made a RAID device with mdadm and two drives. Everything works fine until the next reboot. Then the RAID device is no longer created and of course can not be mounted. How can I automatically create the RAID device on every reboot?
Maybe somebody will correct me if I'm wrong, but I think you cannot put extroot on a raid device. It's because the mdadm process starts much later than mounting the root partition (see scripts in /etc/rc.d/).
Creating raid devices at every boot is easy, see the file /etc/config/mdadm. You should put the correct uuid in the config array section. You can find it with mdadm --detail /dev/md0.
latter is the important thing, it create md0 raid before the init process mount the system root
For the rest you need determine uuid after create the raid:
mdadm --detail /dev/md0
md1 is only my data partition
a little note, after sysupgrade I always the .extroot-uuid problem described in official Extroot documentation , so you need delete it after upgrade and reboot