slashbeast / better-initramfs

Small and reliable initramfs solution supporting (remote) rescue shell, lvm, dmcrypt luks, software raid, tuxonice, uswsusp and more.
BSD 3-Clause "New" or "Revised" License
318 stars 54 forks source link

lvm can't find my volumes #21

Closed emarsk closed 9 years ago

emarsk commented 9 years ago

I have a simple lvm structure on my disk: one pm, one vg, some lv's, no raid, no luks. I'm on gentoo (funtoo, actually). When booting with the initrd automatically built with genkernel, everything is fine, but with better-initramfs, I get the "Unable to mount '/newroot'" error. From the rescue shell, "lvm vgscan" doesn't find anything, neither "pmscan" nor "lvscan". I realize I'm not giving you much info, but I don't know what else to check.

slashbeast commented 9 years ago

Hmm, do your kernel support devicemapper at all? Do you have /dev/sd* nodes? I suspect that your kernel is missing something.

emarsk commented 9 years ago

The same kernel works fine with both genkernel- and dracut-created initramfs. The drivers for my hardware are compiled built-in (unless I missed something, and except stuff like audio). Same for the DM support.

slashbeast commented 9 years ago

Mind sharing kernel config paste it somehwere, even to gist? And did you checked if /dev/sd* are in place as well as /dev/mapper/control?

emarsk commented 9 years ago

Ooohhh sssshhh____t! Well, this is embarrassing, I messed up all my info. The kernel I'm using now, built from gentoo-sources, actually works perfectly fine with better-initramfs! It's even faster to boot.

It's the other kernel I used, built from debian-sources as per the Funtoo manual, which fails. I just checked and, as you suggested, I don't see any /dev/sd* when I'm dropped to the rescue shell. It works with its own initramfs, though... I was sure I had checked the new kernel, but it seems I didn't. I guess the problem is solved then, evidently my old kernel didn't have the necessary drivers built-in, but only as modules, which its own initramfs includes but better-initramfs doesn't. Sorry for the mess. Bye.