LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-05-2008, 01:51 AM   #1
pellicle
Member
 
Registered: Jul 2008
Location: Finland
Distribution: RHEL4
Posts: 137

Rep: Reputation: 15
is my swap configured properly?


Hi

perhaps I'm digging up things uselessly, however (as I'm trying to learn this) I was reading this article http://www.linux.com/feature/121916

and found that the results of its output are different to mine, for example they say suggest using swapon -s to identify the swap, and then that fdisk -l should get:

Code:
fdisk -l /dev/hdb

 Device Boot    Start   End     Blocks  Id      System
/dev/hdb1       2328    2434    859446  82      Linux swap / Solaris

Replace /dev/hdb with the device of the hard disk on your system with the swap partition on it. You should see output that looks like this:
but on my system I get this:

Code:
# swapon -s
Filename                                Type            Size    Used    Priority

/dev/mapper/VolGroup00-LogVol01         partition       2031608 0       -1

#  fdisk -l /dev/mapper/VolGroup00-LogVol01

Disk /dev/mapper/VolGroup00-LogVol01: 2080 MB, 2080374784 bytes
255 heads, 63 sectors/track, 252 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/mapper/VolGroup00-LogVol01 doesn't contain a valid partition table
so does this mean that I'm not presently correctly set up?

do I thus need to do the following on my partition:
  1. run fdisk and using the 't' menu option
  2. mkswap /dev/mapper/VolGroup00-LogVol01
  3. swapon /dev/hdb1


btw, my existing single disk is partitioned as:

Code:
# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
                     238097040  16028788 209973584   8% /
/dev/sda1               101086     12443     83424  13% /boot
none                   1943496         0   1943496   0% /dev/shm
Thanks :-)
 
Old 08-05-2008, 02:28 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,417

Rep: Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397
LVM (Logical Vol Mgr) is a bit different.
Don't do those cmds, just do

cat /etc/fstab

and post the results.
 
Old 08-05-2008, 03:52 AM   #3
pellicle
Member
 
Registered: Jul 2008
Location: Finland
Distribution: RHEL4
Posts: 137

Original Poster
Rep: Reputation: 15
Hi

Quote:
Originally Posted by chrism01 View Post
LVM (Logical Vol Mgr) is a bit different.
Don't do those cmds
right ... makes sence. I have installed and re-installed this box some dozen times and at the install time it had a graphic to set it up (disk and swap) but I just ran with the defaults.


Quote:
Originally Posted by chrism01 View Post
just do

cat /etc/fstab

and post the results.
ok ... the results are:

Code:
# This file is edited by fstab-sync - see 'man fstab-sync' for details
/dev/VolGroup00/LogVol00 /                       ext3    defaults        1 1
LABEL=/boot             /boot                   ext3    defaults        1 2
none                    /dev/pts                devpts  gid=5,mode=620  0 0
none                    /dev/shm                tmpfs   defaults        0 0
none                    /proc                   proc    defaults        0 0
none                    /sys                    sysfs   defaults        0 0
/dev/VolGroup00/LogVol01 swap                    swap    defaults        0 0
/dev/hda                /media/cdrecorder       auto    pamconsole,exec,noauto,managed 0 0
so, it seems that the partition is listed in there as swap ... if I'm reading that right, it seems like its right after all.

or am I missing something?

thanks :-)
 
Old 08-05-2008, 09:47 AM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,417

Rep: Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397
Looks fine to me. If you run the 'top' cmd, it should show up there.
 
Old 08-05-2008, 09:56 AM   #5
pellicle
Member
 
Registered: Jul 2008
Location: Finland
Distribution: RHEL4
Posts: 137

Original Poster
Rep: Reputation: 15
Chris

Quote:
Originally Posted by chrism01 View Post
Looks fine to me. If you run the 'top' cmd, it should show up there.
bewdy

Code:
top - 16:54:12 up  8:28,  1 user,  load average: 0.00, 0.04, 0.07
Tasks: 106 total,   1 running, 104 sleeping,   0 stopped,   1 zombie
Cpu(s):  0.7% us,  0.2% sy,  0.0% ni, 99.0% id,  0.2% wa,  0.0% hi,  0.0% si
Mem:   3886992k total,  1650796k used,  2236196k free,    57564k buffers
Swap:  2031608k total,        0k used,  2031608k free,  1339416k cached
I think that it was the LVM difference and that not being mentioned in the article I was reading.

Say, I've heard its getting chilly back in Brisso, not long till summer now though (I'm from Southrport originally but here in Sunny Suomi now
 
Old 08-05-2008, 09:57 AM   #6
pellicle
Member
 
Registered: Jul 2008
Location: Finland
Distribution: RHEL4
Posts: 137

Original Poster
Rep: Reputation: 15
ps ... the reason I asked is that nothing seems to ever use it (swap that is)

perhaps I should put this machine out in a DMZ and see what happens to it then (see just how 'unbreakable' oracle is ;-)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Oidentd properly configured ... still not working. lp449 Linux - Networking 0 04-15-2008 05:25 PM
NIC not configured properly mr-flibble Linux - Networking 4 03-28-2007 01:19 AM
no screens found but X configured properly??? Lbtg43 Linux - Newbie 3 10-11-2004 02:04 AM
ATI tv wonder ve not properly configured? jimMC Linux - Hardware 4 07-23-2004 05:21 AM
Help!!! My monitor is not getting configured Properly in Mandrake 9.1 arun79 Linux - Newbie 2 05-13-2003 08:11 AM

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

All times are GMT -5. The time now is 09:53 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration