solaris-swap

Create a swap file

root@solasoa:~# zfs create -V 2G rpool/swap2

Add to the swap pool:

root@solasoa:~# swap -a /dev/zvol/dsk/rpool/swap2

List swap devices:

root@solasoa:~# swap -l
swapfile             dev    swaplo   blocks     free
/dev/zvol/dsk/rpool/swap 309,1         8  4194296  4194296
/dev/zvol/dsk/rpool/swap2 309,3         8  4194296  4194296
root@solasoa:~#

Make it permanent:

/dev/zvol/dsk/rpool/swap        -               -               swap    -       no      -
/dev/zvol/dsk/rpool/swap2       -               -               swap    -       no      -
/etc/vfstab (END)