LinuxQuestions.org
Review your favorite Linux distribution.
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 01-03-2011, 09:30 PM   #1
balakodoth
Member
 
Registered: Dec 2010
Posts: 40

Rep: Reputation: 0
swap -a command in solaris


can anyone explain what is the use of swap -a command in solaris ? is there any equivalent command for swap in Linux ?
 
Old 01-03-2011, 09:32 PM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 332Reputation: 332Reputation: 332Reputation: 332
Google search phrase:
Code:
solaris "swap -a"
 
Old 01-03-2011, 10:12 PM   #3
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
balakodoth,

the answer you seek is the very first result returned to me by Google, if I follow the suggestion given in post #2.

As for on Linux, the `swapon` and `swapoff` commands are used to add/remove swap spaces. The options they accept are likely different from those on Solaris `swap` command, but the manpages should be able to clear up the differences for you.

Kind regards.
 
Old 01-03-2011, 10:26 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,037

Rep: Reputation: 1912Reputation: 1912Reputation: 1912Reputation: 1912Reputation: 1912Reputation: 1912Reputation: 1912Reputation: 1912Reputation: 1912Reputation: 1912Reputation: 1912
Hmmm - first hit for me was *this* thread ....
 
Old 01-03-2011, 10:32 PM   #5
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
Heh

Just in case of that, here's what I found:

http://www.eyrie.org/~eagle/notes/so...swap-file.html
 
Old 01-03-2011, 11:32 PM   #6
balakodoth
Member
 
Registered: Dec 2010
Posts: 40

Original Poster
Rep: Reputation: 0
thanks ...

in Linux I assume swap procedure is as below:

dd if=/dev/zero of=/var/swapfile bs=1024 count=65536
mkswap <device>|<file>
swapon <device>|<file>
update /etc/fstab

but update /etc/fstab command is not working.

is there any equivalent for update ? or do we manually update the /etc/fstab file ?
 
Old 01-03-2011, 11:36 PM   #7
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 332Reputation: 332Reputation: 332Reputation: 332
We must manually edit the /etc/fstab file in order to have the swap file automatically activated during system startup.
 
  


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
Solaris on swap line: Lenny parent's_basement Debian 3 02-11-2009 10:02 PM
Reinstall Solaris Express CE still its partition of type swap not 0xbf zillah Solaris / OpenSolaris 21 12-04-2007 08:53 AM
Linux swap / Solaris ! theoldnyx Linux - Newbie 2 06-30-2007 12:00 PM
Linux swap / solaris not appearing as swap in Ubuntu? Erik_the_Red Linux - Newbie 1 07-30-2005 01:57 PM


All times are GMT -5. The time now is 12:46 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