[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Commands Reference, Volume 5

swapoff Command

Purpose

Deactivates one or more paging spaces.

Syntax

swapoff DeviceName { DeviceName ...}

Description

The swapoff command deactivates one or more paging spaces. The paging spaces are specified by DeviceName. To be deactivated:

Exit Status

Value Description
0 Deactivation is successful, the paging state is set to the INACTIVE state.
1 The following message displays:

swapoff: Cannot deactivate paging space DeviceName
2 There is not enough space in the remaining paging spaces, the deactivation is not done and the following message displays:

"swapoff: Cannot deactivate paging space DeviceName :
There is not enough space in the file system."
3 An I/O error occurred on user pages of a paging space, the following message displays:

swapoff: Deactivation of paging space  DeviceName suspended:
I/O errors encountered on user backing pages.

The recommended action is:

  • Check the error log.
  • Deactivate the paging space for the next reboot using the chps command.
  • Reboot the system.
4 An I/O error occurred on system pages of a paging space, the following message displays:

swapoff: Deactivation of paging space DeviceName suspended:
I/O errors encountered on system backing pages.  The system may crash.

The recommended action is:

  • Check the error log.
  • Deactivate the paging space for the next reboot using the chps command.
  • Reboot the system.

Related Information

The swapon command.

The Paging Space Overview in AIX 5L Version 5.2 System Management Concepts: Operating System and Devices.

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]