Eric Sandeen wrote:
> Here's a new one...
>
> In Red Hat's rc.sysinit, they actually issue the swapon command twice -
> first as "swapon -a -e" and then as "swapon -a" (not quite sure why
> they do this)
>
> When devfs is enabled, the second "swapon" generates an error saying
> that the swap device is busy.
>
> The swapon man pages say that "swapon -a" will silently skip swap
> devices that are already enabled, but this is not the case w/ devfs
> enabled.
>
> My guess is a bug in swapon, that it's getting confused by the symlink
> to the device (fstab has /dev/hda5 as swap, for example).
>
> Any ideas?
>
> -Eric
>
> --
> Eric Sandeen XFS for Linux http://oss.sgi.com/projects/xfs
> sandeen@xxxxxxx SGI, Inc.
I run RedHat with DevFS, and I don't see the two swapon entries you are
talking about...perhaps it is a different version than the one I use (6.2
with updates).
However, I used to have a problem with swapon saying that my swap
partitions were busy until I re-wrote my fstab (after backing it up of
course) to point to the actual devfs names of the partitions.
Hope this helps.
Glenn
|