Skip Navigation Links | |
Exit Print View | |
System Administration Guide: Devices and File Systems Oracle Solaris 11 Express 11/10 |
1. Managing Removable Media (Overview)
2. Managing Removable Media (Tasks)
3. Accessing Removable Media (Tasks)
4. Writing CDs and DVDs (Tasks)
5. Managing Devices (Overview/Tasks)
6. Dynamically Configuring Devices (Tasks)
7. Using USB Devices (Overview)
9. Using InfiniBand Devices (Overview/Tasks)
11. Administering Disks (Tasks)
12. SPARC: Adding a Disk (Tasks)
13. x86: Adding a Disk (Tasks)
14. Configuring iSCSI Storage Devices With COMSTAR
15. Configuring and Managing the Solaris Internet Storage Name Service (iSNS)
17. The format Utility (Reference)
18. Managing File Systems (Overview)
19. Creating ZFS, UFS, TMPFS, and LOFS File Systems (Tasks)
20. Mounting and Unmounting File Systems (Tasks)
21. Configuring Additional Swap Space (Tasks)
Swap Space and the TMPFS File System
Swap Space and Dynamic Reconfiguration
Configuring Swap Space in a SAN Environment
How Do I Know If I Need More Swap Space?
Allocating Swap Space for UFS-Based Systems
Allocating Swap Space for ZFS-Based Systems
Creating a Swap File in a UFS Root Environment
How to Create a Swap File and Make It Available in UFS Root Environment
Adding or Changing Swap Space in an Oracle Solaris ZFS Root Environment
How to Add Swap Space in an Oracle Solaris ZFS Root Environment
How to Remove a Swap Volume in a ZFS Root Environment
22. Copying Files and File Systems (Tasks)
Initially, swap space is allocated as part of the Solaris installation process. If you use the installation program's automatic layout of disk space for swap and do not manually change the size of the swap slice, the Solaris installation program allocates a default swap area of 512 MB for a UFS root environment. In a ZFS root environment, the default swap size is generally in the 512 MB to 2 GB range.
For general guidelines on allocating swap space, see Planning for Swap Space.
You can allocate additional swap space to the system by creating a swap file in a UFS root environment. Swap files are not supported in a ZFS root environment. For information about creating a swap file, see Adding More Swap Space.
After the system is installed, swap areas and swap files are listed in the /etc/vfstab file. They are activated by the /sbin/swapadd script when the system is booted.
An entry for a swap device in the /etc/vfstab file contains the following:
The full path name of the swap slice or swap file on system with a UFS root file system or a swap volume path name on a system with a ZFS root file system
File system type of the swap slice or swap file
The file system that contains a swap file must be mounted before the swap file is activated. So, in the /etc/vfstab file, ensure that the entry that mounts the file system comes before the entry that activates the swap file.