Sometimes you have to add additional swap space when the current swap space is not sufficient.
With help to following steps you can add the swap space in zfs of Solaris 10 /11
Create the zfs volume of 2Gb from rpool, here I had used rpool you can use any other pool.
across reboots.
With help to following steps you can add the swap space in zfs of Solaris 10 /11
Create the zfs volume of 2Gb from rpool, here I had used rpool you can use any other pool.
# swap -l swapfile dev swaplo blocks free /dev/zvol/dsk/rpool/swap 256,1 16 1058800 1058800
# zfs create -V 2G rpool/swap2
Activate the second swap volume.
# swap -a /dev/zvol/dsk/rpool/swap2 # swap -l swapfile dev swaplo blocks free /dev/zvol/dsk/rpool/swap 256,1 16 1058800 1058800 /dev/zvol/dsk/rpool/swap2 256,3 16 4194288 4194288Make an entry into /etc/vfstab file so that swap space would remain persistent
across reboots.
/dev/zvol/dsk/rpool/swap2 - - swap - no -