[Ma-linux] cloning logical volumes
James Ewing Cottrell 3rd
JECottrell3 at comcast.net
Tue Oct 6 17:42:03 EDT 2009
You could also mirror the data, then throw away the old disk, recovering
from the second.
But heck, how about just making a snapshot, and then rsyncing the
snapshot to another LVM filesystem?
JIM
Aaron M. Ucko wrote:
> Przemek Klosowski <przemek at nist.gov> writes:
>
>> I know that one can filter out the new drive in /etc/lvm/lvm.conf, but
>> even then we'd be dd-ing a live system, so the filesystem might be
>> captured incorrectly. The correct way seems to be somehow snapshot the
>> old drive onto the new drive using LVM, but in a way that creates
>> different PV UUIDs on the cloned volume.
>
> TTBOMK, the recommended procedure is to create a fresh PV, use vgextend
> to add it to your existing VG, and then use pvmove to migrate the data.
>
>
>
> ------------------------------------------------------------------------
>
>
> No virus found in this incoming message.
> Checked by AVG - www.avg.com
> Version: 8.5.420 / Virus Database: 270.14.4/2417 - Release Date: 10/06/09 06:50:00
>
More information about the Ma-linux
mailing list