From: "Nuno Magalhães" <nunomagalhaes@eu.ipp.pt>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] Tips for fresh install with GRUB2+RAID1+LVM2
Date: Sun, 17 May 2015 12:48:58 +0100 [thread overview]
Message-ID: <CADqA9uYkvDWYGfrHtBmR+wQuCx5-ffHO+tw0jtiMSnwdKmv7DQ@mail.gmail.com> (raw)
Hello Gentoo World,
TL;DR warning
I've tested Gentoo and liked it, tried to tune it a bit and borked it. :)
I want to use mdadm to create a RAID1 with 2 SATA disks. From what i
gather, i'll need (bootable) 0xFD partitions, i'll use full disk for
them and no separate /boot (unless required). Is GPT required or can i
stick to MBR? Is fdisk safe? Seems usable to me.
Is 0.90 metadata mandatory for RAID1? What's the recommended version?
I've seen manuals that use mknode, but discovered that mdadm --create
will create a /dev/md for me. (Later i want to get rid of systemd-udev
and use eudev instead.)
Also, why so many tty* and similar in /dev? Is there a way to make it
less crowded? Just a whim...
Does GRUB2 (rather grub2-install) handle well RAID1 stuff or does it
get confused?
What's the difference between dodmraid and domdadm? I don't want to
use fakeraid, so is it safe to just use domdadm?
Then i want to use LVM on the /dev/md and setup my / in an LV. This
seems straightforward (as far as creation goes). Any tips here? I
remember you could tune LVM LVs to the underlying RAID stripe.
I intend to use XFS for /. Incidentally, if i later decide to "fork
out" /usr (or some other subdirectory) into it's own LV, is it "just"
a mater of copying its contents and updating /etc/fstab? Or should i
just do it now and expand the LVs if later required (especially if i
want to use different filesystems)?
The problem will be (has been) getting it to boot.
If i have 2 kernels in /boot, shouldn't grub2-mkconfig generate 2
entries in the GRUB boot menu (not counting the recovery entries)?
I read somewhere that genkernel is a bad choice for creating the
kernel because it un/sets a CONFIG_ flag that interferes with RAID/LVM
(sorry, i should've noted where/what). I use make menuconfig anyway,
it's fun. I do use genkernel to create the initramfs, i'm assuming
"genkernel --lvm --mdadm --bootloader=grub --install initramfs" would
suffice?
I'm assuming the key will be to make sure /etc/mdadm.conf has the
ARRAY= line and that GRUB has the right parameters in
/etc/default/grub, like
GRUB_PRELOAD_MODULES=raid,lvm
Or mdraid09? Where do these come from, /etc/grub/i386pc? Mine's an
amd64 but that's the only directory i could find.
GRUB_CMDLINE_LINUX_DEFAULT="domdadm dolvm rootfstype=xfs"
Are there any USE flags i should be aware of? Currently i'm gonna go
with USE="bindist 3dnow 3dnowext mmx mmxext popcnt sse sse2 sse3 sse4a
smp ssl unicode -avahi -pulseaudio -selinux -gnome -kde -systemd
-bluetooth -ieee1394 -networkmanager -fortran"
Plus CPU_FLAGS_X86 based on an emerge news item about processor flags.
Neither RAID nor LVM should have an impact, application-wise.
While the Handbook is awesome, it doesn't cover this and all the
information i find is either outdated or conflicting. I had a similar
setup with Debian Wheezy on this same hardware, but that was done
through the debian installer, nifty and under the hood.
Incidentally, the hardware's an Asus M2NPV-VM with 4 SATA II disks.
It's my desktop, not mission-critical, but i want to make the most of
it.
Thanks for the patience and feedback (and the distro!) :)
Cheers,
Nuno
next reply other threads:[~2015-05-17 11:49 UTC|newest]
Thread overview: 66+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-17 11:48 Nuno Magalhães [this message]
2015-05-17 13:24 ` [gentoo-user] Tips for fresh install with GRUB2+RAID1+LVM2 Peter Humphrey
2015-05-17 14:09 ` Rich Freeman
2015-05-17 15:35 ` covici
2015-05-17 15:43 ` Canek Peláez Valdés
2015-05-17 16:05 ` Peter Humphrey
2015-05-17 19:36 ` Stefan G. Weichinger
2015-05-17 20:48 ` Nuno Magalhães
2015-05-17 22:08 ` Stefan G. Weichinger
2015-05-17 22:44 ` Nuno Magalhães
2015-05-18 1:08 ` Rich Freeman
2015-05-18 18:21 ` Nuno Magalhães
2015-05-18 19:27 ` Rich Freeman
2015-05-19 6:15 ` Alan McKinnon
2015-05-19 9:02 ` Peter Humphrey
2015-05-19 10:13 ` Neil Bothwick
2015-05-19 12:54 ` Rich Freeman
2015-05-19 14:44 ` Peter Humphrey
2015-05-19 14:53 ` Rich Freeman
2015-05-19 15:00 ` Peter Humphrey
2015-05-19 15:15 ` Rich Freeman
2015-05-19 15:11 ` Peter Humphrey
2015-05-19 15:22 ` gottlieb
2015-05-19 15:34 ` Rich Freeman
2015-05-19 15:38 ` gottlieb
2015-05-19 16:23 ` covici
2015-05-19 20:17 ` Rich Freeman
2015-05-19 21:30 ` Stefan G. Weichinger
2015-05-19 15:21 ` Marc Joliet
2015-05-19 19:39 ` Nuno Magalhães
2015-05-20 9:16 ` Peter Humphrey
2015-05-20 9:23 ` Neil Bothwick
2015-05-20 9:42 ` Peter Humphrey
2015-05-20 10:23 ` Neil Bothwick
2015-05-20 11:56 ` Peter Humphrey
2015-05-20 12:20 ` Alan Mackenzie
2015-05-25 1:24 ` Bruce Hill
2015-05-20 10:26 ` Rich Freeman
2015-05-20 10:51 ` covici
2015-05-20 12:06 ` Neil Bothwick
2015-05-20 12:21 ` covici
2015-05-20 12:55 ` Neil Bothwick
2015-05-20 13:24 ` covici
2015-05-20 13:49 ` Neil Bothwick
2015-05-20 13:29 ` Mick
2015-05-20 13:47 ` Neil Bothwick
2015-05-20 12:01 ` Peter Humphrey
2015-05-20 12:08 ` Neil Bothwick
2015-05-20 14:26 ` Peter Humphrey
2015-05-20 15:08 ` Peter Humphrey
2015-05-20 16:46 ` Bob Wya
2015-05-20 17:04 ` J. Roeleveld
2015-05-20 20:34 ` Neil Bothwick
2015-05-20 20:35 ` Neil Bothwick
2015-05-21 8:13 ` Peter Humphrey
2015-05-21 8:33 ` Neil Bothwick
2015-05-21 11:34 ` Rich Freeman
2015-05-21 11:44 ` Peter Humphrey
2015-05-21 12:10 ` Neil Bothwick
2015-05-21 12:14 ` Neil Bothwick
2015-05-21 13:19 ` Rich Freeman
2015-05-21 14:06 ` Neil Bothwick
2015-05-21 12:13 ` Neil Bothwick
2015-05-20 10:19 ` Alec Ten Harmsel
2015-05-20 10:22 ` Neil Bothwick
2015-05-17 23:24 ` Neil Bothwick
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CADqA9uYkvDWYGfrHtBmR+wQuCx5-ffHO+tw0jtiMSnwdKmv7DQ@mail.gmail.com \
--to=nunomagalhaes@eu.ipp.pt \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox