[plug] Moving Running System to new HDD

Timothy White weirdit at gmail.com
Thu Dec 7 10:41:32 WST 2006


> >
> > Say it was LVM, what would you do? (hotswap is out though, due to one
> > drive being IDE).
>
> Normally you'd have /boot on a normal partition, with the rest on LVM,
> because most bootloaders don't do LVM afaik. Stick in your new drive,
> partition it with the /boot and LVM partitions. Copy the /boot data
> across and setup the bootloader.
>
> Run pvcreate <device> to create a LVM volume on the new device. Note
> this can be bigger or smaller, as long as it fits the size of the
> current LVM 'partition'.
>
> Run vgextend <volumegroupname> <device> to add the second drive to the
> volume group. Run vgreduce <volumegroupname> <olddevice> to remove the
> old device from the system. This should move the data across, so it'll
> take a while to complete. Note thats from memory, so check its right
> before you go nuking things :P
>
> Once thats done, yank the old drive.

Hmmmm. Nice. Any suggestions for migrating to LVM on / ???
I would assume doing something similar, with /boot on normal, except
of course doing a copy, and having to fix up boot loaders and fstab's
etc etc.

Tim
-- 
Linux Counter user #273956
Don't email joeblogs at scouts.org.au



More information about the plug mailing list