I've lost my swap space
top - 11:13:17 up 13 days, 1:53, 1 user, load average: 0.00, 0.00, 0.00
Tasks: 110 total, 2 running, 108 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 553180k total, 533972k used, 19208k free, 46260k buffers
Swap: 0k total, 0k used, 0k free, 378272k cached
There is a 256MB swap image configured in the Linode Manager.
It's configured in fstab:
[root@vps:~] cat /etc/fstab
/dev/xvda / ext3 grpquota,suid,dev,noatime,usrquota,exec 0 1
devpts /dev/pts devpts gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
/dev/xvdb swap swap defaults 0 0
But doesn't exist:
[root@vps:~] swapon -a
swapon: cannot stat /dev/xvdb: No such file or directory
[root@vps:~] ls /dev/x*
/dev/xvda
Any suggestions for what I should do? Thanks.
11 Replies
/dev/xvda - CentOS 5.0 Disk Image
/dev/xvdb - 256 MB Swap Image
Thanks
@sleddog:
A reboot […] seems to have fix the issue.
Well, duh! The first thing you always try is rebooting the box - don't you know anything about the Microsoft Windows operating system?
James
@Vance:
FWIW, swapon -a should activate swap space listed in your fstab (haven't tested it on Linode, though).
@sleddog:
[root@vps:~] swapon -a swapon: cannot stat /dev/xvdb: No such file or directory
RTFP.
A reboot fixed my issue as well.
Weird.