Move LV to a different PV (same VG)


 
Thread Tools Search this Thread
Operating Systems AIX Move LV to a different PV (same VG)
# 1  
Old 11-29-2011
[SOLVED] Move LV to a different PV (same VG)

Hi guys, I need some assistance moving a LV. Smilie

I have a VG with two PV; on the second PV there is only one LV so I want to move it to the first PV (hdisk1) in order to get rid of the second one (hdisk2)

Something like (pseudocode):
Code:
move MyLV from hdisk2 to hdisk1

How can I achieve that?

Last edited by verdepollo; 11-29-2011 at 04:03 PM..
# 2  
Old 11-29-2011
read for man pages of pvmove.

WARNING: be careful when operating on LVM, errors may destroy data with almost no chanche of recovery and/or render your system unusable. *ALWAYS* test procedures on lab systems, carefully detail the procedures themselves, and perform an extensive backup of your data before applyng changes to production systems!

see ya
fra
# 3  
Old 11-29-2011
Thanks, but isn't pvmove a Linux tool?

It doesn't seem to be available on AIX.
# 4  
Old 11-29-2011
well... I thought it was part of the LVM suite, actually don't know about IBM proprietary LVM.

sorry for the misunderstanding.

good luck
fra
# 5  
Old 11-29-2011
Nevermind, I found the solution:

Code:
migratepv -l myLV hdisk2 hdisk1

You can mark this thread as [SOLVED]. Smilie
This User Gave Thanks to verdepollo For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. AIX

Move directory

Hi All, please help me with the command for moving/copying one directory(including subdirectories) to one directory in another mount point in same server in AIX ... thanksss (7 Replies)
Discussion started by: Sanal
7 Replies

2. UNIX for Dummies Questions & Answers

scan and move

i have a script to look for a file, but it moves a file that's being used. i want to use: if file exists > 0, and not being updated/used in the last 2 minutes, move to /tmp i can do this much: if then mv filename.txt /tmp else exit fi or how can i check if... (3 Replies)
Discussion started by: tjmannonline
3 Replies

3. UNIX for Dummies Questions & Answers

Move files

I have multiple file with names april.0001.frm.edi april.0002.frm.edi I created a list with all the file names which has "860" inside the file and named the list as april-860-list I need to move all the files to name CHRY.860.01 CHRY.860.02 from that list. How do I do that? I... (3 Replies)
Discussion started by: yshahiac
3 Replies

4. Shell Programming and Scripting

move a file

hi, i was trying to move a file from my directoty to the home directory. * the file is not found in my directory too as it is moved but not found in the home directory i was using: cd my_dir mv filename homedir_name So kindly tell me... (2 Replies)
Discussion started by: janani_kalyan
2 Replies

5. Shell Programming and Scripting

how to move files

Message broker is creating multiple files on my unix box. Files are like *.txt, *.dat, *.csv etc. I can pass following parameters to my script, $SourceFileDir, $TargetFileDir, $FileName. I wrote a script which can move one files from $SourceFileDir to $TargetFileDir after assigning... (1 Reply)
Discussion started by: monicasgupta
1 Replies

6. Shell Programming and Scripting

Move all but not the latest

what is way to not move a latest file in a a particular folder X. There are number of files in the folder, I donot want to move the latest file into another folder. Can anyone figure out where is wrong in the script. lastfile=$(ls -rt | tail -1) for allfile in $(ls | grep -v... (4 Replies)
Discussion started by: u263066
4 Replies

7. UNIX for Advanced & Expert Users

Move with compression

How can I move a file and compress it at the same time? (8 Replies)
Discussion started by: truma1
8 Replies

8. Shell Programming and Scripting

move file

In the directory /tmp , there are some new files will be created to it by time to time , I want to mv the files that are created within 15 minutes to other direcory eg. /tmp/backup , could suggest what can I do ? thx (1 Reply)
Discussion started by: ust
1 Replies

9. Shell Programming and Scripting

move files

I want to move files ( about 1000 files ) from /tmp/edp1 to /tmp/edp2, all files are no extension, I want to add .txt to the end of all files ( eg. the original file name is oracl , the new file name should be oracl.txt ) , could suggest what can I do ? thx (5 Replies)
Discussion started by: ust
5 Replies
Login or Register to Ask a Question