Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
genkernel + udev + imsm RAID = no root device
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
dobbs
Tux's lil' helper
Tux's lil' helper


Joined: 20 Aug 2005
Posts: 103
Location: Wenatchee, WA

PostPosted: Thu Feb 05, 2015 9:54 am    Post subject: genkernel + udev + imsm RAID = no root device Reply with quote

This problem has kept me up long enough tonight, so this will be quick and possibly not terribly coherent.

I boot off of an imsm (fakeraid) mirror managed by the md kernel subsystem (and mdadm), so I have to boot with an initramfs. I build the initramfs with genkernel. I fully updated my system over the last few days, and tried to boot into the new 3.17.8 kernel. Without warning, genkernel now defaults to UDEV="yes" in its config because I boot with systemd and that supposedly doesn't play well with mdev. However, doing so results in my boot array (md0) not being assembled and a swift kernel panic. Yet I can boot fine from an initramfs produced with UDEV="no" in genkernel.conf.

Booting with udev produced two obvious errors. First, /dev/shm fails to mount with "invalid argument: strictatime", which I tried to fix following this topic to no avail. And of course it utterly fails to detect my boot mirror (md0) despite detecting the imsm container array (md127) perfectly fine. My data array (md1) is assembled as well, but it's a purely software RAID with no imsm nonsense.

I tried bundling multiple versions of mdadm (3.3.1, 3.3.2), and busybox (genkernel's included 1.20, and 1.23.0 from portage) in the initramfs. Doesn't seem like the kernel is a problem, as the same kernel boots fine with a 3.12.13 initramfs, also with mdev.

So now I'm sitting here on kernel 3.17.8, with systemd started from mdev. Is this a problem? Could this be why my mirror tries to rebuild every time I shut down linux (but not Windows)?
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3806
Location: Austro Bavaria

PostPosted: Thu Feb 05, 2015 3:42 pm    Post subject: Reply with quote

Quote:
Doesn't seem like the kernel is a problem, as the same kernel boots fine with a 3.12.13 initramfs, also with mdev.


ust use the old initramfs. no need to build everytime a new one My initramfs is years old and still rock solid
Back to top
View user's profile Send private message
dobbs
Tux's lil' helper
Tux's lil' helper


Joined: 20 Aug 2005
Posts: 103
Location: Wenatchee, WA

PostPosted: Thu Feb 05, 2015 6:26 pm    Post subject: Reply with quote

tw04l124 wrote:
ust use the old initramfs. no need to build everytime a new one My initramfs is years old and still rock solid


That seems like my only option currently. But will mdev cause systemd to hose my system as suggested by the genkernel.conf?

And I'm still trying to figure out why systemd doesn't cleanly shut down my mirror, thereby causing constant rebuilds...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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