Red Hat Bugzilla – Bug 43154
"swapon -a" reports device busy if run second time
Last modified: 2007-04-18 12:33:31 EDT
Description of Problem:
"man swapon" says:
-a All devices marked as ``sw'' swap devices in /etc/fstab are made
available. Devices that are already running as swap are silently skipped.
However, they are _not_ silently skipped:
# /sbin/swapon -a
swapon: /dev/hde6: Device or resource busy
Since /etc/rc.d/rc.sysinit runs swapon twice, the second time it causes
unpleasant error messages during startup.
Steps to Reproduce:
1. Install RedHat 7.1 with a swap partition and without swap files.
2. Boot it.
An error message appears after "Enabling swap space", followed by [Ok]
No error message. Actually, "Enabling swap space" is useless too, but
it's another story.
Update to mount-2.11b-3 doesn't fix the problem.
This was fixed in 7.2.