View previous topic :: View next topic |
Author |
Message |
NTPT n00b
Joined: 22 Mar 2005 Posts: 17
|
Posted: Wed Nov 18, 2015 3:59 pm Post subject: initramfs does not assemble raid arrays |
|
|
Hi, All.
I have a problem with GENTOO installed on UEFI machine (uefi boot)
I have /dev/sda1 as efi partition with vfat , mounted on /boot/efi
I have /dev/md2 md3 md4 md5 raid1 arrays with 1.2 metadata /boot swap / and /home
mdadm devices mdadm --scan --detail /etc/mdadm.conf
I create a ramdisk via genkernel --mdadm --mdadm-config=/dev/mdadm.conf --install initramfs
I also add mdraid1x grub2 module and "domdadm" in grub config kernel commandline in /etc/default/grub and regenerat grub2 config
result: Could not find root block device UUID=bla
Investigating found that there are no raid devices at all
Hovever if I manually assemble raid devices ie mdadm --asemble /dev/md2 md3 md4 md5 etc and ctrl+d
enviroment find the root and system boots
I am complettly confused and have no idea where to find an error. I suppose ti is a ramdisk job to load modules and then assemble a raid devices before switching to real root. |
|
Back to top |
|
|
szatox Advocate
Joined: 27 Aug 2013 Posts: 3137
|
Posted: Wed Nov 18, 2015 4:43 pm Post subject: |
|
|
And what boot options do you provide?
Those are must-have:
root=/dev/ram0 ramdisk=8192 real_root=/path/to/root/device
Not sure about dolvm, however I build my initramfs with lvm (leaving mdadm with defaults) and it assembles raid and then enables lvm on top of it. |
|
Back to top |
|
|
|