LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   swap -a command in solaris (https://www.linuxquestions.org/questions/linux-newbie-8/swap-a-command-in-solaris-854020/)

balakodoth 01-03-2011 08:30 PM

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 ?

stress_junkie 01-03-2011 08:32 PM

Google search phrase:
Code:

solaris "swap -a"

GrapefruiTgirl 01-03-2011 09:12 PM

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.

syg00 01-03-2011 09:26 PM

Hmmm - first hit for me was *this* thread ....:p

GrapefruiTgirl 01-03-2011 09:32 PM

Heh :)

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

http://www.eyrie.org/~eagle/notes/so...swap-file.html

balakodoth 01-03-2011 10:32 PM

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 ?

stress_junkie 01-03-2011 10:36 PM

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


All times are GMT -5. The time now is 07:17 PM.