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

Bug#896826: partman-auto: Wrong minimal disk size calculation when using expert_recipe and lvm partitions



Dear Maintainer,

I can confirm this behavior on Debian 11. In a VM with about 8 GB disk size, the following recipe leads to a very similar error (just numbers change): Available disk space (8589) too small for expert recipe (13500);

My recipe is:

partman-auto partman-auto/expert_recipe string with_lvm :: \
  500 50 500 ext4 \
    $primary{ }   \
    $bootable{ }  \
    method{ format } \
    format{ }  \
    use_filesystem{ } \
    filesystem{ ext4 } \
    mountpoint{ /boot } \
  . \
  8000 50 8000 lvm \
    $primary{ }    \
    method{ lvm } \
    vg_name{ vg0 }  \
  .  \
  5000 50 5000 ext4 \
    $lvmok{ }  \
    in_vg{ vg0 } \
    lv_name{ root }  \
    method{ format } \
    format{}  \
    use_filesystem{ }  \
    filesystem{ ext4 } \
    mountpoint{ / } \
  .

Regards, Marco

On Tue, 24 Apr 2018 18:07:31 +0200 Garinot Pierre <garinot.pierre@errlock.org> wrote:
Package: partman-auto
Version: partman-auto
Severity: important
Tags: d-i

Dear Maintainer,

   * What led up to the situation?
Trying to pressed the debian installer for automatic partitionning.

   * What exactly did you do (or not do) that was effective (or
     ineffective)?
Used these preseed rules:

----
d-i partman-auto/disk string /dev/sda
d-i partman-auto/method string lvm
d-i partman-auto/expert_recipe string                     \
    arcadia ::                                            \
        30 50 100 ext4                                    \
            $primary{ } $bootable{ }                      \
            method{ format } format{ }                    \
            use_filesystem{ } filesystem{ ext4 }          \
            mountpoint{ /boot }                           \
        .                                                 \
        64 1024 300% linux-swap                           \
            method{ swap } format{ }                      \
        .                                                 \
        1980 3000 -1 ext4                                 \
            $defaultignore{ }                             \
            $primary{ }                                   \
            method{ lvm }                                 \
            device{ /dev/sda }                            \
            vg_name{ system }                             \
        .                                                 \
        60 100 150 ext4                                   \
            $lvmok{ } in_vg{ system } lv_name{ root }     \
            method{ format } format{ }                    \
            use_filesystem{ } filesystem{ ext4 }          \
            mountpoint{ / }                               \
        .                                                 \
        750 1000 15000 ext4                               \
            $lvmok{ } in_vg{ system } lv_name{ usr }      \
            method{ format } format{ }                    \
            use_filesystem{ } filesystem{ ext4 }          \
            mountpoint{ /usr }                            \
        .                                                 \
        10 20 30 ext4                                     \
            $lvmok{ } in_vg{ system } lv_name{ home }     \
            method{ format } format{ }                    \
            use_filesystem{ } filesystem{ ext4 }          \
            mountpoint{ /home }                           \
        .                                                 \
        10 20 30 ext4                                     \
            $lvmok{ } in_vg{ system } lv_name{ roothome } \
            method{ format } format{ }                    \
            use_filesystem{ } filesystem{ ext4 }          \
            mountpoint{ /root }                           \
        .                                                 \
        20 30 50 ext4                                     \


Reply to: