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 Web-based System Manager Devices application (wsm devices fast path) to run this command. You could also use the System Management Interface Tool (SMIT) smit swapon fast path to run this command.
|-a||Causes all devices present in the /etc/swapspaces file to be made available.|
swapon -aAll devices present in the /etc/swapspaces file are now available.
swapon /dev/paging03 /dev/paging04The /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 Version 4.3 System Management Guide: Operating System and Devices explains paging space and its allocation policies.
Setting up and running Web-based System Management in AIX Version 4.3 System Management Guide: Operating System and Devices.
The System Management Interface Tool (SMIT) Overview in AIX Version 4.3 System Management Guide: Operating System and Devices explains the structure, main menus, and tasks that are done with SMIT.