Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 102294 - lvm2 guide sizing recommendations do not take /lib/modules into account
Summary: lvm2 guide sizing recommendations do not take /lib/modules into account
Status: RESOLVED FIXED
Alias: None
Product: [OLD] Docs-user
Classification: Unclassified
Component: LVM HOWTO (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Xavier Neys (RETIRED)
URL: http://www.gentoo.org/doc/en/lvm2.xml
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-12 16:04 UTC by Ole Craig
Modified: 2005-08-16 15:30 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ole Craig 2005-08-12 16:04:33 UTC
I've \been using the (otherwise-excellent) document posted at
www.gentoo.org/doc/en/lvm2.xml as a guide while moving one of my home systems
from a straight partitioned HDD config to an lvm2 setup. In the instructions for
sizing the (non-LVM) root partition (hda3 in the guide) it says:

        "The size of the root partition need not be large if you will
        keep /opt /usr /home /var and /tmp in an LVM2 Volume Group
        (vg). In this case, 150M is sufficient."

This is good advice, but the recomended size doesn't take into account the
potential weight of /lib/modules -- depending on what the user configures as
modular during the kernel build, /lib/modules can easily swamp that 150M. (My
/lib/modules/2.6.12-gentoo-r7 is 167M, and there are several entire driver
subtrees turned off.) Moreover, since the root partition is raw, it won't be
resizeable after the fact, which leads me to suggest erring on the large side
when planning it; at least 500M, but probably 1 to 2 gigs would be a better
guideline, particularly for a neophyte.

        Otherwise, thanks for an extremely helpful and clear document!
Comment 1 Xavier Neys (RETIRED) gentoo-dev 2005-08-16 15:26:51 UTC
(In reply to comment #0)
> This is good advice, but the recomended size doesn't take into account the
> potential weight of /lib/modules -- depending on what the user configures as
> modular during the kernel build,

Good point.

> /lib/modules can easily swamp that 150M. (My
> /lib/modules/2.6.12-gentoo-r7 is 167M

Uh? The 4 kernels that are still on my box use 15M. Looks like you could save a
bit of space and a lot of compile time...

Anyway, 1GB should be enough IMO.
Comment 2 Xavier Neys (RETIRED) gentoo-dev 2005-08-16 15:30:41 UTC
Fixed in CVS.
Thanks for reporting.