Bug 1264850 - Unnecessary creation of extended partition instead of primary partition
Unnecessary creation of extended partition instead of primary partition
Product: Fedora
Classification: Fedora
Component: anaconda (Show other bugs)
All Linux
unspecified Severity low
: ---
: ---
Assigned To: Anaconda Maintenance Team
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2015-09-21 07:22 EDT by Seb L.
Modified: 2015-09-21 08:56 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2015-09-21 08:56:17 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Seb L. 2015-09-21 07:22:29 EDT
Description of problem:
When installing Fedora on a system with msdos label and two existing primary partitions and when using LVM, the /boot is created as a primary partition but instead of writing the LVM PV on a primary partition, an extended partition with a single logical partition (on which the LVM PV is written) is created.

As three partitions (the two pre-existing ones plus the newly created /boot) exist, the last partition is created as extended in order to allow the creation of more (logical) partitions.

This behaviour is correct, except when there is only one last partition to create (the fourth) and 100% of the disk is used (the user will therefore never be able to create any more logical partition anyway). The last partition should in this case simply be created as a primary partition (the fourth and last).

Alternatively, the user should be offered the option to create the LVM PV as primary partition (instead of a logical partition inside an extended partition).

Version-Release number of selected component (if applicable):
Current Fedora 22 net install.

How reproducible:

Steps to Reproduce:
1. Take an system with two existing primary partitions
2. Install Fedora with one /boot partition and everything else on LVM

Actual results:
├─sda1  (existing primary partition)
├─sda2  (existing primary partition)
├─sda3  (/boot,   primary partition)
└─sda4  (newly created extended partition, containing...)
  └─sda5  (... a single logical partition hosting the LVM PV)
    ├─... (LVM LVs)

The extended partition will never contain more than a single logical partition, which is useless.

Expected results:
├─sda1  (existing primary partition)
├─sda2  (existing primary partition)
├─sda3  (/boot,   primary partition)
└─sda4  (LVM PV,  primary partition)
  ├─... (LVM LVs)

Additional info:
Comment 1 David Shea 2015-09-21 08:56:17 EDT
Anaconda will not create a fourth primary partition in case, in the future, you decide to shrink a filesystem and create a new partition. If anaconda were to create four primary partitions, adding a new partition would be impossible without deleting one first. If you need four primary partitions, create the partitions outside of anaconda and use anaconda to assign to assign filesystems to them, or use kickstart.

Note You need to log in before you can comment on or make changes to this bug.