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

paging space creation

Status
Not open for further replies.

gatetec

MIS
Mar 22, 2007
420
US
I have paging space:

miltrn:/ > lspv |grep rootvg
hdisk0 0002b651f1ab9200 rootvg active
hdisk1 0002b651f2736b4b rootvg active
hdisk2 0002b6514510b74f rootvg active
hdisk3 0002b6517eb73a7c rootvg active
miltrn:/ > lsps -a
Page Space Physical Volume Volume Group Size %Used Active Auto Type
paging00 hdisk1 rootvg 128MB 3 yes yes lv
hd6 hdisk0 rootvg 384MB 1 yes yes lv


What I like to have is:

Page Space Physical Volume Volume Group Size %Used Active Auto Type
paging01 hdisk3 rootvg 8704MB 79 yes yes lv
paging00 hdisk2 rootvg 8704MB 79 yes yes lv
hd6 hdisk1 rootvg 8704MB 79 yes yes lv

Can you let me know the command lines?

thx much
 
Paging space of 25GB doesn't look good. What is amount of memory installed? What is your paging space requirement for application? Paging space is not a replacement for memory..

However you can do this with the following commands

Extend your paging space hd6 by X where X= (8704-384)/(PP size of rootvg)
chps -sX hd6

Extend you paging paging00 by Y where Y=(8704-128)/(PP size of rootvg)

chps -sY paging00

Now create paging01 with Z where Z=(8704)/PP size of rootvg)

mkps -a -n -sZ paging01 hdisk3
 
You then need to move hd6 and paging00 to hdisk2 and hdisk1

use

migratepv -l paging00 hdisk1 hdisk2

migratepv -l hd6 hdisk0 hdisk1

 
First Question, Why do you think you need to increase the paging space?

Mike

"Whenever I dwell for any length of time on my own shortcomings, they gradually begin to seem mild, harmless, rather engaging little things, not at all like the staring defects in other people's characters."
 
Have to agree with Mike.

Why do you want to go from paging space of .5GB using 3% to paging space of 25gb using 79%.

Also fact that hd6 is 384mb would indicate not a lot of real memory.
 
thx so much.

The box has 20GB memeory.

Now, I have:

miltrn:/ > lsps -a
Page Space Physical Volume Volume Group Size %Used Active Auto Type
paging01 hdisk3 rootvg 8704MB 1 yes yes lv
paging00 hdisk2 rootvg 8704MB 1 yes yes lv
hd6 hdisk0 rootvg 8704MB 1 yes yes lv


I am getting:

miltrn:/ > migratepv -l hd6 hdisk0 hdisk1
0516-1244 migratepv: Destination physical volume hdisk1 contains partitions of the logical volume hd6.
0516-812 migratepv: Warning, migratepv did not completely succeed; all physical partitions have not been moved off the PV.

any thoughts on this, please?

thx


 
I think hd6 is mirrored between hdisk0 and hdisk1. Can you get the output of the following ?

lslv -l hd6
lslv -l paging00
lslv -l paging01
 
Here are the outputs.

miltrn:/>> lslv -l hd6
hd6:N/A
PV COPIES IN BAND DISTRIBUTION
hdisk0 068:000:000 100% 000:068:000:000:000
hdisk1 068:000:000 100% 000:068:000:000:000
miltrn:/>> lslv -l paging00
paging00:N/A
PV COPIES IN BAND DISTRIBUTION
hdisk2 068:000:000 100% 000:000:068:000:000
hdisk0 068:000:000 100% 000:000:068:000:000
miltrn:/>> lslv -l paging01
paging01:N/A
PV COPIES IN BAND DISTRIBUTION
hdisk3 068:000:000 100% 000:000:068:000:000

Thx much
 
Hi gatetec,

It seems that your hd6 and paging00 are mirrored, which is a very good idea for availability purpouses. in that case, you don´t really need to migratepv your hd6 to hdisk1, as it is already on hdisk1 (mirrored). Both copies in a LVM mirror in AIX can deliver IO´s, so that wouldn´t be any problem on that.

About your paging00, it seems that it´s mirrored on hdisk0. In that case, you are going to get more paging IO´s on hdisk0 than on other disks, because paging00 is mirrored on hdisk0. In other words, it is like you have 2 paging spaces on hdisk0.

You shoud thing about using only 2 different paging spaces, one on hdisk0 mirrored on hdisk1, and other on hdisk2 mirrored on hdisk3. In This scenario, you coulde spread your paging space´s IO´s among all your rootvg disks and have LVM mirrored protection.

HTT
 
Hi gatetec

If you want to keep paging space away from hdisk0 I suggest to move hd6 from hdisk0 to hdisk2 move paging00 from hdisk0 to hdisk3 and mirror paging01 on hdisk1
 
I dont think you need a paging01 here.

Two paging spaces should be fine
hd6 with 12.5 GB ( LV Mirrored b/w hdisk0 and hdisk1)
paging00 with 12.5 GB (LV Mirroed b/w hdisk2 and hdisk3)

An additional paging space on the same disk do not give any performance improvement
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top