[Bug 1808339] Re: partman-auto netboot kickstart preseed 18.04 16.04 14.04 problem - wrong swap partition size

Mariusz Cygan 1808339 at bugs.launchpad.net
Thu Dec 13 14:04:06 UTC 2018


** Description changed:

  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{ }                \
-               .
+       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
+    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. As you can see in the new installation, the
- swap partition is created in the smallest size.
+ 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

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to partman-auto in Ubuntu.
https://bugs.launchpad.net/bugs/1808339

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

Status in partman-auto package in Ubuntu:
  New

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/partman-auto/+bug/1808339/+subscriptions



More information about the foundations-bugs mailing list