Firstly, check where your swap file is, If it is a ZFS volume created during the Solaris installation then follow below steps:
# top -d1 | grep -i "total swap" Memory: 126G phys mem, 93G free mem, 4096M total swap, 4095M free swap # swap -l swapfile dev swaplo blocks free /dev/zvol/dsk/rpool/swap 248,1 16 33554416 33554416 # zfs get volsize rpool/swap NAME PROPERTY VALUE SOURCE rpool/swap volsize 4G local
Now you need to unmount it. (disable swap memory)
# swap -d /dev/zvol/dsk/rpool/swap
You can check it is unmounted or not. It should return as "No swap devices configured".
# swap -l
Set swap memory as per requirement. (It's a ZFS volume and you just need to resize it)
# zfs set volsize=16G rpool/swap
And then add it back into your swap space:
# swap -a /dev/zvol/dsk/rpool/swap
Now check swap memory increased:
# swap -l # zfs get volsize rpool/swap # top -d1 | grep -i "total swap"
Your email address will not be published. Required fields are marked *
Comment *
Name *
Email *
Website
Save my name, email, and website in this browser for the next time I comment.