[CentOS] Apparently no swap configured

John R Pierce pierce at hogranch.com
Tue Oct 28 06:41:22 UTC 2008


Ian Masters wrote:
> Also, as I said /dev/VolGroup00/swap is not listed in /etc/fstab, but it
> is listed in /dev/mapper/. Is that good enough confirmation that it is
> not in use?
>   

what does

# swapon -s

show?

for example, one of my systems shows...

# swapon -s
Filename Type Size Used Priority
/dev/md0 partition 2096376 294864 -1

and in turn, md0 is...

# mdadm -D /dev/md0
/dev/md0:
Version : 00.90.03
Creation Time : Wed Jun 25 12:44:15 2008
Raid Level : raid1
Array Size : 2096384 (2047.59 MiB 2146.70 MB)
Used Dev Size : 2096384 (2047.59 MiB 2146.70 MB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 0
Persistence : Superblock is persistent

Update Time : Mon Oct 27 23:29:04 2008
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0

UUID : 9dcfc53d:d1f69e6b:d91b109f:9e659e4c
Events : 0.4

Number Major Minor RaidDevice State
0 8 2 0 active sync /dev/sda2
1 8 18 1 active sync /dev/sdb2




More information about the CentOS mailing list