[OpenIndiana-discuss] OI hipster frequence freeze during update

John D Groenveld jdg117 at elvis.arl.psu.edu
Sat Dec 31 18:38:58 UTC 2016


In message <a5f04cc9-c521-1fea-0535-f11efebb98f6 at gmail.com>, Michael Kruger wri
tes:
>This would be a good time to ssh into the system and increase the size 
>of the original swap volume.
>You could either leave the 2nd swap volume, or remove it.
>
>To increase the space, first verify it's really still free.
>
>swap -l
>swapfile             dev    swaplo   blocks     free
>/dev/zvol/dsk/rpool/swap 283,2         8  2060280  2060280
>/dev/zvol/dsk/rpool/swap2 283,3         8  4194296  4194296
>
>Now lets look at the how big the volume really is.
>
># zfs get volsize rpool/swap
>NAME        PROPERTY  VALUE    SOURCE
>rpool/swap  volsize   1006M    local
>
>At 1GB, it's pretty small. Lets enlarge it to 4 GB instead.
>
># zfs set volsize=4g rpool/swap
>
>Now lets have another look at it.
>
># zfs get volsize rpool/swap
>NAME        PROPERTY  VALUE    SOURCE
>rpool/swap  volsize   4G       local
>
>That's much better. We're much less likely to run out of /tmp space now.
>
>NOTE: swap -l will still show the old swap file size until the system 
>reboots.
>Not sure exactly what this means, but perhaps the new size does not take 
>effect until after the reboot.

swap -d and then swap -a to re-add your resized rpool/swap, assuming
your temporary rpool/swap2 has sufficient space to handle current usage.

Then swap -d and zfs destroy to rpool/swap2.

John
groenveld at acm.org



More information about the openindiana-discuss mailing list