[Bug 1616888] [NEW] partman-auto recipe: lvm: min.size of PV added to min.sizes of LVs

Fabian Jucker jucker at gyselroth.com
Thu Aug 25 12:04:25 UTC 2016


Public bug reported:

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

** Affects: partman-base (Ubuntu)
     Importance: Undecided
         Status: New

** Description changed:

  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 }
+               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

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to partman-base in Ubuntu.
https://bugs.launchpad.net/bugs/1616888

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

Status in partman-base package in Ubuntu:
  New

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/partman-base/+bug/1616888/+subscriptions



More information about the foundations-bugs mailing list