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

Bug#218728: autopartkit: Should make larger LVM volumes when possible



> Wasn't this bug fixed in autopartkit 0.64?

No, it wasn't.  The change in 0.64 only made it easier to implement
this.  It didn't fix it.

I suggest changing the code to scale all logical volumes to use a
fraction of the free LVM space (for example 1/3 of the free space
above the minimum size), to make sure some buffer is left for future
extentions.

Here is an example of what I mean:

  Disk: 2 GB

  Partition wishes:

    /            256 MB - 512 MB
    LVM          256 MB -  -1 MB
    /usr/  LVM   128 MB - 512 MB
    /home/ LVM   128 MB -  -1 MB

This should give a / size between 256 and 512 MB, and a LVM volume
group using the rest.  Say it is distributed 512 and 1540 MB LVM
volume.  The logical volumes meed 256 MB minimum, leaveing 1295 MB as
"the rest".  USing 1/3 of this (431 MB) to extend the logical volumes,
assuming equal share to each /usr/ and /home/, will give this
partitioning:

   /           256
   LVM        1540
   /usr/  LVM  343
   /home/ LVM  343

I used simple division there to split the free space between
partitions and logical volumes.  The real implementation should use
the algorithm used for "normal" partitions when deciding the final
size of logical volumes.



Reply to: