[linux-lvm] Migrating LVM

Luca Berra bluca at comedia.it
Wed Apr 21 05:42:07 UTC 2010

On Tue, Apr 20, 2010 at 11:06:13PM -0500, M.Lewis wrote:
> I'm building a new machine with RAID1+LVM2. I plan to migrate the data from 
> the old machine HD to the new machine.
> Is it better to make the new VG the same name as the existing VG on the old 
> box? Or should I make it different.
> Is there an easy way to do this that I've not yet found? I was thinking to 
> make the new VG the same name as the old, add the old drives to the machine 
> then pvmove the data.

You cannot pvmove between two different VGs
You cannot have two VGs with the same name

You could skip creating the new vg, vgextend the old vg on the new
raid1, then pvmove, but i don't know if you need to change any parameter
in the new vg.
Another option is file level copy or dd-ing the logical volume.


Luca Berra -- bluca at comedia.it
         Communication Media & Services S.r.l.
  / \

More information about the linux-lvm mailing list