• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 396
  • Last Modified:

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.
0
sams20
Asked:
sams20
  • 2
1 Solution
 
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

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now