Copy a Volume Group


 
Thread Tools Search this Thread
Operating Systems AIX Copy a Volume Group
# 1  
Old 01-13-2013
IBM Copy a Volume Group

Hi:

I have an aix lpar with a vgroup that has 12 disks for a total of 1.9 TB assign and i want to move that data to a new vgroup on the same machine that has (6) disks for a total of 2.5 TB.

What would be the best way to copy the actual vg with (12) disks to the new vg with (6) disks? We need to maintain the same mounting points so the new vg will be varyon and file sytems mounted and the actual then will be varyoff if we need to go back.

I will appreciate any help and information.

Thanks
# 2  
Old 01-13-2013
Make the new disks part of the existing volume group, then create mirror copies of the LVs using the "mklvcopy" command. The LVM will do the copying for you.

Don't forget to set the quorum so that the part of the VG you intend to use later is still recognized as usable part of a VG.

I hope this helps.

bakunin
# 3  
Old 01-13-2013
bakunin:

Thanks for your response and following your recomendation do i need then at the end of the mirror copies delete the original one?

We are planning to do this to move to faster disks just available on the lpar thru VIO etc. and after that we want to remove the older disks and put them available for the IBM SAN to used them on other partitions if needed.

I need to check and validate in the system to see if they are lv's spread in more than one disk right now.

I found on the IBM website to use the following example:
Code:
# mklvcopy -e m -s y -k infxlv 2 hdisk4 hdisk10
 .
 .
 .
# rmlvcopy infxlv 1 hdisk4 
======================================================
Parameters Explanation:

(-e m)
To use minimum inter-disk allocation policy

(-s y)
To strictly allocate mirror copies on separate physical volumes

(-k)
To synchronize new copies immediately

datalv
The name of the logical volume where you want to start a mirroring operation

2
The number of copies that you want to make of the data (a maximum of 3)

hdisk3 and hdisk7
The physical volumes where the logical volume resides

hdisk3
The physical volume that already holds the data of logical volume datalv.

hdisk7
The physical volume that will hold the mirror copy and where you want to move the data

Do you think this should do it? What about an exportvg (actual) and importvg (new one) will these be a more harder way to do it?

Thanks,
Robert

Last edited by Scott; 01-14-2013 at 07:35 AM.. Reason: Code tags
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Need help on Volume group for AIX 6.1

Please let me know which volume group will be suitable for creation of 5 TB for datavg norma,big,scalable (4 Replies)
Discussion started by: manoj.solaris
4 Replies

2. Red Hat

No space in volume group. How to create a file system using existing logical volume

Hello Guys, I want to create a file system dedicated for an application installation. But there is no space in volume group to create a new logical volume. There is enough space in other logical volume which is being mounted on /var. I know we can use that logical volume and create a virtual... (2 Replies)
Discussion started by: vamshigvk475
2 Replies

3. UNIX for Dummies Questions & Answers

How to create a volume group, logical volume group and file system?

hi, I want to create a volume group of 200 GB and then create different file systems on that. please help me out. Its becomes confusing when the PP calculating PP. I don't understand this concept. (2 Replies)
Discussion started by: kamaldev
2 Replies

4. UNIX for Dummies Questions & Answers

Confusion Regarding Physical Volume,Volume Group,Logical Volume,Physical partition

Hi, I am new to unix. I am working on Red Hat Linux and side by side on AIX also. After reading the concepts of Storage, I am now really confused regarding the terminologies 1)Physical Volume 2)Volume Group 3)Logical Volume 4)Physical Partition Please help me to understand these concepts. (6 Replies)
Discussion started by: kashifsd17
6 Replies

5. AIX

Adding a Volume Group to an HACMP Resource Group?

Hi, I have a 2 node Cluster. Which is working in active/passive mode (i.e Node#1 is running and when it goes down the Node#2 takes over) Now there's this requirement that we need a mount point say /test that should be available in active node #1 and when node #1 goes down and node#2 takes... (6 Replies)
Discussion started by: aixromeo
6 Replies

6. HP-UX

Volume group are those LUNs?

In HP-UX, VLM: what volume group, are these LUNs? anyone know ? objecthexuid .........................: 6005-08b4-0001-529c-0005-6000-45d6-0000 objecthexuid .........................: 6005-08b4-0001-529c-0005-6000-45d9-0000 objecthexuid .........................:... (5 Replies)
Discussion started by: aav1307
5 Replies

7. AIX

Logical volume name conflict in two volume group

Hello, I am a french computer technician, and i speak English just a little. On Aix 5.3, I encounter a name conflict logical volume on two volume group. The first volume lvnode01 is OK in rootvg and mounted. It is also consistent in the ODM root # lsvg -l rootvg |grep lvnode01 ... (10 Replies)
Discussion started by: dantares
10 Replies

8. AIX

Moving a Logical Volume from one Volume Group to Another

Does anyone have any simple methods for moving a current logical volume from one volume group to another? I do not wish to move the data from one physical volume to another. Basically, I want to "relink" the logical volume to exist in a different volume group. Any ideas? (2 Replies)
Discussion started by: krisw
2 Replies

9. UNIX for Dummies Questions & Answers

how to export a volume group

what are the steps necessary to export a Volume group when its file systems are mounted. how to restore the system to normal. (3 Replies)
Discussion started by: docaia
3 Replies

10. UNIX for Advanced & Expert Users

LVM - Extending Logical Volume within Volume Group

Hello, I have logical volume group of 50GB, in which I have 2 logical volumes, LogVol01 and LogVol02, both are of 10GB. If I extend LogVol01 further by 10GB, then it keeps the extended copy after logical volume 2. I want to know where it keeps this information Regards Himanshu (3 Replies)
Discussion started by: ghimanshu
3 Replies
Login or Register to Ask a Question