swapon(8)swapon(8)Nameswapon - specify additional devices for paging and swapping
Syntax
/etc/swapon -a
/etc/swapon name ...
Description
The command is used to specify additional devices on which paging and
swapping can take place. The system begins by swapping and paging on
only a single device so that only one disk is required at bootstrap
time. Calls to normally occur in the system multiuser initialization
file making all swap devices available, so that the paging and swapping
activity is interleaved across several devices.
Normally, the option is used, causing all devices marked as (swap
devices) in the file to be made available for swapping. If a device is
not marked as a swap device in the file, the command returns an error.
See the reference page for possible error returns.
The second form specifies individual block devices, as listed in the
system swap configuration table. The call makes only this space avail‐
able to the system for swap allocation.
Restrictions
There is no way to stop paging and swapping on a device. It is there‐
fore not possible to use devices that can be dismounted during system
operation.
Files
Normal paging devices
See Alsoswapon(2), init(8)swapon(8)