Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

remove page space

Status
Not open for further replies.

rondebbs

MIS
Dec 28, 2005
109
US
Hello, is there a safe way to remove a page space on a crucial 24/7 aix 5.2 ml3 server. I see smit has an option to remove a paging space but want to make sure there will be no issues to users and processes that are running.
 
Code:
The procedure to remove a paging space is more risky, especially if the paging space you want to remove is a default paging space, such as hd6. A special procedure is required for removing the default paging spaces, because they are activated during boot time by shell scripts that configure the system. To remove one of the default paging spaces, these scripts must be altered and a new boot image must be created.



Regards,
Khalid
 
The paging space that I want to remove is not the default hd6. It is the paging02 below. It was addd by mistake.

root@wfscr04:/#lsps -a
Page Space Physical Volume Volume Group Size %Used Active Auto Type
paging02 hdisk1 rootvg 1600MB 1 yes yes lv
paging01 hdisk1 rootvg 1920MB 8 yes yes lv
paging00 hdisk1 rootvg 1920MB 8 yes yes lv
hd6 hdisk0 rootvg 1600MB 10 yes yes lv
root@wfscr04:/#
 
Your %Used of 1% suggests to me that it was added very recently and it wont have enough pages in use on it to cause a problem. More than likely you wont even see the other %Used figures increase...

simply remove that paging space

Code:
swapoff /dev/paging02
rmps /dev/paging02

Or use smit/smitty if you want. Menu shortcut is "smit pgsp", direct shortcuts are "smit swapoff" and "smit rmps".

Remark: I seem to remember it is better to have one big PgSp or, on multiple PgSps, have them all the same size. Someone correct me if I'm wrong.


HTH,

p5wizard
 
With multiple page spaces, a round-robin allocation algorithm is used, so they should optimally be the same size. For the obsessive balance seekers, hd6 should actually be one partition larger because it's the only paging space available during system initialization. If you run the numbers from "lsps -a", you'll see that there's a little bit more space used on hd6 (if space is being used at all).

- Rod


IBM Certified Advanced Technical Expert pSeries and AIX 5L
CompTIA Linux+
CompTIA Security+

A Simple Code for Posting on the Web
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top