How To dynamically increase ZFS swap space on Solaris and Opensolaris


These are the steps to increase the swap space without rebooting the system on a ZFS root based Solaris and Opensolaris system:

# swap -l
swapfile dev swaplo bloques libre
/dev/zvol/dsk/rpool/swap 256,2 16 2097136 2097136
# zfs set volsize=2G rpool/swap
# env NOINUSE_CHECK=1 swap -a /dev/zvol/dsk/rpool/swap $((8+2097136))
# swap -l
swapfile dev swaplo bloques libre
/dev/zvol/dsk/rpool/swap 256,2 16 2097136 2097136
/dev/zvol/dsk/rpool/swap 256,2 2097152 2097152 2097152

There are some interesting Sun courses for ZFS management:

System Administration for the Solaris 10 Operating System Part 1 (SA-200)

System Administration for the Solaris 10 Operating System, Part 2 (SA-202)

Solaris 10 ZFS Administration (SA-2290-S10)

/Sergio

VN:F [1.9.12_1141]
Rating: 9.0/10 (3 votes cast)
VN:F [1.9.12_1141]
Rating: -1 (from 1 vote)
How To dynamically increase ZFS swap space on Solaris and Opensolaris, 9.0 out of 10 based on 3 ratings Sphere: Related Content

FacebookTwitterGoogle BookmarksLinkedInShare

No related posts.

Related posts brought to you by Yet Another Related Posts Plugin.

,

  1. No comments yet.
(will not be published)