How to add swap in Solaris?

This blog will help you to add swap space on Solaris. If you are installating Oracle and running out of swap than these procedure will help you to add swap.  

First login as root: and check how much swap space you have from the following command.

# swap -l

As root, use mkfile to create a swap file.

# mkfile filesize /path/file

e.g.# mkfile 2048m /usr/local/swap

Add the file create above in the swap area.

# swap -a /path/file

e.g. # swap -a /usr/local/swap

Check the swap space again

# swap -l 

You will see new swap space in output.

No comments:

Post a Comment