Ca I install separate /HOME partition on software raid 0?

I want to install Fedora 31 with a separate /HOME partition on a RAID 0 setup with two disks.


/ on main disk
/home on RAID 0 x2

How can this be done?

You will need to do this in steps if you do not already have the install completed and the devices defined as raid 0.

First install F31 on the main disk.
Then define the 2 devices as raid 0 and create the file system on them
After the raid is defined and the file system is created and formatted you can then mount the raid file system on /mnt, copy the content of /home to /mnt, edit /etc/fstab to mount the raid device on /home, reboot and enjoy the new configuration.

I think I have to format the drives before making the raid 0 array. Please confirm this.

I have this forum post on how to migrate the home partition and read the mdadm man page, guide

The command to make the raid array in stripe mode, mdadm --create /dev/md0 --level=0 --raid-devices=2 /dev/sd[bc]1

Command for copying the files over the new home partition, cp -r --preserve=all /home/* /mnt

fstab entry, /dev/md0 /home ext4 defaults,noatime 0 2

It seems that I can set the RAID array during installation. WIKI