Sun Microsystems VERSION 3.1.0_BETA2 User Manual

Page of 283
11 Troubleshooting
11.6.2 VM aborts with out of memory errors on Solaris 10 hosts
Solaris 10 hosts (bug 1225025) requires swap space equal to, or greater than the host’s
physical memory size. For example, 8 GB physical memory would require at least 8 GB
swap. This can be configured during a Solaris 10 install by choosing a ’custom install’
and changing the default partitions.
For existing Solaris 10 installs, an additional swap image needs to be mounted and
used as swap. Hence if you have 1 GB swap and 8 GB of physical memory, you require
to add 7 GB more swap. This can be done as follows:
For ZFS (as root user):
zfs create -V 8gb /_<ZFS volume>_/swap
swap -a /dev/zvol/dsk/_<ZFS volume>_/swap
To mount if after reboot, add the following line to /etc/vfstab:
/dev/zvol/dsk/_<ZFS volume>_/swap - - swap - no -
Alternatively, you could grow the existing swap using:
zfs set volsize=8G rpool/swap
And reboot the system for the changes to take effect.
For UFS (as root user):
mkfile 7g /path/to/swapfile.img
swap -a /path/to/swapfile.img
To mount it after reboot, add the following line to /etc/vfstab:
/path/to/swap.img - - swap - no -
166