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

LVM preseed install fails with partition error



I am using a preseed file on a physical server with the following requirement:

The 146gb disk need to be partitioned as 120gb '/' partition and 25gb 'swap' partition with lvm.

The install fails with the error "Description: Failed to partition the selected diskThis happened because the selected recipe does not contain any partition that can be created on LVM volumes."

The following lines from the preseed specific to disk configuration:

d-i partman-auto/disk string /dev/sda
d-i partman-auto/method string lvm
d-i partman-lvm/device_remove_lvm boolean true
d-i partman-lvm/device_remove_lvm_span boolean true
d-i partman-md/device_remove_md boolean true
d-i partman-lvm/confirm boolean true
d-i partman/choose_partition select finish
d-i partman-lvm/confirm_nooverwrite boolean true
d-i partman-auto-lvm/guided_size string max
d-i partman-auto/choose_recipe select root_swap
d-i partman/default_filesystem string ext4
d-i partman-partitioning/confirm_write_new_label boolean true
d-i partman/confirm boolean true
d-i partman/confirm_nooverwrite boolean true
d-i partman-auto/expert_recipe string root_swap :: \
120000 10 120000 ext4 \
$defaultignore{ }
$lvmok{ } lv_name{ root } \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext4 } \
mountpoint{ / }

25000 20 25000 linux-swap \
$lvmok{ } lv_name{ swap_1 } \
method{ swap } format{ }

Is any other option needed in the preseed for this to work?

Cheers,
Sandeep.


Reply to: