Link to home
Start Free TrialLog in
Avatar of aanya247
aanya247

asked on

AIX disk Issue

I have a disk(hdisk5) in optvg, Which is running(i/o) very hot, I identified that there are 2 LV, which are heavily accessed. I also have 2 more disks free, So is there a way that I can distribute this LV across disks...SO that it will improve the performance.
Avatar of woolmilkporc
woolmilkporc
Flag of Germany image

Yes, there is a way.

First, add your spare disks to optvg.
I'll call them hdiskx and hdisky below.

extentdvg optvg hdiskx hdisky

Then migrate the first LV to hdiskx and the second LV to hdisky.

I'll call the LVs in question mylvx and mylvy below.

migratepv -l mylvx hdisk5 hdiskx

migratepv -l mylvy hdisk5 hdisky

wmp
Avatar of aanya247
aanya247

ASKER

Hello WMP

Thanks for your solution, Is there is a way to distribute already existing/running LV's across various disks...

THanks..
I Think if the LV is 100GB, if I want to distribute I need to order 4, 25GB and use migratePV, I guess
ASKER CERTIFIED SOLUTION
Avatar of woolmilkporc
woolmilkporc
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
>> if I want to distribute I need to order 4, 25GB <<

Why order? Didn't you say you already had two spare disks?
That was just an example I was referring too.

Yes I do have 2 spare disks 70GB each, So as I have said I have 2 LV's, which are 65GB and 2GB respectively, So the issue is with 65GB LV.

So if I extend my VG to a 70GB disk and move the 65GB LV, I think it doesnot make much difference, So instead I was asking is there a command in AIX which will help me distribute this LV,

or

I know that my ordering 3, 25GB disks, I can distribute this LV in to 3 disks, using migratePV

THanks
OK, I assumed there were lots of other LVs on hdisk5 and you just wanted to get rid of two of them.

Anyway, you can move half of the 65 GB to the first 70GB disk and the other half to the second 70Gb disk, that's what I suggested in #39804098 above:

# hdiskx and hdisky are the two 70GB disks
extendvg optvg hdiskx hdisky
# mylvx is the 65 GB LV
chlv -e x mylvx
# hdisk5 is the old source disk
migratepv -l mylvx hdisk5 hdiskx hdisky