Linux LVM users
 help / color / mirror / Atom feed
* [linux-lvm] moving LVM to a new box
@ 2005-02-09 13:50 Sutto Zoltan
  2005-02-09 14:15 ` Jean-Luc Coulon (f5ibh)
  0 siblings, 1 reply; 5+ messages in thread
From: Sutto Zoltan @ 2005-02-09 13:50 UTC (permalink / raw)
  To: linux-lvm

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [linux-lvm] moving LVM to a new box
  2005-02-09 13:50 [linux-lvm] moving LVM to a new box Sutto Zoltan
@ 2005-02-09 14:15 ` Jean-Luc Coulon (f5ibh)
  2005-02-09 14:21   ` Tupshin Harper
  2005-02-09 19:01   ` M. Matt Colgin
  0 siblings, 2 replies; 5+ messages in thread
From: Jean-Luc Coulon (f5ibh) @ 2005-02-09 14:15 UTC (permalink / raw)
  To: LVM general discussion and development

[-- Attachment #1: Type: text/plain, Size: 938 bytes --]

Le 09.02.2005 14:50:28, Sutto Zoltan a écrit :
> 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.

> Zoltan Sutto

Jean-Luc

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [linux-lvm] moving LVM to a new box
  2005-02-09 14:15 ` Jean-Luc Coulon (f5ibh)
@ 2005-02-09 14:21   ` Tupshin Harper
  2005-02-09 19:01   ` M. Matt Colgin
  1 sibling, 0 replies; 5+ messages in thread
From: Tupshin Harper @ 2005-02-09 14:21 UTC (permalink / raw)
  To: LVM general discussion and development

Jean-Luc Coulon (f5ibh) wrote:

> Le 09.02.2005 14:50:28, Sutto Zoltan a �crit :
>
>> 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.

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [linux-lvm] moving LVM to a new box
  2005-02-09 14:15 ` Jean-Luc Coulon (f5ibh)
  2005-02-09 14:21   ` Tupshin Harper
@ 2005-02-09 19:01   ` M. Matt Colgin
  1 sibling, 0 replies; 5+ messages in thread
From: M. Matt Colgin @ 2005-02-09 19:01 UTC (permalink / raw)
  To: LVM general discussion and development

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.


On Wed, 09 Feb 2005 14:15:13 +0000, Jean-Luc Coulon (f5ibh)
<jean-luc.coulon@wanadoo.fr> wrote:
> Le 09.02.2005 14:50:28, Sutto Zoltan a �crit :
> > 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.
> 
> > Zoltan Sutto
> 
> Jean-Luc
> 
> 
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
> 
> 
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [linux-lvm] moving LVM to a new box
@ 2005-02-12  0:42 Sutto Zoltan
  0 siblings, 0 replies; 5+ messages in thread
From: Sutto Zoltan @ 2005-02-12  0:42 UTC (permalink / raw)
  To: linux-lvm

>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.
/dev/hda2->/dev/sda2

The new box booted correctly with the old disk.
Loading the necessary modules to be able to access SATA drive (ata_piix.ko).
When I tried to move my PV to a new partition using
pvmove /dev/hda2
I got kernel panic. After reseting I have complitly lost my VG.

What did I wrong?

I forgot to say that my root partition was on the VG I tried to move to the 
new disk.
Did this cause the problem?


Zoltan Sutto

Ps.: Installing/etc...

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-02-12  0:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-09 13:50 [linux-lvm] moving LVM to a new box Sutto Zoltan
2005-02-09 14:15 ` Jean-Luc Coulon (f5ibh)
2005-02-09 14:21   ` Tupshin Harper
2005-02-09 19:01   ` M. Matt Colgin
  -- strict thread matches above, loose matches on Subject: below --
2005-02-12  0:42 Sutto Zoltan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox