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