[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: to lvm or not to lvm?

Stefan Monnier wrote:
crash, given this, what would be really cool would be to partition the
system at install time using a slightly mean, but granular, best guess
layout [0] so things should fit in their partitions without too much wasted
space, then configure each partition as one mount point on one logical
volume consisting of one physical volume [1] and then partition up the rest
of the drive in 1GB chunks that sit in a pool of unused logical volumes so
they can be assigned to any mount point when needed,
preferably automatically.

Huh?  Why on earth use physical partitions for that?
LVM is a perfect fit for such a situation.

Put your whole disk as a single LVM physical volume.
Carve it into the few partitions you need (with little space left on each)
and leave the rest of the space unused in your volume group.

You can then later on grow any partition that needs to with a simple
lvextend&resize2fs.  That part can also be done with a 1GB granularity if
you want.

Ah, didn't know that, I'll have to tinker with LVM again, it's been a while. How easy would it be to automate the process of adding space to a partition when it's nearly full, and how easy is it to reclaim it when you've cleared the logs or whatever?

Garrr, do your bit for global warming, become a pirate, you can "borrow" my copy of Windows 95 if you want.

Reply to: