Ask Your Question

Dracut MDADM Wrong Disk Assignment

asked 2016-06-23 02:32:48 -0500

dcrdev gravatar image

updated 2016-06-23 02:36:33 -0500

I'm trying to install Fedora 24 on a full disk md raid 1 as oppose to raiding each partition individually - this is so I can raid the efi boot partition. I've got the system to recognise the bootloader (systemd-boot) by creating my mdadm array with version 1.00 of the metadata which puts the superblock at the end of the disk, thus allowing efi to see the boot partition as a regular vfat filesystem.

Problem is the system drops to the dracut emergency shell when trying to mount the root filesystem, looking at the logs it appears that it's looking for /dev/sda(2/3) and /dev/sdb(2,3) when in actual fact it should be looking at /dev/md0pX.

When I was creating the initramfs I made sure that /etc/fstab was referring to the correct device and I also ensured that /etc/mdadm.conf was present and referring to /dev/md0. Prior to the boot process exiting due to the wrong device assignment it does actually bring up the array successfully.

I'm not all that familiar with how dracut works - could someone tell me if I'm missing anything obvious?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-07-12 20:05:43 -0500

ssieb gravatar image

I don't have an EFI system that I can test it on, but in a VM there was no problem. I created the RAID array out of two disks and when the installer started, it only showed the raid array as the available disk and installed with no problem.

Unfortunately, I can't test EFI since the only EFI systems I have access to are laptops with single hard drives. If it continues to be a problem, why don't you just switch the computer to BIOS mode (CSM?) and do it that way. I assume you don't have windows on it.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2016-06-23 02:32:48 -0500

Seen: 230 times

Last updated: Jul 12 '16