partman-auto netboot kickstart preseed 18.04 16.04 14.04 problem - wrong swap partition size

Bug #1808339 reported by Mariusz Cygan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
partman-auto (Ubuntu)
New
Undecided
Unassigned

Bug Description

I have been using kickstart servers for years. There were never problems. For some time (it's hard to say since when - this year it started) partitions are being created badly. My configuration is very standard. For creating partitions I use the following scheme:

d-i partman-auto/expert_recipe string \
      boot-root :: \
              40 512 512 ext4 \
                      $primary{ } $bootable{ } \
                      method{ format } format{ } \
                      use_filesystem{ } filesystem{ ext4 } \
                      mountpoint{ /boot } \
              . \
              2048 10000 1000000000 ext4 \
                      $lvmok{ } \
                      method{ format } format{ } \
                      use_filesystem{ } filesystem{ ext4 } \
                      mountpoint{ / } \
              . \
              1024 2000 100% linux-swap \
                      $lvmok{ } \
                      method{ swap } format{ } \
              .

Below is the correct operation (from an older server)

Disk /dev/sda: 999.0 GB, 998999326720 bytes
255 heads, 63 sectors/track, 121454 cylinders, total 1951170560 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000b7b5d

   Device Boot Start End Blocks Id System
/dev/sda1 * 2048 391167 194560 83 Linux
/dev/sda2 393214 1951168511 975387649 5 Extended
/dev/sda5 393216 1884870655 942238720 83 Linux
/dev/sda6 1884872704 1951168511 33147904 82 Linux swap / Solaris

Below from the new installation

Disk /dev/sda: 931.5 GiB, 1000171331584 bytes, 1953459632 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 262144 bytes / 262144 bytes
Disklabel type: dos
Disk identifier: 0x8a964ccf

Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 999423 997376 487M 83 Linux
/dev/sda2 1001470 1953458175 1952456706 931G 5 Extended
/dev/sda5 1001472 1951459327 1950457856 930.1G 83 Linux
/dev/sda6 1951461376 1953458175 1996800 975M 82 Linux swap / Solaris

Partition 2 does not start on physical sector boundary.

Both servers have 32GB RAM (identical machines). As you can see in the new installation, the swap partition is created in the smallest size.

For the test I reinstalled one of the servers from 16/04 to 16/04 and after the reinstallation the situation is the same.

I found information about the bug - https://bugs.launchpad.net/ubuntu/+source/partman-auto/+bug/1767299 - maybe something similar?

What other information can I provide?

lsb_release -rd
Description: Ubuntu 18.04.1 LTS
Release: 18.04

For me it is a huge problem. I have a machine with 128GB ram and more. Huge disks ... every server after installation I have to run the server from sysrecuecd and move the partitions.

Mariusz Cygan (itcygan)
description: updated
Mariusz Cygan (itcygan)
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.