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.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: to lvm or not to lvm?
    ... system at install time using a slightly mean, but granular, best guess ... then configure each partition as one mount point on one logical ... LVM is a perfect fit for such a situation. ... Put your whole disk as a single LVM physical volume. ...
    (Debian-User)
  • Re: "Torn between two OS" - Solaris vs Linux
    ... > Each one of your examples except for Novell fit within a single ... you can choose which partition table types you want to support. ... can use BSD slices as easily as extended DOS partitions (plus MINIX ...
    (comp.os.linux.misc)
  • Re: "Torn between two OS" - Solaris vs Linux
    ... > Each one of your examples except for Novell fit within a single ... you can choose which partition table types you want to support. ... can use BSD slices as easily as extended DOS partitions (plus MINIX ...
    (comp.unix.solaris)
  • Re: partition management in linux - lvm
    ... the ext3 partition will fit in the vfat partition, ... it will not fit there. ... or use IT as a nightly backup device. ...
    (Fedora)
  • Re: Recovering Full SBS 2003 Server - Original Partition Sizes?
    ... Storagecraft needs partitions at least as big as the originals, it won't restore a partition to a smaller size even if the data will fit. ... If I recall correctly, Paragon Drive Backup *will* restore to a smaller size, so long as the data fits - providing a little bit more flexibility if one needs to rob from one partition to pay another. ...
    (microsoft.public.windows.server.sbs)