Unix/Linux 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...



Thread Tools Search this Thread Display Modes
Old Unix and Linux 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,

#lslv -m test_lv

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


What I am after is:

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..

 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 03:04 AM.. Reason: code tags
Sponsored Links
Old Unix and Linux 03-26-2013
MichaelFelt MichaelFelt is offline
Registered User
Join Date: Nov 2012
Last Activity: 21 April 2017, 4:35 AM EDT
Location: on the road for work; home is private time
Posts: 427
Thanks: 7
Thanked 101 Times in 95 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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux 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 01:19 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 04:41 AM
[Solved] Split file using awk zvtral Shell Programming and Scripting 2 12-30-2011 02:38 AM
[Solved] Script to split a file into two prarat Shell Programming and Scripting 5 08-04-2011 06:26 AM

All times are GMT -4. The time now is 11:53 AM.