Hi Sandeep
I think you are missing a section to describe the LVM volume group
you want to create. This one works for me:
100 1000 1000000000 ext3 \
$defaultignore{ } \
$primary{ } \
method{ lvm } \
device{ /dev/sda } \
vg_name{ systemlv } \
.
I think you also need to add
in_vg{ systemlv }
to all the logical volumes (partitions) you want to create. Obviously,
you can change the name systemlv to what ever you want.
You may also want to add this to the disk partition definition:
d-i partman/choose_partition select Finish partitioning and write
changes to disk
Good luck!
Iain
On 13/03/14 19:55, Sandeep Raman wrote:
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.
--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/53222205.1020...@thargoid.co.uk