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
Manages processor scheduler tunable parameters schedo AIX
Viewed 2423 times since Thu, Sep 20, 2018
A Unix Utility You Should Know About: lsof
Viewed 1797 times since Tue, Apr 16, 2019
Topics: PowerHA / HACMP, Storage Adding a new volume group to an active PowerHA resource group
Viewed 2408 times since Mon, Jun 3, 2019
AIX: Error code 0516-1339, 0516-1397 0516-792: cannot extendvg with a previous Oracle ASM disk
Viewed 3458 times since Wed, Feb 6, 2019
AIX Errpt - Diag - Alog
Viewed 3356 times since Wed, Mar 20, 2019
AIX - How to get network speed and statistic of ethernet adapter in AIX
Viewed 12573 times since Fri, Jun 8, 2018
AIX Migrating from SDDPCM to AIXPCM (the easy way)
Viewed 19617 times since Mon, Dec 31, 2018
Problem on resizing volume group on AIX 0516-1714, 0516-792, 0516-787, and 0516-404
Viewed 2355 times since Fri, Jul 6, 2018
AIX boot proccess
Viewed 2710 times since Tue, Apr 16, 2019
Customizing a NIM Client Restore With a Post-Install Script
Viewed 10739 times since Wed, May 30, 2018