Re: Copying LVM from one system to another

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

 



yes, you are right for migrating the content from one disk to another
disk.

but in his case, he want to migrate to another system, with same cpu,
ram, disk,...

that is why i think clone is ok.

Ming

On Tue, 2006-07-11 at 19:48 +0200, Dieter Stüken wrote:
> Ming Zhang wrote:
> > if HW is the same, why not use ghost or alike software to do a clone?
> 
> Don't "clone" the LVM PVs if you ever want to connect both disks simultaneously.
> For normal partitions this is fine, as those are identified by the device
> name. So you can easily distinguish /dev/hda1 from /dev/hdc1.
> 
> LVM however identifies the different VG/LV/PV by its content, regardless of
> where the disks are connected. If you connect your LVM disk to a different
> cable or controller, don't worry, it will be found automatically. If two disks,
> however, look exactly the same, LVM gets confused. 
> 
> Instead you should connect both disk:
> 
> arrange booting from <newdisk>,
> lvm from <olddisk> should still work, even if connected differently.
> 
> pvcreate <new disk>
> vgextend <new disk>
> pvmove <olddisk>
> vgreduce <olddisk>
> 
> to migrate all LVM content to the new disk.
> 
> Dieter.

_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux