Trick to Purge/Clean Swap Usage on AIX

Trick to Purge/Clean Swap Usage on AIX

And, “of course” after solving what was using to much swap space, you got already a good space that needs to be free, well, we’re here to do the trick!

# lsps -a
Page Space      Physical Volume   Volume Group    Size %Used Active  Auto  Type Chksum
hd6             hdisk0            rootvg         512MB    34   yes   yes    lv     0
# chps -d 1 hd6
shrinkps: Temporary paging space paging00 created.
shrinkps: Dump device moved to temporary paging space.
shrinkps: Paging space hd6 removed.
shrinkps: Paging space hd6 recreated with new size.
shrinkps: Resized and original paging space characteristics differ,
check the lslv command output.
# chps -s 1 hd6
# lsps -a
Page Space      Physical Volume   Volume Group    Size %Used Active  Auto  Type Chksum
hd6             hdisk0            rootvg         512MB    18   yes   yes    lv     0

 

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
Script to reset NIM state and deallocate resources
Viewed 2347 times since Thu, Feb 21, 2019
How to start daemons at the system startup in AIX servers
Viewed 2402 times since Tue, Jun 18, 2019
AIX disk queue depth tuning for performance
Viewed 15296 times since Thu, Jan 16, 2020
AIX lsdevinfo
Viewed 10277 times since Mon, Jun 3, 2019
Part 2, Detailed diagnosis and troubleshooting
Viewed 2789 times since Tue, May 22, 2018
Part 1, Memory overview and tuning memory parameters AIX7
Viewed 4180 times since Wed, Jun 19, 2019
How to Maintain a Virtual I/O Server With FBO Part II
Viewed 10557 times since Wed, Jun 5, 2019
How to determine why your AIX oslevel is downlevel (and a script to help!)
Viewed 4098 times since Fri, Jul 13, 2018
AIX: Error code 0516-1339, 0516-1397 0516-792: cannot extendvg with a previous Oracle ASM disk
Viewed 3681 times since Wed, Feb 6, 2019
LVM: Display basic information about Physical Volumes, Volume Groups and Logical Volumes
Viewed 2893 times since Sun, Jun 3, 2018