opensolaris – increase swap

I found this on opensolaris forums…. A nice way to increase your swap without the need for a reboot.

First check your current swap size and details;

swap -lh

or

zfs list

Then create a temp swap zfs store and delete and increase swap

zfs create -V <old size> rpool/swp
swap -a /dev/zvol/dsk/rpool/swp
swap -d /dev/zvol/dsk/rpool/swap
zfs destroy rpool/swap
zfs create -V <new size> rpool/swap
swap -a /dev/zvol/dsk/rpool/swap
swap -d /dev/zvol/dsk/rpool/swp
zfs destroy rpool/swp

Done.

If you are happy to reboot…

zfs set volsize=8G rpool/swap
reboot

7 Replies to “opensolaris – increase swap”

  1. I just want to mention I am just newbie to blogs and absolutely liked this web page. Probably I’m going to bookmark your site . You surely have beneficial articles and reviews. Regards for sharing your website page.

  2. I¡¦ll right away take hold of your rss feed as I can not in finding your e-mail subscription link or e-newsletter service. Do you’ve any? Kindly permit me recognize in order that I may subscribe. Thanks.

  3. whoah this weblog is magnificent i really like reading your articles. Keep up the great paintings! You already know, lots of individuals are hunting around for this information, you could aid them greatly.