### Partitioning # If the system has free space you can choose to only partition that space. #d-i partman-auto/init_automatically_partition select biggest_free # Alternatively, you can specify a disk to partition. The device name must # be given in traditional non-devfs format. # Note: A disk must be specified, unless the system has only one disk. # For example, to use the first SCSI/SATA hard disk: d-i partman-auto/disk string /dev/sda /dev/sdb # In addition, you'll need to specify the method to use. # The presently available methods are: "regular" # 2009-10-20 14:30 EDT # LM: do not use "lvm" here as it breaks newer d-i d-i partman-auto/method string raid # If one of the disks that are going to be automatically partitioned # contains an old LVM configuration, the user will normally receive a # warning. This can be preseeded away... # This makes partman automatically partition without confirmation. # Write the changes to the storage devices and configure RAID? d-i partman-md/confirm boolean true # Write a new empty partition table? d-i partman-partitioning/confirm_write_new_label boolean true d-i partman/confirm_write_new_label boolean true # Remove existing software RAID partitions? d-i partman-md/device_remove_md boolean true # Write the changes to disks and configure LVM? d-i partman-lvm/confirm boolean true d-i partman/choose_partition select finish d-i partman/confirm_nooverwrite boolean true d-i partman-md/confirm_nooverwrite boolean true # Write the changes to disks? d-i partman/confirm boolean true d-i partman-lvm/device_remove_lvm boolean true d-i partman-lvm/device_remove_lvm_span boolean true d-i partman-auto-lvm/new_vg_name string bootdisk d-i partman-auto-lvm/guided_size string max # Notes: # - partitions are created in the order they are defined # - higher priority takes precendence # - highest priority number chosen is 5,000 # - very impotant!! do not leave spaces after \ or it won't work # RAID: # /dev/md0 -> /boot -> 100M - 256MB (high priority) # /dev/md1 -> LVM VG bootdisk -> 500M - 1T (high priority) # LVM: # /dev/mapper/bootdisk-root -> / -> 5G - 200G (high priority) # /dev/mapper/bootdisk-swap_1 -> swap -> 4.5G # Note: having 300% yielded wrong 276G instead of # 3 times size of RAM (high priority) # bootdisk volgroup has extra free space # # Last you need to specify how the previously defined partitions will be # used in the RAID setup. Remember to use the correct partition numbers # for logical partitions. # Parameters are: # \ # # RAID levels 0, 1, 5, 6 and 10 are supported; devices are separated using "#" d-i partman-auto-raid/recipe string \ 1 2 0 ext4 /boot /dev/sda1#/dev/sdb1 . 1 2 0 lvm / /dev/sda5#/dev/sdb5 . # RAID partitions are tagged as "lvmignore" # and LVM logical volumes as "defaultignore" and "lvmok" d-i partman-auto/expert_recipe string \ multiraid :: \ 100 512 256 raid $lvmignore{ } $primary{ } method{ raid } . \ 900 5000 1000000000 raid $lvmignore{ } method{ raid } . \ 700 5000 200000 ext4 $defaultignore{ } $lvmok{ } \ method{ format } format{ } use_filesystem{ } filesystem{ ext4 } \ options/relatime{ relatime } mountpoint{ / } . \ 256 3000 4500 linux-swap $defaultignore{ } $lvmok{ } method{ swap } format{ } .