partman-auto recipe: lvm: min.size of PV added to min.sizes of LVs

Bug #1616888 reported by Fabian Jucker
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
partman-base (Ubuntu)
New
Undecided
Unassigned

Bug Description

Got the following recipe for a one disk /boot + LVM setup (2 partitions, 2nd one is PV for VG, 3-4 LVs):
              256 256 256 ext4
                      $primary{ } $bootable{ }
                      method{ format } format{ }
                      use_filesystem{ } filesystem{ ext4 }
                      mountpoint{ /boot }

              12032 12032 1000000000 ext4
                      $defaultignore{ }
                      $primary{ }
                      method{ lvm }
                      vg_name{ vg1 }
                      device{ /dev/sda }

              2048 2048 2048 linux-swap
                      lv_name{ swap }
                      method{ swap } format{ }
                      $lvmok{ }
                      in_vg{ vg1 }

              5120 5120 5120 ext4
                      lv_name{ root }
                      method{ format } format{ }
                      use_filesystem{ } filesystem{ ext4 }
                      label{ root }
                      mountpoint{ / }
                      $lvmok{ }
                      in_vg{ vg1 }

              4864 4864 5120 ext4
                      lv_name{ var }
                      method{ format } format{ }
                      use_filesystem{ } filesystem{ ext4 }
                      label{ var }
                      mountpoint{ /var }
                      $lvmok{ }
                      in_vg{ vg1 }

              0 0 1000000000 ext4
                      lv_name{ srv }
                      method{ format } format{ }
                      use_filesystem{ } filesystem{ ext4 }
                      label{ srv }
                      mountpoint{ /srv }
                      $lvmok{ }
                      in_vg{ vg1 }
When I have a disk < ~24GB partman fails with "available disk space (...) too small for expert recipe (24320)". the last number indicates that partman calculates the total size of the recipe by adding all minimal sizes together (256+12032+2048+5120+4864+0). but since I'm using LVM partman should only add the minimal sizes of all "real" partitions together (256+12032).
Btw: It works if I specify minmal size 0 for the physical volume

PS: Using Ubuntu 16.04 Server iso image

Fabian Jucker (jucker)
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.