Sponsored Content
Full Discussion: LV split...
Operating Systems AIX LV split... Post 302785763 by Dansey on Tuesday 26th of March 2013 11:32:43 AM
Old 03-26-2013
[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
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Split

Is there a split function in shell? (not awk) Coz i got a string as input and needed to split it. eg. input = "abc:123:def:www" I need to split it into 4 variable which contains abc,123,def,www. Is there anyway i can do tat? (1 Reply)
Discussion started by: AkumaTay
1 Replies

2. UNIX for Dummies Questions & Answers

Split a file with no pattern -- Split, Csplit, Awk

I have gone through all the threads in the forum and tested out different things. I am trying to split a 3GB file into multiple files. Some files are even larger than this. For example: split -l 3000000 filename.txt This is very slow and it splits the file with 3 million records in each... (10 Replies)
Discussion started by: madhunk
10 Replies

3. Shell Programming and Scripting

help with split

I have a file that reads "#ID, First, P1(40), P2(40), P3(40)..." and I need to split this line up. I first did @scores = split(/,/, $input); But I need to split it up and get the the parentheses with numbers split up too, in order to add them together later. I know I need to do at least... (1 Reply)
Discussion started by: Hawks444
1 Replies

4. Shell Programming and Scripting

split -d

pls explain me about split -d option with syntax and an example.. thanks (1 Reply)
Discussion started by: vijay_0209
1 Replies

5. Shell Programming and Scripting

split()

Hi there, Can someone tell me why the why the element of output is not the same order as the original data? Below is the value of column 11 of 2nd line,... (4 Replies)
Discussion started by: phoeberunner
4 Replies

6. Shell Programming and Scripting

Split using two delimiters

I'm trying to do a split using two delimiters. The first delimiter is ": " (or we could call it :\s). The second is "\n". How can or these delimiters so I can toss the values into an array without issue? I tried @array = split /:\s|\n/, $myvar; This doesn't seem to be working. Any an... (3 Replies)
Discussion started by: mrwatkin
3 Replies

7. Shell Programming and Scripting

Split

Hello people, I have a huge file of say 1 gb called A123.txt.. to get the word count, i do wc -l A123.txt This gives me a count of say 122898. Now what i do is, i divide this by 4 ie. 122888/4=30722 Now i copy the content as per the above count (30722) and give some name to... (6 Replies)
Discussion started by: j_panky
6 Replies

8. Shell Programming and Scripting

awk to split one field and print the last two fields within the split part.

Hello; I have a file consists of 4 columns separated by tab. The problem is the third fields. Some of the them are very long but can be split by the vertical bar "|". Also some of them do not contain the string "UniProt", but I could ignore it at this moment, and sort the file afterwards. Here is... (5 Replies)
Discussion started by: yifangt
5 Replies

9. Shell Programming and Scripting

How can i split this.. :)?

hello, :) How can i split this.. :) 10.25.10.2 two octet a=2 b=5 Thank you... (23 Replies)
Discussion started by: networksherlock
23 Replies

10. UNIX for Beginners Questions & Answers

Split and Rename Split Files

Hello, I need to split a file by number of records and rename each split file with actual filename pre-pended with 3 digit split number. What I have tried is the below command with 2 digit numeric value split -l 3 -d abc.txt F (# Will Produce split Files as F00 F01 F02) How to produce... (19 Replies)
Discussion started by: techedipro
19 Replies
vgchgid(1M)															       vgchgid(1M)

NAME
vgchgid - modify the Volume Group ID (VGID) on a given set of physical devices SYNOPSIS
PhysicalVolumePath [PhysicalVolumePath] ... DESCRIPTION
The command is designed to change the LVM Volume Group ID (VGID) on a supplied set of disks. will work with any type of storage, but it is primarily targeted at disk arrays that are able to create "snapshots" or "clones" of mirrored LUNs. accepts a set of raw physical devices and ensures that they all belong to the same volume group, before altering the VGID (see section). The same VGID is set on all the disks and it should be noted that in cases of multi-PV volume groups, all the physical volumes should be supplied in a single invocation of the command. Options recognizes the following options and arguments: PhysicalVolumePath The raw devices path name of a physical volume. Background Some storage subsystems have a feature which allows a user to split off a set of mirror copies of physical storage (termed or just as LVM splits off logical volumes with the command. As the result of the "split," the split-off devices will have the same VGID as the original disks. is needed to modify the VGID on the BCV devices. Once the VGID has been altered, the BCV disks can be imported into a new volume group by using WARNINGS
Once the VGID has been changed, the original VGID is lost until a disk device is re-mirrored with the original devices. If is used on a subset of disk devices (for example, two out of four disk devices), the two groups of disk devices would not be able to be imported into the same volume group since they have different VGIDs on them. The solution is to re-mirror all four of the disk devices and re-run on all four BCV devices at the same time, and then use to import them into the same new volume group. If a disk is newly added to an existing volume group and no subsequent LVM operations has been performed to alter the structures (in other words, operations which perform an automated vgcfgbackup(1M)); then it is possible a subsequent will fail. It will report that the disk does not belong to the volume group. This may be overcome by performing a structure changing operation on the volume group (for example, using It is the system administrator's responsibility to make sure that the devices provided in the command line are all Business Copy volumes of the existing standard physical volumes and are in the ready state and writable. Mixing the standard and BC volumes in the same volume group can cause data corruption. RETURN VALUE
returns the following values: 0 VGID was modified with no error 1 VGID was not modified EXAMPLES
An example showing how might be used: 1. The system administrator uses the following commands to create the Business Continuity (BCV or BC) copy: 1) For EMC Symmetrix disks, the commands are and 2) For XP disk array, the commands are and Three BCV disks are created. 2. Change the VGID on the BCV disks. 3. Make a new volume group using the BCV disks. This step can be skipped as the group file will be created automatically. If the file is manually created it will have different major and minor numbers (see lvm(7)). 4. Import the BCV disks into the new volume group. 5. Activate the new volume group. 6. Backup the new volume group's LVM data structure. 7. Mount the associated logical volumes. SEE ALSO
vgimport(1M), vgscan(1M), vgcfgbackup(1M). vgchgid(1M)
All times are GMT -4. The time now is 11:07 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy