support@yourtech.us | Webmail |  DNS Login | *Billing* | cPanel | (814) 652-5358

Welcome to YourTech, LLC. If you are unfamiliar with this site, you may want to find out about my services, read my story, or you could simply be looking for a way to contact me. On this site, you will find a collection of technical musings, howto guides, and technical reference information.

October 2008 Archives

Solaris Swap Space

submit to reddit | No Comments | No TrackBacks

In Solaris, the easiest way to add swap to an existing system is through a swapfile.

Create a file on a partition that has enough space:

# Create a 2GB file in / called "swap2gb"
mkfile -v 2g /swap2gb
# add the swap to the system
swap -a /swap2gb
# verify
swap -l

To make sure your swap exists on boot, add the entry to /etc/vfstab:

/swap2gb   -      -       swap     -     no     -