solaris 11: resizing swap partition

i was trying to install oracle database 11g on solaris 11 and ran into a roadblock. the install requires at least 1GB of free swap space. luckily i found a blog entry where someone else was having the same exact problem and posted a solution for it.

here it is in a few steps:
root@solaris:~# swap -lh
swapfile                         dev     swaplo   blocks   free
/dev/zvol/dsk/rpool/swap 124,2       4K          2.0G   2.0G

then remove the swap space with swap -d /dev/zvol/dsk/rpool/swap
i had to go to single user mode (init 1) to do this

then resize the volume with zfs set volsize=2G rpool/swap

finally, re-add the swap space with swap -a /dev/zvol/dsk/rpool/swap

my thanks to the blog author. also ZFS seems pretty cool i’d like to play around with it more some time.

source:
http://redstack.wordpress.com/2010/12/14/increasing-swap-size-on-solaris-using-zfs/

This entry was written by resinblade , posted on Tuesday July 10 2012at 06:07 pm , filed under IT . Bookmark the permalink . Post a comment below or leave a trackback: Trackback URL.

Leave a Reply

You must be logged in to post a comment.