Solved

AIX disk Issue

Posted on 2014-01-23
7
615 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
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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…

820 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