Swap Space Not Being Used?

Rick Bilonick rab at nauticom.net
Fri Sep 22 17:34:21 UTC 2006


> This should fix the AVCs:
> 
> # restorecon -v /etc/blkid.*
> 
> Paul.
> 

After doing the retorecon, I'm getting fewer messages but swap is not
coming on at boot.

[chippy at ophth-bilora ~]$ free -m
             total       used       free     shared    buffers     cached
Mem:           495        309        185          0         24        170
-/+ buffers/cache:        115        379
Swap:            0          0          0
[chippy at ophth-bilora ~]$ dmesg | grep swap
Kernel command line: ro root=/dev/VolGroup00/LogVol00 rhgb quiet resume2=swap:/dev/hda6

[root at ophth-bilora chippy]# /sbin/swapon -a -e
[root at ophth-bilora chippy]# free -m
             total       used       free     shared    buffers     cached
Mem:           495        368        126          0         26        199
-/+ buffers/cache:        141        353
Swap:            0          0          0
[root at ophth-bilora chippy]# /sbin/swapon -sv
[root at ophth-bilora chippy]# /sbin/swapon /dev/hda6
[root at ophth-bilora chippy]# free -m
             total       used       free     shared    buffers     cached
Mem:           495        368        126          0         26        199
-/+ buffers/cache:        141        353
Swap:         1004          0       1004
[root at ophth-bilora chippy]#

Why doesn't "swapon -a -e" work?

Rick B.






More information about the fedora-list mailing list