Linode Forum Index Linode Forum
Linode Community Forums
 


I've lost my swap space

Click here to go to the original topic

 
       Linode Forum Index -> General Discussion
Author Message
sleddog



Joined: 31 Aug 2008
Posts: 101

Posted: Tue Sep 29, 2009 8:54 am    Post subject: I've lost my swap space  

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.
Back to top  
GrunkaLunka



Joined: 21 Nov 2005
Posts: 46

Posted: Tue Sep 29, 2009 11:12 am    Post subject:  

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.
Back to top  
sleddog



Joined: 31 Aug 2008
Posts: 101

Posted: Tue Sep 29, 2009 11:40 am    Post subject:  

Yes it is. In Drive Setup I see:

/dev/xvda - CentOS 5.0 Disk Image
/dev/xvdb - 256 MB Swap Image
Back to top  
GrunkaLunka



Joined: 21 Nov 2005
Posts: 46

Posted: Tue Sep 29, 2009 12:19 pm    Post subject:  

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.
Back to top  
sleddog



Joined: 31 Aug 2008
Posts: 101

Posted: Tue Sep 29, 2009 12:35 pm    Post subject:  

I'll try a reboot in a few hours, once the workday winds down for clients on the server.

Thanks :)
Back to top  
sleddog



Joined: 31 Aug 2008
Posts: 101

Posted: Tue Sep 29, 2009 3:16 pm    Post subject:  

A reboot from the Linode Manager seems to have fix the issue. The swap space is now there.
Back to top  
zunzun



Joined: 18 Feb 2005
Posts: 445
Location: Birmingham, Alabama USA

Posted: Tue Sep 29, 2009 6:18 pm    Post subject:  

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
Back to top  
sleddog



Joined: 31 Aug 2008
Posts: 101

Posted: Tue Sep 29, 2009 7:09 pm    Post subject:  

Sorry but I think you're wrong there -- RE-booting is the second thing you do to a Windows box :lol:
Back to top  
Vance



Joined: 18 Jan 2009
Posts: 350

Posted: Thu Oct 01, 2009 11:56 pm    Post subject:  

FWIW, swapon -a should activate swap space listed in your fstab (haven't tested it on Linode, though).
Back to top  
Guspaz



Joined: 26 May 2009
Posts: 1147
Location: Montreal, QC

Posted: Fri Oct 02, 2009 10:19 am    Post subject:  

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.
Back to top  
Vance



Joined: 18 Jan 2009
Posts: 350

Posted: Fri Oct 02, 2009 11:19 pm    Post subject:  

Thank you for bringing the oversight to my attention.
Back to top  
weave



Joined: 05 Mar 2008
Posts: 59

Posted: Tue Oct 13, 2009 1:37 pm    Post subject: Me too  

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.
Back to top  
 
       Linode Forum Index -> General Discussion
Page 1 of 1