Re: Migration help please - moving OS to a different LVM partition

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



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Robert Moskowitz wrote:
> I have set up a migration between two drives.  fIrst I got Centos 5
> working how I wanted on this drive, then set about copying it to another
> drive.

Hi Robert.

It's a little late now, but the way I'd do this kind of thing is to
install on the first drive, creating a partition for /boot and a
partition for LVM under which I'd carve up into my other partitions.

Once I have installed to the first drive, I would add the second drive,
and partition it so that there is a partition for /boot, which you'd
then copy the data from the primary /boot to this one and then use
'grub' to make the second drive bootable.

Next, create a physical volume on the new disk's LVM partition and then
add it into the existing volume group.  Next, use the pvmove command to
move the data from the pv on the first drive to the pv on the second
drive.  Once you've done that, you can pvremove the first pv (from the
first drive) from the volume group.  At this point, you should have all
of your data on the second drive.  Double-check that the LABEL on the
/boot partition is correct and then shut down the computer.  Remove the
first drive and reboot.

I'm writing this off the top of my head (having done is a couple of
months ago to upgrade my laptop hard drive), and I may be missing some
of the LVM incantations, but this should be close and get you started,
anyway.

Barry
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFGeEb3CFu3bIiwtTARAuLvAKCa2i48vv3mr1MiDL2poZuClwKbXwCfWUCQ
K9oA8Oj/wLa78/W1Wmm4Xa4=
=8+uI
-----END PGP SIGNATURE-----
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux