Gentoo Archives: gentoo-dev

From: Christopher Head <headch@×××××.com>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Warn users not to do separate /usr partition without proper initramfs in the handbook?
Date: Sun, 31 Jul 2011 08:35:11
Message-Id: 20110731013403.38b9f59a@kruskal.chead
In Reply to: Re: [gentoo-dev] Warn users not to do separate /usr partition without proper initramfs in the handbook? by Samuli Suominen
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 On Sun, 31 Jul 2011 04:40:33 +0300
5 Samuli Suominen <ssuominen@g.o> wrote:
6
7 > >> Can we discuss both options?
8 > > If there's any option that allows the use of a separate /usr
9 > > partition without an initramfs, then let's explore it. I don't feel
10 > > like having to use an initramfs just because I want a small /
11 > > without /usr on it.
12 >
13 > The message is really missing all the context without explanation for
14 > WHY you want it.
15
16 (As an interested non-developer)
17
18 My own rationale is as follows:
19
20 1. I do regular backups of /home. I would prefer to have them run in
21 the background while I continue using the system, so the filesystem
22 won't be idle. For consistency, that means I want /home in LVM, so I
23 can create a snapshot and back that up instead—it will be at least as
24 consistent as an instantaneous power failure would be, which things
25 tend to be pretty good at recovering from (both the filesystem and
26 anything above it that uses a journal of some sort, like sqlite).
27
28 2. /home is big. /usr is big. When I first install a system, it's not
29 clear exactly how big each one will be. It's really nice to be able to
30 share space between them without any manual intervention, which is what
31 happens if you put both on the same filesystem. Thus, if /home is in
32 LVM, then /usr must also be in LVM, on the same LV.
33
34 3. Booting with / on LVM requires an initramfs. It's much easier to not
35 use an initramfs than to use one. So I keep / outside LVM as a small
36 ordinary partition, typically ~250MB (no need for a separate /boot
37 partition in this case).
38
39 That said, I hadn't ever actually noticed that putting /usr on a
40 separate filesystem was broken in the first place. It's served me well
41 enough. I'd just like it if it would continue to do so. If I have no
42 choice I suppose I will have to switch to using an initramfs, but I
43 prefer not having to poke the early boot sequences of machines it's a
44 PITA to get physical access to that have been working fine for years.
45
46 Chris
47 -----BEGIN PGP SIGNATURE-----
48 Version: GnuPG v2.0.17 (GNU/Linux)
49
50 iEYEARECAAYFAk41E38ACgkQXUF6hOTGP7emFACfYeoq2vSxk8B1I+URk5ohGbvJ
51 soYAoJZ1p2cm4IjoEFvdfzkQNlxERCv1
52 =yZkv
53 -----END PGP SIGNATURE-----