[CentOS] Apparently no swap configured

Tue Oct 28 06:55:27 UTC 2008
Ian Masters <ian at acces.co.jp>

John R Pierce wrote:
> what does
> 
> # swapon -s
> 
> show?

According to 'man swapon', swapon -s means:

Display  swap  usage  summary  by  device.  Equivalent  to  "cat
              /proc/swaps".  Not available before Linux 2.1.25.

> for example, one of my systems shows...
> 
> # swapon -s
> Filename Type Size Used Priority
> /dev/md0 partition 2096376 294864 -1

which show your swap partition, whereas on my problem system, 'swapon
-s' produces no output at all.