Message info
 
To:debian-boot@lists.debian.org From:KYLE, JAMES Subject:Multi-disk partman-auto LVM expert_recipe problems Date:Sun, 19 Feb 2012 21:19:00 +0000
 

I'm attempting to create a hands off debian install that partitions out our servers. Each server has a single internal 8GB SSD and a hardware RAID 10 volume we'll use for volatile storage (/var, /tmp, /home).

All partman* d-i options are included below. When using the full recipe, I would get "no volume groups found" followed by "available disk space (4006626) too small for expert recipe (2200004100)".

My understanding of the size specifications are that given:

3000 2000 1000000000

The minimum is 3000 MB, with max of all space available, and a priority of 2000. So if the minimums fit within the size of the drive, it should succeed. But it looks like it's adding up all the maxes including those of the primary LVM physical volumes for which the logical are a members.

On a side, in the list archives I saw it mentioned that the \ are not needed...but when I remove them the pxe boot throws an invalid preseed file error.

Any tips are greatly appreciated.

Cheers,

-james kyle

d-i partman-auto/disk string /dev/sda /dev/sdb
d-i partman/default_filesystem string ext4
d-i partman/confirm_write_new_label boolean true
d-i partman/confirm boolean true
d-i partman-auto/method string lvm
d-i partman-auto/purge_lvm_from_device boolean true
d-i partman-lvm/confirm boolean true
d-i partman-lvm/device_remove_lvm boolean true

d-i partman-auto/expert_recipe string \
physical-volumes :: \
100 1000 1000000000 ext3 \
$defaultignore{} \
$primary{} \
$method{ lvm } \
device{ /dev/sdb } \
vg_name{ vg00 } . \
100 1000 1000000000 ext3 \
$defaultignore{} \
$primary{} \
$method{ lvm } \
device{ /dev/sda } \
vg_name{ vg01 } \
.\
logical-volumes ::
100 500 200 ext3 \
$lvmok{} \
lv_name{ lvboot } \
in_vg{ vg00 } \
$primary{ } $bootable{ } \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext3 } \
mountpoint{ /boot } \
.\
3000 2000 1000000000 ext4 \
$lvmok{ } \
in_vg{ vg00 } \
lv_name{ lvroot } \
method{ format } format{ } \
use-filesystem{ } filesystem{ ext4 } \
mountpoint{ / } \
.\
100000 1000 200000 ext4 \
$lvmok{ } \
in_vg{ vg01 } \
lv_name{ lvhome } \
method{ format } format{ } \
use-filesystem{ } filesystem{ ext4 } \
mountpoint{ /home } \
.\
1000 500 2000 ext4 \
$lvmok{ } \
in_vg{ vg01 } \
lv_name{ lvtmp } \
method{ format } format{ } \
use-filesystem{ } filesystem{ ext4 } \
mountpoint{ /tmp } \
.\
100000 450 150% linux-swap \
$lvmok{ } \
in_vg{ vg01 } \
lv_name{ lvswap } \
method{ swap } \
format{ } \
.\

3000000 5000 1000000000 ext4 \
$lvmok{ } \
in_vg{ vg01 } \
lv_name{ lvvar } \
method{ format } format{ } \
use-filesystem{ } filesystem{ ext4 } \
mountpoint{ /var } \
.\
d-i partman-auto/choose_recipe select vg00

d-i partman/choose_partition \
select Finish partitioning and write changes to disk


--
To UNSUBSCRIBE, email to debian-boot-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: http://lists.debian.org/60C9E1C4ECD51C4AA7FD316389ECD77EDE3853@CAFRFD1MSGUSR9M.ITServices.sbc.com