Bug#510544: Installer/partition guide tried to use 500GB as swap
On Thursday 08 January 2009, Ferenc Wagner wrote:
> Looks like it's a problem with conversion to logical extents.
> After running the recipe, perform_recipe_by_lvm settles on
> 3246000 0 3246000 linux-swap ...
> that is, on a 3GB swap, which is correct (300% of the 1GB RAM).
> However, it issues
> lv_create noc2 swap_1 1406
> to create it, thus creating a 1406 extent big (5.6GB) LV. This is to
> use up all the remaining extents. So the main LV got a little bit too
> small... Roundoff, maybe? TBC.
Could also be an overflow maybe.
Can you find the code that calculates the partition sizes and the extends
and reproduce the problem with a 'set -x' added, either in the specific
relevant script(s) or in /lib/partman/lib/base.sh?
The last will give a huge amount of debug output, but has the advantage
that you can be sure to have it all. If you know what to search for it's