Solaris Common Messages and Troubleshooting Guide

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

Cause

A swapfile was created with the command:


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

# swap -a /ab/swap_50mb
It failed with the message:

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

Action

The -n option was supported on SunOS 4, but on SunOS 5 (Solaris 2) -n works only when the file is to be used by NFS. Local swap files cannot be created with the -n option.