[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [linux-lvm] Migrating LVM



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.

L.

--
Luca Berra -- bluca comedia it
        Communication Media & Services S.r.l.
 /"\
 \ /     ASCII RIBBON CAMPAIGN
  X        AGAINST HTML MAIL
 / \


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]