I just happened to run into the same or similar issues recently when attempting to fully automate differing un-attended system builds with ubuntu 14.04 on amd64
I was able to make the provided -atomic and -home recipes work, but they don't offer any control over the sizing of the logical volumes.
The -multi recipe doesn't work.
The expert-recipes don't work either, no matter what I specified, the end was result was the same, I'd get a /root a /swap_1 logical volume and /boot partition, and never close to the sizes specified, nor the filesystem type specified, nor the logical volume name specified :-)
Below are the options and recipe used.
I was about to try using kickstart versus preseed to try and setup LVM on ubuntu how I want. On my rhel/centos systems customizing LVM is a breeze with kickstart automation
I just happened to run into the same or similar issues recently when attempting to fully automate differing un-attended system builds with ubuntu 14.04 on amd64
I was able to make the provided -atomic and -home recipes work, but they don't offer any control over the sizing of the logical volumes.
The -multi recipe doesn't work.
The expert-recipes don't work either, no matter what I specified, the end was result was the same, I'd get a /root a /swap_1 logical volume and /boot partition, and never close to the sizes specified, nor the filesystem type specified, nor the logical volume name specified :-)
Below are the options and recipe used.
I was about to try using kickstart versus preseed to try and setup LVM on ubuntu how I want. On my rhel/centos systems customizing LVM is a breeze with kickstart automation
### Partitioning lvm/device_ remove_ lvm boolean true md/device_ remove_ md boolean true lvm/confirm_ nooverwrite boolean true auto/choose_ recipe select atomic auto/choose_ recipe select expert-recipe auto-lvm/ new_vg_ name string vg auto/purge_ lvm_from_ device boolean true auto-lvm/ guided_ size string 90% partitioning/ confirm_ write_new_ label boolean true choose_ partition select finish confirm_ nooverwrite boolean true partitioning/ confirm_ write_new_ label boolean true choose_ partition select finish confirm_ nooverwrite boolean true auto/expert_ recipe string
$primary{ } \
$bootable{ } \
method{ format } format{ } \
use_filesystem { } filesystem{ ext4 } \
mountpoint{ /boot } \
$lvmok{ } lv_name{lv_root} \
method{ format } format{ } \
use_filesystem { } filesystem{ ext4 } \
mountpoint{ / } \
$lvmok{ } lv_name{lv_var} \
method{ format } format{ } \
use_filesystem { } filesystem{ ext4 } \
mountpoint{ /var } \
$lvmok{ } lv_name{lv_home} \
method{ format } format{ } \
use_filesystem { } filesystem{ ext4 } \
mountpoint{ /home } \
$lvmok{ } lv_name{lv_swap} \
method{ swap } format{ } \
d-i partman-auto/disk string /dev/sda
d-i partman-auto/method string lvm
d-i partman-
d-i partman-
d-i partman-lvm/confirm boolean true
d-i partman-
# You can choose one of the three predefined partitioning recipes:
# - atomic: all files in one partition
# - home: separate /home partition
# - multi: separate /home, /var, and /tmp partitions
#d-i partman-
#d-i partman-
# Give the default VG a name
d-i partman-
d-i partman-
d-i partman-
d-i partman-
d-i partman/
d-i partman/confirm boolean true
d-i partman/
d-i partman-md/confirm boolean true
d-i partman-
d-i partman/
d-i partman/confirm boolean true
d-i partman/
####
# Experimental disk recipe
#####
d-i partman-
custom-lvm :: \
40 300 300 ext4 \
. \
2000 4000 10000 ext4 \
. \
2000 1000 2000 ext4 \
. \
2000 1000 2000 ext4 \
. \
512 512 512 linux-swap \
.