Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

swapon(8) [ultrix man page]

swapon(8)						      System Manager's Manual							 swapon(8)

Name
       swapon - specify additional device 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 are to 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 multi-user  initializa-
       tion file making all swap devices available, so that the paging and swapping activity is interleaved across several devices.

       Normally, the option is given, causing all devices marked as ``sw'' (swap devices) in to be made available.

       The second form gives individual block devices, as listed in the system swap configuration table.  The call makes only this space available
       to the system for swap allocation.

Restrictions
       There is no way to stop paging and swapping on a device.  It is therefore not possible to make use of devices which may be dismounted  dur-
       ing system operation.

Files
       Normal paging devices

See Also
       swapon(2), init(8)

																	 swapon(8)

Check Out this Related Man Page

swapon(2)							System Calls Manual							 swapon(2)

Name
       swapon - add a swap device for interleaved paging/swapping

Syntax
       swapon(special)
       char *special;

Description
       The  system  call  makes the block device special available to the system for allocation for paging and swapping.  The names of potentially
       available devices are known to the system and defined at system configuration time.  The size of the swap area on special is calculated	at
       the time the device is first made available for swapping.

Restrictions
       There is no way to stop swapping on a disk so that the pack may be dismounted.

Diagnostics
       The system call succeeds unless:

       [ENOTDIR]      A component of the path prefix is not a directory.

       [ENAMETOOLONG] A component of a pathname exceeded 255 characters, or an entire pathname exceeded 1023 characters.

       [ENOENT]       The named device does not exist.

       [EACCES]       Search permission is denied for a component of the path prefix.

       [ELOOP]	      Too many symbolic links were encountered in translating the pathname.

       [EPERM]	      The caller is not the super-user.

       [ENOTBLK]      The special is not a block device.

       [EBUSY]	      The device specified by special has already been made available for swapping.

       [EINVAL]       The device configured by special was not configured into the system as a swap device.

       [ENXIO]	      The  major  device number of special is out of range.  (This indicates that no device driver exists for the associated hard-
		      ware.)

       [EIO]	      An I/O error occurred while opening the swap device.

       [EFAULT]       The special points outside the process's allocated address space.

See Also
       config(8), swapon(8)

																	 swapon(2)
Man Page

4 More Discussions You Might Find Interesting

1. Red Hat

swapon: Function not implemented

(5 Replies)
Discussion started by: chris5126
5 Replies

2. Linux

swapon: Function not implemented

Hi, Trying to add a swap file to my server as below: dd if=/dev/zero of=/swapfile1 bs=1M count=2048 2048+0 records in 2048+0 records out 2147483648 bytes (2.1 GB) copied, 27.4514 seconds, 78.2 MB/s # mkswap -c /swapfile1 Setting up swapspace version 1, size = 2147479 kB # swapon... (6 Replies)
Discussion started by: chris5126
6 Replies

3. UNIX for Advanced & Expert Users

lvm swapon failed Device or resource busy

Is there a trick to mounting swap in n a lvm? I can't get it to work. # swapon -va swapon on /dev/mapper/VG-lv_swap swapon: /dev/mapper/VG-lv_swap: found swap signature: version 1, page-size 4, same byte order swapon: /dev/mapper/VG-lv_swap: pagesize=4096, swapsize=4294967296,... (1 Reply)
Discussion started by: cokedude
1 Replies

4. UNIX for Advanced & Expert Users

How to find out and monitor IO spikes history in Linux?

hello all i have application which according to AWS monitoring is reaching to high spikes of IO at random time . and causing the server to crash and restart . my question is how can i find out what cause the spike and if i can't with the native linux tools what free open source minimon... (6 Replies)
Discussion started by: umen
6 Replies