LV split... | Unix Linux Forums | AIX

  Go Back    


AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

LV split...

AIX


Tags
solved

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 03-26-2013
Dansey Dansey is offline
Registered User
 
Join Date: Mar 2013
Last Activity: 28 March 2013, 3:05 AM EDT
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
[Solved] LV split...

Hi all, I have a strange problem that I have finally given up on and thought id start hitting the forums.. Any help is greatly appreiciated.

I have recently attached two new physical disks to my system and created a new volume group which inlcude these. My aim, is to create a logical volume of 800 PP's spread evenly across the two disks, this would match another LV that I have.

At the moment,


Code:
#lslv -m test_lv

Shows:
LP    PP1  PV1               PP2  PV2               PP3  PV3
0001  0193 hdisk7
0002  0194 hdisk7
0003  0195 hdisk7
0004  0196 hdisk7
...etc

____________________________________________

What I am after is:


Code:
LP    PP1  PV1               PP2  PV2               PP3  PV3
0001  0052 hdisk4
0002  0052 hdisk5
0003  0049 hdisk4
0004  0053 hdisk5
0005  0053 hdisk4

With an even spread across both disks, putting 400 PP's on 1 disk and 400 on another. Initially I thought this was a stripe setting, however there appears to be nothing set !?

Thanks for any help, D

---------- Post updated at 03:32 PM ---------- Previous update was at 02:26 PM ----------

Little bit more messing about and I have solved it..


Code:
 mklv -c 1 -e x -d p -r y -u 2 -x 1024 -s s -y test_lv testvg 400

Just incase anyone has something similar.

Last edited by Dansey; 03-28-2013 at 04:04 AM.. Reason: code tags
Sponsored Links
    #2  
Old 03-26-2013
MichaelFelt MichaelFelt is offline
Registered User
 
Join Date: Nov 2012
Last Activity: 11 December 2013, 7:33 AM EST
Location: on the road for work; home is private time
Posts: 311
Thanks: 6
Thanked 76 Times in 71 Posts
From memory, it is the -e x that spreads the volume group as much as possible over the disks listed. If you are trying to do a "poor mans stripe", i.e. trying to maximize i/o over multiple disks - you should also consider using the -t and -s options when creating the volume group ( mkvg command)
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
[Solved] Perl Question - split function with csv file WongSifu UNIX for Dummies Questions & Answers 2 01-23-2013 02:19 PM
Split file into multiple files based on first column ysrini Shell Programming and Scripting 3 12-04-2012 07:43 PM
awk to split one field and print the last two fields within the split part. yifangt Shell Programming and Scripting 5 04-17-2012 05:41 AM
[Solved] Split file using awk zvtral Shell Programming and Scripting 2 12-30-2011 03:38 AM
[Solved] Script to split a file into two prarat Shell Programming and Scripting 5 08-04-2011 07:26 AM



All times are GMT -4. The time now is 08:55 PM.