Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: I've lost my swap space
PostPosted: Tue Sep 29, 2009 9:54 am 
Offline
Senior Member

Joined: Sun Aug 31, 2008 4:29 pm
Posts: 177
Just noticed that one of my Linodes doesn't have any swap space:

Code:
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:

Code:
[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:

Code:
[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.


Top
   
 Post subject:
PostPosted: Tue Sep 29, 2009 12:12 pm 
Offline
Junior Member

Joined: Mon Nov 21, 2005 4:23 pm
Posts: 46
I know you mentioned it's configured in the manager, but is it also marked as an active drive in the configuration profile? It's under Drive Setup.


Top
   
 Post subject:
PostPosted: Tue Sep 29, 2009 12:40 pm 
Offline
Senior Member

Joined: Sun Aug 31, 2008 4:29 pm
Posts: 177
Yes it is. In Drive Setup I see:

/dev/xvda - CentOS 5.0 Disk Image
/dev/xvdb - 256 MB Swap Image


Top
   
 Post subject:
PostPosted: Tue Sep 29, 2009 1:19 pm 
Offline
Junior Member

Joined: Mon Nov 21, 2005 4:23 pm
Posts: 46
Did you restart, just to make sure the drive is being recognized by the kernel? My only other guess is that the device node doesn't exist for whatever reason. I'm still on UML, so I can't tell you what the major/minor number is supposed to be.


Top
   
 Post subject:
PostPosted: Tue Sep 29, 2009 1:35 pm 
Offline
Senior Member

Joined: Sun Aug 31, 2008 4:29 pm
Posts: 177
I'll try a reboot in a few hours, once the workday winds down for clients on the server.

Thanks :)


Top
   
 Post subject:
PostPosted: Tue Sep 29, 2009 4:16 pm 
Offline
Senior Member

Joined: Sun Aug 31, 2008 4:29 pm
Posts: 177
A reboot from the Linode Manager seems to have fix the issue. The swap space is now there.


Top
   
 Post subject:
PostPosted: Tue Sep 29, 2009 7:18 pm 
Offline
Senior Member

Joined: Fri Feb 18, 2005 4:09 pm
Posts: 594
sleddog wrote:
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


Top
   
 Post subject:
PostPosted: Tue Sep 29, 2009 8:09 pm 
Offline
Senior Member

Joined: Sun Aug 31, 2008 4:29 pm
Posts: 177
Sorry but I think you're wrong there -- RE-booting is the second thing you do to a Windows box :lol:


Top
   
 Post subject:
PostPosted: Fri Oct 02, 2009 12:56 am 
Offline
Senior Member
User avatar

Joined: Sun Jan 18, 2009 2:41 pm
Posts: 830
FWIW, swapon -a should activate swap space listed in your fstab (haven't tested it on Linode, though).


Top
   
 Post subject:
PostPosted: Fri Oct 02, 2009 11:19 am 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
Vance wrote:
FWIW, swapon -a should activate swap space listed in your fstab (haven't tested it on Linode, though).


sleddog wrote:
Code:
[root@vps:~] swapon -a
swapon: cannot stat /dev/xvdb: No such file or directory


RTFP.


Top
   
 Post subject:
PostPosted: Sat Oct 03, 2009 12:19 am 
Offline
Senior Member
User avatar

Joined: Sun Jan 18, 2009 2:41 pm
Posts: 830
Thank you for bringing the oversight to my attention.


Top
   
 Post subject: Me too
PostPosted: Tue Oct 13, 2009 2:37 pm 
Offline
Senior Member
User avatar

Joined: Thu Mar 06, 2008 12:21 am
Posts: 59
This is an old thread, but I just wanted to add that this too happened to me about a month ago. I was updated some packages and they failed due to lack of core. I checked and there was no swap device. The block device was not present either.

A reboot fixed my issue as well.

Weird.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group