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
Convert to Scalable Volume Groups
Viewed 3424 times since Wed, May 30, 2018
0516-404 allocp: This system cannot fulfill the allocation request. [AIX]
Viewed 4764 times since Thu, Sep 20, 2018
NMON nmon
Viewed 11489 times since Tue, Apr 16, 2019
A Change to the SMT Mode Default in POWER9
Viewed 4861 times since Fri, Jan 18, 2019
AIX 6/7 Script to create a file with commands to remove missing and failed paths
Viewed 2826 times since Tue, Jun 14, 2022
Online Backups and Recovery in a Snap AIX
Viewed 4626 times since Wed, May 30, 2018
Migrating from SDDPCM to AIXPCM (the easy way)
Viewed 2294 times since Mon, Jun 3, 2019
Create a mksysb + SPOT using NIM (CLI)
Viewed 5355 times since Tue, Jul 17, 2018
View mksysb content & restore individual files
Viewed 1599 times since Tue, Jul 17, 2018
How to build a NIM Server on AIX 6.1 from the Scratch :: Part 1
Viewed 4550 times since Thu, Nov 29, 2018