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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Primary page space

Status
Not open for further replies.

arcchoos

Programmer
Jan 15, 2005
4
US
Hi all,

In the code I have to find out the primary paging space on AIX.

As per the IBM documentaion, the primary/default paging/swap space on AIX is hd6.

But I can't hard-code it as 'hd6' in the code because there may be some way to change the primary paging space or rename it.

Is it possible to change the primary paging space to something other than hd6? If yes, then how can it be done?
Can the name of primary paging space changed to something like hd61 or hd62...etc.

Please lemme know if anyone has any idea about it.

Thanks in advance.

regards,
arcchoos




 
you could do something like:
lsps -a|grep -v Page|awk '{ print $1 }' I am sure there are other ways but this works
 
Hi plamb,

thanks for your response.

the output of ur command is the list of paging spaces.

# lsps -a|grep -v Page|awk '{print $1}'
paging00
hd6

It doesn't identifies which one is primary paging space.

regards,
arcchoos
 
what do you mean by "primary" AIX uses round-robin sceduling for multiple paging spaces aix reference of "primary paging psace"
normally refers to the paging space that is in rootvg and is needed during booting aix.

the file /etc/swapspaces contains the swap spaces to used

what more do you want????
 

The primary paging space is hardcoded in the boot record and it will always be activated when the system is restarted.
User can define additional paging spaces but only one will be the primary.

By default hd6 is the primary paging space.
 
the "primary" paging space is the on that is in rootvg and is used during booot. You can define if you want aix will normally call it hd6. this data gets written to the boot record when bosboot is used.
 
u r right.
so my problem is to find out which one is the primary paging space and what is its name if not hd6.

 
we are going in circles lsps gives all the paging space names right?? and we know the what you call primary paging space is the space used when booting, and booting is done from rootvg I would look for the paging space listed in the lsps command with the vg name of rootvg and you know how to tell what disk it is booting from. Wondering why do you need to know the specfic name ???
 
plamb is right that you are going in circles.

hd6 IS your primary paging space. This is the default. paging00 was added after the installation of the OS.

What don't you understand?
 
you could of you wanted to make a new pagng space on the boot disk then remove hd6 so you would have only on paging space not called hd6, why would you do this who knows???????????
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top