1 |
On 10/19/07, Thufir <hawat.thufir@×××××.com> wrote: |
2 |
> On Thu, 18 Oct 2007 10:26:49 +0200, Dirk Heinrichs wrote: |
3 |
> |
4 |
> > hda1: Windows |
5 |
> > hda2: Linux (/boot) |
6 |
> > hda3: Linux (/) |
7 |
> > hda4: PV for LVM (PV = Physical Volume) |
8 |
> > hdb1: PV for LVM |
9 |
> > |
10 |
> > The two PVs will be assigned to one Volume Group (VG), inside which you |
11 |
> > want to create LVs (Logical Volumes) for /usr, /var, /home/<user>, swap, |
12 |
> > ... |
13 |
> > |
14 |
> > Is this correct? |
15 |
> |
16 |
> |
17 |
> Yes. |
18 |
> |
19 |
> Looking at <http://gentoo-wiki.com/ |
20 |
> HOWTO_Install_Gentoo_on_an_LVM2_root_partition>, and the section of the |
21 |
> Gentoo Handbook it points to, critical system files would be on / |
22 |
> partition, the root partition? |
23 |
> |
24 |
Usually, yes. If /boot and /root are not members of the LVM volume |
25 |
group it's much simpler to manage and recover from problems. |
26 |
|
27 |
It's possible to put everything on LV's (apparently grub even supports |
28 |
/boot on LV) but it means you have to have an initrd that can perform |
29 |
the LVM initialization from the ramdisk and swap all the critical |
30 |
partitions before starting the "real" init process. If that |
31 |
initialization goes wrong somehow it's not going to boot at all (no |
32 |
"linux single" rescue mode) so you're stuck going back to a non-LV |
33 |
boot method (CD, or a "rescue partition" or something). Once you get |
34 |
the juggling act right the risk is fairly small, but it does add more |
35 |
complexity to the boot process so there's more errors that can break |
36 |
it. |
37 |
|
38 |
So / and /boot will be smallish physical partitions - I use the |
39 |
minimum size for /boot and around 10G for root, and LVM manages |
40 |
anything that gets dynamically large or uncertain like /home/, /opt/, |
41 |
and application directories like /var/lib/mythtv/ or /var/spool/mail/. |
42 |
Anything that starts to eat up a large part of my root partition is a |
43 |
candidate for copying over to a LV later on. |
44 |
-- |
45 |
gentoo-user@g.o mailing list |