Solved

AIX disk Issue

Posted on 2014-01-23
7
607 Views
Last Modified: 2014-01-23
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.
0
Comment
Question by:aanya247
  • 4
  • 3
7 Comments
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 39803825
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
0
 

Author Comment

by:aanya247
ID: 39803948
Hello WMP

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

THanks..
0
 

Author Comment

by:aanya247
ID: 39803986
I Think if the LV is 100GB, if I want to distribute I need to order 4, 25GB and use migratePV, I guess
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 68

Accepted Solution

by:
woolmilkporc earned 500 total points
ID: 39804098
Redistributing LVs across multiple disks including the original disk is basically possible, but it's quite complicated and requires the use of quasi undocumented low level commands (lmigratelv/lmigratepp) which are not meant for normal use. I'd not recommend doing it.

You could migrate the LVs off hdisk5 and distribute their content evenly across the new hdisks, but this will not leave anything of the LV in question on hdisk5.

chlv -e x mylvx
migratepv -l mylvx hdisk5 hdiskx hdisky

chlv -e x mylvy
migratepv -l mylvy hdisk5 hdiskx hdisky

Should you have to increase the size of the  LVs later on you can specify hdisk5 again to contain the new partitions.


There is of course the hard way:
- Shut down all applications using the LVs
- Create a backup of the LVs/filesystems
- Umount filesystems
- Remove the filesystems and LVs
- Recreate the LVs while specifying maximum allocation policy (-e x) and while specifying all three hdisks as target physical volumes.
- Recreate the filesystems and restore the backups
- Start applications.

wmp
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 39804104
>> if I want to distribute I need to order 4, 25GB <<

Why order? Didn't you say you already had two spare disks?
0
 

Author Comment

by:aanya247
ID: 39804162
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
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 39804194
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
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
IBM flash storage 840 15 59
Linux performance issues with 100% swap usage, etc 15 90
cron job says it ran, no results 25 115
mobaxterm not able to change directory 28 109
Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

29 Experts available now in Live!

Get 1:1 Help Now