LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-12-2005, 02:39 AM   #1
terrier77
LQ Newbie
 
Registered: Jul 2005
Posts: 3

Rep: Reputation: 0
Do I have a problem with my swap filesystem?


Hello,

Wonder if someone can help. Sysadmin stuff is not exactly my forte - so please excuse my ignorance here...

When I execute swapon -s to look at configured swap I see the following:

1:server1:# swapon -s
Filename Type Size Used Priority
/dev/rootvg/swap (deleted) partition 8388600 0 -1


'free' and examination of top and vmstat indicates that no swap is in use (There is plenty of memory).

Now, is this swap not in use at all because there is problem with it. I think even with tons of memory installed you would still see a bit of activity to the swapfile.

Deleted certainly sounds suspicious to me. I cannot seem to find anything on what deleted means in the context of swap. Common sense of course tells me its been...err deleted. /dev/rootvg/swap does still exist but Im not sure how to verify this properly (looks like Linux LVM has been used and am not really up to speed with this yet)

If anyone can clarify this I'd be grateful,

Thanks

Tim
 
Old 07-12-2005, 02:56 AM   #2
Gay R0b0t
Member
 
Registered: May 2004
Location: Sydney, Australia
Distribution: SUSE 9.3
Posts: 127

Rep: Reputation: 15
look in /etc/fstab and see if there is line like:
Code:
/dev/hda3    swap    swap    *options*   0 0
If not add one, replacing hda3 with the partition your swap is, and the options with anything you like, mine are "pri=42" but I don't know what that means. Look at a partitioning site for information about options.

Edit: Gentoo handbook recommends replacing the first "swap" with "none" and "*options*" with "sw". ie:
Code:
/dev/hda3     none    swap    sw    0 0

Last edited by Gay R0b0t; 07-12-2005 at 03:01 AM.
 
Old 07-12-2005, 04:18 AM   #3
terrier77
LQ Newbie
 
Registered: Jul 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks Chris,

I've got the following in /etc/fstab

/dev/rootvg/swap swap swap defaults 0 0

I think this looks ok?

Tim
 
Old 07-12-2005, 05:06 AM   #4
Gay R0b0t
Member
 
Registered: May 2004
Location: Sydney, Australia
Distribution: SUSE 9.3
Posts: 127

Rep: Reputation: 15
put a hash (#) before that line, and create a new one that looks exactly the same, except that the '/dev/rootvg/swap' bit is replaced with the partition number. '/dev/hda3' if partition 3.

then save and reboot. See if this solves your problem.
When you said:
Quote:
examination of top and vmstat indicates that no swap is in use (There is plenty of memory)
did you mean that there was swap available, but none is being used; or that there is simply no swap available but plenty of RAM?
 
Old 07-12-2005, 05:48 AM   #5
terrier77
LQ Newbie
 
Registered: Jul 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks Chris,

According to free -m there is plent of swap available just zero used.


total used free shared buffers cached
Mem: 7786 3310 4476 0 196 2112
-/+ buffers/cache: 1002 6784
Swap: 8191 0 8191



Will see if I can try your suggestion - trouble is the old familar situation is that I'll need to schedule a time to do it as its in a sort of semi-live status at the moment.

Cheers,

Tim
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DISCUSSION: Virtual Filesystem: Building a Linux Filesystem from an Ordinary File mchirico LinuxAnswers Discussion 0 10-28-2004 10:35 PM
Encrypted Root Filesystem HOWTO and /dev filesystem tmillard Linux From Scratch 0 10-18-2004 03:58 PM
Best and most reliable filesystem for "/" and swap destin Slackware 2 04-09-2004 05:31 PM
3 issues: Making swap, fixing partitions, changing ownership of mounted filesystem. Dunedain Linux - Newbie 2 01-27-2004 03:52 PM
which filesystem is my swap partition? neenee Linux - General 11 07-24-2003 09:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration