Specifies additional devices for paging and swapping.
swapon -a | DeviceName ...
The swapon command is used to specify additional devices on which paging and swapping are to take place. It is used during early system initialization to make the initial paging space available. During a later phase of system initialization, the swapon -a command is used to make other devices available so that paging and swapping activity is interleaved across several devices. The swapon -a command makes all devices specified in the /etc/swapspaces file available. Calls to the swapon command normally occur in the system multiuser initialization /etc/rc file.
The DeviceName parameter specifies a specific device to be made available. The second form gives individual block devices as given in the system swap configuration table. The call makes this space and other defined spaces available to the system for paging and swap allocation. The system swap configuration table is the set of all devices specified in the /etc/swapspaces file.
You can use the Devices application in Web-based System Manager (wsm) to run this command.
Note: The maximum number of active paging spaces is 16.
|-a||Causes all devices present in the /etc/swapspaces file to be made available.|
swapon /dev/paging03 /dev/paging04
The /dev/paging03 and /dev/paging04 devices are now available.
|/etc/rc||System multiuser initialization|
|/dev/paging||Device entries for paging/swap space|
|/etc/swapspaces||Contains a list of swap devices.|
The mkps command, chps command.
The swapon subroutine.
The Paging Space Overview in AIX 5L Version 5.1 System Management Concepts: Operating System and Devices explains paging space and its allocation policies.
For information on installing the Web-based System Manager, see Chapter 2: Installation and System Requirements in AIX 5L Version 5.1 Web-based System Manager Administration Guide.
The System Management Interface Tool (SMIT) Overview in AIX 5L Version 5.1 System Management Concepts: Operating System and Devices explains the structure, main menus, and tasks that are done with SMIT.