<p><br>
On Feb 19, 2012 4:37 PM, "Daniel Shahaf" <<a href="mailto:d.s@daniel.shahaf.name">d.s@daniel.shahaf.name</a>> wrote:<br>
><br>
> Omer Zak wrote on Sun, Feb 19, 2012 at 04:03:05 +0200:<br>
> > My PC has a 500GB hard disk, and I want to migrate it to a 2TB hard<br>
> > disk.<br>
> > The new hard disk has been formatted to have two physical partitions,<br>
> > one serves as /boot and the other is an encrypted LVM volume, which has<br>
> > its own division into logical partitions.<br>
> ><br>
> > I rsync'ed the old hard disk's contents into the new one (excluding<br>
> ...<br>
> > 2. Is there any guide about migrating a Debian Squeeze system inside an<br>
> > encrypted LVM partition from one hard disk to another hard disk?<br>
><br>
> One thing that jumps to mind: given that the old disk uses LVM too, you<br>
> could transition the LV's from the old disk to the new one by using LVM<br>
> tools.<br>
><br>
> I don't recall the exact commands, but I suppose it's along the lines of<br>
> "convert the LV to a mirror (with one PV on the small disk and one PV on<br>
> the new one), then tell LVM to retire the old disk's PV's."</p>
<p>No need for that. Vgmove then remove the old PV from the VG before disconnecting it.</p>
<p>><br>
> HTH. I'm not sure how this interacts with the boot parts of the<br>
> equation or with encrypted partitions.<br>
><br>
> _______________________________________________<br>
> Linux-il mailing list<br>
> <a href="mailto:Linux-il@cs.huji.ac.il">Linux-il@cs.huji.ac.il</a><br>
> <a href="http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il">http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il</a><br>
</p>