Solved

AIX disk Issue

Posted on 2014-01-23
7
621 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

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…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Suggested Courses

624 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