Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.

Bug 1357635

Summary: A problem with instructions on creating a swap file
Product: Red Hat Enterprise Linux 6 Reporter: Milan Navratil <mnavrati>
Component: doc-Storage_Admin_GuideAssignee: Milan Navratil <mnavrati>
Status: CLOSED NOTABUG QA Contact: ecs-bugs
Severity: unspecified Docs Contact:
Priority: high    
Version: 6.8CC: dshea, rhel-docs
Target Milestone: rcKeywords: Documentation
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-20 15:41:41 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Milan Navratil 2016-07-18 17:39:33 UTC
Document URL:

Section Number and Name: 

15.1.3. Creating a Swap File

Describe the issue: 

Jaewoo Jeon wrote an email to Milan Navratil describing the issue as follows:

I ran across this article while looking for a quick guide to set up swap space on RHEL 6 installation. The section 15.1.3. worked well for me. However I was bit confused when I encountered following direction:

To enable it at boot time, edit /etc/fstab to include the following entry:

/swapfile swap swap defaults 0 0

The next time the system boots, it enables the new swap file.

Other entries in the /etc/fstab and other guides on the web (albeit different distribution and unofficial documents) suggest that the order should instead be:

swap /swapfile swap defaults 0 0

But then the document is official, so I may be wrong. Is this an error in the documentation or is this just different in redhat?

Suggestions for improvement: 

Verify with a subject matter expert and either provide an explanation to the reporter, or make the change as suggested.

Comment 3 David Shea 2016-07-18 18:02:19 UTC
The documentation is correct. The first column is the device to be mounted, in this case the swap file. The second column is the mount point. Swap has no mount point, so "swap" is used as a placeholder. The important part is that the swap file needs to be in the first column. Placing the swap file in the second column will not work.

Comment 6 Milan Navratil 2016-07-20 15:41:41 UTC
Thank you for the information, David.

I'm closing this BZ with a resolution "not a bug" and let Jaewoo Jeon know by email.

Thanks again.