LVM is great in that it allows you to manipulate volume groups by adding and removing physical volumes while there are active logical volumes in the group.
If the LVM setup was all you needed to migrate, you could:
- partition your new disk
- make that partition into an LVM physical volume with pvcreate
- add the volume to your existing volume group (VolGroup00) with vgextend
- remove the existing volumes from the same group with vgreduce (this would take some time, as LVM would need to migrate the volume group data from the old PVs to the new PV)
- get rid of the old PVs with pvremove
Since you also want to replace the drive with the boot partition (/dev/sda1
), that partition will need to be migrated separately.
You should connect the new drive to your system and create two partitions: One to serve as the boot partition (which must be at least as big as the existing boot partition), and one to be your new LVM physical volume. You can then migrate LVM using the procedure outlined above.
Once that is done, you could perhaps boot to a Live CD and migrate the boot partition with dd
or something similar. Remember to reinstall the boot loader.
Which distribution are you using?