Bug 462734
Summary: | problem with partitioning, swap space doesn't grow over 1G | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | Daniel Mach <dmach> |
Component: | anaconda | Assignee: | Radek Vykydal <rvykydal> |
Status: | CLOSED WONTFIX | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 5.2 | CC: | ddomingo, ddumas, jgranado, rvykydal |
Target Milestone: | rc | Keywords: | Reopened |
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: |
Using swap --grow parameter in a kickstart file without setting --maxsize parameter at the same time makes anaconda impose a restriction on the maximum size of the swap partition. It does not allow it to grow to fill the device.
For systems with less than 2GB of physical memory, the imposed limit is twice the amount of physical memory. For systems with more than 2GB, the imposed limit is the size of physical memory plus 2GB.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2010-11-10 17:22:45 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 454962, 471148 |
Description
Daniel Mach
2008-09-18 16:40:11 UTC
Yes, growing swap partitions is a special case in anaconda: if growing is unlimited (i.e. to maximum allowable size), anaconda imposes its own limit depending on available RAM. It seems sane to me, if user wants to fill remaining free space with swap, he can impose some big enough --maxsize. Using maxsize is probably a possible workaround. Anyway, I'd expect anaconda to fill *all* remaining free space if I want to do that. Anaconda should display an "are you sure" dialog and ask me if I really want to use more than recommended swap space size instead of doing something unpredictable. We should leave kickstart alone. The work around being select --maxsize to tell anaconda "yes, I really mean 12Gigs of swap". And create a dialog with a warning/suggestion for the gui telling the user "You are going to create a swap partition that is not the suggested size. do you want to continue or use anacondas default" We need to fix the swap documentation in 5.3 and add release note for any odd / unexpected behaviors. Then any necessary code changes in 5.4. Added clumens because he has been investigating our inconsistent swap documentation. Chris, can you update this with the definitive relnote? Release note added. If any revisions are required, please set the "requires_release_notes" flag to "?" and edit the "Release Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: When using swap --grow in a kickstart file, anaconda imposes a restriction on the maximum size of the swap partition. It does not allow it to grow to fill the device. The maximum size is given by the formula provided in section 4.18.4 of the RHEL5 Installation Guide - "Recommended Partitioning Scheme". The swap guidelines provided in the kickstart documentation are incorrect. For systems with less than 2GB of physical memory, the imposed limit is twice the amount of physical memory. For systems with more than 2GB, the imposed limit is the size of physical memory plus 2GB. Release note updated. If any revisions are required, please set the "requires_release_notes" flag to "?" and edit the "Release Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. Diffed Contents: @@ -1,3 +1,4 @@ -When using swap --grow in a kickstart file, anaconda imposes a restriction on the maximum size of the swap partition. It does not allow it to grow to fill the device. The maximum size is given by the formula provided in section 4.18.4 of the RHEL5 Installation Guide - "Recommended Partitioning Scheme". The swap guidelines provided in the kickstart documentation are incorrect. +When using swap --grow in a kickstart file +without setting --maxsize parameter at the same time, anaconda imposes a restriction on the maximum size of the swap partition. It does not allow it to grow to fill the device. The maximum size is given by the formula provided in section 4.18.4 of the RHEL5 Installation Guide - "Recommended Partitioning Scheme". The swap guidelines provided in the kickstart documentation are incorrect. For systems with less than 2GB of physical memory, the imposed limit is twice the amount of physical memory. For systems with more than 2GB, the imposed limit is the size of physical memory plus 2GB. Release note updated. If any revisions are required, please set the "requires_release_notes" flag to "?" and edit the "Release Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. Diffed Contents: @@ -1,4 +1,3 @@ -When using swap --grow in a kickstart file -without setting --maxsize parameter at the same time, anaconda imposes a restriction on the maximum size of the swap partition. It does not allow it to grow to fill the device. The maximum size is given by the formula provided in section 4.18.4 of the RHEL5 Installation Guide - "Recommended Partitioning Scheme". The swap guidelines provided in the kickstart documentation are incorrect. +Using swap --grow parameter in a kickstart file without setting --maxsize parameter at the same time makes anaconda impose a restriction on the maximum size of the swap partition. It does not allow it to grow to fill the device. For systems with less than 2GB of physical memory, the imposed limit is twice the amount of physical memory. For systems with more than 2GB, the imposed limit is the size of physical memory plus 2GB. Moving to RHEL 5.5 so it doesn't get mistakenly closed by the bot Development Management has reviewed and declined this request. You may appeal this decision by reopening this request. The behavior is documented in the technical note, which should remain for RHEL 5.6 and subsequent releases. The issue described is as-designed behavior with regard to anaconda enforcing restrictions on the size of swap devices during automatic partitioning. At this point in time in the RHEL-5 lifecycle, I do not see a good reason to change this behavior. Documenting what happens in this particular case is sufficient and keeps RHEL-5 releases consistent. If we want to change the behavior, we should address that in RHEL-6. Given that we have a technical note that explains what is happening, I set devel_ack to - |