partman-auto prefers to give disk to swap, leaving root too small
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
partman-auto (Ubuntu) |
Fix Released
|
Critical
|
Dimitri John Ledkov | ||
Xenial |
Fix Released
|
Critical
|
Dimitri John Ledkov |
Bug Description
[Impact]
* Impossible to perform guided LVM installation, with an all-in-one configuration out of the box, on high-memory systems. High-memory systems are systems that have RAM on par, or more than, disk space. E.g. 8GB RAM with 8GB disk space, or 1TB RAM with 256GB hard drive.
[Test Case]
* Start d-i installer
* Select Use entire disk & setup LVM
* Select drive to use, which is on par, or less then total RAM on the system
* Select all in one / atomic partition recipe
* Install should succeed, with no more than 2GB of swap partition / volume
[Regression Potential]
* SWAP partition or LVM volume is typically calculated as a percentage of RAM - between 100% and 200% of RAM. Yet, this assumes that RAM is significantly less than total disk space, and thus on high-memory systems results in badly setup systems with too small rootfs, and too much swap.
[Other Info]
* Original bug report
I was trying to install Ubuntu 14.04.1 LTS on an Oracle VirtualBox VM with 6.5GB of RAM and 8GB (default for a new Virtual HDD on VirtualBox) of disk space.
I selected the option "Erase disk and install Ubuntu" (and post crash "Erase Ubuntu 14.04.1 LTS and reinstall") and let it use the defaults.
The installer gives the error:
"Some of the partitions you created are too small. Please make the following partitions at least this large:
/ 3.4 GB
If you do not go back to the partitioner and increase the size of these partitions, the installation may fail."
The message is very confusing to a new user who did not specify any partition sizes themselves.
The installer created a 6GB Swap partition on the 8GB drive. The installer then could not install to the root partition and failed midway:
"The installer encountered an error copying files to the hard disk:
[Errno 28] No space left on device
This is due to there being insufficient disk space for the install to complete on the target partition. Please run the installer again and select a larger partition to install into."
..then a box appears stating that the installer has crashed:
"Installer crashed
We're sorry; the installer crashed. After you close this window, we'll allow you to file a bug report using the integrated bug reporting tool. This will gather information about your system and your installation process. The details will be sent to our bug tracker and a developer will attend to the problem as soon as possible."
The box cannot be closed. No bug reporting tool launches. The computer requires restarting to become usable again.
Please let me know if you need any more information as this is my first bug report.
Thanks for your time,
Matthew
affects: | ubiquity (Ubuntu) → partman-auto (Ubuntu) |
summary: |
- Installer Crashes With Large Memory And Small Disk + partman-auto prefers to give disk to swap, leaving root too small |
Changed in partman-auto (Ubuntu): | |
status: | Confirmed → Triaged |
importance: | Undecided → Medium |
tags: | added: patch |
Changed in partman-auto (Ubuntu Xenial): | |
assignee: | dann frazier (dannf) → Dimitri John Ledkov (xnox) |
milestone: | none → ubuntu-16.04.4 |
importance: | Medium → Critical |
description: | updated |
Changed in partman-auto (Ubuntu): | |
importance: | Medium → Critical |
assignee: | nobody → Dimitri John Ledkov (xnox) |
milestone: | none → ubuntu-18.02 |
Status changed to 'Confirmed' because the bug affects multiple users.