> > 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. >> >> On Fri, Mar 14, 2014 at 2:54 AM, Iain M Conochie <i...@thargoid.co.uk> > wrote: > >> 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 >> >> >> Hi Iain,
I made changes as below based on your inputs. However I see the same error. Perhaps I'm missing something too obvious. Is there a chance the old content is being read still even though the preseed file is updated with the changes? It is a vm with 150gb disk. To make sure I am doing it correctly and my understanding is right about the three values given below: 153600 100 153600 ext4 - Use the full 150gb disk and a priority # 100 120000 90 120000 ext4 \ - Use 120gb / partition with priority # 90 25000 80 25000 linux-swap \ - Use 25gb swap partition with priority # 80 d-i partman-auto/expert_recipe string i3 :: \ 153600 100 153600 ext4 \ $defaultignore{ } \ $primary{ } \ method{ lvm } \ device{ /dev/sda } \ vg_name{ i3vg } \ 120000 90 120000 ext4 \ $defaultignore{ } $lvmok{ } lv_name{ root } in_vg{ i3vg } \ method{ format } format{ } \ use_filesystem{ } filesystem{ ext4 } \ mountpoint{ / } 25000 80 25000 linux-swap \ $lvmok{ } lv_name{ swap_1 } in_vg{ i3vg } \ method{ swap } format{ } Instead of <<d-i partman/choose_partition select Finish partitioning and write changes to disk>>, the following works for me <<d-i partman/choose_partition select finish>> Cheers, Sandeep.