How to move or copy a logical volume from one volume group to another vg on linux

I am trying to move or copy an existing lv from one vg to another vg. what procedure should be the proper for this task.
sams20Asked:
Who is Participating?
 
Pepe2323Commented:
Hey

Not sure if this will answer your question, but what i will do is create a new logical volume on the VG you want it definitely;  mount it in a temporal mount point and copy all information, using tar

original LV mount point example   = /app
Temporally lv mount point = /app2

cd /app
tar cvf - *|(cd /app2; tar vfx -) this will copy all info with rights and everything


Regards.
0
 
SandyCommented:
which distro ?
0
 
SandyCommented:
Does tar work for whole FS ? I Don't think so

TY/SA
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.