Moving a logical volume to another one


 
Thread Tools Search this Thread
Operating Systems AIX Moving a logical volume to another one
# 1  
Old 08-26-2008
Moving a logical volume to another one

Hi everybody,
I am quite new in AIX and I want to have an advice on my problem.
I want to move the content of one disk (which has HW problems) to a new one.
I use LVM and the faulty disk is one logical volume.
I understand that if I define a new logical volume (same size) on a new disk, I can use the command cplv to copy the data from the origin LV to the newly created LV.
My question is : what are the complementary operations that I must do before launching cplv and must I stop and unmount the original LV before cplv ?
My disk is 70 GB. How much time will it take to copy ? (This is important because this disk contains all the environments of the developpers.)
Thanks for your help.
# 2  
Old 08-26-2008
or you add a pv of same size to your vg and use migratepv...
# 3  
Old 08-26-2008
I prefer to use a new PV, because if my disk has some HW problems I want to garbagge it and not to keep it in my configuration after the move operation.
# 4  
Old 08-26-2008
So migratepv is your choice! (man migratepv !)
# 5  
Old 08-26-2008
So if I understand well, when the disk is installed, I add it to the VG already containing the bad disk, I launch migratepv, I remove the bad disk from the VG.
Is that right ?
My first question is still pending : before this operation must I unmount the FS that I want to migrate ?
# 6  
Old 08-26-2008
It can be done active... but it is not wise if you have a lot of activity on that PV... choose moment with lesser load... or FS unmounted...
Read the man pages, it can be done with smit/smitty...
The last time I done this was ages ago but I had no issues... and all went fine
# 7  
Old 08-27-2008
Thanks for your answer.
Finally instead to use mibratepv, after adding the new disk to the VG, I have mirrored the VG. So the activity has not been stopped.
Now I'm going to unmirror the VG and then unmount the faulty disk.
Regards.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

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

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

3. AIX

Position of the logical volume on the physical volume

Hello everyone, I just read that while creating a logical volume(LV) we can choose the region of the physical volume (PV) in which the LV should be created. When I say region I mean: outer edge - outer middle - center - inner middle and inner edge. Can anyone help me understand the utility... (11 Replies)
Discussion started by: adilyos
11 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

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

6. AIX

Basic Filesystem / Physical Volume / Logical Volume Check

Hi! Can anyone help me on how I can do a basic check on the Unix filesystems / physical volumes and logical volumes? What items should I check, like where do I look at in smit? Or are there commands that I should execute? I need to do this as I was informed by IBM that there seems to be... (1 Reply)
Discussion started by: chipahoys
1 Replies

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

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

9. AIX

Extend one Logical Volume

Hi All, I am new to AIX. I need to extend one Logical Volume it is jfs type on On AIX 5.1. I have enough free space on the volume group for this extension Can I use smitty chjfs , will this do it without interruptions to the application that is using this Logical Volume. Thanks Scampi (1 Reply)
Discussion started by: scampi
1 Replies
Login or Register to Ask a Question