Solved

AIX disk Issue

Posted on 2014-01-23
7
606 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
Comment Utility
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
Comment Utility
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
Comment Utility
I Think if the LV is 100GB, if I want to distribute I need to order 4, 25GB and use migratePV, I guess
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 68

Accepted Solution

by:
woolmilkporc earned 500 total points
Comment Utility
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
Comment Utility
>> 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
Comment Utility
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
Comment Utility
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
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 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…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

763 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

9 Experts available now in Live!

Get 1:1 Help Now