Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I want to copy a logical volume from one volume group to another on AIX. How can I do this? Is copyvg the right command?

share|improve this question
    
Is there a filesystem on the LV? If yes, you're probably best of checking rsync. I don't see how copyvg can work here. –  jippie Jun 2 '12 at 10:07
add comment

3 Answers

In case vgmerge doesn't fit your needs, you're to create another volume of equal or bigger size in the destination VG and then simply dd from source to destination (using snapshot, as the source, if you like).

share|improve this answer
add comment

The command you're looking for is cplv

"Copies the contents of a logical volume to a new logical volume."

http://pic.dhe.ibm.com/infocenter/powersys/v3r1m5/index.jsp?topic=/iphcg/cplv.htm

share|improve this answer
add comment
up vote -2 down vote accepted

check it is rootvg otherwise try exportvg and importvg really it works.

share|improve this answer
1  
exportvg : «Only a complete volume group can be exported, not individual physical volumes.» And the OP said: "copy logical volume from one volume group to another" –  poige Jun 2 '12 at 10:38
4  
It's okay to answer your own question — you don't need to (and shouldn't) create a second accoun to do that. But I'm a bit confused, as this doesn't actually seem to solve the problem you originally gave in the question. –  mattdm Jun 2 '12 at 14:48
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.