Search This Blog

04 November 2008

Increasing swap size

At work today, my OpenSolaris b101 in Virtual Box on a Windows machine ran out of swap space. It had 512 assigned, which was the default, so I thought it would be enough... oh well, what to do?

# df -h
this will show how much space it has versus how much is in use...
# zfs list
this will show where the swap space comes from (probably rpool/swap)
# zfs set volsize=2G rpool/swap
set the swap filesystem to 2G
# reboot now
I am not sure if I *had* to reboot for it to take effect, but it worked well

I was going to try it at home (since I doubled the physical memory in that box) but only 1% of the swap space was in use, so I left it.

3 comments: