LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Gentoo (https://www.linuxquestions.org/questions/gentoo-87/)
-   -   initramfs + lvm and raid (https://www.linuxquestions.org/questions/gentoo-87/initramfs-lvm-and-raid-4175604157/)

Enrix80 04-19-2017 08:02 AM

initramfs + lvm and raid
 
Hi everybody,

I am installing Gentoo with efi and I would like to know how to prepare initramfs + lvm and raid 1 for the kernel.

Thanks

kudsu 04-24-2017 07:32 AM

reply
 
Did you Google examples? Do you have kernel support for these things.

_roman_ 12-02-2017 12:02 PM

---

I did unpack the genkernel initramfs, updated and changed it by hand, and repacked it. I still use the same initramfs for over 2 years. The gentoo shipped genkernel is bug ridden, the coder did not understood what he did. When you are able to do the steps by hand, you should be able to code it for the initramfs.

My setup is a bit complicated as I use busybox, lvm2, german keyboard layout, ask for the password, unencrypt luks + lvm2.

I suggest you start with the gentoo handbook layout. Remove root and swap. setup lvm2 properly.
Software raid is not recommended in my point of view.
If you want raid functionality, lvm2 supports mirroring, so use that instead. Redhat has decent documents for that.

Grub 2.0 may not be able to boot of raid, it needs to be like in the handbook, or you use a third drive for example. Common issue because guys think or assume grub can boot from anything. I highly doubt that. 120MB boot partition as in the gentoo handbook does not hurt anyone.

--

I did convert a running gentoo box into luks / lvm. It's possible to do it later. You need the userspace tools and others, else your box won'T boot anyway. So doing it later is also a choice

warning: gentoo handbook, some guides are wrong, because guys who wrote that, did not understood it properly. First source should be redhat related documents on lvm2.


All times are GMT -5. The time now is 03:23 PM.