Adding swap space
-------------------------------------------------------------------------------- NOTE: An attempt to use a regular file larger than 512K blocks (or 256MB) as swap can result in a kernel hang due to the requirement on the filesystem to allocate a backing store map. A swap requirement larger than 256MB should be satisfied by a swap slice, not by a regular file. See the Getting Started Guide for instructions on using the ``Customize filesystems and slices screen'' to modify a swap slice during installation. -------------------------------------------------------------------------------- To add swap space on an already installed system: Log in as root.
Use the dd(1M) command to create a file equivalent in size to the amount of swap space you are adding: dd if=/dev/null of=file oseek=num bs=blocksize
where file is the full pathname of the new file, blocksize is the block size of the root file system, and num is chosen so that num multiplied by the blocksize equals the number of MBs of swap space desired. The file must be in the root filesystem (``/''). This example creates a 200MB file on the default vxfs root filesystem:
dd if=/dev/null of=/outputfile oseek=200 bs=1024k Use a text editor to edit the /etc/swaptab file and add information for device_name, start_offset, and size:
|
|
|