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