LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo
User Name
Password
Gentoo This forum is for the discussion of Gentoo Linux.

Notices


Reply
  Search this Thread
Old 04-19-2017, 08:02 AM   #1
Enrix80
LQ Newbie
 
Registered: Apr 2017
Posts: 1

Rep: Reputation: Disabled
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
 
Old 04-24-2017, 07:32 AM   #2
kudsu
Member
 
Registered: Apr 2017
Location: from LA
Distribution: Slackware and anything
Posts: 50

Rep: Reputation: Disabled
reply

Did you Google examples? Do you have kernel support for these things.
 
Old 12-02-2017, 12:02 PM   #3
_roman_
Member
 
Registered: Dec 2017
Location: _Austro_Bavaria_
Distribution: gentoo / linux mint
Posts: 433

Rep: Reputation: 29
---

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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LVM and RAID - will I get better throughput or recoverability vs linear lvm? jdelaporte Linux - Server 2 09-06-2015 09:28 AM
initramfs generated by genkernel doesn't automatically activate LVM pusrob Gentoo 5 02-26-2015 10:40 AM
Raid + LVM add new raid device to LVM, problem request Linux - Server 3 08-15-2012 04:06 AM
sotware raid - don't forget to update your initramfs! garydale Linux - Hardware 1 09-30-2009 04:52 PM
initramfs cannot find lvm root partition mgrant Linux - General 1 01-23-2009 07:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo

All times are GMT -5. The time now is 09:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration