Score:0

Preseed partitioning

me flag

I search to automatize my partitioning on Ubuntu but I fail to have my partition like this diagram below and I don't understand all parameters I need in the preseed documentation.

https://help.ubuntu.com/lts/installation-guide/s390x/apbs04.html#preseed-partman

root@linux:/opt/ansible# lsblk

NAME          MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT

sda             8:0    0  300M  0 disk

└─sda1          8:1    0  298M  0 part /boot

sdb             8:16   0   10G  0 disk

├─rootvg-root 254:0    0    3G  0 lvm  /

├─rootvg-swap 254:1    0    1G  0 lvm  [SWAP]

├─rootvg-tmp  254:3    0  512M  0 lvm  /tmp

└─rootvg-var  254:4    0  512M  0 lvm  /var

sdc             8:32   0    5G  0 disk

└─datavg-opt  254:2    0    2G  0 lvm  /opt

sr0            11:0    1 1024M  0 rom

This is the command line that I type without preseed:

pvcreate /dev/sdb
pvcreate /dev/sdc
vgcreate -s 256m rootvg /dev/sdb
vgcreate -s 256m rootvg /dev/sdc
vgcreate --size 3g -n root rootvg
lvcreate --size 512m -n tmp rootvg
lvcreate --size 2g -n swap rootvg

I have 3 disk :

# Alternatively, you may specify a disk to partition. If the system has only
# one disk the installer will default to using that, but otherwise the device
# name must be given in traditional, non-devfs format (so e.g. /dev/sda
# and not e.g. /dev/discs/disc0/disc).
# For example, to use the first SCSI/SATA hard disk:
#d-i partman-auto/disk string /dev/sda
# In addition, you'll need to specify the method to use.
# The presently available methods are:
# - regular: use the usual partition types for your architecture
# - lvm:     use LVM to partition the disk
# - crypto:  use LVM within an encrypted partition
d-i partman-auto/method string lvm

# 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...
d-i partman-lvm/device_remove_lvm boolean true
# The same applies to pre-existing software RAID array:
d-i partman-md/device_remove_md boolean true
# And the same goes for the confirmation to write the lvm partitions.
d-i partman-lvm/confirm boolean true
d-i partman-lvm/confirm_nooverwrite boolean true
d-i partman-auto-lvm/guided_size string 300m
d-i partman-auto-lvm/guided_size string 10GB
d-i partman-auto-lvm/guided_size string 5GB
d-i partman-auto/choose_recipe select atomic

And after that I don't understand what to do for my case.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.