Thursday, May 04, 2006

Quickly Add Swap on Solaris

In a crunch moment, you might realize, this server doesn't have enough memory and swap. What do you do? You don't have time to redo the filesystem or add another disk.

This link explains how to create a swap file on Solaris: http://www.eyrie.org/~eagle/notes/solaris/swap-file.html

The skinny of it is to run

/usr/sbin/mkfile SIZEinMBm /SWAP_FILE_NAME

Then add the swap file to the list of swap space:

/usr/sbin/swap -a /SWAP_FILE_NAME

Then run swap -l to make sure the swap space is being used.

No comments:

Labels

Blog Archive

Contributors