never really worked with raids so I figured I try it out on an old pc, this is what I did:
install opensuse and at the partitioning part I did the following
then made raid 1:
sda1 + sda1 as swap with name swap
sda2 + sdb2 as / with name root
sda3 + sdb3 as home with name home
all went well, opensuse got installed and all packaged where patched to latest release.
however when I reboot it hangs:
OK ] Found device /dev/md/swap
Activating swap /dev/md/swap…
OK ] Activated swap /dev/md/swap.
OK ] Reached target Swap.
*** ] A startjob is running for dev-md-home.device
which after a while changes into
TIME ] Timed out waiting for device dev-md-home.device
[DEPEND] Dependency failed for /home
[DEPEND] Dependency failed for Local File System.
Welcome to emergency mode! Afterlogging in, type “journalctl -xb” to view system logs, " systemctl reboot" to reboot, “systemctl default” to try again to boot into default mode.
that last messages just repeats but one can’t really login to tryp any of that.
So I went to search and learned about mdadm, so booted into rescue system with the USB stick and checked it all out with: mdadm -D /dev/md127, this showed that it was pending syncing, maybe that is why it said “A startjob is running” , so following some guides on the web:
mdadm --stop /dev/md127
mdadm --assemble --run --force --update=resync /dev/md127 /dev/sda3 /dev/sdb3
and after a while mdadm -D /dev/md127 showed status active, did the same for swap and / (md125 and md126)
rebooted and still got the same message.
fstab looks normal
/dev/md/swap swap swap defaults 0 0
/dev/md/root / ext4 acl,user_xattr 1 1
/dev/md/home /home ext4 acl,user_xattr 1 2
Sooooo what am I missing or doing wrong here ? is it systemd having issues mounting a raid1 or am I just doing something really obvious wrong ?