Raspberry Pi mdadm 二重化
Configuring Software RAID Using Two or More Storage Devices (mdadm)
I couldn’t reproduce the steps for fear of breaking my environment. The following site is helpful.
https://e-penguiner.com/software-raid-using-mdadm-on-linux/
Incidentally, if you prepare the second HDD later, specifying missing as in the command below lets you set up a degraded RAID 1 (mirror) configuration with a single HDD. mdadm --create /dev/md0 --level=1 --raid-devices=2 missing /dev/sda1
You can check the RAID status by looking at /proc/mdstat.

By the way, once the HDD is ready, you can add it to the array with the following command:
mdadm /dev/md0 -a /dev/sdXX