Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
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.
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.