Solaris Common Messages and Troubleshooting Guide

file name may contain holes - can't swap on it.

Cause

A swap file was created with the following command:


# mkfile -nv 50m /ab/swap_50mb
When the user tried to add the file with

# swap -a /ab/swap_50mb
it failed with this message:

/ab/swap_50mb may contain holes - can't swap on it.
/ab/swap_50mb: Error 0

Action

Starting with the Solaris 2.0 release, -n works only when the file is to be used by the NFS system. Local swap files cannot be created with the -n option.