From: Florian Philipp <lists@f_philipp.fastmail.net>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] RAID/LVM machine - install questions
Date: Sat, 20 Mar 2010 14:22:03 +0100 [thread overview]
Message-ID: <4BA4CBFB.1070809@f_philipp.fastmail.net> (raw)
In-Reply-To: <5bdc1c8b1003191540i5928eb4em5f8704b2db9fc046@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1928 bytes --]
Am 19.03.2010 23:40, schrieb Mark Knecht:
[...]
>
> The LVM Install doc is pretty clear about not putting these in LVM:
>
> /etc, /lib, /mnt, /proc, /sbin, /dev, and /root
>
/boot shouldn't be there, either. Not sure about /bin
> which seems sensible. From an install point of view I'm wondering
> about RAID and how I should treat /, /boot and swap? As I'm planning
> on software RAID it seems that maybe those part of the file system
> should not even be part of RAID. Is that sensible? I always want /
> available to mount the directories above. /boot on RAID means (I
> guess) that I'd need RAID in the kernel instead of modular, and why do
> I need swap on RAID?
>[...]
If you use kernel based software RAID (mdadm, not dmraid), you can put
everything except of /boot on RAID. Even for /boot, there are
workarounds. I think there was a thread about it very recently right on
this list.
If you don't want to use an initrd (and believe me, you don't), you
cannot build the RAID components as modules, of course. But why would
you want? You need it anyway all the time between bootup and shutdown.
You don't need to put swap on a RAID. Swap has its own system for
implementing RAID-1 or RAID-0-like functionality. Using a RAID-1 for it
prevents the machine from crashing if the disk on which swap resides
dies. RAID-0 would be faster, of course.
I personally find it easier to put swap on LVM in order to make
management easier. However, if you want to use suspend-to-disk (a.k.a.
hibernate), you would need an initrd, again.
Alternatively, you can also use LVM for mirroring (RAID-1) or striping
(RAID-0) single volumes. I think this only makes sense if you just want
to protect some single volumes. After using it for some time, I found it
not worth the effort. With current disk prices, just mirror everything
and live easy ;-)
Hope this helps,
Florian Philipp
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]
next prev parent reply other threads:[~2010-03-20 13:23 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-19 22:40 [gentoo-user] RAID/LVM machine - install questions Mark Knecht
2010-03-20 13:22 ` Florian Philipp [this message]
2010-03-20 18:29 ` Mark Knecht
2010-03-21 12:18 ` KH
2010-03-20 16:38 ` KH
2010-03-20 18:26 ` Mark Knecht
2010-03-21 12:12 ` KH
2010-03-22 15:51 ` Paul Hartman
2010-03-22 17:34 ` Mark Knecht
2010-03-21 13:53 ` Florian Philipp
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=4BA4CBFB.1070809@f_philipp.fastmail.net \
--to=lists@f_philipp.fastmail.net \
--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