rmps Command

Purpose

Removes an inactive paging space.

Syntax

rmps[ -t ps_helper] PagingSpace

Description

The rmps command removes an inactive paging space. The PagingSpace parameter specifies the name of the paging space to be removed, which is actually the name of the logical volume on which the paging space resides.

For an NFS paging space, the PagingSpace parameter specifies the name of the paging space to be removed. The device and its definition, which corresponds to this paging space, will be removed from the system. Nothing will be changed on the NFS server where the file that is used for paging actually resides.

If the -t flag is specified, the argument will be assumed to be a third-party helper executable. If the helper executable is present in the /sbin/helpers/pagespace path then it will be spawned passing the -r flag to specify the rmps command. The /etc/swapspaces directory will be modified accordingly if the helper executable returns zero. The helper executable must take care of removing the paging space. If the named helper doesn’t exist in /sbin/helpers/pagespace directory the rmps command will display the usage error. The helper executable must exit with a 0 if successful and a non-zero if it fails.

Active pages can be removed by first deactivating them with the swapoff command.

You can use the File Systems application in Web-based System Manager (wsm) to change file system characteristics.

Flags

Item Description
-t Specifies to use the helper program under /sbin/helpers/pagespace directory.
ps_helper
Name of the helper program for a third party device.

Security

Attention RBAC users and Trusted AIX® users: This command can perform privileged operations. Only privileged users can run privileged operations. For more information about authorizations and privileges, see Privileged Command Database in Security. For a list of privileges and the authorizations associated with this command, see the lssecattr command or the getcmdattr subcommand.

Examples

  1. To remove PS01 paging space, run the following command:
    rmps PS01
    This removes the PS01 paging space.
  2. To remove PS01 paging space using helper program foo, run the following command:
    rmps –t foo PS01
    This removes the PS01 paging space.

Files

Item Description
/etc/swapspaces Specifies the paging space devices and their attributes.