Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
initramfs does not assemble raid arrays
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
NTPT
n00b
n00b


Joined: 22 Mar 2005
Posts: 17

PostPosted: Wed Nov 18, 2015 3:59 pm    Post subject: initramfs does not assemble raid arrays Reply with quote

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
View user's profile Send private message
szatox
Advocate
Advocate


Joined: 27 Aug 2013
Posts: 3137

PostPosted: Wed Nov 18, 2015 4:43 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum