swap not turned on at boot
Rick Stevens
rstevens at vitalstream.com
Wed Dec 13 22:42:40 UTC 2006
On Wed, 2006-12-13 at 16:47 -0500, ron wrote:
> On Wed, 2006-12-13 at 16:18 -0500, ron wrote:
>
> >> Here is some more output:
> >>
> >> # /sbin/swapon
> >>
> >> usage: swapon [-hV]
> >> swapon -a [-e] [-v]
> >> swapon [-v] [-p priority]
> > special|LABEL=volume_name ...
> >> swapon [-s]
> >>
> >> [root coresix ron]# /sbin/swapon -v
> > LABEL=/dev/VolGroup00/LogVol01
> >>
> >> swapon on
> > LABEL=/dev/VolGroup00/LogVol01
> >>
> >> swapon: cannot find the device for
> >>LABEL=/dev/VolGroup00/LogVol01
>
> On Wed, 13 Dec 2006 13:23:26 -0800, Rick wrote:
> >
> > Do not include the "LABEL=" in the
> > swapon command. Use:
> >
> > /sbin/swapon -v
> > /dev/VolGroup00/LogV
>
> Rick,
>
> Here goes:
>
> [root at coresix ron]# /sbin/swapon -v /dev/VolGroup00/LogVol01
>
> swapon on /dev/VolGroup00/LogVol01
>
> swapon: cannot stat /dev/VolGroup00/LogVol01: No such file or directory
>
> [root at coresix ron]#
Ok. Then you really don't have an LVM-managed swap partition. In a
previous post, I think Gparted said that your swap partition was
actually /dev/sda2. If that's the case, try "swapon -v /dev/sda2"
and see if that works. If it works, then change your /etc/fstab entry
from
/dev/VolGroup00/LogVol01 swap swap defaults 0 0
to
/dev/sda2 swap swap defaults 0 0
That should activate (at least) the raw swap partition. As far as the
one under LVM control, I'm a bit stumped. Have a look at the output
of "lvdisplay" and see if that /dev/VolGroup00/LogVol01 shows up in
there.
----------------------------------------------------------------------
- Rick Stevens, Senior Systems Engineer rstevens at vitalstream.com -
- VitalStream, Inc. http://www.vitalstream.com -
- -
- "Microsoft is a cross between The Borg and the Ferengi. -
- Unfortunately they use Borg to do their marketing and Ferengi to -
- do their programming." -- Simon Slavin -
----------------------------------------------------------------------
More information about the fedora-list
mailing list