RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1444232 - RHEL 7.3 anaconda installer has max swap size of 128GB
Summary: RHEL 7.3 anaconda installer has max swap size of 128GB
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: python-blivet
Version: 7.4
Hardware: Unspecified
OS: Linux
urgent
urgent
Target Milestone: rc
: ---
Assignee: Vojtech Trefny
QA Contact: Release Test Team
URL:
Whiteboard:
: 1445094 1654695 (view as bug list)
Depends On:
Blocks: 1656485 1784876
TreeView+ depends on / blocked
 
Reported: 2017-04-20 23:31 UTC by Devon
Modified: 2024-03-25 14:59 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-06-23 10:42:18 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Kickstart logs from the install (225.58 KB, application/x-bzip)
2019-01-31 06:15 UTC, Parikshit Khedekar
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 5448511 0 None None None 2020-09-30 16:36:28 UTC

Description Devon 2017-04-20 23:31:27 UTC
Description of problem:

Anaconda installer is unable to create swap larger than 128GB. 

Version-Release number of selected component (if applicable):

RHEL 7.3

How reproducible:

Every Time

Steps to Reproduce:
1. Install using anaconda installer
2. Attempt to set swap larger than 128GB
3. Swap defaults back to 128GB

Actual results:

Swap size set at 128GB

Expected results:

Swap size set above 128GB to what it is actually set

Additional info:

After installation completes, was able to set swap size manually to desired size. Problem seems to be specifically with anaconda.

Comment 2 Martin Kolman 2017-04-21 10:44:54 UTC
Maximums swap size is defined by a constant in the Blivet storage library, so reassigning.

Comment 3 jcastran 2017-04-24 22:37:05 UTC
*** Bug 1445094 has been marked as a duplicate of this bug. ***

Comment 4 David Lehman 2017-08-18 20:18:58 UTC
Reference materials showing actual limits of swap size would be useful here.

Comment 5 Parikshit Khedekar 2019-01-31 06:15:11 UTC
Created attachment 1525243 [details]
Kickstart logs from the install

Comment 7 Jon Magrini 2020-01-15 16:39:49 UTC
*** Bug 1654695 has been marked as a duplicate of this bug. ***

Comment 12 Vojtech Trefny 2020-06-03 11:56:54 UTC
upstream PR for rhel7-branch: https://github.com/storaged-project/blivet/pull/851

updates image: https://vtrefny.fedorapeople.org/img/rhbz1444232.img

Comment 14 Jan Stodola 2020-06-11 12:24:22 UTC
Some notes from testing of the updates.img from comment 12:

1) I was able to create swap with more than 128 GB (tested with 512 GiB)
2) It's not possible to create swap bigger than 16 TiB (This is the limit from the pull request). An attempt to create an 18 TiB will reduce the size to 16 TiB (Tested on a system with 20 TiB disk space).
3) When trying to continue the installation with 16 TiB swap, the installation failed with a traceback. The VM used for testing had 3 GB of memory:

anaconda 21.48.22.158-1 exception report
Traceback (most recent call first):
  File "/tmp/updates/blivet/devicelibs/swap.py", line 90, in swapon
    raise SwapError("swapon failed for '%s'" % device)
  File "/tmp/updates/blivet/formats/swap.py", line 163, in setup
    swap.swapon(self.device, priority=self.priority)
  File "/tmp/updates/blivet/__init__.py", line 2665, in turnOnSwap
    device.format.setup()
  File "/tmp/updates/blivet/__init__.py", line 1646, in turnOnSwap
    self.fsset.turnOnSwap(rootPath=_sysroot)
  File "/tmp/updates/blivet/__init__.py", line 242, in turnOnFilesystems
    storage.turnOnSwap()
  File "/usr/lib64/python2.7/site-packages/pyanaconda/install.py", line 206, in doInstall
    turnOnFilesystems(storage, mountOnly=flags.flags.dirInstall, callbacks=callbacks_reg)
  File "/usr/lib64/python2.7/threading.py", line 765, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/threads.py", line 227, in run
    threading.Thread.run(self, *args, **kwargs)
SwapError: swapon failed for '/dev/vda4'

from program.log:
14:10:38,385 INFO program: Running... swapon /dev/vda4
14:10:38,403 INFO program: swapon: /dev/vda4: swapon failed: Cannot allocate memory
14:10:38,403 DEBUG program: Return code: 255

The whole anaconda-tb will be attached.

Comment 18 Vojtech Trefny 2020-06-23 10:42:18 UTC
Closing this as wontfix, we've decided this is too risky to change in RHEL 7.9. Updates image provided in comment #12 can be used as a workaround.


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