The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
swap space manoj.solaris Linux 1 08-22-2007 06:11 AM
Swap space used??? Lestat UNIX for Dummies Questions & Answers 1 02-17-2005 11:51 AM
swap space / paging space aaronh AIX 2 05-19-2004 10:06 AM
Swap space is LOW TRUEST UNIX for Dummies Questions & Answers 3 02-12-2004 07:28 PM
pageing space vs swap space VeroL UNIX for Dummies Questions & Answers 1 01-22-2004 11:54 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rating: Thread Rating: 1 votes, 4.00 average. Display Modes
  #1 (permalink)  
Old 11-08-2000
SmartJuniorUnix SmartJuniorUnix is offline
Registered User
  
 

Join Date: Sep 2000
Location: UTAH
Posts: 27
Question

All,
I am using SOLARIS 7. I have formated my hard drive to consist of only 150MB of swap space. This isn't enough considering I am running Oracle. How do I create additional swap space?
Please list sources or commands.

PS mkswap doesn't work on my machine. ( I have swap and swapadd)

Thanks a bunch
  #2 (permalink)  
Old 11-08-2000
PxT's Avatar
PxT PxT is offline Forum Advisor  
Registered User
  
 

Join Date: Oct 2000
Location: Sacramento, CA
Posts: 909
(excerpt from
http://www.hp-partners.com/ptc_publi.../2x_swap2.htm)

To add a raw swap partition to a Solaris 2.x system, identify an unused partition on a disk. Traditionally, slice 1 is used for swap space. Add the following entry to /etc/vfstab, taking care to use the correct device name:

/dev/dsk/c0t1d0s1 - - swap - no -

Enable the new partition with the swap command:
swap -a /dev/dsk/c0t1d0s1

Check your change:

swap -l

swapfile dev swaplo blocks free

/dev/dsk/c0t3d0s1 32,25 8 164040 164040
/dev/dsk/c0t1d0s1 32,9 8 164040 164040
  #3 (permalink)  
Old 11-10-2000
SmartJuniorUnix SmartJuniorUnix is offline
Registered User
  
 

Join Date: Sep 2000
Location: UTAH
Posts: 27
Cool I GOT IT!!!!

I did a little research regarding this issue.

It turns out that it is very simple...

first, create a file with a size in megabytes of the swap space you wish. I did this in the root directory for simplicity.

mkfile 1024 /swapfile

second, manually add the file as swap space

swap -a /swapfile

this is it!!

Now it gets interesting. To have the swap space mounted everytime you machine boots, you need to edit /etc/vfstab.

You'll have to look at vfstab(4) for the syntax of the file, but as I have learned---It's there if you read it

Thanks for all your help

SmartJuniorUnix......UNTIL NEXT TIME
  #4 (permalink)  
Old 11-10-2000
Neo's Avatar
Neo Neo is online now Forum Staff  
Administrator
  
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 6,695
There are many kinds of swap space. PxT accurately decribes disk space swap. Mr JuniorUnix accurately describes file space swap. Most people consider file space swap to be much less efficient and slower than disk space swap. I would recommend some research into the subject and make sure that you will be happy with file space swap vs. disk swap. Just to let you know, we never use file swap and always use raw disk swap. There is a considerable difference in performance between the two, as I recall.
  #5 (permalink)  
Old 11-12-2000
SmartJuniorUnix SmartJuniorUnix is offline
Registered User
  
 

Join Date: Sep 2000
Location: UTAH
Posts: 27
No remaining disk space/ partitions

If I have no disk space. Is my only option to utilize file swap space?

  #6 (permalink)  
Old 11-13-2000
Neo's Avatar
Neo Neo is online now Forum Staff  
Administrator
  
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 6,695
You can add another disk, partition some swap space, and use the rest for file systems.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:52 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0