Skip to contentSkip to conversation

moving LVM to a new box

linux-lvm Sutto Zoltan 4 participants 4 messages Feb 9, 2005

lore
Share & tools
lore
#0 lore raw

I have a newly installed/configured/updated FC3 with LVM2 on a P3 box.
How can I move this working system to a new P4 box with a larger SATA disk without reinstalling/upgrading/configuring the whole OS.

Any help would be appreciated

Zoltan Sutto

#1 lore raw

Le 09.02.2005 14:50:28, Sutto Zoltan a écrit :

Quoted 4 lines

I have a newly installed/configured/updated FC3 with LVM2 on a P3 box.
How can I move this working system to a new P4 box with a larger SATA disk without reinstalling/upgrading/configuring the whole OS.

Any help would be appreciated

If I suppose you can install and boot you old disk in you new system together with the new disk, you can do the following (I suppose the old disk is /dev/hda with a /dev/hda1 partition, and new one /dev/sda with a /dev/sda1 partition, I suppose your volume group is vg0):

make backups ;-)

- pvcreate /dev/sda1
- vgextend vg0 /dev/sda1
- move all the lv data with pvmove /dev/hda1.
- vgreduce vg0 /dev/hda2
- you will have to configure lilo/grub to install and point on your new disk.

I've done such a way but it was not with lvm2. Maybe there are some pvmove issues with lvm2.

Quoted 1 line

Zoltan Sutto

Jean-Luc

#2 lore raw
Quoted 12 lines · Jean-Luc Coulon (f5ibh) wrote:

Le 09.02.2005 14:50:28, Sutto Zoltan a �crit :

Quoted 4 lines

I have a newly installed/configured/updated FC3 with LVM2 on a P3 box.
How can I move this working system to a new P4 box with a larger SATA disk without reinstalling/upgrading/configuring the whole OS.

Any help would be appreciated

If I suppose you can install and boot you old disk in you new system together with the new disk, you can do the following (I suppose the old disk is /dev/hda with a /dev/hda1 partition, and new one /dev/sda with a /dev/sda1 partition, I suppose your volume group is vg0):

make backups ;-)

Quoted 8 lines

- pvcreate /dev/sda1
- vgextend vg0 /dev/sda1
- move all the lv data with pvmove /dev/hda1.
- vgreduce vg0 /dev/hda2
- you will have to configure lilo/grub to install and point on your new disk.

I've done such a way but it was not with lvm2. Maybe there are some pvmove issues with lvm2.

I just did exactly this for a new box, using lvm2, and it worked great. (re-emphasize "make backups"). The only issue I has was that pvmove failed until I realized that a necessary kernel module (dm_mirror, I believe) wasn't loaded.

-Tupshin

#3 lore raw
In reply to Jean-Luc Coulon (f5ibh)

I think you'll want to make a new installation on the P4 box as it would use a new, faster kernel for your processor. Really the question is if the old installation for P3 will boot under your new P3, as a bit more than the processor will have changed (at least to the OS). If you can get the OS to boot on the new computer, then LVM will be found and work.

Moving the LVM to another machine is trival, check the below link:
http://www.tldp.org/HOWTO/LVM-HOWTO/recipemovevgtonewsys.html

Maybe a FC mailing list will get a more targeted group that would know exactly.

Quoted 37 lines · On Wed, 09 Feb 2005 14:15:13 +0000, Jean-Luc Coulon (f5ibh)…

Le 09.02.2005 14:50:28, Sutto Zoltan a �crit :

Quoted 5 lines

I have a newly installed/configured/updated FC3 with LVM2 on a P3 box. How can I move this working system to a new P4 box with a larger SATA disk without reinstalling/upgrading/configuring the whole OS.

Any help would be appreciated

If I suppose you can install and boot you old disk in you new system together with the new disk, you can do the following (I suppose the old disk is /dev/hda with a /dev/hda1 partition, and new one /dev/sda with a /dev/sda1 partition, I suppose your volume group is vg0):

make backups ;-)

- pvcreate /dev/sda1
- vgextend vg0 /dev/sda1
- move all the lv data with pvmove /dev/hda1.
- vgreduce vg0 /dev/hda2
- you will have to configure lilo/grub to install and point on your new disk.

I've done such a way but it was not with lvm2. Maybe there are some pvmove issues with lvm2.

Quoted 1 line

Zoltan Sutto

Jean-Luc

_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/