Below are the steps to online expand the default allocated swap space
root@solaris:~# swap -lh
swapfile dev swaplo blocks free
/dev/zvol/dsk/rpool/swap 124,2 4K 2.0G 2.0G
Then remove the swap space with
swap -d /dev/zvol/dsk/rpool/swap
zfs set volsize=5G rpool/swap
Finally, re-add the swap space with
swap -a /dev/zvol/dsk/rpool/swap
No comments:
Post a Comment