Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

AIX disk Issue

Posted on 2014-01-23
7
Medium Priority
?
635 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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
LVL 68

Accepted Solution

by:
woolmilkporc earned 2000 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
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 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…
Suggested Courses

916 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