I'm rearranging a bunch of disks on my server at home and I find myself in the position of wanting to move a bunch of LVM logical volumes to another volume group. Is there a simple way to do this? I saw mention of a cplv command but this seems to be either old or not something that was ever available for Linux.
|
|
||||
|
|
|
If you can arrange for the logical volume to be on a separate subset of physical volumes from the rest of the source volume group ( Although LVM has a mirroring feature, you can't (sanely) use it to make a copy between volume groups, because both legs of the mirror must live on the same vg and the association can't be broken. You can copy an LVM volume to another the way you'd copy any volume to another: create a target lv of the appropriate size, then copy the contents with |
|||||
|
|
here is a step-by-step example of vgsplit http://pleasedonttouchthescreen.blogspot.com/2011/10/migrating-logical-volumes-between.html |
|||||
|
|
This is a method using dd: http://www.linuxquestions.org/questions/linux-general-1/cloning-logical-volume-with-dd-341961/ |
|||
|
|