Booting Gentoo from LVM in RAID
Published on in Projects
I run Gentoo Linux on my personal servers, including my RAID server. (I have a dedicated server for raid and file dumps. What, you don’t?). When I first set this machine up 2-3 years ago, I gave it a single HDD (yes, spinning iron!) to boot from. At the time, my rationale was “hey, if it dies, the RAID is intact, I just have to rebuild the system”. Now, I’m changing from having several home directories scattered over all my machines to keeping a unified home directory in AFS. This means that my RAID is suddenly critical - it goes away and I loose access to my files. For various reasons, I chose to do this install as a mostly-from-scratch - primarily after three years, spanning the linux 2.6 to 3.x kernel change, quite a lot of useless, outdated or just dead config has built up.
In these instructions, we assume that you wish to set up a bios-booting machine, using GPT partition tables, mdadm software raid, lvm volume management, and grub2. We also assume …