AIX Different Commands For Paging Space Administration swap file create

Posts Tagged ‘mkps

Different Commands For Paging Space Administration

leave a comment »

This post will talk about various commands involved to carry out paging space administration.

The first and foremost command always used is to check the already available paging space present in the server. To list all the paging spaces, command used is:

# lsps –a

But if admin wants to check summary of all the paging spaces available, to list summary, command used is:

# lsps –s

To create a new paging space:

# mkps –s <number of LPs> <vgname>

For eg:

# mkps –s 10 oracle_vg

This will create a paging space with default name for eg: paging01

Once created, admin can verify the same by running the command to list paging space once again,

# lsps –a

To activate the paging space:

# swapon /dev/paging01

To extend paging space:

# chps –s <number of LPs to be added> <paging space name>

For eg:

# chps –s 10 paging01

This will add additional 10 LPs to paging01.

To reduce the number of LPs from a paging space, command used is:

# cjps –d <number of LPs to be reduced> <paging space name>

For eg:

# chps –d 10 paging01

All the commands admin execute can verify the result by running the command to list the paging space:

# lsps –a

To deactivate the paging space:

# swapoff /dev/paging01

To completely remove the paging space, first admin needs to deactivate it and then run the command to remove it:

# rmps paging01

Command to activate all the paging space listed:

# swapon –a

OR

# swap –activate

Command to deactivate all the paging space listed:

# swap –deactivate

All the paging space is defined in /etc/swapspaces.

Can be checked by running the following command:

# Cat /etc/swapspaces

With this post, I covered nearly all the topics to understand the basics of LVM.

I hope you find the blog till date interesting and worth reading.

Happy Learning till then!

0 (0)
Article Rating (No Votes)
Rate this article
Attachments
There are no attachments for this article.
Comments
There are no comments for this article. Be the first to post a comment.
Full Name
Email Address
Security Code Security Code
Related Articles RSS Feed
Tuning AIX Network Performance
Viewed 3644 times since Tue, May 22, 2018
AIX, Monitoring, Networking, Red Hat, Security, System Admin↑ Determining type of system remotely
Viewed 2300 times since Fri, Apr 19, 2019
Monitor logfiles and command output on AIX using multitail.
Viewed 2321 times since Thu, Feb 21, 2019
How to clear/clean/erase/delete/reset network adapter configuration on AIX?
Viewed 12530 times since Thu, Nov 29, 2018
Backup and Restore With AIX
Viewed 4452 times since Sat, May 19, 2018
AIX smtctl The smtctl command controls the enabling and disabling of processor simultaneous multithreading mode.
Viewed 15140 times since Fri, Jan 18, 2019
Part 1, Memory overview and tuning memory parameters AIX7
Viewed 4226 times since Wed, Jun 19, 2019
Do you Know These 5 Use of V$session View ?
Viewed 106789 times since Thu, Jun 21, 2018
Altering LVM Configuration When a Disk is Not in ODM Anymore
Viewed 3062 times since Mon, Jun 3, 2019
ILMT Procedure - ILMT / TAD4D / SUA / BFI
Viewed 10199 times since Fri, Jul 5, 2019