Comment 0 for bug 1616888

Revision history for this message
Fabian Jucker (jucker) wrote :

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