Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-114169

Anaconda GUI partitioning can create gaps between the partitions

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • rhel-9.6
    • anaconda
    • None
    • No
    • Low
    • rhel-anaconda
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • All
    • None

      What were you trying to do that didn't work?

      While using the Anaconda GUI to create custom partitions, removing the swap from the layout created automatically leads to a gap of free space between the partitions.

      What is the impact of this issue to you?

      Loss of space

      Please provide the package NVR for which the bug is seen:

      anaconda-34.25.5.17-1.el9_6

      How reproducible is this bug?:

      Always

      Steps to reproduce

      1. Start the GUI installer
      2. Select custom partitioning
      3. Click to create the FS layout automatically
      4. Remove the last swap partition

      Note: the problem also happens while creating all the partitions manually, and then I removed the /home (which was the 3rd partition on 4).

      Expected results

      No gap between the partitions.

      Actual results

      Generated KS (not reproducible with KS install):

      # Generated using Blivet version 3.6.0
      ignoredisk --only-use=vda
      # Partition clearing information
      clearpart --none --initlabel
      # Disk partitioning information
      part /boot/efi --fstype="efi" --ondisk=vda --size=600 --fsoptions="umask=0077,shortname=winnt"
      part / --fstype="xfs" --ondisk=vda --size=34048
      part /boot --fstype="xfs" --ondisk=vda --size=1024
      part /home --fstype="xfs" --ondisk=vda --size=16625

      Generated layout:

      # parted /dev/vda print free
      Model: Virtio Block Device (virtblk)
      Disk /dev/vda: 59.1GB
      Sector size (logical/physical): 512B/512B
      Partition Table: gpt
      Disk Flags: 
      Number  Start   End     Size    File system  Name                  Flags
              17.4kB  1049kB  1031kB  Free Space
       1      1049kB  630MB   629MB   fat32        EFI System Partition  boot, esp
       2      630MB   1704MB  1074MB  xfs
              1704MB  5919MB  4215MB  Free Space
       3      5919MB  41.6GB  35.7GB  xfs
       4      41.6GB  59.1GB  17.4GB  xfs
              59.1GB  59.1GB  2080kB  Free Space
      

      Workaround

      Create all the partitions manually without re-arranging them afterwards (no removal).

        1. anaconda.log
          51 kB
          Jan Stodola
        2. journal.log
          3.12 MB
          Jan Stodola
        3. storage.log
          228 kB
          Jan Stodola

              anaconda-maint-list anaconda-maint-list
              rhn-support-cbesson Christophe Besson
              anaconda-maint-list anaconda-maint-list
              Release Test Team Release Test Team
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: